All Data Structures Namespaces Files Functions Variables Pages
gambling.php
Go to the documentation of this file.
<?php
define('CURSCRIPT', 'gambling');
require './include/common.inc.php';
$gbinfo = '';
if(!$cuser||!$cpass) { $gbinfo .= $_ERROR['no_login']; }
elseif($gamestate < 20) { $gbinfo .= $_ERROR['no_start']; }
elseif($gamestate < 30) { $gbinfo .= '游戏还未停止激活，不可进行下注！'; }
else{
$result = $db->query("SELECT * FROM {$tablepre}users WHERE username='$cuser'");
if(!$db->num_rows($result)) { $gbinfo .= $_ERROR['login_check']; }
$udata = $db->fetch_array($result);
if($udata['password'] != $cpass) { $gbinfo .= $_ERROR['wrong_pw']; }
if($udata['groupid'] <= 0) { $gbinfo .= $_ERROR['user_ban']; }
}
include template('alivelist');
$alivedata['innerHTML']['alivelist'] = ob_get_contents();
if(isset($error)){$alivedata['innerHTML']['error'] = $error;}
ob_clean();
$jgamedata = compatible_json_encode($alivedata);
echo $jgamedata;
ob_end_flush();
//include template('alive');
?>
$alivedata
$alivedata['innerHTML']['alivelist']
Definition: gambling.php:22
$udata
if(!$db->num_rows($result)) $udata
Definition: gambling.php:14
$jgamedata
$jgamedata
Definition: gambling.php:25
$db
$db
Definition: clear.php:32
elseif
【生存者数：<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
Definition: 1_alive.tpl.php:18
$error
$error
Definition: errorpage.php:2
$_ERROR
$_ERROR
Definition: resources_1.php:1044
$gamestate
$gamestate
Definition: gameinfo.php:4
$gbinfo
$gbinfo
Definition: gambling.php:7
$result
if(!$cuser||!$cpass) $result
Definition: admin.php:25
$cpass
$cpass
Definition: common.inc.php:207
compatible_json_encode
compatible_json_encode($data)
Definition: global.func.php:185