1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
Files
zxd_ctrlcenter/temporary file/change-plugin-status.php.bak

23 lines
637 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
switch ($_GET['action']) {
case 'dis':
$action = "dis";
$infoMessage = "插件已启用,点击禁用插件";
break;
case 'enb':
$action = "enb";
$infoMessage = "插件已禁用,点击启用插件";
break;
default:
exit();
break;
}
?>
<script>
function btnclick() {
// myWindow是打开的窗口myWindow.opener是当前窗口
window.open().location = "<? echo $bloghost.'zb_users/plugin/zxd_ctrlcenter/plugin/'.$PluginName.'/status.php?action='.$action; ?>";
}
</script>
<a onclick="btnclick();"><? echo $infoMessage; ?></a>