<?php/*** iCMS - i Content Management System* Copyright (c) 2007-2017 iCMSdev.com. All rights reserved.** @author icmsdev <master@icmsdev.com>* @site https://www.icmsdev.com* @licence https://www.icmsdev.com/LICENSE.html*//*** 开发者** @role superadmin*/class DeveloperAdmincp extends AdmincpBase{public function __construct(){parent::__construct();AdmincpView::set('breadcrumb', false);}public static function done_bugs(){$post = Request::post();$json = DeveloperApiProxy::post('bugs', $post);echo $json;return false;}/*** 获取远程静态资源** @role superadmin* @return string*/public function do_assets(){if ($js = Request::sget('js')) {header(sprintf('Content-Type: %s; charset=UTF-8', FilesMime::get('js')));$html = DeveloperApiProxy::get('getjs', ['path'=>$js]);}if ($css = Request::sget('css')) {header(sprintf('Content-Type: %s; charset=UTF-8', FilesMime::get('css')));$html = DeveloperApiProxy::get('getcss', ['path'=>$css]);}exit($html);}public function do_goto(){$config = Developer::getConfig();$url = DeveloperApiProxy::url('auth', ['token' => $config['auth']]);Utils::jumpto($url);}public function do_login(){$html = DeveloperApiProxy::get('login', $_GET);self::setJsPath('developer/assets/js/login');include self::view('main');}public function do_register(){$html = DeveloperApiProxy::get('register', $_GET);self::setJsPath('developer/assets/js/register');include self::view('main');}public function done_signup(){return DeveloperApiProxy::request('signup');}public function do_comment(){$json = DeveloperApiProxy::post('comment', $_POST);echo $json;return false;}public function done_accountLogin(){return DeveloperApiProxy::request('accountLogin');}public function done_phoneLogin(){return DeveloperApiProxy::request('phoneLogin');}public function done_sendSMSCaptcha(){$json = DeveloperApiProxy::post('sendSMSCaptcha', $_POST);Session::uset('captchaToken');echo $json;return false;}public function do_getCaptcha(){Http::set('CURLOPT_HEADER', 1);DeveloperApiProxy::get('getCaptcha');Session::set('captchaToken', Http::getHeader('Captcha-Token'));header('Content-type:image/jpeg');echo Http::getBody();return false;}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型