Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv14635
Modified Files:
defaults-dist.php
Log Message:
Added a new option: cache_timeout. This is used to determine when a
METAR is old. The default value is 3600 seconds which was the value
used in data_retrieval before.
Index: defaults-dist.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/defaults-dist.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- defaults-dist.php 18 Mar 2002 16:19:58 -0000 1.11
+++ defaults-dist.php 12 Apr 2002 22:00:27 -0000 1.12
@@ -8,14 +8,18 @@
* some reason, then it's also simple to edit this file manually:
*
* 1) save this file as 'defaults.php'
- * 2) remove everything you don't need
- * 3) change the options you want
+ * 2) change the options you want
+ * 3) remove everything you didn't change
*
- * That's it! You can keep your new file (defaults.php) when upgrading
- * PHP Weather, as it will only contain new version of this file. */
+ * That's it! You can keep your file (defaults.php) with your
+ * modifications when upgrading PHP Weather, as the tarball will only
+ * contain a new defaults-dist.php.
+ */
$this->properties['verbosity'] = 1; /* base_object.php */
+
$this->properties['always_use_db'] = false; /* data_retrieval.php */
+$this->properties['cache_timeout'] = 3600;
$this->properties['icao'] = 'EKYT';
$this->properties['use_proxy'] = false;
$this->properties['proxy_host'] = '';
@@ -43,7 +47,6 @@
$this->properties['icons_path'] = 'icons/'; /* pw_images.php */
-// hack around PHP bug - the offset to add to a time reported
-$this->properties['offset'] = 0;
+$this->properties['offset'] = 0; /* phpweather.php */
?>
|