示例#1
0
 function __construct($page)
 {
     parent::__construct();
     $this->lPage = $page;
     $this->oHtml = HtmlLib::singleton();
     $this->oAjax = new AjaxLib();
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $date = date('YmdHi', time());
     $public_key = 'http://open.weather.com.cn/data/?areaid=' . $this->_weather_areaid . '&type=' . $this->_weather_type . '&date=' . $date . '&appid=' . WEATHER_APPID;
     $this->_weather_key = base64_encode(hash_hmac('sha1', $public_key, $this->_weather_privatekey, TRUE));
     $appid_six = substr(WEATHER_APPID, 0, 6);
     $this->_weather_uri = 'http://open.weather.com.cn/data/?areaid=' . $this->_weather_areaid . '&type=' . $this->_weather_type . '&date=' . $date . '&appid=' . $appid_six . '&key=' . urlencode($this->_weather_key);
     $this->_weather_res = file_get_contents($this->_weather_uri);
 }
示例#3
0
 function __construct($page)
 {
     parent::__construct();
     $this->lPage = $page;
     $this->oHtml = HtmlLib::singleton();
     $this->oAjax = new AjaxLib();
     $this->eUsuario = unserialize($_SESSION['eUsuario']);
     if ($this->eUsuario == null) {
         die;
     }
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
 }
示例#5
0
 function __construct($page)
 {
     parent::__construct();
     $this->lPage = $page;
 }