Exemplo n.º 1
0
 /**
  *
  */
 public function __construct()
 {
     if (session_status() == PHP_SESSION_NONE) {
         session_start();
     }
     // init Instagram library
     $this->instagram = new Instagram(array('apiKey' => Config::get('apiKey'), 'apiSecret' => Config::get('apiSecret'), 'apiCallback' => Config::get('apiCallback')));
 }
Exemplo n.º 2
0
 /**
  * Generate password hash
  * 
  * @param string $password
  * @return string
  */
 public function generatePasswordHash($password)
 {
     return md5($this->config->get('salt') . $password);
 }