diff options
Diffstat (limited to '403.php')
-rw-r--r-- | 403.php | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -2,19 +2,9 @@ #=============================================================================== # INCLUDE: Initialization #=============================================================================== -require_once 'core/application.php'; +require 'core/application.php'; #=============================================================================== -# Send HTTP status code +# Show "403 Forbidden" error page #=============================================================================== -http_response_code(403); - -#=============================================================================== -# Build document -#=============================================================================== -$MainTemplate = Template\Factory::build('main'); -$MainTemplate->set('NAME', '403 Forbidden'); -$MainTemplate->set('HEAD', ['NAME' => $MainTemplate->get('NAME')]); -$MainTemplate->set('HTML', Template\Factory::build('403')); - -echo $MainTemplate; +Application::error403(); |