diff --git a/2019/include/functions.php b/2019/include/functions.php index e0739e4..dc11a83 100644 --- a/2019/include/functions.php +++ b/2019/include/functions.php @@ -1,40 +1,45 @@ . /** * Require a certain page from the template directory * * @param $name string page name (to be sanitized) * @param $args mixed arguments to be passed to the page scope */ function template( $template_name, $template_args = [] ) { extract( $template_args, EXTR_SKIP ); return require CURRENT_CONFERENCE_ABSPATH . "/template/$template_name.php"; } /** * Return a Materialize icon tag * * @param string $icon Icon name * @param string $c Additional class name */ function icon( $icon = 'send', $c = null ) { if( $c !== null ) { $icon = "$icon $c"; } return ""; } + +function die_with_404() { + http_response_code( 404 ); + die( "Nott foond! A.k.a. erroro quattrociantoquatto (N.B. eseguire coi permessi di root non risolve la situazione!)" ); +}