queries; } function open($database, $host, $user, $password, $pconnect = 0) { if ($pconnect) { $this->id=mysql_pconnect($host, $user, $password); } else { $this->id=mysql_connect($host, $user, $password); } if ($this->id) { if (!mysql_select_db($database)) { $this->error('Fatal Error: Could not find database on the server'); } } return $this->id; } function error($error = 0) { global $lastquery; print 'MMC Error

An Error has occured, please contact the system administrator.



'; if (!$error) { print mysql_error($this->id); } else { print $error; } print '
Query:
'.$lastquery; print '
'; exit(); } function errorcheck() { global $lastquery; if (mysql_error($this->id)) { print 'MMC Error

An Error has occured, please contact the system administrator.



'; print mysql_error($this->id); print '
Query:
'.$lastquery; print '
'; exit(); } } function error2() { return mysql_error($this->id); } function close() { $result=@mysql_close($this->id); return $result; } }; class query { var $result; var $row; function query(&$db, $query="") { global $lastquery; $lastquery = $query; $this->result=mysql_query($query, $db->id); $db->errorcheck(); $db->queries .= '
'.$query; } function getrow() { if ($this->result) { $this->row=mysql_fetch_array($this->result); } else { $this->row=0; } return $this->row; } function fetch() { if ($this->result) { $this->row=mysql_fetch_array($this->result); } else { $this->row=0; } return $this->row; } function seek($row) { return mysql_data_seek($this->result, $row); } function field($field) { return $this->row[$field]; } function free() { return @mysql_free_result($this->result); } function affected() { return @mysql_affected_rows(); } } function fetch($queryid) { return mysql_fetch_array($queryid); } function free($queryid) { return mysql_free_result($queryid); } function qquery($querystring) { return mysql_query( $querystring ); } function ffetch($queryid) { return mysql_fetch_array( $queryid ); } function fquery( $querystring ) { return mysql_fetch_array(mysql_query( $querystring )); } //End MYSQL Functions/Classes //include database connection info //include 'lib/sqldata.php'; //proprietary mysql connection functions //include 'lib/database/mysql.php'; $SQL = new db; $result = $SQL->open($database_server['database'], $database_server['hostname'], $database_server['username'], $database_server['password']); if (!$result) { show_dberror('Could Not Connect To Database'); } ?>

Top 5 Killers

getrow()) { $pname = $top5killers->field('NAME'); $pkills = $top5killers->field('KILLS'); ?>
# Username Kills
0
Notice: Undefined variable: pname in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 200

Notice: Undefined variable: pkills in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 201

Top 5 Winners

getrow()) { $pname = $top5winners->field('NAME'); $pwins = $top5winners->field('WINS'); ?>
# Username Wins
0
Notice: Undefined variable: pname in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 240

Notice: Undefined variable: pwins in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 241

Most Deaths

getrow()) { $pname = $top5deaths->field('NAME'); $pdeaths = $top5deaths->field('DEATHS'); ?>
# Username Deaths
0
Notice: Undefined variable: pname in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 280

Notice: Undefined variable: pdeaths in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 281

Most Rich

getrow()) { $pname = $top5bal->field('NAME'); $pbal = $top5bal->field('BALANCE'); ?>
# Username Balance
0
Notice: Undefined variable: pname in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 321

Notice: Undefined variable: pbal in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 322

getrow()) { $gid = $list_games->field('id'); $gstarttime = $list_games->field('starttime'); $gendtime = $list_games->field('endtime'); echo ""; //Get contents of individual game $query_game = new query($SQL, "SELECT p.kit, p.deathtime, p.killer, p.death_reason, pl.name as ref_player, pl.balance, pl2.name as ref_killer FROM `bg_plays` p left join bg_players pl on p.ref_player = pl.id left join bg_players pl2 on p.ref_killer = pl2.id WHERE ref_game = $gid order by p.deathtime DESC"); while ($query_game->getrow()) { $kit = $query_game->field('kit'); $deathtime = $query_game->field('deathtime'); $deathreason = $query_game->field('death_reason'); $ref_player = $query_game->field('ref_player'); $ref_killer = $query_game->field('ref_killer'); $killer = $query_game->field('killer'); $balance = $query_game->field('balance'); $img = ""; if ($deathreason == 'ENTITY_ATTACK') { if ($kit == 'archer' OR $kit == 'bowman') { $img = "http://www.myminecraft.com/bow.png"; } elseif($kit == 'zeus') { $img = "http://www.myminecraft.com/blaze_rod.png"; } elseif($kit == 'king') { $img = "http://www.myminecraft.com/diamond_sword.jpg"; } elseif($kit == 'martyr') { $img = ""; } elseif($kit == 'cook') { unset($img); } elseif($kit == 'spiderman') { unset($img); } else { unset($img); } } elseif($deathreason == 'PROJECTILE') { if ($kit == 'archer' OR $kit == 'bowman') { $img = "http://www.myminecraft.com/bow.png"; } elseif($kit == 'zeus') { $img = "http://www.myminecraft.com/blaze_rod.png"; } elseif($kit == 'king') { $img = "http://www.myminecraft.com/diamond_sword.jpg"; } elseif($kit == 'martyr') { unset($img); } elseif($kit == 'cook') { unset($img); } elseif($kit == 'spiderman') { unset($img); } else { unset($img); } } elseif($deathreason == 'BLOCK_EXPLOSION') { } elseif($deathreason == 'FALL') { } if (!isset($img)) { $image = $deathreason; } else { $image = ""; } if ($killer != "PLAYER") { if ($deathreason == "WINNER") {?>

Game $gid [Started: $gstarttime] [Ended: $gendtime]


Notice: Undefined variable: ref_player in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 421

Balance:
Notice: Undefined variable: balance in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 423


Notice: Undefined variable: deathtime in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 424


Notice: Undefined variable: ref_player in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 428


Notice: Undefined variable: kit in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 430


Notice: Undefined variable: deathtime in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 431


Notice: Undefined variable: ref_player in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 436


Notice: Undefined variable: image in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 437

Notice: Undefined variable: kit in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 437

Was Slaughtered by


Notice: Undefined variable: ref_killer in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 439


Notice: Undefined variable: deathtime in /home/myminecraft/public_html/wp-content/themes/mmc_blue/hg.php on line 440