1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
Files
zxd_ctrlcenter/public/ctrlcenter_config.php
2022-01-26 02:20:35 +08:00

24 lines
897 B
PHP

<?php
/* 公共头部开始 */
require '../../../../zb_system/function/c_system_base.php';
require '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action = 'root';
if (!$zbp->CheckRights($action) || empty($_GET['action'])) { $zbp->ShowError(6); die(); }
if (!$zbp->CheckPlugin('zxd_ctrlcenter')) { $zbp->ShowError(48); die(); }
//?><script>alert("<?php echo $_GET['action']; ?>");</script><?php
switch ($_GET['action']) {
case 'Delete':
$zbp->DelConfig('zxd_ctrlcenter'); ?>
<script>alert("插件设置清空完毕!");window.location.href="<?=$bloghost.'/zb_users/plugin/zxd_ctrlcenter/main.php'?>";</script>
<?php break;
default: ?>
<script>alert("啊喔,出了点问题~");window.location.href="<?=$bloghost.'/zb_users/plugin/zxd_ctrlcenter/main.php'?>";</script>
<?php break;
}
// 以上逻辑还有问题