CVS: phpweather/config index.php,1.1,1.2
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-04-07 18:53:19
|
Update of /cvsroot/phpweather/phpweather/config In directory usw-pr-cvs1:/tmp/cvs-serv12762 Modified Files: index.php Log Message: Ups - $_REQUEST was too new for SourceForge. I've also changed some include() to require_once() since that is what I mean: the script shouldn't run without these files. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/config/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- index.php 7 Apr 2002 18:38:20 -0000 1.1 +++ index.php 7 Apr 2002 18:53:15 -0000 1.2 @@ -2,24 +2,24 @@ error_reporting(E_ALL); -/* Include a couple of validators: */ -include('pw_validator.php'); -include('pw_validator_ereg.php'); -include('pw_validator_range.php'); - -/* Include some options: */ -include('pw_option.php'); -include('pw_option_text.php'); -include('pw_option_select.php'); -include('pw_option_multi_select.php'); -include('pw_option_boolean.php'); +/* Require a couple of validators: */ +require_once('pw_validator.php'); +require_once('pw_validator_ereg.php'); +require_once('pw_validator_range.php'); + +/* Require_once some options: */ +require_once('pw_option.php'); +require_once('pw_option_text.php'); +require_once('pw_option_select.php'); +require_once('pw_option_multi_select.php'); +require_once('pw_option_boolean.php'); /* We want to group the options: */ -include('pw_optiongroup.php'); +require_once('pw_optiongroup.php'); /* A couple of dependencies: */ -include('pw_dependency.php'); -include('pw_dependency_or.php'); +require_once('pw_dependency.php'); +require_once('pw_dependency_or.php'); /* We have to strip slashes from the GPC variables. */ if (get_magic_quotes_gpc() == 1) { @@ -35,7 +35,7 @@ } } - recursive_stripslashes($_REQUEST); + recursive_stripslashes($HTTP_POST_VARS); } /* Start the session. */ @@ -261,7 +261,7 @@ options in $options and not on a copy. */ $keys = array_keys($options); foreach ($keys as $option) { - $options[$option]->update_value($_REQUEST); + $options[$option]->update_value($HTTP_POST_VARS); } /* Grouping */ @@ -299,7 +299,7 @@ $rendering_group->get_config() . "\n?>\n"; -if (!empty($_REQUEST['download'])) { +if (!empty($HTTP_POST_VARS['download'])) { header('Content-type: application/octet-stream'); header('Content-Disposition: attachment; filename="defaults.php"'); echo $config; |