Move verify into community page handler
This commit is contained in:
parent
d011816617
commit
ed038beb4e
|
@ -8,6 +8,11 @@ echo render('header');
|
||||||
|
|
||||||
$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home';
|
$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("community/$page");
|
||||||
|
|
||||||
echo render('footer');
|
echo render('footer');
|
||||||
|
|
|
@ -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');
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user