From: Matteo Nastasi Date: Mon, 29 Oct 2012 13:37:14 +0000 (+0100) Subject: ftok suffix changed X-Git-Tag: v4.0.0~15 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=24ed800c2ca5855886af42f6f8ac4681a0089ee6;p=brisk.git ftok suffix changed --- diff --git a/web/Obj/auth.phh b/web/Obj/auth.phh index 687ab18..193bca6 100644 --- a/web/Obj/auth.phh +++ b/web/Obj/auth.phh @@ -166,7 +166,7 @@ class Challenges { { GLOBAL $sess; do { - if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/challenges", "C")) == -1) { log_main("ftok failed"); break; } @@ -212,7 +212,7 @@ class Challenges { $shm = FALSE; $oldmod = $chals->mod; - if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/challenges", "C")) == -1) return (FALSE); while ($chals->shm_sz < CHAL_SHM_DIMS_MAX) { @@ -266,4 +266,4 @@ class Challenges { } } // End CLASS Challenges -?> \ No newline at end of file +?> diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index d2b7173..65e2aba 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1896,7 +1896,7 @@ class Room { GLOBAL $sess; do { - if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1) { log_main("ftok failed"); break; } @@ -1961,7 +1961,7 @@ class Room { // var_dump($room); - if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1) return (FALSE); while ($room->shm_sz < SHM_DIMS_MAX) { @@ -1995,7 +1995,7 @@ class Room { $ret = FALSE; $shm = FALSE; - if (($tok = @ftok(FTOK_PATH."/main", "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/main", "C")) == -1) return (FALSE); // SHSPLIT: before save the $room you must save users, diff --git a/web/Obj/hardban.phh b/web/Obj/hardban.phh index e14e2d6..7efb252 100644 --- a/web/Obj/hardban.phh +++ b/web/Obj/hardban.phh @@ -159,7 +159,7 @@ class Hardbans { GLOBAL $sess; do { - if (($tok = @ftok(FTOK_PATH."/hardbans", "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/hardbans", "C")) == -1) { log_main("ftok failed"); break; } @@ -206,7 +206,7 @@ class Hardbans { $shm = FALSE; $oldmod = $hban->mod; - if (($tok = @ftok(FTOK_PATH."/hardbans", "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/hardbans", "C")) == -1) return (FALSE); while ($hban->shm_sz < HBAN_SHM_DIMS_MAX) { @@ -316,4 +316,4 @@ class Hardbans { } // End CLASS Hardbans -?> \ No newline at end of file +?> diff --git a/web/Obj/user.phh b/web/Obj/user.phh index f993848..4bd6d95 100644 --- a/web/Obj/user.phh +++ b/web/Obj/user.phh @@ -528,7 +528,7 @@ class User { log_main("load_data: id [".$id."] sess [".($sess == FALSE ? "FALSE" : $sess)."] "); do { - if (($tok = @ftok(FTOK_PATH."/user".$id, "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/user".$id, "C")) == -1) { log_main("ftok failed"); break; } @@ -595,7 +595,7 @@ class User { $shm = FALSE; - if (($tok = @ftok(FTOK_PATH."/user".$id, "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/user".$id, "C")) == -1) { return (FALSE); } while ($user->shm_sz < SHM_DIMS_U_MAX) { @@ -947,4 +947,4 @@ static function base_get() } // end class User -?> \ No newline at end of file +?>