$G_base = "../";
require_once("../Obj/brisk.phh");
-// require_once("../Obj/proxyscan.phh");
require_once("Obj/briskin5.phh");
-// Use of proxies isn't allowed.
-// if (is_proxy()) {
-// sleep(5);
-// exit;
-//}
-
/*
* MAIN
*/
return FALSE;
}
$bin5->brisk->sess_cur_set($user->sess);
- if (!($user->flags & USER_FLAG_AUTH) &&
+ if ( ( ! $user->is_auth() ) &&
$bin5->brisk->ban_check($user->ip)) {
// TODO: waiting async 5 sec before close
return (FALSE);
}
else {
require_once("../Obj/hardban.phh");
- Hardbans::add(($user->flags & USER_FLAG_AUTH ? $user->name : FALSE),
+ Hardbans::add(($user->is_auth() ? $user->name : FALSE),
$user->ip, $user->sess, $user->laccwr + BAN_TIME);
}
// $user->bantime = $user->laccwr + BAN_TIME;
if ($logout_cont == TRUE) {
- $bin5->table_wakeup(&$user);
+ $bin5->table_wakeup($user);
}
}
else if ($argz[0] == 'exitlock') {
if ($table->asta_win > -1 &&
$user->table_pos == $table->asta_win) {
$a_brisco = $argz[1];
- if ($a_brisco >= 0 && $a_brisco < 40) {
+ if ($a_brisco >= 0 && $a_brisco < (BIN5_CARD_HAND * BIN5_PLAYERS_N)) {
$table->briscola = $a_brisco;
$table->friend = $table->card[$a_brisco]->owner;
log_wr("GSTART 2");