Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #5 from jameless/patch-1

Edited $mysql_server variable to reference the $mysql_host variable
  • Loading branch information...
commit 2d1e8e0280314f67572b28b922d6aeed2f997b1d 2 parents 4aca16e + a7ac0f4
Alex Van Camp authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 WebUI/dynamic.php
12 WebUI/dynamic.php
@@ -546,7 +546,7 @@ function DOA($i1, $i2)
546 546
547 547 case 'players':
548 548
549   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
  549 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
550 550 mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
551 551
552 552 $pid = $page * 30;
@@ -597,7 +597,7 @@ function DOA($i1, $i2)
597 597
598 598 case 'view':
599 599
600   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
  600 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass);
601 601 $player = mysql_real_escape_string($_REQUEST['player']);
602 602
603 603 //Get info on the players duels
@@ -737,7 +737,7 @@ function DOA($i1, $i2)
737 737
738 738 case 'pickups24':
739 739
740   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass);
  740 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass);
741 741 mysql_select_db($mysql_db, $dbconn);
742 742
743 743 //WHERE time>=\'' . (time() - 3600) . '\'
@@ -782,7 +782,7 @@ function DOA($i1, $i2)
782 782 $newcache = true;
783 783 }
784 784
785   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
  785 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
786 786 mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
787 787
788 788 //WHERE time>=\'' . (time() - 3600) . '\'
@@ -825,7 +825,7 @@ function DOA($i1, $i2)
825 825
826 826 case 'viewpickup':
827 827
828   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
  828 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
829 829 $gametime = $_REQUEST['id'];
830 830
831 831 //Query database for info
@@ -991,7 +991,7 @@ function DOA($i1, $i2)
991 991 case 'maps':
992 992
993 993 //MySQL connect
994   - $dbconn = mysql_connect($mysql_server,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
  994 + $dbconn = mysql_connect($mysql_host,$mysql_user,$mysql_pass) or die(mysql_error($dbconn));
995 995 mysql_select_db($mysql_db,$dbconn) or die(mysql_error($dbconn));
996 996
997 997 //Get info on maps played

0 comments on commit 2d1e8e0

Please sign in to comment.
Something went wrong with that request. Please try again.