本文整理汇总了PHP中HTTP::no_cache_header方法的典型用法代码示例。如果您正苦于以下问题:PHP HTTP::no_cache_header方法的具体用法?PHP HTTP::no_cache_header怎么用?PHP HTTP::no_cache_header使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTTP
的用法示例。
在下文中一共展示了HTTP::no_cache_header方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
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 登录'), '/');
}
}
示例2: setup
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('验签失败')));
}
}
示例3: setup
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('本站未开通微博登录')));
}
}
示例4: setup
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'));
}
示例5: generate
public function generate()
{
$this->captcha->generate();
HTTP::no_cache_header();
readfile($this->captcha->getImgDir() . $this->captcha->getId() . $this->captcha->getSuffix());
die;
}
示例6: setup
public function setup()
{
if (get_setting('index_per_page')) {
$this->per_page = get_setting('index_per_page');
}
HTTP::no_cache_header();
}
示例7: setup
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('你没有权限进行此操作')));
}
}
示例8: setup
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('工单系统未启用')));
}
}
示例9: setup
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']];
}
}
示例10: setup
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('你没有访问权限, 请重新登录')));
}
}
示例11: setup
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');
}
示例12: array
<?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';
示例13: setup
public function setup()
{
HTTP::no_cache_header();
$this->crumb('Loading...', '/payment/');
}
示例14: setup
public function setup()
{
@set_time_limit(0);
HTTP::no_cache_header();
}
示例15: setup
public function setup()
{
HTTP::no_cache_header();
$this->crumb(AWS_APP::lang()->_t('搜索'), '/search/');
}