<?php
|
include_once "/Account/User.php";
|
include_once "/language/lang.php";
|
|
$Permission = \User\Permission::P_ClearTalkCache;
|
$spid = $_SESSION['spid'];
|
$user = new \User\User($_SESSION['UserAccount']);
|
if (!$user->HavePermission($Permission)) {
|
exit;
|
}
|
|
$serversArray = $user->GetServers();
|
|
?>
|
|
<!DOCTYPE html>
|
<html>
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<title><?php echo \Lang\gettext("清空聊天缓存"); ?></title>
|
<link rel="gettext" type="application/x-po" href="../language/<?php echo \Lang\getLang(); ?>/LC_MESSAGES/<?php echo \Lang\getjspodomain(); ?>.po" />
|
</head>
|
|
<body>
|
<center>
|
<p><b><?php echo \Lang\gettext("清空聊天缓存"); ?></b>
|
</P>
|
</center>
|
<form id="SendSysMsg" name="SendSysMsg" action="/Common/GMCmdProcess.php" method="post">
|
<input type="submit" name="submit" value="<?php echo \Lang\gettext("提交"); ?>" onclick="return CheckClear();" /> <br />
|
<input type="hidden" name="Permission" value="<?php echo $Permission; ?>" />
|
<input type="hidden" name="pack_type" value="GMT_ClearTalkCache" /></br>
|
<?php
|
if ($user->NeedCheckKey()) {
|
echo \Lang\gettext("授权码(key)") . ":";
|
echo "<input type=\"text\" name=\"key\" id=\"key\" />";
|
} else {
|
echo "<input type=\"hidden\" name=\"key\" id=\"key\" />";
|
}
|
?>
|
<?php
|
include_once "/Common/SelectServer.php";
|
?>
|
</form>
|
|
<script type='text/javascript' src='/language/gettext.js'></script>
|
<script type='text/javascript' src="/js/common.js"></script>
|
<script type='text/javascript' src="/Common/selectserver.js"></script>
|
<script type="text/javascript">
|
function CheckClear() {
|
if (!CheckKey("key")) {
|
return false;
|
}
|
|
if (!checkHaveServerSelected()) {
|
return false;
|
}
|
|
var confirmStr = "";
|
confirmStr += "<?php echo \Lang\gettext("确定清空") . "?"; ?>";
|
if (!window.confirm(confirmStr)) {
|
return false;
|
}
|
|
return true;
|
}
|
</script>
|
</body>
|
|
</html>
|