17 Commits

Author SHA1 Message Date
Florian Schlichting
75d4db9afb two more PHP5 curl 2019-03-11 22:46:37 +01:00
Andrew Ruthven
afe69f22d3 We need PHP curl, not specifically PHP5 curl 2019-03-07 16:15:34 +13:00
Florian Schlichting
d459b489ac external fetch: improve error reporting 2018-01-13 23:46:46 +01:00
Florian Schlichting
81874649f7 external fetch: handle initial NULL of collection.modified 2018-01-13 23:22:12 +01:00
Jan Losinski
b5072dd154 Set the user agent string for external calendars 2017-04-24 21:20:34 +00:00
Florian Schlichting
eb7f2edc0c eliminate trailing whitespace, expand tabs 2016-12-30 08:52:44 +01:00
Andrew Ruthven
35f656f58b Pass in the refresh interval to fetch_external
If we don't pass in the refresh interval then a default of 1 hour is used, this
isn't really what is intended.
2016-05-19 15:24:39 +12:00
“Paul
96a5a31203 Fixed fetching new external resources on BIND 2014-06-23 21:55:11 +02:00
Rob Ostensen
e7afaef931 fix a few external BIND import bugs 2012-03-12 12:38:22 +13:00
Andrew McMillan
a47e3d9d8b <?php should be in lower case. 2012-01-15 21:33:12 +13:00
Philipp Matthias Hahn
fb3eca0b07 Use If-Modified-Since-HTTP-Header
Skip downloading a potentially huge calendar file if it the same as out
local copy, using the If-Modified-Since-HTTP-Header.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2012-01-14 19:36:25 +13:00
Philipp Matthias Hahn
c9467618d7 Fix remote time comparison
The PostgreSQL database returns a string like "2013-01-11
18:37:36.737665+01", while curl returns the file-modification-time as a
string repesenting the secondes since the UNIX epoche. Comparing them as
strings us wrong.

Convert them to DateTime() instances instead.
And only do this when the filetime is actually returned.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2012-01-14 19:34:41 +13:00
Andrew McMillan
33effe2a70 Add a default for min_age. 2012-01-12 13:59:34 +13:00
Rob Ostensen
ebfeeb220e add checks to prevent external binds from being created or updated if curl is missing, add check to setup page 2012-01-07 14:38:58 +13:00
Rob Ostensen
a6ff1760f2 make refreshing actually work 2011-08-25 14:17:36 +12:00
Rob Ostensen
b2ef0b0bf2 Add the required fields to dav_binding and clean up the SQL to better match the rest of the source.
Add a header/last-modified check to skip the import on calendars that haven't changed.
2011-08-25 14:17:28 +12:00
Rob Ostensen
6331c50003 initial support for remote url BINDing 2011-08-25 14:17:15 +12:00