diff --git a/public/community/index.php b/public/community/index.php index 93b5c5c..580042a 100755 --- a/public/community/index.php +++ b/public/community/index.php @@ -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'); diff --git a/public/community/verify.php b/public/community/verify.php deleted file mode 100755 index 508d492..0000000 --- a/public/community/verify.php +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file