function __construct($page) { parent::__construct(); $this->lPage = $page; $this->oHtml = HtmlLib::singleton(); $this->oAjax = new AjaxLib(); }
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); }
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; } }
public function __construct() { parent::__construct(); }
function __construct($page) { parent::__construct(); $this->lPage = $page; }