插件代码上传
This commit is contained in:
24
public/ctrlcenter_config.php
Normal file
24
public/ctrlcenter_config.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
// 以上逻辑还有问题
|
Reference in New Issue
Block a user