qstr($cfg["user"])." and action=".$db->qstr($cfg["constants"]["hit"]); $db->Execute($sql); if ($db->ErrorNo() != 0) dbError($sql); // destroy session @session_destroy(); // final logout-step if ($cfg["auth_type"] == 2) { /* Basic-Auth */ @header('WWW-Authenticate: Basic realm="'. $cfg["auth_basic_realm"] .'"'); @header('HTTP/1.0 401 Unauthorized'); @ob_end_clean(); } else { @header('location: login.php'); } exit(); ?>