Update of /cvsroot/phpweather/phpweather/config
In directory sc8-pr-cvs1:/tmp/cvs-serv22553/config
Modified Files:
make_config.php
Log Message:
Let's include the new db_tafs option and also a couple of forgotten
options for the icons.
Index: make_config.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- make_config.php 1 Jul 2003 10:15:36 -0000 1.10
+++ make_config.php 8 Sep 2003 07:51:25 -0000 1.11
@@ -301,7 +301,13 @@
'This is the name of the table that is used ' .
'to cache the METARs.',
$db_dep, $table_validator, 'pw_metars');
-
+
+ $HTTP_SESSION_VARS['db_tafs'] =
+ new pw_option_text('db_tafs',
+ 'This is the name of the table that is used ' .
+ 'to cache the TAFs.',
+ $db_dep, $table_validator, 'pw_tafs');
+
$HTTP_SESSION_VARS['db_stations'] =
new pw_option_text('db_stations',
'This is the name of the database/table that is used ' .
@@ -332,12 +338,29 @@
"you've opened in <code>mark_begin</code>.",
false, false, '</b>');
+ $HTTP_SESSION_VARS['icons_path'] =
+ new pw_option_text('icons_path',
+ 'The path to the directory that stores the icons used in the ' .
+ 'output. You should set this to the absolute path from the ' .
+ 'server root if you need to use PHP Weather from several ' .
+ 'different locations on the server.',
+ false, false, 'icons/');
+
+ $HTTP_SESSION_VARS['reverse_dir'] =
+ new pw_option_boolean('reverse_dir',
+ 'The wind direction arrows will normally point in the ' .
+ 'same direction as the wind blows (so a wind direction ' .
+ 'of 45° will result in an arrow pointing up to the ' .
+ 'right) but if you want them reversed, then that\'s ' .
+ 'possible too.',
+ false, array('false' => 'Normal', 'true' => 'Reversed'));
+
$HTTP_SESSION_VARS['exclude'] =
new pw_option_multi_select('exclude',
'You can disable some of the output produced. If ' .
"you're not interested in information about " .
'runways-visibility, then select it in this list. ' .
- 'You can select several options at once in Netscape ' .
+ 'You can select several options at once ' .
'by holding down Ctrl while clicking on the option.',
false,
array('time' => 'Leave out the time part',
@@ -377,13 +400,13 @@
'db_handler', 'db_pconnect', 'always_use_db',
'cache_timeout', 'db_hostname', 'db_port',
'db_username', 'db_password', 'db_database',
- 'db_metars', 'db_stations', 'db_countries'),
+ 'db_metars', 'db_tafs', 'db_stations', 'db_countries'),
!empty($HTTP_POST_VARS['db_group_visible']));
$rendering_group =
new pw_optiongroup('rendering_group', 'Rendering Options',
'You can customize the looks of PHP Weather using these options.',
- array('mark_begin', 'mark_end', 'exclude'),
+ array('mark_begin', 'mark_end', 'icons_path', 'reverse_dir', 'exclude'),
!empty($HTTP_POST_VARS['rendering_group_visible']));
/* We can now generate a configuration file with the options selected so far: */
|