aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-08-29 12:49:27 +0000
committercassiopc <cassiopc@gmail.com>2013-08-29 12:49:27 +0000
commit35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56 (patch)
tree70ab6bec6f0f98ec6f09cb889c40de12b8c08a35 /src/globals.php
parentaa7f9e02b8accf8867ea4c316e5e16e5d6902198 (diff)
downloadboca-35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56.tar.gz
boca-35df6e3bb203b881f8ebe81ce4e7b59f63dc5e56.zip
fixed disable logins bug
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/globals.php b/src/globals.php
index b179bd5..487c26f 100755
--- a/src/globals.php
+++ b/src/globals.php
@@ -213,10 +213,10 @@ function ValidSession() {
}
// grava erro no arquivo de log
function LOGError($msg) {
- LOGLevel($msg,0);
+ LOGLevel($msg,0,false);
}
// grava linha no arquivo de log com o nivel especificado
-function LOGLevel($msg,$level) {
+function LOGLevel($msg,$level,$dodb=true) {
$msga = sanitizeText(str_replace("\n", " ", $msg));
$msg = now() . ": ";
define_syslog_variables ();
@@ -244,7 +244,7 @@ function LOGLevel($msg,$level) {
openlog ("BOCA", LOG_ODELAY, LOG_USER);
syslog ($prior, $msg);
closelog();
- if (isset($_SESSION["usertable"]))
+ if ($dodb && isset($_SESSION["usertable"]))
DBNewLog($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"],
$_SESSION["usertable"]["usernumber"], $type, getIP(), $msga, "");
}