force sync from /var/www/html/panel: 2025-09-08T20:36:30Z

This commit is contained in:
auto-sync 2025-09-08 16:36:30 -04:00
commit 4f717c9ee8
18119 changed files with 2566034 additions and 0 deletions

View file

@ -0,0 +1,54 @@
<?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']);}
if($sid===false OR empty($sid)) { echo "<meta http-equiv=\"refresh\" content=\"0; URL=index.php?site=server\">";} else {
$banlist=$ts3->getElement('data', $ts3->banList());
$banexport='';
if(!empty($banlist))
{
foreach($banlist AS $value)
{
if(isset($value['ip']) AND !empty($value['ip']))
{
$bantype="ip=".$value['ip'];
}
elseif(isset($value['name']) AND !empty($value['name']))
{
$bantype="name=".$value['name'];
}
elseif(isset($value['uid']) AND !empty($value['uid']))
{
$bantype="uid=".$value['uid'];
}
if(!isset($value['duration']))
{
$banlength=0;
}
else
{
$banlength=$value['duration'];
}
$banexport.="banadd ".$bantype." time=".$banlength." banreason=".str_replace(' ', '\s', $value['reason'])."\n";
}
}
$smarty->assign("banexport", secure($banexport));
}
?>