/************************************************************************/ /* Squery 4.0.1 PHPNuke Module */ /* ================================================= */ /* */ /* Copyright (c) 2004 Curtis Brown (webmaster@squery.com) */ /* http://www.squery.com */ /* */ /* */ /* This Module allows users to query from your PHPNuke Website. */ /* The module is required to be present for the Block to work, however */ /* It is not necessary that it be active */ /* */ /************************************************************************/ /* ADMIN SECTION - Sql Integration - Block Modification */ /* */ /* Author: XenoMorpH ¤TŠI¤ (aarvuijk@hotmail.com) */ /* Development Assistance: CrazyCrack (support@phpnuke-clan.com) */ /* Made for PNC phpnuke-clan.com & SQuery.com */ /************************************************************************/ if (eregi("block-SQuery_tiny.php",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } global $nukeurl; error_reporting(0); $libpath="./SQuery/lib/"; // require our main library =) require_once($libpath.'config.php'); require_once($libpath.'main.lib.php'); $libpath="./SQuery/lib/"; ////////////////////////////////////////////////////////// function TinyqueryServer($address, $port, $protocol) { global $libpath,$content; include_once($libpath."gsQuery.php"); if(!$address && !$port && !$protocol) { $content.="No parameters given\n"; return FALSE; } $gameserver=gsQuery::createInstance($protocol, $address, $port); if(!$gameserver) { $content.="Could not instantiate gsQuery class. Does the protocol you've specified exist?\n"; return FALSE; } if(!$gameserver->query_server(TRUE, TRUE)) { // fetch everything // query was not succesful, dumping some debug info $content.="
';
$gameserver->docvars($gameserver);
/////////////////////////////////////////////////////////
// function is called, sees server type, creates a pathname to pictures based on mapname and server type.
$mappic=domappic($gameserver);
// if the picture isn't there, sets to unknown.gif.
///////////////////////////////////////////////////////////////////////////////////
$content.=' ';
$content.="";
$content.=' Server Name '; $content.=$gameserver->htmlize($gameserver->servertitle); $content.='
|