session_start(); define('AntiBK', true); include("engline/config.php"); include("engline/dbsimple/Generic.php"); include("engline/functions/functions.php"); $guid = getGuid(); $adb = DbSimple_Generic::connect($database['adb']); $adb->query("SET NAMES ? ",$database['db_encoding']); $adb->setErrorHandler("databaseErrorHandler"); $char = Char::initialization($guid, $adb); $char->test->Guid(); $char->test->Zayavka(); ?>
$char_db = $char->getChar('char_db', 'login', 'room', 'city', 'battle', 'battle_opponent'); ArrToVar($char_db); if ($battle) { echo ""; if ($battle_opponent && !$_SESSION['battle_ref']) { //print ""; $_SESSION['battle_ref'] = 1; } } /*---------------------Проверки ip-------------------------*/ $ip = $adb->selectCell("SELECT `ip` FROM `online` WHERE `guid` = ?d", $guid) or die (""); if ($ip != $_SERVER['REMOTE_ADDR']) die (""); ?>