X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=3bbb37d93fb3f4781e09e1245b0bdd5d03412347;hb=ae53188392e4dfbe044cf9d9a33e07697358d212;hp=91121e5bf729e5e43b9550215230727d6ad79fef;hpb=5343028bf2e38bfb1d82b769f9d410636dee6514;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 91121e5..3bbb37d 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -284,6 +284,12 @@ Copyright 2006-2009 Matteo Nasta
version '.$G_brisk_version.'

Copyright 2006-2009
Matteo Nastasi (aka mop)

'); +function mop_flush() +{ + ob_flush(); + flush(); +} + function file_lock($fname, $is_exclusive) { if (($res = fopen($fname, "r+")) == FALSE) { @@ -315,6 +321,9 @@ function webservers_check() { GLOBAL $G_webserver_max; + /* FIXME: check all procs expirations */ + return (10); + $ct = 0; $dh = opendir('/proc'); @@ -1793,7 +1802,7 @@ class Room { if ($user_cur->sess == '') continue; - if ($user_cur->name == $name_new) + if (strcasecmp($user_cur->name,$name_new) == 0) break; } if ($i < MAX_PLAYERS) { @@ -2148,7 +2157,7 @@ class Room { log_auth("XXX", sprintf("TROVATO A QUESTO PUNTO [%d] sess [%s] name [%s]", $idx, $sess, $name_new)); - /* there is another user logged with your account and you and him have authenticated => che new user + /* there is another user logged with your account and you and him have authenticated => new user get the session of the old user */ if ($ghost > -1 && $ghost_auth && ($authenticate != FALSE)) { /* swap session */ @@ -2240,7 +2249,7 @@ class Room { if (strcmp("", $this->user[$i]->sess) == 0) continue; - if (strcmp($this->user[$i]->name, $ghostname) == 0) { + if (strcasecmp($this->user[$i]->name, $ghostname) == 0) { $ghostname = ''; break; } @@ -2357,7 +2366,7 @@ class Room { for ($i = 0 ; $i < MAX_PLAYERS ; $i++) { if (($room->user[$i] = User::load_data($i, FALSE)) == FALSE) { - log_crit("Bin5_user::load_data failed"); + log_crit("User::load_data failed"); break; } }