From: <le...@us...> - 2002-08-10 10:43:01
|
Update of /cvsroot/meshdb/www/db2 In directory usw-pr-cvs1:/tmp/cvs-serv10501 Modified Files: gawd.php index.php info.php lookup.inc.php map2b.php map2d.php map3b.php map4b.php select.php submit.php touch.php vrml3b.php config-local.php-dist Log Message: add a MYSQLPASS password config var Index: gawd.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/gawd.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- gawd.php 10 Aug 2002 03:33:24 -0000 1.1.1.1 +++ gawd.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -9,7 +9,7 @@ include("config.php"); include("util.php"); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: index.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- index.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ index.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -9,7 +9,7 @@ $len = intval($_GET["imgsz"]); if ($len < 50) $len = $DEFAULTLEN; - $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); $result = mysql_query("SELECT max(unix_timestamp(updated)) from admin", $db) Index: info.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/info.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- info.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ info.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -2,7 +2,7 @@ <? include("config.php"); - $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: lookup.inc.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/lookup.inc.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- lookup.inc.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ lookup.inc.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -5,7 +5,7 @@ */ global $PREF; - $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: map2b.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/map2b.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- map2b.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ map2b.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -25,7 +25,7 @@ $im = ImageCreateFromPNG("http://box:80/~mesh/db2/map2d.php?w=$w&h=$h&s=$s&e=$e&n=$n"); if (!$im) die("image load failed"); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: map2d.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/map2d.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- map2d.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ map2d.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -38,7 +38,7 @@ header("X-scale: $s m/pixel"); header("X-source: $mburl"); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: map3b.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/map3b.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- map3b.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ map3b.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -19,7 +19,7 @@ $s = doubleval($s); $vrml = intval($vrml); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: map4b.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/map4b.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- map4b.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ map4b.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -15,7 +15,7 @@ $h = intval($_GET["h"]); $s = doubleval($_GET["s"]); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: select.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/select.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- select.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ select.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -24,7 +24,7 @@ include("config.php"); - /* Connect */ $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + /* Connect */ $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); $result = mysql_query("SELECT max(unix_timestamp(updated)) from admin", $db) Index: submit.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/submit.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- submit.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ submit.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -107,7 +107,7 @@ } - $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: touch.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/touch.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- touch.php 10 Aug 2002 03:33:55 -0000 1.1.1.1 +++ touch.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -13,7 +13,7 @@ if ($nodeid == 12345) die("invalid nodeid - change the '12345' in the URL to your node's ID!"); - $db = mysql_connect($MYSQLHOST, $MYSQLUSER); + $db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: vrml3b.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/vrml3b.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- vrml3b.php 10 Aug 2002 03:34:07 -0000 1.1.1.1 +++ vrml3b.php 10 Aug 2002 10:42:56 -0000 1.2 @@ -18,7 +18,7 @@ $h = intval($h); $s = doubleval($s); -$db = mysql_connect($MYSQLHOST, $MYSQLUSER); +$db = mysql_connect($MYSQLHOST, $MYSQLUSER, $MYSQLPASS); mysql_select_db("mesh", $db) or die(mysql_error($db)); Index: config-local.php-dist =================================================================== RCS file: /cvsroot/meshdb/www/db2/config-local.php-dist,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- config-local.php-dist 10 Aug 2002 10:24:39 -0000 1.1 +++ config-local.php-dist 10 Aug 2002 10:42:56 -0000 1.2 @@ -8,11 +8,12 @@ * ========README=====README=====README======README====== */ - global $MYSQLHOST, $MYSQLUSER, $READONLY, $OURPROXY; + global $MYSQLHOST, $MYSQLUSER, $MYSQLPASS, $READONLY, $OURPROXY; global $ZONE, $SHIFTFILE, $ALTFILE; $MYSQLHOST = "host"; /* MySQL hostname */ $MYSQLUSER = "user"; /* MySQL username */ + $MYSQLPASS = "pass"; /* MySQL password */ $READONLY = 0; /* Set to 1 for db maintennance */ $OURPROXY = "proxy"; /* an HTTP proxy host available to us */ |