35 lines
983 B
PHP
35 lines
983 B
PHP
<?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_404_Enable;
|
|
break;
|
|
case 'enb':
|
|
$zbp->Config('zxd_ctrlcenter')-> plugin_404_Enable = true;
|
|
$zbp->SaveConfig('zxd_ctrlcenter');
|
|
echo $Close;
|
|
break;
|
|
case 'dis':
|
|
$zbp->Config('zxd_ctrlcenter')-> plugin_404_Enable = false;
|
|
$zbp->SaveConfig('zxd_ctrlcenter');
|
|
echo $Close;
|
|
break;
|
|
|
|
default:
|
|
$pluginstatus = $zbp->Config('zxd_ctrlcenter')-> plugin_404_Enable;
|
|
break;
|
|
}
|
|
?>
|
|
|