diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-09 04:50:17 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-09 04:50:17 +0300 |
| commit | a584bf73b6d64dad98f150caba0f25e790cde010 (patch) | |
| tree | 76c47f080248ebc97f6ae14fdaa364c2f1750b8d /html/app/views/error/general.php | |
| parent | 45d853b343b485bff7e6089e2689dba5f7d901cf (diff) | |
| download | classroom-a584bf73b6d64dad98f150caba0f25e790cde010.tar.gz classroom-a584bf73b6d64dad98f150caba0f25e790cde010.tar.bz2 classroom-a584bf73b6d64dad98f150caba0f25e790cde010.zip | |
user registration and login scenarios
Diffstat (limited to 'html/app/views/error/general.php')
| -rw-r--r-- | html/app/views/error/general.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/html/app/views/error/general.php b/html/app/views/error/general.php index 84cc4d9..257e68d 100644 --- a/html/app/views/error/general.php +++ b/html/app/views/error/general.php @@ -1,8 +1,20 @@ -<!DOCTYPE html> +<?php +/** general message template + * + * passed: + * @var $title (string): page title + * @var $message (string): message + */ +?><!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> - <title>404: Not Found</title> + <title> + <?= isset($title) + ? (SITE_TITLE .": ". $title) + : PAGE_404_TITLE + ?> + </title> <style> html,body{ @@ -32,7 +44,7 @@ <body> <div class='container'> <div class='content'> - <h3>Error</h3> + <h3><?= isset($title) ? $title : PAGE_404_TITLE ?></h3> Oops!<br /> — <br /> |
