{ $content = file_get_contents($this->_template_dir . '/common/agreement.html'); $this->_view['_content'] = $content; $this->_view['_title'] = "使用协议"; } public function stepAction() { $this->_view['_title'] = "安装步骤"; } public function doAction() { $this->_view['_title'] = "更多功能"; } public function helpAction() { $this->_view['_title'] = "帮助链接"; } /** * 错误页面 */ public function errorAction() { $this->_view['_title'] = "错误页面"; } public function defineAction() { die('Access Defined!!'); } } Access::run('Install');
if ($this->_context->isPOST()) { $de_data = Crypt::decrypt($data, App::getConfig('YUC_SECURE_KEY')); // Log::Write('解析的加密数据:' . $de_data, Log::DEBUG); $post = json_decode($de_data, TRUE); if ($post != '' && is_array($post) && $post['site_key'] == md5(App::getConfig('YUC_SITE_KEY'))) { $mod = $post['mod']; $act = $post['act']; $class = 'Remote_' . $mod; if ($act == 'show' && $mod == 'Logs') { $name = $post['name']; $obj = new $class(); //self::$_string[' $name']=$name; $ret = $obj->{$act}($name); } else { $obj = new $class(); $ret = $obj->{$act}(); } Log::Write('Remote Run:' . $mod . ',' . $act . ',' . $ret, Log::DEBUG); _returnCryptAjax($ret); } else { Log::Write('安全认证错误!', Log::DEBUG); _returnCryptAjax(array('result' => 0, 'content' => '安全认证比对错误错误!')); } } else { Log::Write('远程控制错误!数据并非POST交互!', Log::DEBUG); _returnCryptAjax(array('result' => 0, 'content' => '远程控制错误!数据并非POST交互!')); } } } Access::run('Execute');