Browse files

Merge pull request #5 from jameless/patch-1

Edited $mysql_server variable to reference the $mysql_host variable
  • Loading branch information...
2 parents 4aca16e + a7ac0f4 commit 2d1e8e0280314f67572b28b922d6aeed2f997b1d @Lange committed Apr 9, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 WebUI/dynamic.php
View
12 WebUI/dynamic.php
@@ -546,7 +546,7 @@ function DOA($i1, $i2)
case 'players':
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
$pid = $page * 30;
@@ -597,7 +597,7 @@ function DOA($i1, $i2)
case 'view':
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass);
$player = mysql_real_escape_string($_REQUEST['player']);
//Get info on the players duels
@@ -737,7 +737,7 @@ function DOA($i1, $i2)
case 'pickups24':
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db, $dbconn);
//WHERE time>=\'' . (time() - 3600) . '\'
@@ -782,7 +782,7 @@ function DOA($i1, $i2)
$newcache = true;
}
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
//WHERE time>=\'' . (time() - 3600) . '\'
@@ -825,7 +825,7 @@ function DOA($i1, $i2)
case 'viewpickup':
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
$gametime = $_REQUEST['id'];
//Query database for info
@@ -991,7 +991,7 @@ function DOA($i1, $i2)
case 'maps':
//MySQL connect
- $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
+ $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
//Get info on maps played

0 comments on commit 2d1e8e0

Please sign in to comment.