cvs: pearweb /sql data.php
| From: | Richard Heyes | Date: | Wed, 26 Dec 2001 02:23:10 +0000 |
| Subject: | cvs: pearweb /sql data.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1688@lists.php.net to get a copy of this message | ||
heyesr Tue Dec 25 21:23:10 2001 EDT
Modified files:
/pearweb/sql data.php
Log:
register_globals fix
Index: pearweb/sql/data.php
diff -u pearweb/sql/data.php:1.8 pearweb/sql/data.php:1.9
--- pearweb/sql/data.php:1.8 Thu Dec 6 23:46:26 2001
+++ pearweb/sql/data.php Tue Dec 25 21:23:10 2001
@@ -3,6 +3,10 @@
require_once "DB.php";
require_once "../include/pear-database.php";
+if(!ini_get('register_globals')){
+ extract($HTTP_SERVER_VARS);
+}
+
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "error_handler");
list($progname, $type, $user, $pass, $db) = $argv;
$dbh = DB::connect("$type://$user:$pass@localhost/$db");