Account/Server/Server_test.ini | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Account/User.php | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
InterfaceConfig.php | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
serverinfo/payorderlist.php | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Account/Server/Server_test.ini
@@ -9,16 +9,24 @@ Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php ServerID=87 [ale 8701] [ale 89] Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php ServerID=8701 ServerID=89 MainServer=87 [ale 8702] [ale 90] Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php ServerID=8702 ServerID=90 MainServer=87 [ale 100] Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php ServerID=100 [ale 187] Page=http://mobile.secondworld.net.cn:20080/Server/Tool.php ServerID=187 [公共服] Page=http://mobile.173on.com:30080/Server/Tool.php Account/User.php
@@ -402,7 +402,24 @@ { $ConfigFile = dirname(__FILE__) . "\Server\Server_" . $spid . ".ini"; if (file_exists($ConfigFile)) { return parse_ini_file($ConfigFile, true); $serversCfg = parse_ini_file($ConfigFile, true); $UserAccount = $this->userData["UserAccount"]; \CommFunc\GetConfig("ServerInfo", "SpecialServerIDStart", $SpecialServerIDStart); \CommFunc\GetConfig("ServerInfo", "SpecialAccountList", $SpecialAccountList); $SpecialAccountList = explode(",", $SpecialAccountList); $SpecialServerIDStart = intval($SpecialServerIDStart); // 特殊账号,只能看指定服及以上 if (in_array($UserAccount, $SpecialAccountList)) { foreach ($serversCfg as $key => $info) { $ServerID = intval($info["ServerID"]); if ($ServerID < $SpecialServerIDStart) { unset($serversCfg[$key]); } } return $serversCfg; } return $serversCfg; } if ($spid) { echo "file is not exist: " . "Server_" . $spid . ".ini" . "<br/>"; InterfaceConfig.php
@@ -11,6 +11,9 @@ ;配置组织对应可管理的渠道appID Channel_secondworld=qkbt7game,qkbt8game,sohagame Channel_sohagame=sohagame ;特殊权限账号列表,这些账号只能看服务器ID大于等于配置SpecialServerIDStart SpecialAccountList=hxp0 SpecialServerIDStart=100 ;游戏服务器web端口,没有配置的appID,默认80端口 GameServerWebPort_qkbt7game=55080 serverinfo/payorderlist.php
@@ -15,6 +15,14 @@ } $server_id = $_SESSION['server_id']; $isSpecialAccount = False; \CommFunc\GetConfig("ServerInfo", "SpecialAccountList", $SpecialAccountList); $SpecialAccountList = explode(",", $SpecialAccountList); // 特殊账号,只能看本服 if (in_array($UserAccount, $SpecialAccountList)) { $isSpecialAccount = True; } $onlyServerID = "on"; if (array_key_exists("search", $_POST)) { $onlyServerID = $_POST["onlyServerID"]; @@ -24,7 +32,7 @@ $queryOrderIDSDK = $_POST["OrderIDSDK"]; $find = array("Channel" => $spid); if ($onlyServerID == 'on') { if ($onlyServerID == 'on' || $isSpecialAccount) { $serversCfg = $user->GetServersCfg($spid); if (array_key_exists($server_id, $serversCfg)) { $find["ServerID"] = intval($serversCfg[$server_id]["ServerID"]); @@ -102,9 +110,11 @@ 订单ID: <input type="input" name="OrderID" id="OrderID" value="<?php echo $queryOrderID ?>" /> SDK订单ID: <input type="input" name="OrderIDSDK" id="OrderIDSDK" value="<?php echo $queryOrderIDSDK ?>" /> <?php // 仅显示本服 echo " "; echo '<input type="checkbox" name="onlyServerID" id="onlyServerID" ' . ($onlyServerID == "on" ? "checked" : "") . ' />' . \Lang\gettext("仅显示本服"); if (!$isSpecialAccount) { // 仅显示本服 echo " "; echo '<input type="checkbox" name="onlyServerID" id="onlyServerID" ' . ($onlyServerID == "on" ? "checked" : "") . ' />' . \Lang\gettext("仅显示本服"); } ?> <input type="submit" name="submit" value="<?php echo \Lang\gettext("搜索"); ?>" class="button green medium" /> <hr />