hxp
2025-06-04 f4a514d5ac952110da846636ecbb9de951eaf3d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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>