projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When G_local is enabled only brisk shop banner will be displayed
[brisk.git]
/
web
/
Obj
/
hardban.phh
diff --git
a/web/Obj/hardban.phh
b/web/Obj/hardban.phh
index
61ddb91
..
dcdeb01
100644
(file)
--- a/
web/Obj/hardban.phh
+++ b/
web/Obj/hardban.phh
@@
-2,7
+2,7
@@
/*
* brisk - auth.phh
*
/*
* brisk - auth.phh
*
- * Copyright (C) 2006-20
08
Matteo Nastasi
+ * Copyright (C) 2006-20
11
Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
@@
-241,13
+241,11
@@
class Hardbans {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/hardbans", "B")) == -1) {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/hardbans", "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 hardbans");
}
if (sem_acquire($res)) {
log_lock("LOCK hardbans");