. */ if(!defined("SECURECHECK")) {die($lang['error_file_alone']);} $error=''; if($serverstatus===false) { $debuglog=$ts3->getDebugLog(); foreach($debuglog AS $value) { $error .= $value."
"; } session_destroy(); } elseif($loginstatus===true AND $hoststatus===false AND isset($_POST['sendlogin'])) { header("Location: index.php?site=serverview&sid=".$_SESSION['loginsid']); exit; } elseif($loginstatus===true AND $hoststatus===true AND isset($_POST['sendlogin'])) { header("Location: index.php?site=server"); exit; } elseif($loginstatus===false AND isset($_POST['sendlogin'])) { $debuglog=$ts3->getDebugLog(); foreach($debuglog AS $value) { $error .= $value."
"; } session_destroy(); } elseif($loginstatus===true AND !isset($_POST['sendlogin'])) { $error .= $lang['alreadylogin']."
"; } if($show_motd==true) { $motd=implode("", file('motd.txt')); $smarty->assign("motd", $motd); } if(!empty($error)) { $smarty->assign("error", $error); }