From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- .../www/include/modules/session/sessionAdmin.php | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 mayor-orig/www/include/modules/session/sessionAdmin.php (limited to 'mayor-orig/www/include/modules/session/sessionAdmin.php') diff --git a/mayor-orig/www/include/modules/session/sessionAdmin.php b/mayor-orig/www/include/modules/session/sessionAdmin.php deleted file mode 100644 index ff3e99b8..00000000 --- a/mayor-orig/www/include/modules/session/sessionAdmin.php +++ /dev/null @@ -1,24 +0,0 @@ - NOW()"; - if (intval(_SESSION_MAX_IDLE_TIME) != 0) $W[] = "activity + INTERVAL ".intval(_SESSION_MAX_IDLE_TIME)." HOUR > NOW()"; - $q = "SELECT userAccount,dt,policy,sessionID,userCn,studyId,skin,lang,activity,sessionCookie,ip FROM session LEFT JOIN loginLog USING (policy,userAccount,dt)"; - if (count($W) > 0) $q .= " WHERE ".implode(' AND ', $W); - $q .= " ORDER BY activity DESC"; - - $ret = db_query($q, array('fv' => 'getSessions', 'modul' => 'login', 'result' => 'indexed')); - return $ret; - } - - function deleteSession($sessionID, $policy) { - - $q = "DELETE FROM session WHERE sessionID='%s' AND policy='%s'"; - $v = array($sessionID, $policy); - return db_query($q, array('fv' => 'deleteSession','modul' => 'login', 'values' => $v)); - - } - -?> -- cgit v1.2.3