/** * 初始化函数 * 1、时区设置 * 2、数据库连接配置 */ public function init() { //QQweibo的配置信息 $this->_qqweiboparam = array('media_id' => 4, 'login_url' => '', 'redirect_uri' => 'http://denglu.soquair.com/media_qqweibo/callback/', 'state' => 'test'); //获取数据库连接信息 $this->_db = Base_Db::getInstance(Yaf_Application::app()->getConfig()->application->db->toArray()); $this->_basemodel = new BasedbModel($this->_db); }
/** * 初始化函数 * 1、时区设置 * 2、数据库连接配置 */ public function init() { //QQ的配置信息 $this->_qqparam = array('media_id' => 13, 'login_url' => 'https://graph.qq.com/oauth2.0/authorize?response_type=code', 'redirect_uri' => 'http://denglu.soquair.com/media_qq/callback/', 'state' => 'test'); //获取数据库连接信息 $this->_db = Base_Db::getInstance(Yaf_Application::app()->getConfig()->application->db->toArray()); $this->_basemodel = new BasedbModel($this->_db); }
/** * 初始化函数 * 1、时区设置 * 2、数据库连接配置 */ public function init() { header("Content-type: application/json; charset=utf-8"); ini_set('date.timezone', 'Asia/Shanghai'); //获取数据库连接信息 $this->_db = Base_Db::getInstance(Yaf_Application::app()->getConfig()->application->db->toArray()); $this->_basemodel = new BasedbModel($this->_db); }
/** * 初始化函数 * 1、时区设置 * 2、数据库连接配置 */ public function init() { //360配置信息 $this->_qihooparam = array('media_id' => 23, 'redirect_uri' => 'http://denglu.soquair.com/Media_Qihoo/callback'); //获取数据库连接信息 $this->_db = Base_Db::getInstance(Yaf_Application::app()->getConfig()->application->db->toArray()); $this->_basemodel = new BasedbModel($this->_db); }
/** * 初始化函数 * 1、时区设置 * 2、数据库连接配置 */ public function init() { header("Content-type: text/html; charset=utf-8"); //Renren的配置信息 $this->_renrenparam = array('media_id' => 7, 'redirect_uri' => 'http://denglu.soquair.com/media_renren/callback/'); //获取数据库连接信息 $this->_db = Base_Db::getInstance(Yaf_Application::app()->getConfig()->application->db->toArray()); $this->_basemodel = new BasedbModel($this->_db); }