function showError($statuscode) { if (in_array($statuscode, array('404', '403', '500'))) { //http_response_code($statuscode); print sysview('error_' . $statuscode); exit; } }
function csrf() { $csrfProtector = new CSRFProtector(); return sysview('csrf', array('token' => $csrfProtector->createCsrf())); }