projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved inheritance between classes
[brisk.git]
/
web
/
Obj
/
auth.phh
diff --git
a/web/Obj/auth.phh
b/web/Obj/auth.phh
index
292ab0c
..
a52bc78
100644
(file)
--- a/
web/Obj/auth.phh
+++ b/
web/Obj/auth.phh
@@
-70,7
+70,7
@@
class Challenges {
return ($G_false);
}
return ($G_false);
}
-
log_auth("xxx", "LOOPI item: ".$i."
tstamp: ".$this->item[$i]->tstamp." curtime: ".$curtime);
+
// log_auth("xxx", "LOOPI
tstamp: ".$this->item[$i]->tstamp." curtime: ".$curtime);
if (($chal = new Challenge($login, $token, $ip, $tstamp)) == null) {
return ($G_false);
if (($chal = new Challenge($login, $token, $ip, $tstamp)) == null) {
return ($G_false);
@@
-246,13
+246,11
@@
class Challenges {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) {
- echo "FTOK FAILED";
- exit;
+ return (FALSE);
}
// echo "FTOK ".$tok."<br>";
if (($res = sem_get($tok)) == FALSE) {
}
// echo "FTOK ".$tok."<br>";
if (($res = sem_get($tok)) == FALSE) {
- echo "SEM_GET FAILED";
- exit;
+ return (FALSE);
}
if (sem_acquire($res)) {
log_lock("LOCK challenges");
}
if (sem_acquire($res)) {
log_lock("LOCK challenges");