diff --git a/core/include/route.php b/core/include/route.php index fb48eff..4407ce9 100644 --- a/core/include/route.php +++ b/core/include/route.php @@ -20,6 +20,11 @@ header('location:' . _BASE_PATH); exit(); } + } else { + if(!in_array($id,['register','login','reset'])){ + header('location:' . _BASE_PATH . 'admin/login'); + exit(); + } } });