cvs: pearweb /public_html index.php
| From: | Stig Bakken | Date: | Sat, 01 Sep 2001 23:07:33 +0000 |
| Subject: | cvs: pearweb /public_html index.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-740@lists.php.net to get a copy of this message | ||
ssb Sat Sep 1 19:07:33 2001 EDT
Modified files:
/pearweb/public_html index.php
Log:
* use ?undevme to remove dev cookie
Index: pearweb/public_html/index.php
diff -u pearweb/public_html/index.php:1.18 pearweb/public_html/index.php:1.19
--- pearweb/public_html/index.php:1.18 Tue Aug 14 05:22:36 2001
+++ pearweb/public_html/index.php Sat Sep 1 19:07:33 2001
@@ -1,10 +1,13 @@
<?php
+ini_set("y2k_compliance", "on");
if ($HTTP_SERVER_VARS['QUERY_STRING'] == 'devme') {
$duration = 86400 * 360;
- ini_set("y2k_compliance", "on");
setcookie("pear_dev", "on", time() + $duration, "/");
$HTTP_COOKIE_VARS['pear_dev'] = "on";
+} elseif ($HTTP_SERVER_VARS['QUERY_STRING'] == 'undevme') {
+ setcookie("pear_dev");
+ unset($HTTP_COOKIE_VARS['pear_dev']);
}
@@ -18,6 +21,7 @@
<br />
</p>
+-
';
response_header();