array( 'currentapp' => 'login', 'noheader' => True, 'disable_Template_class' => True ) ); include_once(__DIR__.'/../../header.inc.php'); $this->expressoVersion = substr($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],0,3); $this->setCannotModifyHeader(false); } protected function setRequest($request){ $this->request = $request; } public function getRequest(){ return $this->request; } protected function getExpressoVersion(){ return $this->expressoVersion; } protected function setResult($result){ $this->result = $result; } public function getResult(){ return $this->result; } protected function setId($id){ $this->id = $id; } public function getId(){ return $this->id; } protected function setParams($params){ $this->params = $params; } public function getParams(){ return $this->params; } public function getParam($param){ return mb_convert_encoding($this->params->$param, "ISO_8859-1", "UTF8"); } public function setError($error) { $this-> error = $error; } protected function getError() { return $this-> error; } protected function setCannotModifyHeader($boolean){ $this-> cannotModifyHeader = $boolean; } protected function getCannotModifyHeader(){ return $this-> cannotModifyHeader; } public function post($request){ if(!$request->data) $request->data = $_POST; $this->setRequest($request); if(!is_array($request->data)) parse_str(urldecode($request->data), $request->data); $data = (object)$request->data; if($data){ if($data->params){ $this->setParams(json_decode($data->params)); } if($data->id) $this->setId($data->id); } } public function get($request){ $response = new Response($request); $response->code = Response::OK; $response->addHeader('content-type', 'text/html'); $response->body = "