public function __construct()
 {
     parent::__construct();
     $this->admin_logged_in();
     $this->load->model('m_admin');
     $this->load->library('cart');
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     //only for member
     $this->load->model('m_admin');
     $this->load->model('m_course');
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->dbLaiyuan = $this->load_model('laiyuan');
     $this->dbLeimu = $this->load_model('leimu');
     $this->dbSubyuan = $this->load_model('yuanlei');
 }
Example #4
0
 function usercontrol()
 {
     parent::__construct();
     $this->load('user');
     //note client 仅在需要时初始化 $this->app
     $this->app = $this->cache['apps'][UC_APPID];
 }
Example #5
0
 function __construct()
 {
     //overwrite base function before construct
     parent::__construct(TRUE);
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
 }
Example #6
0
 function control()
 {
     parent::__construct();
     $authkey = md5(UC_KEY . $_SERVER['HTTP_USER_AGENT'] . $this->onlineip);
     $this->time = time();
     $seccodeauth = getgpc('seccodeauth');
     $seccode = $this->authcode($seccodeauth, 'DECODE', $authkey);
     //$seccode = rand(100000, 999999);
     //$this->setcookie('uc_secc', $this->authcode($seccode."\t".$this->time, 'ENCODE'));
     @header("Expires: -1");
     @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
     @header("Pragma: no-cache");
     include_once UC_ROOT . 'lib/seccode.class.php';
     $code = new seccode();
     $code->code = $seccode;
     $code->type = 0;
     $code->width = 70;
     $code->height = 21;
     $code->background = 0;
     $code->adulterate = 1;
     $code->ttf = 1;
     $code->angle = 0;
     $code->color = 1;
     $code->size = 0;
     $code->shadow = 1;
     $code->animator = 0;
     $code->fontpath = UC_ROOT . 'images/fonts/';
     $code->datapath = UC_ROOT . 'images/';
     $code->includepath = '';
     $code->display();
 }
Example #7
0
 function crontab()
 {
     parent::__construct();
     $this->load('bind_log');
     $this->load('question');
     $argv = $this->getCmdArgv();
     // 获取命令行参数
     //根据传入的第一个变量确定执行的方法
     if ($argv['operation'] == "order_process") {
         $this->order_process();
     } else {
         if ($argv['operation'] == "default_assess") {
             $num = intval($argv['num']);
             $limitNum = $num > 0 ? $num : 100;
             $this->default_assess($limitNum);
         } else {
             if ($argv['operation'] == "view_update") {
                 $num = intval($argv['num']);
                 $limitNum = $num > 0 ? $num : 100;
                 $this->view_update($limitNum);
             } else {
                 if ($argv['operation'] == "history_map") {
                     $year = intval($argv['start']);
                     $this->history_map($year);
                 }
             }
         }
     }
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     //only for member
     // $this->memberOnly();
     $this->load->model('m_command');
 }
Example #9
0
 function creditcontrol()
 {
     parent::__construct();
     $this->init_input();
     $this->load('note');
     $this->load('misc');
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->dbPic = $this->load_model('pic');
     $this->dbLeimu = $this->load_model('leimu');
     $this->dbTuji = $this->load_model('tuji');
 }
Example #11
0
 function usercontrol()
 {
     parent::__construct();
     $this->load('user');
     // client Initialize only when needed $this->app
     $this->app = $this->cache['apps'][UC_APPID];
 }
Example #12
0
 function __construct()
 {
     parent::__construct();
     $this->check();
     $this->app = load('m/app');
     $this->user_app = new user_app();
 }
Example #13
0
 public function __construct($id = 0)
 {
     parent::__construct();
     if ($id > 0) {
         $this->load($id);
     }
 }
Example #14
0
 public function __construct($config)
 {
     parent::__construct();
     //require semantics3 library
     require_once FCPATH . 'system/application/libraries/semantics3/Semantics3.php';
     $this->_requestor = new Semantics3_Products($config['key'], $config['secret']);
 }
Example #15
0
 public function __construct()
 {
     parent::__construct();
     //only for member
     $this->load->model('m_discussion');
     $this->load->library('user_agent');
 }
Example #16
0
 function tagcontrol()
 {
     parent::__construct();
     $this->init_input();
     $this->load('tag');
     $this->load('misc');
 }
Example #17
0
 public function __construct($recordorid, $options = array())
 {
     if (!empty($options['collection'])) {
         $this->collection = $options['collection'];
         unset($options['collection']);
     }
     parent::__construct($recordorid, $options);
 }
Example #18
0
 public function __construct(Application $app)
 {
     $connectionConfig = $app['conf']->get(['main', 'database']);
     $connection = $app['db.provider']($connectionConfig);
     $connectionSettings = new ConnectionSettings($connectionConfig['host'], $connectionConfig['port'], $connectionConfig['dbname'], $connectionConfig['user'], $connectionConfig['password']);
     $versionRepository = new AppboxVersionRepository($connection);
     parent::__construct($app, $connection, $connectionSettings, $versionRepository);
 }
Example #19
0
 public function __construct($message, $code = 0, Exception $previous = null)
 {
     http_response_code(empty($code) ? 200 : $code);
     $response['status'] = $code;
     $response['data'] = ['message' => $message, 'title' => $this->getTItle($code), 'description' => ''];
     $response['stacktrace'] = $this->getTraceAsString();
     parent::__construct(json_encode($response), $code, $previous);
 }
Example #20
0
 public function __construct()
 {
     parent::__construct();
     $this->db = System::load_sys_class("model");
     $member = $this->userinfo;
     if (empty($member['uid'])) {
         _message('请先登录', WEB_PATH . '/member/user/login');
     }
 }
Example #21
0
 public function __construct()
 {
     parent::__construct();
     //通过用户IP获得具体的城市
     $ip = $_SERVER['REMOTE_ADDR'];
     $info = GetIpLookup('123.125.114.144');
     $city = $info['city'];
     $this->db = System::load_sys_class('model');
 }
Example #22
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->library("extemplate");
     $this->load->library("session");
     $this->load->library("email");
     $this->load->config('tank_auth', TRUE);
 }
Example #23
0
 public function __construct()
 {
     parent::__construct();
     if ($_SESSION[$this->uid . 'rtl'] == true) {
         $_SESSION[$this->uid . 'rtl'] = false;
     } else {
         $_SESSION[$this->uid . 'rtl'] = true;
     }
 }
Example #24
0
 function __construct(&$get, &$post)
 {
     parent::__construct($get, $post);
     $this->load('answer');
     $this->load('answer_comment');
     $this->load('question');
     $this->load('message');
     $this->load('doing');
 }
Example #25
0
 function __construct()
 {
     echo __METHOD__ . "(begin)\n";
     parent::__construct();
     parent::test();
     $this->test();
     $this->member = 'derived::member';
     echo __METHOD__ . "(end)\n";
 }
Example #26
0
 function pm_clientcontrol()
 {
     parent::__construct();
     if (!$this->settings['pmcenter']) {
         exit('PMCenter closed');
     }
     $this->load('user');
     $this->load('pm', NULL, UC_SERVER_RELEASE);
 }
Example #27
0
 /**
  * Constructor
  *
  * @param \phpbb\config\config              $config
  * @param \phpbb\event\dispatcher_interface $dispatcher
  * @param \phpbb\template\template          $template
  * @param \phpbb\user                       $user
  * @param string                            $root_path
  * @param \vse\topicpreview\core\trim_tools $trim_tools
  * @access public
  */
 public function __construct(\phpbb\config\config $config, \phpbb\event\dispatcher_interface $dispatcher, \phpbb\template\template $template, \phpbb\user $user, $root_path, \vse\topicpreview\core\trim_tools $trim_tools)
 {
     $this->dispatcher = $dispatcher;
     $this->template = $template;
     $this->root_path = $root_path;
     $this->trim_tools = $trim_tools;
     parent::__construct($config, $user);
     $this->setup();
 }
Example #28
0
 /**
  * 构造函数
  * @param unknown $viewConfig
  * @param unknown $viewname
  */
 function __construct($viewConfig, $viewname)
 {
     parent::__construct();
     $this->_viewConfig = $viewConfig;
     $this->_viewname = $viewname;
     $this->_enginePath = ROOT . '/extends/smarty/Smarty.class.php';
     include_once $this->_enginePath;
     $this->_smarty = new \Smarty();
     $this->init();
 }
Example #29
0
 public function __construct()
 {
     parent::__construct();
     if (ROUTE_A != 'userphotoup' and ROUTE_A != 'singphotoup') {
         if (!$this->userinfo) {
             _message("请登录", WEB_PATH . "/mobile/user/login", 3);
         }
     }
     $this->db = System::load_sys_class('model');
 }
 function __construct()
 {
     $this->name = 'init';
     $this->other = 'other';
     __var_dump($this);
     parent::__construct();
     echo __CLASS__ . "::" . __FUNCTION__ . "\n";
     $this->name = 'derived';
     __var_dump($this);
 }