Move verify into community page handler

This commit is contained in:
Sky Johnson 2024-06-29 12:33:03 -05:00
parent d011816617
commit ed038beb4e
2 changed files with 5 additions and 17 deletions

View File

@ -8,6 +8,11 @@ echo render('header');
$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home';
if ($page == 'verify' && (empty($_GET['code']) || empty($_GET['username']))) {
header('Location: /');
exit;
}
echo render("community/$page");
echo render('footer');

View File

@ -1,17 +0,0 @@
<?php
define('SAFE', true);
$LockedPages = array();
if(!empty($_GET['code']) && !empty($_GET['username'])) {
include("Pieces/header.htm");
include("Pieces/Community/verify.htm");
include("Pieces/footer.htm");
} else {
header('Location: http://localhost:8888/index.php');
}
?>