Example #1
0
 public function __construct()
 {
     $this->request = APF::get_instance()->get_request();
     $this->response = APF::get_instance()->get_response();
     $p = $this->request->get_parameters();
     $this->check_sig($p);
     Db_Pdo::get_instance();
 }
Example #2
0
 public function __construct()
 {
     $this->request = APF::get_instance()->get_request();
     $this->response = APF::get_instance()->get_response();
     $cookie_cfg = APF::get_instance()->get_config('cookie');
     $cookie_value = Bll_Cookie::get($cookie_cfg['name']);
     $user_info_str = Util_AuthorCrypt::decrypt($cookie_value, $cookie_cfg['key']);
     $user_info_arr = json_decode($user_info_str, true);
     $this->userInfo = $user_info_arr[0];
     Db_Pdo::get_instance();
 }