/** * 发送状态头 */ public function __construct() { parent::__construct(); header('Content-type: application/json; Charset=utf-8'); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); }
function __construct() { parent::__construct(); if (!is_login()) { redirect_to_login(); } $this->theme = theme(); $this->theme->setBreadcrumb("用户中心", "User"); }
function __construct() { parent::__construct(); if (strpos(u()->getUriInfo()->getPath(), "/Show") === 0) { $this->__load_404(); exit; } else { $this->theme = theme(); } }
function __construct() { parent::__construct(); if (!is_login()) { redirect_to_login(); } $this->theme = theme(); $this->theme->setBreadcrumb("消息中心", "Message"); l_h("html_tag.php"); }
public function __construct() { parent::__construct(); if (!is_login()) { redirect(array("Home", "login")); } else { if (!login_user()->Permission("Control")) { redirect(array('Home', 'permission')); } } header("Content-Type: text/html; charset: utf-8"); }
function __construct() { parent::__construct(); if (!is_login()) { redirect_to_login(); } else { if (!login_user()->is_active()) { redirect(['User', 'activation']); } } $this->theme = theme(); $this->theme->setBreadcrumb("图片中心", "Photo"); l_h("html_tag.php"); }
public function __construct() { parent::__construct(); if (!is_login()) { redirect(array("Home", "login")); } else { if (!login_user()->Permission("Posts")) { redirect(array('Home', 'permission')); } } $this->theme = theme(); $this->theme->setBreadcrumb("文章中心", "Message"); header("Content-Type: text/html; charset: utf-8"); }
/** * 发送状态头 */ public function __construct() { parent::__construct(); header('Content-type: application/json; Charset=utf-8'); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); if (!is_login()) { $this->rt_msg['msg'] = '用户未登陆'; exit; } else { if (!login_user()->Permission("Control")) { $this->rt_msg['msg'] = '权限不足'; exit; } } }
/** * 构造方法 * @param string $table 关系表名 * @param string $field 关系表ID * @param int $relation_id 关系表ID的值 * @param string $comment_type 评论类型 * @param string $style 视图样式 */ function __construct($table, $field, $relation_id, $comment_type, $style = '') { parent::__construct(); $this->relation_table = trim($table); $this->relation_field = trim($field); $this->id = intval($relation_id); $this->comment_type = trim($comment_type); $cfg = cfg(); $this->view_path = $cfg->get('comment_view_path'); if (empty($this->view_path)) { $this->view_path = "Comment"; } if (empty($style)) { $this->view_style = ""; } else { $this->view_style = $style . "/"; } $this->one_page = comment_one_page(); $this->db = db(); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->theme = theme(); }
function __construct() { parent::__construct(); ob_start(); }