diff options
author | M.Gergo | 2019-03-08 21:20:34 +0100 |
---|---|---|
committer | M.Gergo | 2019-03-08 21:20:34 +0100 |
commit | f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch) | |
tree | e13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/include/modules/session/sessionAdmin.php | |
parent | c76a004b0135786f2742283f8d5f917106f58bd8 (diff) | |
download | mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip |
további rendrakás
Diffstat (limited to 'mayor-orig/www/include/modules/session/sessionAdmin.php')
-rw-r--r-- | mayor-orig/www/include/modules/session/sessionAdmin.php | 24 |
1 files changed, 0 insertions, 24 deletions
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 @@ -<?php - - function getSessions() { - - $W = array(); - if (intval(_SESSION_MAX_TIME) != 0) $W[] = "dt + INTERVAL ".intval(_SESSION_MAX_TIME)." HOUR > 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)); - - } - -?> |