Room::unlock_data($sem);
$argz = explode('|', xcapemesg($mesg));
if ($argz[0] == 'getchallenge') {
GLOBAL $cli_name;
Room::unlock_data($sem);
$argz = explode('|', xcapemesg($mesg));
if ($argz[0] == 'getchallenge') {
GLOBAL $cli_name;
log_wr("INFO:SKIP:argz == warranty name: [".$cli_name."] AUTH: ".($user->flags & USER_FLAG_AUTH));
if ($user->flags & USER_FLAG_AUTH) {
log_wr("INFO:SKIP:argz == warranty name: [".$cli_name."] AUTH: ".($user->flags & USER_FLAG_AUTH));
if ($user->flags & USER_FLAG_AUTH) {
if (($fp = @fopen(LEGAL_PATH."/warrant.txt", 'a')) != FALSE) {
/* Unix time | session | nickname | IP | where was | mesg */
fwrite($fp, sprintf("%ld|%s|%s|%s|\n", $curtime, $user->name, xcapelt(urldecode($cli_name)), xcapelt(urldecode($cli_email))));
if (($fp = @fopen(LEGAL_PATH."/warrant.txt", 'a')) != FALSE) {
/* Unix time | session | nickname | IP | where was | mesg */
fwrite($fp, sprintf("%ld|%s|%s|%s|\n", $curtime, $user->name, xcapelt(urldecode($cli_name)), xcapelt(urldecode($cli_email))));
log_wr("INFO:SKIP:argz == mesgtoadm name: [".$user->name."] AUTH: ".($user->flags & USER_FLAG_AUTH));
if ($user->flags & USER_FLAG_AUTH) {
log_wr("INFO:SKIP:argz == mesgtoadm name: [".$user->name."] AUTH: ".($user->flags & USER_FLAG_AUTH));
if ($user->flags & USER_FLAG_AUTH) {
/* MLANG: "<b>E\' occorso un errore durante il salvataggio, riprova o contatta l\'amministratore.</b>" */
$mesg_to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_indwr['commerr'][$G_lang]);
log_wr("break3");
/* MLANG: "<b>E\' occorso un errore durante il salvataggio, riprova o contatta l\'amministratore.</b>" */
$mesg_to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_indwr['commerr'][$G_lang]);
log_wr("break3");
if ($user->the_end == TRUE) {
log_wr("INFO:SKIP:argz == sitdown && the_end == TRUE => ignore request.");
if ($user->the_end == TRUE) {
log_wr("INFO:SKIP:argz == sitdown && the_end == TRUE => ignore request.");
$table_token = uniqid("");
$room->table[$table_idx]->table_token = $table_token;
$room->table[$table_idx]->table_start = $curtime;
$table_token = uniqid("");
$room->table[$table_idx]->table_token = $table_token;
$room->table[$table_idx]->table_start = $curtime;
}
log_legal($curtime, $user, "STAT:CREATE_GAME", $plist);
}
log_legal($curtime, $user, "STAT:CREATE_GAME", $plist);
- if (($bri =& new Briskin5(&$room, $table_idx, $table_token)) == FALSE)
+ log_wr("pre new Bin5");
+ if (($bri = new Bin5($room, $table_idx, $table_token)) == FALSE)
- $bri_table =& $bri->table[0];
- $bri_table->init(&$bri->user);
- $bri_table->game_init(&$bri->user);
+ $bri_table = $bri->table[0];
+ $bri_table->init($bri->user);
+ $bri_table->game_init($bri->user);
$bri_user_cur->comm[$bri_user_cur->step % COMM_N] = "";
$bri_user_cur->step_inc();
$bri_user_cur->comm[$bri_user_cur->step % COMM_N] = show_table(&$bri,&$bri_user_cur,$bri_user_cur->step+1,TRUE, FALSE);
$bri_user_cur->comm[$bri_user_cur->step % COMM_N] = "";
$bri_user_cur->step_inc();
$bri_user_cur->comm[$bri_user_cur->step % COMM_N] = show_table(&$bri,&$bri_user_cur,$bri_user_cur->step+1,TRUE, FALSE);
$bri_user_cur->step_inc();
log_wr("TRY PRESAVE: ".$bri_user_cur->step." TRANS STEP: ".$bri_user_cur->trans_step);
$bri_user_cur->step_inc();
log_wr("TRY PRESAVE: ".$bri_user_cur->step." TRANS STEP: ".$bri_user_cur->trans_step);
$user_cur->stat_set('table');
$user_cur->subst = 'asta';
$user_cur->laccwr = $curtime;
$user_cur->step_inc();
}
log_wr("presave bri");
$user_cur->stat_set('table');
$user_cur->subst = 'asta';
$user_cur->laccwr = $curtime;
$user_cur->step_inc();
}
log_wr("presave bri");
}
else if ($argz[0] == 'logout') {
$user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
}
else if ($argz[0] == 'logout') {
$user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";