插件代码上传
This commit is contained in:
33
plugin/code/manage/status.php
Normal file
33
plugin/code/manage/status.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
if(!empty($_GET['include'])&&$_GET['include']=="c_system_base"){
|
||||
// 单独打开时需要引入这个,不然$zbp未定义
|
||||
include_once '../../../../../../zb_system/function/c_system_base.php';
|
||||
}
|
||||
|
||||
global $zbp;
|
||||
if(empty($_GET['action']))
|
||||
$status_action = "";
|
||||
else
|
||||
$status_action = $_GET['action'];
|
||||
|
||||
$Close = '<script>window.close(); window.opener.location.reload(); </script>';
|
||||
switch ($status_action) {
|
||||
case 'chk':
|
||||
$pluginstatus = $zbp->Config('zxd_ctrlcenter')-> plugin_code_Enable;
|
||||
break;
|
||||
case 'enb':
|
||||
$zbp->Config('zxd_ctrlcenter')-> plugin_code_Enable = true;
|
||||
$zbp->SaveConfig('zxd_ctrlcenter');
|
||||
echo $Close;
|
||||
break;
|
||||
case 'dis':
|
||||
$zbp->Config('zxd_ctrlcenter')-> plugin_code_Enable = false;
|
||||
$zbp->SaveConfig('zxd_ctrlcenter');
|
||||
echo $Close;
|
||||
break;
|
||||
|
||||
default:
|
||||
$pluginstatus = $zbp->Config('zxd_ctrlcenter')-> plugin_code_Enable;
|
||||
break;
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user