| <?php | 
| include_once "/Common/CommFunc.php"; | 
| include_once "/Account/User.php"; | 
| include_once "/language/lang.php"; | 
|   | 
| $Permission = \User\Permission::P_Execfile; | 
| $channel = $_SESSION['spid']; | 
| $user = new \User\User($_SESSION['UserAccount']); | 
| if (!$user->HavePermission($Permission)) { | 
|     exit; | 
| } | 
|   | 
| ?> | 
| <!DOCTYPE html> | 
| <html> | 
|   | 
| <head> | 
|     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | 
|     <title>执行命令</title> | 
| </head> | 
|   | 
| <body> | 
|   | 
|     <form id="execfile" name="execfile" action="/Common/GMCmdProcess.php" method="post"> | 
|   | 
|         <center> | 
|             <p>执行命令</P> | 
|         </center> | 
|   | 
|         <dd class="def_dd"> | 
|             <label>目标玩家:</label> <br /> | 
|             <input type="radio" name="queryType" value="accID" checked /> | 
|             <span>按账号</span> | 
|             <input type="radio" name="queryType" value="playerName" /> | 
|             <span>角色名</span><br /> | 
|             <input class="long_input" type="text" name="playerFind" id="playerFind" value="" /> | 
|             <p /> | 
|   | 
|             <label>输入命令:</label> <br /> | 
|             <input type="text" id="cmdInfo" name="cmdInfo" id="cmdInfo" value="" /> | 
|             <p /> | 
|             <?php | 
|             if ($user->NeedCheckKey()) { | 
|                 echo \Lang\gettext("授权码(key)") . ":<br/>"; | 
|                 echo "<input type=\"text\" name=\"key\" id=\"key\" />"; | 
|             } else { | 
|                 echo "<input type=\"hidden\" name=\"key\" id=\"key\" />"; | 
|             } | 
|             ?> | 
|             <p /> | 
|         </dd> | 
|         <input type="hidden" name="Permission" value="<?php echo $Permission; ?>" /> | 
|         <input type="hidden" name="pack_type" value="GMT_Execfile" /> | 
|         <dd class="submit_dd"> | 
|             <input type="submit" name="submit" value="执行" onclick="return CheckSubmit();" /> | 
|         </dd> | 
|   | 
|         <br /><br /><br /> | 
|         <dd class="def_dd"> | 
|             <a href="ExecfileMulti.php">切换到多服执行</a> | 
|         </dd> | 
|     </form> | 
|   | 
|     <script type='text/javascript' src='/language/gettext.js'></script> | 
|     <script type='text/javascript' src="/js/common.js"></script> | 
|     <script type="text/javascript"> | 
|         function CheckSubmit() { | 
|             if (!document.getElementById("playerFind").value) { | 
|                 alert("请输入目标玩家"); | 
|                 document.getElementById("playerFind").focus(); | 
|                 return false; | 
|             } | 
|   | 
|             if (!document.getElementById("cmdInfo").value) { | 
|                 alert("<?php echo \Lang\gettext("请输入命令"); ?>!"); | 
|                 document.getElementById("cmdInfo").focus(); | 
|                 return false; | 
|             } | 
|   | 
|             if (!CheckKey("key")) { | 
|                 return false; | 
|             } | 
|   | 
|             if (!window.confirm("确定提交?")) { | 
|                 return false; | 
|             } | 
|   | 
|             return true; | 
|         } | 
|     </script> | 
| </body> | 
|   | 
| </html> |