cvs: pearweb /include pear-prepend.php
| From: | Stig Bakken | Date: | Fri, 29 Mar 2002 02:22:29 +0000 |
| Subject: | cvs: pearweb /include pear-prepend.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2898@lists.php.net to get a copy of this message | ||
ssb Thu Mar 28 21:22:29 2002 EDT
Modified files:
/pearweb/include pear-prepend.php
Log:
* register_globals fixes
Index: pearweb/include/pear-prepend.php
diff -u pearweb/include/pear-prepend.php:1.23 pearweb/include/pear-prepend.php:1.24
--- pearweb/include/pear-prepend.php:1.23 Sun Mar 24 07:13:14 2002
+++ pearweb/include/pear-prepend.php Thu Mar 28 21:22:28 2002
@@ -17,7 +17,7 @@
}
if (empty($format)) {
- if (basename($PHP_SELF) == "xmlrpc.php") {
+ if (basename($_SERVER['PHP_SELF']) == "xmlrpc.php") {
$format = "xmlrpc";
} else {
$format = "html";
@@ -53,5 +53,5 @@
$dbh = DB::connect(PEAR_DATABASE_DSN, array('persistent' => true));
}
-$LAST_UPDATED = date("D M d H:i:s Y T", filectime($SCRIPT_FILENAME));
+$LAST_UPDATED = date("D M d H:i:s Y T",
filectime($_SERVER['SCRIPT_FILENAME']));
?>