Exemplo n.º 1
0
 function __construct($page)
 {
     parent::__construct();
     $this->lPage = $page;
     $this->oHtml = HtmlLib::singleton();
     $this->oAjax = new AjaxLib();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 5
0
 function __construct($page)
 {
     parent::__construct();
     $this->lPage = $page;
 }