Update of /cvsroot/phpweather/phpweather/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30399/config
Modified Files:
make_config.php
Log Message:
This will detect when session.auto_start is turned on, and abort so
that the user doesn't see a bunch of errors. Closes #816921.
Index: make_config.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- make_config.php 7 Oct 2003 22:31:54 -0000 1.12
+++ make_config.php 11 Feb 2004 14:40:58 -0000 1.13
@@ -1,5 +1,40 @@
<?php
+if (ini_get('session.auto_start')) {
+ /* Sorry, no configuration builder for you... */
+?>
+
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <link rel="stylesheet" type="text/css" href="../pw_style.css" />
+ <title>Configuration Builder for PHP Weather</title>
+</head>
+<body>
+
+<img src="../icons/phpweather-long-white.png" width="187" height="50"
+alt="PHP Weather" align="right" />
+
+<h1>Configuration Builder for PHP Weather</h1>
+
+<p>Sorry, but you cannot use the Configurator when PHP is configured
+with <code>session.auto_start</code> turned on.</p>
+
+<p>See <a href="http://php.net/manual/ref.session.php">this
+page</a> in the <a href="http://php.net/manual/">PHP Manual</a> for
+help.</p>
+
+<p>You can of course still make your <code>defaults.php</code> file by
+hand, just make a copy of the <code>defaults-dist.php</code> file and
+then change the settings to suit your preferences. Then remove any
+unchanged preferences and save it as <code>defaults.php</code>.</p>
+
+<?php
+ exit;
+}
+
error_reporting(E_ALL);
require_once('../pw_utilities.php');
@@ -487,7 +522,7 @@
<h1>Configuration Builder for PHP Weather</h1>
-<p>This is the Configuretor shipped with PHP Weather.</p>
+<p>This is the Configurator shipped with PHP Weather.</p>
<p>Change the options below - when you're done, then press one of the
'Update Configuration' buttons. Depending on your choices, more
|