public function post($request)
 {
     // to Receive POST Params (use $this->params)
     parent::post($request);
     $result = array('expressoVersion' => $this->getExpressoVersion(), 'apiVersion' => '1.0');
     $this->setResult($result);
     //to Send Response (JSON RPC format)
     return $this->getResponse();
 }
Exemplo n.º 2
0
 public function post($request)
 {
     // to Receive POST Params (use $this->params)
     parent::post($request);
     if ($sessionid = $GLOBALS['phpgw']->session->create($this->getParam('user'), $this->getParam('password'))) {
         $result = array('auth' => $sessionid . ":" . $GLOBALS['phpgw']->session->kp3, 'profile' => array($this->getUserProfile()));
         $this->setResult($result);
     } else {
         Errors::runException($GLOBALS['phpgw']->session->cd_reason);
     }
     return $this->getResponse();
 }
Exemplo n.º 3
0
 public function post($request)
 {
     // to Receive POST Params (use $this->params)
     parent::post($request);
     if ($this->isLoggedIn()) {
         if ($_SESSION['phpgw_session']['session_id'] && file_exists($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $_SESSION['phpgw_session']['session_id'])) {
             $dh = opendir($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $_SESSION['phpgw_session']['session_id']);
             while ($file = readdir($dh)) {
                 if ($file != '.' && $file != '..') {
                     unlink($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $_SESSION['phpgw_session']['session_id'] . SEP . $file);
                 }
             }
             rmdir($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $_SESSION['phpgw_session']['session_id']);
         }
         $GLOBALS['phpgw']->hooks->process('logout');
         $GLOBALS['phpgw']->session->destroy($_SESSION['phpgw_session']['session_id'], $GLOBALS['kp3']);
         $this->setResult(true);
     }
     //to Send Response (JSON RPC format)
     return $this->getResponse();
 }
 function __construct($id)
 {
     parent::__construct($id);
 }
Exemplo n.º 5
0
 public function __construct($id)
 {
     parent::__construct($id);
     $prefs = $GLOBALS['phpgw']->preferences->read();
     $this->setMinArgumentSearch($prefs['expressoMail']['search_characters_number'] ? $prefs['expressoMail']['search_characters_number'] : "4");
 }