'userpass', 'admin' => 'adminpass', ]; define('USE_USERNAME', true); define('LOGOUT_URL', 'https://dl.supers0ft.us/logout.php/'); define('TIMEOUT_MINUTES', 0); define('TIMEOUT_CHECK_ACTIVITY', true); if (isset($_GET['help'])) { exit('Include following code into every page you would like to protect, at the very beginning (first line):
<?php include("'.str_replace('\\', '\\\\', __FILE__).'"); ?>'); } $timeout = (TIMEOUT_MINUTES == 0 ? 0 : time() + TIMEOUT_MINUTES * 60); if (isset($_GET['logout'])) { setcookie('verify', '', $timeout, '/'); header('Location: '.LOGOUT_URL); exit(); } if (!function_exists('showLoginPasswordProtect')) { function showLoginPasswordProtect($error_msg) { ?> Admin Panel - Login

Admin Login

Administration Panel




'; } ?>

$val) { $lp = (USE_USERNAME ? $key : '').'%'.$val; if ($_COOKIE['auth'] == md5($lp)) { $found = true; if (TIMEOUT_CHECK_ACTIVITY) { setcookie('auth', md5($lp), $timeout, '/'); } break; } } if (!$found) { showLoginPasswordProtect(''); } } ?>