コード例 #1
0
ファイル: ext_control.php プロジェクト: joyerma/yongzhuo
 public function __construct()
 {
     parent::control();
     $this->assign("form_list", $this->model('form')->form_all());
     $this->assign("field_list", $this->model('form')->field_all());
     $this->assign("format_list", $this->model('form')->format_all());
 }
コード例 #2
0
ファイル: call_control.php プロジェクト: joyerma/yongzhuo
 public function __construct()
 {
     parent::control();
     $list = array("arclist" => P_Lang('文章列表'), "arc" => P_Lang('文章内容'), "cate" => P_Lang('分类信息'), "catelist" => P_Lang('分类树'), "project" => P_Lang('项目信息'), "sublist" => P_Lang('子项目信息'), "parent" => P_Lang('上级项目'), "fields" => P_Lang('字段及表单'));
     $this->phpok_type_list = $list;
     $this->assign("phpok_type_list", $list);
 }
コード例 #3
0
ファイル: phpok_call.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->mlist = get_class_methods($this);
     $this->model('project')->site_id($this->site['id']);
     $this->lib('form')->appid('www');
 }
コード例 #4
0
ファイル: inp_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->form_list = $this->model("form")->form_list();
     $this->field_list = $this->model("form")->field_list();
     $this->format_list = $this->model("form")->format_list();
 }
コード例 #5
0
 function __construct()
 {
     parent::control();
     $this->popedom = appfile_popedom("usergroup");
     $this->assign("popedom", $this->popedom);
     $this->lib('form')->cssjs();
 }
コード例 #6
0
ファイル: tag_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->popedom = appfile_popedom("tag");
     $this->assign("popedom", $this->popedom);
     $this->model('tag')->site_id($_SESSION['admin_site_id']);
 }
コード例 #7
0
ファイル: user_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->model("user");
     $this->model("usergroup");
     $this->popedom = appfile_popedom("user");
     $this->assign("popedom", $this->popedom);
 }
コード例 #8
0
ファイル: system_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->model("sysmenu");
     $this->popedom = appfile_popedom("system");
     $this->assign("popedom", $this->popedom);
     $this->model("popedom");
 }
コード例 #9
0
ファイル: html_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->obj = $this->_object();
     if (file_exists($this->dir_phpok . 'www/global.func.php')) {
         include_once $this->dir_phpok . 'www/global.func.php';
     }
 }
コード例 #10
0
ファイル: upload_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->model("res");
     $this->model("gd");
     $this->lib("file");
     $this->lib("json");
     $this->lib("trans");
 }
コード例 #11
0
ファイル: project_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     //判断是否有读权限
     $groupid = $this->model('usergroup')->group_id($_SESSION['user_id']);
     if (!$groupid) {
         error(P_Lang('无法获取前端用户组信息'), '', 'error');
     }
     $this->user_groupid = $groupid;
 }
コード例 #12
0
ファイル: post_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->model('popedom')->siteid($this->site['id']);
     $groupid = $this->model('usergroup')->group_id($_SESSION['user_id']);
     if (!$groupid) {
         $this->json(P_Lang('无法获取前端用户组信息'));
     }
     $this->user_groupid = $groupid;
 }
コード例 #13
0
ファイル: usercp_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     if (!$_SESSION["user_id"]) {
         error(P_Lang('未登录会员不能执行此操作'), $this->url, "error");
     }
     $this->group_rs = $this->model('usergroup')->group_rs($_SESSION['user_id']);
     if (!$this->group_rs) {
         error(P_Lang('您的账号有异常:无法获取相应的会员组信息,请联系管理员'), '', "error");
     }
 }
コード例 #14
0
ファイル: module_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->form_list = $this->model('form')->form_all();
     $this->field_list = $this->model('form')->field_all();
     $this->format_list = $this->model('form')->format_all();
     $this->assign('form_list', $this->form_list);
     $this->assign("field_list", $this->field_list);
     $this->assign("format_list", $this->format_list);
     $this->popedom = appfile_popedom("module");
     $this->assign("popedom", $this->popedom);
 }
コード例 #15
0
ファイル: upload_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $token = $this->get('token');
     if ($token) {
         $this->lib('token')->keyid($this->site['api_code']);
         $info = $this->lib('token')->decode($token);
         if (!$info || !$info['user_id'] || !$info['user_name']) {
             $this->json(P_Lang('您还没有登录,请先登录或注册'));
         }
         $this->u_id = $info['user_id'];
         $this->u_name = $info['user_name'];
         $this->is_client = true;
     } else {
         if ($_SESSION['user_id']) {
             $this->u_id = $_SESSION['user_id'];
             $this->u_name = $_SESSION['user_name'];
         }
     }
 }
コード例 #16
0
ファイル: tag_control.php プロジェクト: joyerma/yongzhuo
 function __construct()
 {
     parent::control();
 }
コード例 #17
0
ファイル: cart_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->cart_id = $this->model('cart')->cart_id(session_id(), $_SESSION['user_id']);
 }
コード例 #18
0
ファイル: admin_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->popedom = appfile_popedom("admin");
     $this->assign("popedom", $this->popedom);
 }
コード例 #19
0
ファイル: login_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->model("admin");
     $this->model("site");
 }
コード例 #20
0
ファイル: open_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $keytype_list = array('id' => "ID", 'title' => P_Lang('名称'), 'name' => P_Lang('文件名'), 'ext' => P_Lang('附件扩展名'), 'start_date' => P_Lang('开始时间'), 'stop_date' => P_Lang('结束时间'));
     $this->assign('keytype_list', $keytype_list);
 }
コード例 #21
0
ファイル: project_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     $this->popedom = appfile_popedom("project");
     $this->assign("popedom", $this->popedom);
 }
コード例 #22
0
ファイル: ajax_control.php プロジェクト: joyerma/yongzhuo
 function __construct()
 {
     parent::control();
     $this->lib("json");
 }
コード例 #23
0
 function __construct()
 {
     parent::control();
     $this->model("res");
 }
コード例 #24
0
ファイル: js_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     header("Content-type: application/x-javascript; charset=UTF-8");
 }
コード例 #25
0
ファイル: list_control.php プロジェクト: renlong567/43168
 public function __construct()
 {
     parent::control();
     $this->lib('form')->cssjs();
 }
コード例 #26
0
ファイル: upload_control.php プロジェクト: joyerma/yongzhuo
 public function __construct()
 {
     parent::control();
     ini_set('upload_tmp_dir', $this->dir_root . 'data/cache');
 }
コード例 #27
0
ファイル: cart_control.php プロジェクト: renlong567/43168
 function __construct()
 {
     parent::control();
     //取得当前的购物车ID
     $this->cart_id = $this->model('cart')->cart_id($this->session->sessid(), $_SESSION['user_id']);
 }