diff --git a/app/templates/community/footer.htm b/app/templates/community/footer.htm deleted file mode 100755 index 5c1ff7b..0000000 --- a/app/templates/community/footer.htm +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git a/app/templates/community/header.htm b/app/templates/community/header.htm deleted file mode 100755 index 38f9e6a..0000000 --- a/app/templates/community/header.htm +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - The Community | Mad Splash! - - - - - - - - - - - - - - - - - - - -
- - - -
diff --git a/app/templates/community/login.htm b/app/templates/community/login.php similarity index 100% rename from app/templates/community/login.htm rename to app/templates/community/login.php diff --git a/app/templates/community/register.htm b/app/templates/community/register.php similarity index 100% rename from app/templates/community/register.htm rename to app/templates/community/register.php diff --git a/app/templates/community/verify.htm b/app/templates/community/verify.php similarity index 100% rename from app/templates/community/verify.htm rename to app/templates/community/verify.php diff --git a/public/community/index.php b/public/community/index.php index 38cd004..93b5c5c 100755 --- a/public/community/index.php +++ b/public/community/index.php @@ -1,25 +1,13 @@ \ No newline at end of file + +require '../app/bootstrap.php'; + +const PAGES = ['login', 'verify', 'register']; + +echo render('header'); + +$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home'; + +echo render("community/$page"); + +echo render('footer');