Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_GET['server']){
- $res_info = array();
- $query = array();
- $server_info = get_server_byid($_GET['server']);
- $pathway_info[] = array('title'=>$server_info['name'],'');
- $cc = 0;
- if(check_port_status($server_info['host'], $server_info['port'])===true)
- {
- if(!$server_info['dbinfo'])output_message('alert','Check field <u>dbinfo</u> in table `gameservers` for server_id='.$server_info['server_id']);
- $gsdb_info = parse_serverdb_info($server_info['dbinfo']);
- $GSDB = DbSimple_Generic::connect("".$config['db_type']."://".$gsdb_info['user'].":".$gsdb_info['password']."@".$gsdb_info['host'].":".$gsdb_info['port']."/".$gsdb_info['db']."");
- if($GSDB)$GSDB->setErrorHandler('databaseErrorHandler');
- if($GSDB)$GSDB->query("SET NAMES ".$config['db_encoding']);
- if($GSDB)$query = $GSDB->select("SELECT * FROM `characters` WHERE `pvpkills`<>'0' ORDER BY `pvpkills` DESC LIMIT 0, 10");
- }else{
- output_message('alert','El Servidor <b>'.$server_info['name'].'</b> Esta Apagado <img src="'.$config['template_href'].'images/server_offline.png" border="0" align="top">');
- }
- ?>
Add Comment
Please, Sign In to add comment