function showerror($caption = 'Error', $errormessage = '', $backurl = '', $viewname = 'defaulterror', $type = 'error') { $showerrorhandler = geteasyhandler('showerrorhandler'); $showerrorhandler->showerror($caption, $errormessage, $backurl, $viewname, $type); }
function __construct() { includeeasylibrary('easyinireaderwriter'); includeeasyhelper('showerror'); includeeasyhelper('utils'); adddependency($this->getlibraryname(), $this->getversion(), COMPONENT_LIBRARY, 'easyinireaderwriter', '1.0.0.5', COMPONENT_LIBRARY); adddependency($this->getlibraryname(), $this->getversion(), COMPONENT_LIBRARY, 'showerror', '1.0.0.0', COMPONENT_HELPER); adddependency($this->getlibraryname(), $this->getversion(), COMPONENT_LIBRARY, 'utils', '1.0.0.2', COMPONENT_HELPER); $this->mode = getinivalue('config', 'config.ini', 'system', 'session_mode', 'generic'); switch (strtoupper($this->mode)) { case 'GENERIC': $this->handler = geteasyhandler('easygenericsession'); break; case 'FILE': showerror($caption = 'Information', $errormessage = 'File based session handler is not implemented!', '', 'defaulterror', 'info'); break; case 'DATABASE': showerror($caption = 'Information', $errormessage = 'Database based session handler is not implemented!', '', 'defaulterror', 'info'); break; } $this->handleerror($this->create()); }