public function setup() { HTTP::no_cache_header(); if (get_setting('qq_login_enabled') != 'Y' or !get_setting('qq_login_app_id') or !get_setting('qq_login_app_key')) { H::redirect_msg(AWS_APP::lang()->_t('本站未开通 QQ 登录'), '/'); } }
public function setup() { HTTP::no_cache_header(); if (!$this->model('myapi')->verify_signature(get_class(), $_GET['mobile_sign'])) { H::ajax_json_output(AWS_APP::RSM(null, '-1', AWS_APP::lang()->_t('验签失败'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('facebook_login_enabled') != 'Y' or !get_setting('facebook_app_id') or !get_setting('facebook_app_secret')) { H::redirect_msg(AWS_APP::lang()->_t('本站未开通 Facebook 登录'), '/'); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('sina_weibo_enabled') != 'Y' or !get_setting('sina_akey') or !get_setting('sina_skey')) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站未开通微博登录'))); } }
public function setup() { HTTP::no_cache_header(); TPL::import_clean(); TPL::import_css(array('mobile/css/icon.css', 'mobile/css/mobile.css')); TPL::import_js(array('js/jquery.2.js', 'js/jquery.form.js', 'mobile/js/framework.js', 'mobile/js/aws-mobile.js', 'mobile/js/app.js', 'mobile/js/aw-mobile-template.js')); }
public function generate() { $this->captcha->generate(); HTTP::no_cache_header(); readfile($this->captcha->getImgDir() . $this->captcha->getId() . $this->captcha->getSuffix()); die; }
public function setup() { if (get_setting('index_per_page')) { $this->per_page = get_setting('index_per_page'); } HTTP::no_cache_header(); }
public function setup() { HTTP::no_cache_header(); if (get_setting('twitter_login_enabled') != 'Y' or !get_setting('twitter_consumer_key') or !get_setting('twitter_consumer_secret')) { H::redirect_msg(AWS_APP::lang()->_t('本站未开通 Twitter 登录'), '/'); } }
public function setup() { HTTP::no_cache_header(); if (!$this->user_info['permission']['is_administortar'] and !$this->user_info['permission']['is_moderator']) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('你没有权限进行此操作'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('sina_weibo_enabled') != 'Y' or !get_setting('sina_akey') or !get_setting('sina_skey')) { H::redirect_msg(AWS_APP::lang()->_t('本站未开通微博登录'), '/'); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('qq_login_enabled') != 'Y' or !get_setting('qq_login_app_id') or !get_setting('qq_login_app_key')) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站未开通 QQ 登录'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('twitter_login_enabled') != 'Y' or !get_setting('twitter_consumer_key') or !get_setting('twitter_consumer_secret')) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站未开通 Twitter 登录'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('ticket_enabled') != 'Y') { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('工单系统未启用'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('google_login_enabled') != 'Y' or !get_setting('google_client_id') or !get_setting('google_client_secret')) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站未开通 Google 登录'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('google_login_enabled') != 'Y' or !get_setting('google_client_id') or !get_setting('google_client_secret')) { H::redirect_msg(AWS_APP::lang()->_t('本站未开通 Google 登录'), '/'); } }
public function setup() { HTTP::no_cache_header(); $category_ids_map = array(1 => 2); if ($category_ids_map[$_GET['category']] and $_GET['category']) { $_GET['category_id'] = $category_ids_map[$_GET['category']]; } }
public function setup() { HTTP::no_cache_header(); # if (!$this->user_info['permission']['is_administortar']) if (1 != 1) { H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('你没有访问权限, 请重新登录'))); } }
public function setup() { HTTP::no_cache_header(); if (get_setting('project_enabled') != 'Y') { H::redirect_msg(AWS_APP::lang()->_t('活动系统未启用'), '/'); } $this->crumb(AWS_APP::lang()->_t('活动'), '/project/'); TPL::import_css('css/project.css'); }
<?php /* +-------------------------------------------------------------------------- | WeCenter [#RELEASE_VERSION#] | ======================================== | by WeCenter Software | © 2011 - 2014 WeCenter. All Rights Reserved | http://www.wecenter.com | ======================================== | Support: WeCenter@qq.com | +--------------------------------------------------------------------------- */ require_once '../system/init.php'; HTTP::no_cache_header(); if (file_exists(AWS_PATH . 'config/install.lock.php')) { H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php')); } @set_time_limit(0); TPL::assign('page_title', 'WeCenter - Install'); TPL::assign('static_url', '../static'); switch ($_POST['step']) { default: $system_require = array(); if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') and get_cfg_var('safe_mode') == false) { $system_require['php'] = TRUE; } if (class_exists('PDO', false)) { if (defined('PDO::MYSQL_ATTR_USE_BUFFERED_QUERY')) { $system_require['db'] = 'PDO_MYSQL';
public function setup() { $this->per_page = get_setting('contents_per_page'); HTTP::no_cache_header(); }
public function setup() { HTTP::no_cache_header(); $this->crumb('Loading...', '/payment/'); }
public function setup() { @set_time_limit(0); HTTP::no_cache_header(); }
public function setup() { HTTP::no_cache_header(); $this->crumb(AWS_APP::lang()->_t('搜索'), '/search/'); }
public function setup() { HTTP::no_cache_header(); }
function setup() { HTTP::no_cache_header(); $this->per_page = get_setting('notifications_per_page'); }