}
*/
- function spawn($from, &$bri, $table, $table_pos)
+ function spawn($from, &$bri, $table, $table_pos, $get, $post, $cookie)
{
- GLOBAL $CO_bin5_pref_ring_endauct;
-
if (($thiz = new Bin5_user()) == FALSE)
return (FALSE);
-
+
+ if (($CO_bin5_pref_ring_endauct = gpcs_var("CO_bin5_pref_ring_endauct", $get, $post, $cookie)) === FALSE) {
+ $CO_bin5_pref_ring_endauct = "";
+ }
+
$thiz->parentcopy($from);
/* NOTE: at this moment idx and table_pos fields have the same value
log_wr("Bin5 constructor");
$this->privflags = ($CO_bin5_pref_ring_endauct == "true" ? BIN5_USER_FLAG_RING_ENDAUCT : 0) | 0;
-
+
$thiz->table_orig = $table;
$thiz->table = 0;
$thiz->table_pos = $table_pos;
return TRUE;
}
- function Bin5 ($room, $table_idx, $table_token) {
+ function Bin5 ($room, $table_idx, $table_token, $get, $post, $cookie) {
$this->user = array();
$this->table = array();
for ($i = 0 ; $i < $table->player_n ; $i++) {
$user[$table->player[$i]]->table_token = $table_token;
- $this->user[$i] = Bin5_user::spawn($user[$table->player[$i]], $this, $table_idx, $i);
+ $this->user[$i] = Bin5_user::spawn($user[$table->player[$i]], $this, $table_idx, $i, $get, $post, $cookie);
}
$this->table[0] = Bin5_table::spawn(&$table);
$bri->chatt_send(&$user,$mesg);
}
else if ($argz[0] == 'preferences_update') {
- GLOBAL $CO_bin5_pref_ring_endauct;
-
log_wr("PER DI PREFERENCES_UPDATE");
if ($CO_bin5_pref_ring_endauct == "true")
/*
* brisk - index_wr.php
*
- * Copyright (C) 2006-2011 Matteo Nastasi
+ * Copyright (C) 2006-2012 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
else if ($argz[0] == 'splash') {
GLOBAL $G_with_splash, $G_splash_content, $G_splash_interval, $G_splash_idx;
GLOBAL $G_splash_w, $G_splash_h, $G_splash_timeout;
- /* $CO_splashdate = "CO_splashdate".$G_splash_idx; */
- /* if (($$CO_splashdate = gpcs_var("$CO_splashdate", $get, $post, $cookie)) === FALSE) */
- /* $$CO_splashdate = ""; */
-
- /* GLOBAL $$CO_splashdate; */
-
$user->comm[$user->step % COMM_N] = "gst.st = ".($user->step+1)."; ";
$user->comm[$user->step % COMM_N] .= show_notify_ex(str_replace("\n", " ", $G_splash_content[$G_lang]), 0, $mlang_indwr['btn_backtotab'][$G_lang], $G_splash_w, $G_splash_h, true, 0);
log_legal($curtime, 'xxx', $user, "STAT:CREATE_GAME", $plist);
log_wr("pre new Bin5");
- if (($bri = new Bin5($room, $table_idx, $table_token)) == FALSE)
+ if (($bri = new Bin5($room, $table_idx, $table_token, $get, $post, $cookie)) == FALSE)
log_wr("bri create: FALSE");
else
log_wr("bri create: ".serialize($bri));