248 Commits

Author SHA1 Message Date
Andrew McMillan
5debe92237 Move from extract.pl to standard xgettext
So far we have used extract.pl which originated in Horde to generate the
PO files. This process took a long time to run.

But xgettext is able to handle PHP by itself.

In the source translate() and i18n() are used instead of _() therefore
we have to pass a keyword parameter.

From now on Translators: is the keyword to provide content to the
translators on Transifex.

Conflicts:

	scripts/po/extract.pl
2011-02-21 22:39:40 +13:00
Felix Möller
0ce2dfa421 Checking for the DateTime class, for extended date support.
Correcting a spelling mistake in the class name to check for the correct one.
2011-02-21 22:30:17 +13:00
Andrew McMillan
0de150ed74 Build AWL desired version string as quoted value.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-21 22:07:31 +13:00
Andrew McMillan
f59e109ace Correct references to rscds & other old URLs.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-20 23:33:50 +13:00
Andrew McMillan
422144b68a Fix that last fix... :-)
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-15 17:02:50 +13:00
Andrew McMillan
8f25a8a393 Block invalid tickets from having access.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-15 16:42:59 +13:00
Andrew McMillan
5e5fa2d44e Display status of DateTime support.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-08 13:29:36 +13:00
Andrew McMillan
cc941a500e Fix broken last commit.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 22:07:32 +13:00
Andrew McMillan
f30c0b84c9 Remove attempts to translate early error messages.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 21:42:49 +13:00
Andrew McMillan
b2afb747da Add early check for iconv
Also, we're doing this before we load translation code so
we really can't translate it...

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 21:21:55 +13:00
Andrew McMillan
20ee255898 Refactor fetching of Principal records from database.
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.

At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13:00
Andrew McMillan
fe095d009d Refactored to provide clearer display of issues. 2011-01-01 21:23:25 +13:00
Andrew McMillan
fbd28407ea Fix cache storing. 2011-01-01 21:22:42 +13:00
Andrew McMillan
5ff2f052c6 Add support for caching of feed, and uncaching on collection change.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-31 20:29:30 +13:00
Andrew McMillan
b2f35df817 Just use the fields straight from the database.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 21:30:34 +13:00
Andrew McMillan
c3fab4dcd0 Correct feed modification time using collection modified property.
Also switch to using the caldav_data (modified/created) fields from
the database.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:54:31 +13:00
Andrew McMillan
5ad371a910 Don't allow feed access unless user has at least freebusy privileges.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 17:13:43 +13:00
Andrew McMillan
520077a9a5 Add categories to the Atom content.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 13:03:26 +13:00
Andrew McMillan
18e58fa796 Reinstate the summary field in the Atom.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 13:03:03 +13:00
Leho Kraav
6e1a6f3381 feed.php: add support for displaying event categories 2010-12-27 12:37:34 +13:00
Leho Kraav
2b19868bf3 feed.php: migrate from no-locale-supporting DateTime->format() -> strftime() 2010-12-27 12:37:23 +13:00
Leho Kraav
338cb7f35d feed.php: hyperlink urls in description and remove an erroneous setDescription 2010-12-27 12:37:03 +13:00
Leho Kraav
4b4b21ee45 feed.php: fix adding $p_time to itself one too many times in our funky ? : 2010-12-27 12:36:43 +13:00
Leho Kraav
81eba961c8 feed.php: let's dbg_error_log peculiar VCALENDAR component instead of echo 2010-12-27 12:36:15 +13:00
Leho Kraav
37cf2f618d feed.php: make sure we do htmlspecialchars on most to-be-xml content 2010-12-27 12:35:52 +13:00
Leho Kraav
2ebaecd3e3 feed.php: remove hardcoded LIMIT ALL 2010-12-27 12:35:35 +13:00
Leho Kraav
c3828f491c feed.php: make a string translatable 2010-12-27 12:35:28 +13:00
Leho Kraav
0ac934268f since we're implementing Atom, refactoring all rss -> feed seems appropriate.
this seems better than going for only atom.php, since we can add more
feed formats in the future under the same infrastructure i.e.
feed.php/user1/home/?format=json.
2010-12-27 12:35:12 +13:00
Andrew McMillan
afa74df5c5 Fix corner case of event with no summary.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 23:57:26 +13:00
Andrew McMillan
f2486296a7 A new AtomFeed class for building an Atom feed.
Plus the change in rss.php to use it.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 23:31:47 +13:00
Andrew McMillan
0ed9b058c3 Switch to creating an atom feed, which is a better feed standard.
Along with many other small changes and enhancements that ensued
as I ran my eyes over the code.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:38:10 +13:00
Leho Kraav
5ece951362 A new URL to provide an RSS feed of a calendar's changes. 2010-12-26 09:50:40 +13:00
Andrew McMillan
902bf2ad42 Prepare to release 0.9.9.4
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:58 +13:00
Andrew McMillan
1cbaa5b530 Basic robots.txt that does nothing except stop error log messages. 2010-12-25 14:25:58 +13:00
Andrew McMillan
9bb339e291 Cut access with invalid/expired tickets out immediately.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-08 12:57:12 +13:00
Andrew McMillan
04ecf36c88 Replace index.php with caldav.php when we find it in our path. 2010-11-30 09:52:33 +13:00
Andrew McMillan
d347c5c0e9 The redirect on /.well-known/ URLs should be a 301 really. 2010-11-27 19:19:08 +13:00
Andrew McMillan
58eb6fa7c0 Fix the logging so that we get the raw_post logged for !GET 2010-11-17 13:15:33 +13:00
Andrew McMillan
20514c05e6 Turn on calendar-auto-schedule header if $c->enable_auto_schedule 2010-10-14 21:20:02 -04:00
Andrew McMillan
2033afcf97 Check for some more things, including that we have the right AWL version. 2010-10-14 21:17:24 -04:00
Andrew McMillan
487693ffee Add knowledge of desired parallel AWL version to setup.
Also add caching of getUserByEmail() since we'll be doing more of
that in the scheduling code.
2010-10-14 21:15:16 -04:00
Andrew McMillan
f77ac0fab4 Check for some supported stuff very early so we can show it is missing. 2010-10-07 15:38:07 -04:00
Andrew McMillan
443aae2a52 Preparing to release 0.9.9.3. 2010-09-24 12:51:52 +12:00
Andrew McMillan
e0b46d442d Preparing for release 0.9.9.2 2010-09-21 12:14:35 +12:00
Andrew McMillan
e87ae9ac63 Release 0.9.9.1 for testing. 2010-09-14 13:50:27 +12:00
Andrew McMillan
ed9b3ae693 Tweaking OPTIONS output. 2010-09-12 16:22:58 +12:00
Andrew McMillan
645b9196fc [setup] Detect whether suhosin.server.strip is set and discourage it.
I sanitise the path just fine and I like being able to have arbitrary
paths, and don't want non-alphabetic stuff turned into a question mark.
2010-09-11 23:07:29 +12:00
Andrew McMillan
bc88301a4f [index] Allow for a HEAD request on / to be served here too. 2010-09-11 22:52:00 +12:00
Andrew McMillan
50fccc73d8 Working freebusy refactored to use a single core routine. 2010-08-30 18:55:23 +12:00
Andrew McMillan
3300404912 Add a getUserByEMail() function. 2010-08-30 16:59:08 +12:00