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