bug 841: Doh, forgot to remove dead code.
authorMichael Tänzer <neo@nhng.de>
Tue, 26 Jul 2011 23:09:04 +0000 (01:09 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 26 Jul 2011 23:09:04 +0000 (01:09 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/loggedin.php

index 4a3b89e..270af51 100644 (file)
   
        if($_SERVER['HTTP_HOST'] == $_SESSION['_config']['securehostname'] && ($_SESSION['profile']['id'] == 0 || $_SESSION['profile']['loggedin'] == 0))
        {
-               /* identify unique certs serial number related to root or subroot */
-               $query = "select * from `emailcerts` where
-                               `serial`='${_SERVER['SSL_CLIENT_M_SERIAL']}' and
-                               `rootcert`='".rootcertid($_SERVER['SSL_CLIENT_I_DN_CN'])."' and
-                               `revoked`=0 and disablelogin=0 and
-                               UNIX_TIMESTAMP(`expire`) - UNIX_TIMESTAMP() > 0";
-               $res = mysql_query($query);
-               
                $user_id = get_user_id_from_cert($_SERVER['SSL_CLIENT_M_SERIAL'],
                                $_SERVER['SSL_CLIENT_I_DN_CN']);