83 Commits

Author SHA1 Message Date
Andrew McMillan
2f82e69cfb Correctly test for repeated caldav.php in URL. 2012-07-08 11:58:58 +12:00
Andrew McMillan
55aefbecce Try to trace how we get caldav.php/ doubled in a path. 2012-06-30 16:03:25 +12:00
Andrew McMillan
2538835a12 Seems that change to output buffer flushing is problematic with zlib. 2012-06-14 13:36:15 +12:00
Andrew McMillan
46addb00fd Fix some final niggles with setup.php and spurious logged errors. 2012-05-30 23:04:10 +12:00
Andrew McMillan
724a549502 Fix thinko. 2012-05-14 22:26:17 +12:00
Andrew McMillan
47363b4f41 We should error 500 when we have an exception that isn't caught. 2012-05-14 20:54:43 +12:00
Andrew McMillan
4907d6992e A default timezone if there is not one set in the PHP configuration. 2012-05-03 19:12:22 +12:00
Andrew McMillan
9ee6f37d77 Make it possible to see output from /setup.php when DB is unavailable.
Also depends on some changes to AwlDbDialect/AwlQuery.
2012-04-22 10:01:40 +12:00
Andrew McMillan
3afa91be85 Don't try and initialize gettext unless it's installed. 2012-04-18 16:46:32 +12:00
Andrew McMillan
655f34aa27 Correct HTTP date formatting function. 2012-03-16 16:44:59 +13:00
Andrew McMillan
8d4dfb5d91 Handle HTTP date formatting for non-english locales (force English names). 2012-03-12 13:02:11 +13:00
Andrew McMillan
b50b2d82ea Force output buffers to be flushed, if they're turned on.
If output buffering is turned on, PHP can be a bit slack about sending
the data to the client before closing the connection with exit(). These
changes ensure we call ob_flush() before we leave.  We call @ob_flush()
so we don't get noisy warnings when output buffering is off...
2011-11-02 18:43:10 +13:00
Andrew McMillan
2127c294a3 Various small fixes preparing for release.
Correct logic for auto-creating addressbook for new user.
Fix non-creation of default addressbook.
Fix principal/collection edit to allow write of no privileges.
Fix collection edit timezone list to use new table.
Update davical & libawl version in always.php.
Regression test changes with update to davical.sql.
2011-09-25 22:29:31 +13:00
Andrew McMillan
d4e29a91b6 $_SERVERS['SERVER_PORT'] might not be set in some circumstances. 2011-09-22 13:46:26 +12:00
Andrew McMillan
9743c72c05 Fix DB version number and function mistakenly coded in always.php. 2011-09-12 14:36:56 +12:00
Andrew McMillan
13ce4c147a Add support for writing local scheduling requests on PUT.
In the new Scheduling Extensions for CalDAV the server is expected
to construct iCalendar METHOD:REQUEST invitations and put them into
the scheduling inbox for each (local) attendee.  This patch does
that, and hopefully breaks the back of implementing the full
scheduling extensions.
2011-09-07 23:40:28 +12:00
Andrew McMillan
d6916b205c Add another search path for Fedora. 2011-04-07 23:33:44 +12: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
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
04ecf36c88 Replace index.php with caldav.php when we find it in our path. 2010-11-30 09:52:33 +13:00
Andrew McMillan
0e9f299f45 Use expanded time specifiers in format since %Y doesn't work on Windows. 2010-11-05 11:58:00 +13: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
3300404912 Add a getUserByEMail() function. 2010-08-30 16:59:08 +12:00
Andrew McMillan
f816c6b56a Fix default locale. 2010-08-13 11:42:16 +12:00
Andrew McMillan
4065f26da2 Default type to 'resource' for privileges display. 2010-06-29 23:49:16 +12:00
Andrew McMillan
f2ebbda855 Add parameter for masking privilege output to only applicable set. 2010-06-28 09:31:35 +12:00
Andrew McMillan
28af315848 A fix for problems with character output in the user configuration. 2010-06-17 23:27:22 +12:00
Rob Ostensen
369f50f281 oops forgot to include the last change here as well. 2010-04-19 14:17:56 +12:00
Andrew McMillan
e2868c93ea Only log start of script if that specific debug is configured. 2010-04-01 22:23:55 +13:00
Andrew McMillan
b1913f780a Remember a script start time. 2010-03-30 10:44:20 +13:00
Andrew McMillan
d4f1279007 Add configurable locale directory from Aurelien. Nuke ancient compat code. 2010-03-24 08:15:55 +13:00
Andrew McMillan
f0964f7583 Move always.php into the webroot for easier setup.
Also add some 'search for the AWL includes' code into it for
even more easier setup.
2010-03-23 21:52:00 +13:00
Andrew McMillan
222454e786 Enforce Pacific/Auckland timezone when running regression tests. 2010-03-22 20:11:39 +13:00
Andrew McMillan
0b3040e907 Default to internal expansion of :name SQL parameters. 2010-03-22 17:22:18 +13:00
Andrew McMillan
1296bded43 Add a test header and log it to help find which tests cause problems. 2010-03-18 19:59:19 +13:00
Andrew McMillan
aaebf97bee Enhance the exception handler to display a forward trace 2010-03-13 00:00:47 +13:00
Andrew McMillan
70fbd72000 Update the correct always.php file and rebuild. 2010-03-11 23:09:40 +13:00
Andrew McMillan
371666f04e All schedule-deliver privileges should be included in default. 2010-03-06 00:19:49 +13:00
Andrew McMillan
dc72ddf3a8 Correct setup of locale. 2010-03-05 11:00:55 +13:00
Andrew McMillan
0fffd0e417 First (untested) cut at MKTICKET implementation. 2010-03-05 00:02:26 +13:00
Andrew McMillan
a6d692cde9 Switch always.php over to AwlQuery. 2010-03-04 01:39:40 +13:00
Andrew McMillan
0e1df68878 Correct allprop/include processing. 2010-02-28 22:39:02 +13:00
Andrew McMillan
ded5eafb6b Correct 'ALL' privilege to 24 bits. 2010-02-24 13:59:50 +13:00
Andrew McMillan
86ca750828 always: Initialise the AWL db connection. 2010-02-17 23:52:47 +13:00
Andrew McMillan
85a06399d8 Allow config files to be under /usr/local 2010-01-28 09:41:33 +13:00
Andrew McMillan
9ecc95399b Force function parameter types for older PostgreSQL versions. 2009-12-21 22:18:54 +13:00
Andrew McMillan
1eb677de16 Make some of those unused functions really not be used! 2009-12-21 21:41:37 +13:00
Andrew McMillan
19199d5f86 Replaced the old get_permissions() call with the new permissions model. 2009-12-21 13:04:25 +13:00
Andrew McMillan
8644cec3fb Add default privileges setting. Move privileges functions out of DAVResource.php 2009-11-22 22:28:27 +13:00
Andrew McMillan
2c418c4545 Move URL deconstruction into DeconstructURL function. 2009-11-14 17:35:10 +13:00