X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fauth.phh;h=11c74253a4ffcda2777e5c4e2126ffd51e14c97d;hb=e47ddcae6cc33ed9d2471a54936db7d8efd5d46a;hp=c96a0905ecf56b274f8d31c075bcc5a7ae8e93f9;hpb=efe073ca460ec29111cf35dfb760016bea4a7dc5;p=brisk.git diff --git a/web/Obj/auth.phh b/web/Obj/auth.phh index c96a090..11c7425 100644 --- a/web/Obj/auth.phh +++ b/web/Obj/auth.phh @@ -165,11 +165,9 @@ class Challenges { function load_data() { GLOBAL $sess; - $doexit = FALSE; do { if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) { log_main("ftok failed"); - $doexit = TRUE; break; } @@ -181,7 +179,7 @@ class Challenges { $shm_sz = CHAL_SHM_DIMS_MIN; if ($shm = shm_attach($tok, $shm_sz)) { - $chals = @shm_get_var($shm, $tok); + $chals = @shm_get_var($shm, $tok); // CHECKED BELOW log_only("challenges == ".($chals == FALSE ? "FALSE" : "TRUE")." challenges === ".($chals === FALSE ? "FALSE" : "TRUE")." challenges isset ".(isset($chals) ? "TRUE" : "FALSE")); @@ -204,9 +202,6 @@ class Challenges { return ($chals); } while (0); - if ($doexit) - exit(); - return (FALSE); }