コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     if (empty($_SESSION['info']['a_name'])) {
         $this->redirect('Login/index');
     }
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     $this->db = D("Model");
     $this->field_db = D("ModelField");
     $this->type_db = D("ModelType");
 }
コード例 #3
0
 /**
  * 构造函数,父类
  * @Title: __construct
  * @Description: todo(基础构造函数)
  *
  * @author quqiang
  *         @date 2015年5月12日 下午4:37:55
  * @throws
  *
  */
 public function __construct()
 {
     parent::__construct();
     // 加载基础配置信息
     $dir = CONF_PATH;
     $configDir = $dir . 'desing.php';
     if (!file_exists($configDir)) {
         $msg = '文件 ' . $configDir . ' 不存在!';
         throw new NullDataExcetion($msg);
     }
     require $configDir;
     $this->default = $desing_default;
     $this->controls = $desing_controll;
     // 合并组件配置元素
     if ($this->controls && $this->default) {
         unset($temp);
         foreach ($this->controls as $k => $v) {
             $array = array_merge($this->default, $v['property']);
             sortArray($array, 'sort');
             $temp[$k] = $array;
         }
         $this->controlsConfig = $temp;
     }
     $this->assign('config', $this->controlsConfig);
     $this->assign('control', $this->controls);
     $this->assign('tagIndentity', $this->tagIndentity);
     $this->assign('propertyTagType', $this->propertyTagType);
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->server = DBC("remote.service.uri") . "Update/";
     $this->local = ENTRY_PATH . "/Data/Updates/";
     $this->currentVersion = DBC("system.version");
 }
 public function __construct()
 {
     parent::__construct();
     $this->db = Db::getInstance();
     $this->max_size = 800000;
     //每卷800左右
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     //        $this->pM = D('Product');
     //        $this->bM = D('Brand');
     //        $this->sM = D('Store');
 }
コード例 #7
0
 public function __construct()
 {
     require APP_ROOT_PATH . "app/Lib/common.php";
     require APP_ROOT_PATH . "app/Lib/deal.php";
     parent::__construct();
     parent::assign('main_title', L(MODULE_NAME . "_" . ACTION_NAME));
 }
コード例 #8
0
 function __construct()
 {
     parent::__construct();
     $this->db = D("Content");
     $this->model_db = D("Model");
     $this->category_db = D("Category");
     // $this->categorys = D('Category')->where("siteid = %d", $this->siteid)->select();
 }
コード例 #9
0
 function __construct()
 {
     parent::__construct();
     $this->db = D('Position');
     $this->data_db = D('PositionData');
     $this->model_db = D('Model');
     $this->type_db = D('ModelType');
 }
コード例 #10
0
 public function __construct()
 {
     parent::__construct();
     //会员名
     $user_id = intval($_REQUEST['user_id']);
     $username = M("user")->where("id=" . $user_id)->getField("user_name");
     $this->assign("username", $username);
     $this->assign("user_id", $user_id);
 }
コード例 #11
0
ファイル: NavAction.class.php プロジェクト: BruceJi/fanwe
 public function __construct()
 {
     parent::__construct();
     $nav = array('index' => array('name' => '首页'), 'deals' => array('name' => '项目列表', 'acts' => array('index' => '列表')), 'investor' => array('name' => '天使投资人', 'acts' => array('invester_list' => '列表')), 'deal' => array('name' => '项目详情', 'acts' => array('show' => '详情', 'update' => '动态', 'support' => '支持', 'comment' => '评论')), 'news' => array('name' => '动态', 'acts' => array('index' => '最新', 'fav' => '关注')), 'article_cate' => array('name' => '文章列表'), 'article' => array('name' => '文章内容', 'acts' => array('index' => '详情')), 'faq' => array('name' => '新手帮助'));
     if (LICAI_TYPE) {
         $nav['licai'] = array('name' => '理财模块', 'acts' => array('index' => '理财首页', 'deals' => '理财列表页', 'deal' => '理财详情页'));
     }
     $this->navs = $nav;
 }
コード例 #12
0
 function __construct()
 {
     parent::__construct();
     $this->node = M('Node')->where("id = %d", $_GET['cid'])->find();
     if (isset($_GET['tablename'])) {
         $this->db = D(trim($_GET['tablename']));
     } else {
         $this->db = D($node['module']);
     }
 }
コード例 #13
0
 public function __construct()
 {
     $this->provinceInfo = C('APPOINT_AD_PROVINCE');
     $provinceIds = array();
     foreach ($this->provinceInfo as $value) {
         $provinceIds[] = $value['id'];
     }
     $this->provinceIds = $provinceIds;
     //var_dump($_SESSION);
     parent::__construct();
 }
コード例 #14
0
 public function __construct()
 {
     parent::__construct();
     $admin = M('Admin')->where('id=' . $this->LOGIN_KEY)->find();
     $admin_name = $admin['name'] ? $admin['name'] : $admin['username'];
     $this->assign('admin_name', $admin_name);
     if ($admin['role_id']) {
         $adminrole = M('Admin_role')->where('id=' . $admin['role_id'])->find();
         $admin_role = $adminrole['name'];
     } else {
         $admin_role = '测试管理员->系统开发';
     }
     $this->assign('admin_role', $admin_role);
     //dump($admin);
 }
コード例 #15
0
ファイル: IndexAction.class.php プロジェクト: ArronYR/collect
 function __construct()
 {
     parent::__construct();
     //伪装
     $this->snoopy = new Snoopy();
     $this->snoopy->agent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11";
     //伪装浏览器
     $this->snoopy->rawheaders["Pragma"] = "no-cache";
     //cache 的http头信息
     //$this->snoopy->rawheaders["X_FORWARDED_FOR"] = "222.28.40.101"; //伪装ip
     $this->snoopy->rawheaders["X-Requested-With"] = "XMLHttpRequest";
     //伪装AJAX
     $this->snoopy->rawheaders["Accept"] = "*/*; q=0.01";
     //伪装AJAX
     //$this->snoopy->rawheaders["Cookie"] = "JSESSIONID=C30C576FF8B75E962644997ECFC25D12;"; //伪装AJAX
     //$this->snoopy->rawheaders["Referer"] = "http://www.simsimi.com/talk.htm?lc=ch";
 }
コード例 #16
0
ファイル: ListAction.php プロジェクト: phil714/mel
 public function __construct()
 {
     parent::__construct(CommonAction::$VISIBILITY_PUBLIC);
     //super(visibility?)
 }
コード例 #17
0
ファイル: UserAction.class.php プロジェクト: eliu03/fanweP2P
 public function __construct()
 {
     parent::__construct();
     require_once APP_ROOT_PATH . "/system/libs/user.php";
 }
コード例 #18
0
 public function __construct()
 {
     $this->db_name = 'hrm_organizational';
     parent::__construct();
 }
コード例 #19
0
 public function __construct()
 {
     parent::__construct();
     $this->channel_id = $_GET['channel_id'];
 }
コード例 #20
0
 public function __construct()
 {
     parent::__construct();
     $this->uploadSet = M('upload_set');
 }
コード例 #21
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #22
0
 public function __construct()
 {
     $this->db_name = 'jxc_product';
     parent::__construct();
 }
コード例 #23
0
 public function __construct()
 {
     $this->db_name = 'jxc_finances';
     parent::__construct();
 }
コード例 #24
0
ファイル: SoftwareAction.class.php プロジェクト: uwitec/p-oa
 public function __construct()
 {
     $this->db_name = 'software';
     parent::__construct();
 }
コード例 #25
0
ファイル: FanweAction.class.php プロジェクト: qiuai/tools
 public function __construct()
 {
     //$this->initModule();
     parent::__construct();
 }
コード例 #26
0
 function __construct()
 {
     parent::__construct();
     $this->db = D("Feedback");
 }
コード例 #27
0
ファイル: SalaryAction.class.php プロジェクト: uwitec/p-oa
 public function __construct()
 {
     $this->db_name = 'hrm_salary';
     parent::__construct();
 }
コード例 #28
0
 public function __construct()
 {
     parent::__construct();
     $this->pM = D('Picture');
 }
コード例 #29
0
ファイル: IndexAction.class.php プロジェクト: uwitec/p-oa
 public function __construct()
 {
     $this->db_name = 'demo';
     parent::__construct();
 }
コード例 #30
0
ファイル: NavAction.class.php プロジェクト: xcdxcd/zhongchou
 public function __construct()
 {
     parent::__construct();
     $this->navs = array('index' => array('name' => '首页'), 'deals' => array('name' => '项目列表', 'acts' => array('index' => '列表')), 'deal' => array('name' => '项目详情', 'acts' => array('show' => '详情', 'update' => '动态', 'support' => '支持', 'comment' => '评论')), 'news' => array('name' => '动态', 'acts' => array('index' => '最新', 'fav' => '关注')));
 }