<?php
|
include_once "/Common/Logging.php";
|
include_once "/Account/User.php";
|
include_once "/Common/ServerOPS.php";
|
include_once "/Common/CommFunc.php";
|
include_once "/language/lang.php";
|
|
\Logging\CreateLogging("serverops.refreshServerJson.php");
|
|
$Permission = \User\Permission::P_OPSRefreshServer;
|
$channel = $_SESSION['spid'];
|
$user = new \User\User($_SESSION['UserAccount']);
|
if (!$user->HavePermission($Permission)) {
|
exit;
|
}
|
$UserAccount = $_SESSION['UserAccount'];
|
|
$refreshJsonFileArray = \ServerOPS\RefreshCommonServerlistJson($channel, null, $UserAccount);
|
|
?>
|
|
<html>
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<title><?php echo \Lang\gettext("刷新选服列表"); ?></title>
|
</head>
|
|
<body>
|
<center>
|
<p><b><?php echo \Lang\gettext("刷新选服列表"); ?></b></P>
|
</center>
|
<?php
|
if (is_array($refreshJsonFileArray)) {
|
if ($refreshJsonFileArray) {
|
echo \Lang\gettext("刷新成功!导出服务器列表文件"), ":<br/><br/>";
|
foreach ($refreshJsonFileArray as $jsonFile) {
|
echo $jsonFile . "<br/>";
|
}
|
} else {
|
echo \Lang\gettext("没有正式开放的服务器导出,请检查是否已配置服务器分组且服务器开启状态是否正确"), "<br/>";
|
}
|
} else {
|
echo \Lang\gettext("刷新失败"), "<br/>";
|
}
|
?>
|
</body>
|
|
</html>
|