function garbage_manager($force)
{
- GLOBAL $G_lang, $mlang_brisk;
+ GLOBAL $G_lang, $mlang_brisk, $G_base;
$ismod = FALSE;
if ($force || $this->garbage_timeout < $curtime) {
// FIXME BRISK4: include for each kind of table
- require_once("briskin5/Obj/briskin5.phh");
+ require_once("${G_base}briskin5/Obj/briskin5.phh");
// Before all align times with table timeout
for ($table_idx = 0 ; $table_idx < TABLES_N ; $table_idx++) {
function chatt_send(&$user, $mesg)
{
- GLOBAL $G_alarm_passwd, $mlang_brisk, $G_lang;
+ GLOBAL $G_base, $G_alarm_passwd, $mlang_brisk, $G_lang;
$only_you = FALSE;
// common settings
if ($to_tabl) {
// FIXME BRISK4: include for each kind of table
- require_once("briskin5/Obj/briskin5.phh");
+ require_once("${G_base}briskin5/Obj/briskin5.phh");
// Before all align times with table timeout
for ($table_idx = 0 ; $table_idx < TABLES_N ; $table_idx++) {
$table_cur =& $this->table[$table_idx];
function &add_user(&$sess, &$idx, $name, $pass, $ip)
{
- GLOBAL $G_false, $CO_list;
+ GLOBAL $G_base, $G_false, $CO_list;
$idx = 0;
$table_idx = $ghost_user->table;
if ($ghost_user->stat == "table" && $this->table[$table_idx]->player_n == PLAYERS_N) {
// FIXME BRISK4: include for each kind of table
- require_once("briskin5/Obj/briskin5.phh");
+ require_once("${G_base}briskin5/Obj/briskin5.phh");
if (($brisem = Briskin5::lock_data($table_idx)) != FALSE) {
if (($bri = &Briskin5::load_data($table_idx)) != FALSE) {
if ($bri->the_end != TRUE) {
function garbage_manager($force)
{
-
+ GLOBAL $G_base;
+
/* Garbage collector degli utenti in timeout */
$ismod = FALSE;
$curtime = time();
/* se gli altri utenti non erano d'accordo questo utente viene bannato */
$remcalc = $this->table[0]->exitlock_calc(&$this->user, $user_cur->table_pos);
if ($remcalc < 3) {
- require_once("/var/www/webspace/trusty/Obj/hardban.phh");
+ require_once("${G_base}Obj/hardban.phh");
Hardbans::add(($user_cur->flags & USER_FLAG_AUTH ? $user_cur->name : FALSE),
$user_cur->ip, $user_cur->sess, $user_cur->laccwr + BAN_TIME);
}