public function getDebugDumps($html = FALSE, $dumper = NULL) { require_once csQuery_DIR . 'includes/HexDumper.class.php'; if (!isset($dumper)) { $dumper = new HexDumper(); $dumper->setDelimiter(0x0); $dumper->setEndOfHeader(0x4); } return parent::getDebugDumps($html, $dumper); }
* http://www.gsQuery.org * * This file is part of the e-sport CMS Clansuite. * This file is part of the csQuery gameserver query library. * * The csQuery library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * The csQuery library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with the csQuery library; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * SVN: $Id$ */ include_once '../csQuery.php'; $gameserver = csQuery::createInstance($_GET["protocol"], $_GET["host"], $_GET["queryport"]); if (!$gameserver) { echo serialize($gameserver); exit(0); } $gameserver->query_server(TRUE, TRUE); echo $gameserver->serialize();
/** * @brief Retrieves a serialized object via HTTP and deserializes it * * Useful if UDP traffic isn't allowed * * @param url the URL of the object * @return the deserialized object */ public function unserializeFromURL($url) { require_once csQuery_DIR . 'includes/HttpClient.class.php'; return csQuery::unserialize(HttpClient::quickGet($url)); }