mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:57:03 +02:00
rewrote php session variables
This commit is contained in:
@ -54,8 +54,10 @@ class ModelMailMail extends Model {
|
||||
public function connect_imap() {
|
||||
$this->imap = new Zend_Mail_Protocol_Imap(IMAP_HOST, IMAP_PORT, IMAP_SSL);
|
||||
|
||||
$session = Registry::get('session');
|
||||
|
||||
if($this->imap) {
|
||||
if($this->imap->login($_SESSION['username'], $_SESSION['password'])) { return 1; }
|
||||
if($this->imap->login($session->get("username"), $session->get("password"))) { return 1; }
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user