function UpdateChart($chart) { echo GetParams($chart); exit; }
<?php # iauth 封装 include_once '../iauth_verify_forward.php'; $userid = intval(iauth_verify()); include_once '../../../common.php'; include_once '../../../source/function_cp.php'; include_once '../../../config.php'; header("content-type:application/json; charset=UTF-8"); if (!empty($_GET['ac'])) { $ac = $_GET['ac']; $option = array('list', 'detail', 'new', 'reply', 'vote'); if (in_array($ac, $option)) { # 诉求列表 $params = GetParams($ac); if ($ac == 'list') { echo IHomeServiceGetComplainList($params); } else { if ($ac == 'detail') { echo IHomeServiceGetComplainDetailById($params); } else { if ($ac == 'new') { echo IHomeServiceCreateComplain($params); } else { if ($ac == 'reply') { echo IHomeServiceCreateComplainReply($params); } else { # $ac == 'vote' IHomeServiceVoteComplainOperation($params); } }
$IsCLI = preg_match('/^cli/i', php_sapi_name()); if ($IsCLI && !function_exists('ExitStatusCodeFromVal')) { //If not running through CLI, reroute file through it return require_once __DIR__ . '/CLI.php'; } //Initalize external files require_once __DIR__ . '/Output.php'; //Set up output for CLI/HTML require_once __DIR__ . '/Config.php'; //Get configuration ExitStatusCodeFromVal(require_once __DIR__ . '/Help.php'); //Output help if needed require_once __DIR__ . '/Parameters.php'; //Get the parameters //Process parameters $Params = GetParams($ConfigVars, $IsCLI); ProcessOutputParameters($ConfigVars, $Params, $IsCLI); //Process output parameters (TimestampType, ColorType) //Confirm the domain and email to use if (!isset($Params['Domain'])) { return OL('Domain not given. ' . ($IsCLI ? 'Add --help to see the help screen' : 'Add &help to see the help screen')); } if (!isset($Params['Email'])) { //LEEmailHelp (help information for the user’s email) is directly from the letsencrypt cli.py source $LEEmailHelp = 'Not using an email is strongly discouraged, because in the event of key loss or account compromise you will irrevocably lose access to your account. You will also be unable to receive notice about impending expiration or revocation of your certificates'; return OL('Email is required. ' . $LEEmailHelp); } //Read the apache conf require_once __DIR__ . '/ReadApacheConf.php'; $VirtualHostInfos = ReadApacheConf($ConfigVars, $Params); if (!is_array($VirtualHostInfos)) {