force sync from /var/www/html/panel: 2025-09-08T20:36:30Z
This commit is contained in:
commit
4f717c9ee8
18119 changed files with 2566034 additions and 0 deletions
64
ControlPanel/modules/teamspeak3/site/login.php
Executable file
64
ControlPanel/modules/teamspeak3/site/login.php
Executable file
|
|
@ -0,0 +1,64 @@
|
|||
<?php
|
||||
/*
|
||||
*Copyright (C) 2012-2013 Psychokiller
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or modify it under the terms of
|
||||
*the GNU General Public License as published by the Free Software Foundation; either
|
||||
*version 3 of the License, or any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
*without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*See the GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
if(!defined("SECURECHECK")) {die($lang['error_file_alone']);}
|
||||
|
||||
$error='';
|
||||
|
||||
if($serverstatus===false)
|
||||
{
|
||||
$debuglog=$ts3->getDebugLog();
|
||||
foreach($debuglog AS $value)
|
||||
{
|
||||
$error .= $value."<br />";
|
||||
}
|
||||
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."<br />";
|
||||
}
|
||||
session_destroy();
|
||||
}
|
||||
elseif($loginstatus===true AND !isset($_POST['sendlogin']))
|
||||
{
|
||||
$error .= $lang['alreadylogin']."<br />";
|
||||
}
|
||||
|
||||
if($show_motd==true)
|
||||
{
|
||||
$motd=implode("", file('motd.txt'));
|
||||
$smarty->assign("motd", $motd);
|
||||
}
|
||||
|
||||
if(!empty($error))
|
||||
{
|
||||
$smarty->assign("error", $error);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue