cvs: php-hosts-web /include shared.inc

From: Date: Mon, 22 Apr 2002 00:04:07 +0000
Subject: cvs: php-hosts-web /include shared.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9734@lists.php.net to get a copy of this message
jimw Sun Apr 21 20:04:07 2002 EDT Modified files: /php-hosts-web/include shared.inc Log: connect as nobody Index: php-hosts-web/include/shared.inc diff -u php-hosts-web/include/shared.inc:1.4 php-hosts-web/include/shared.inc:1.5 --- php-hosts-web/include/shared.inc:1.4 Sun Apr 21 19:49:22 2002 +++ php-hosts-web/include/shared.inc Sun Apr 21 20:04:07 2002 @@ -8,10 +8,8 @@ $CC_FILE = $ROOT_DIR . "/include/country_codes.inc"; require($CC_FILE); -if (!$conn=mysql_pconnect("localhost", "www")) { - echo "<B>Database is unavailable.</B> Please contact the <A HREF=\"mailto:$SYSOP\">sysop</A>.<P>"; - exit; -} +mysql_pconnect("localhost", "nobody") + or die("unable to connect to database: ".mysql_error()); $DBASE = "phphosts";

« previous php.mirrors (#9734) next »