diff --git a/inc/tz/updatecheck.php b/scripts/tz-update.php old mode 100644 new mode 100755 similarity index 90% rename from inc/tz/updatecheck.php rename to scripts/tz-update.php index d751f633..ec082e37 --- a/inc/tz/updatecheck.php +++ b/scripts/tz-update.php @@ -1,6 +1,7 @@ +#!/usr/bin/env php tzsource configuration value, with +a further default to the zonedb/vtimezone directory relative to the root of the +DAViCal installation. + +This script can be used to initialise or update the timezone information in +DAViCal used for the in-built timezone service. + +USAGE; + exit(1); +} + +$_SERVER['SERVER_NAME'] = $argv[1]; + +chdir(str_replace('/scripts/tz-update.php','/htdocs',$script_file)); + +require_once("./always.php"); + +if ( isset($argv[2]) ) { + $c->tzsource = $argv[2]; +} require_once('vCalendar.php'); require_once('XMLDocument.php');