*
*/
isset($page) || $page = "home"; // default page to show
+ if (!preg_match("/^[a-zA-Z0-9_\-]+$/", $page)) {
+ $page = "home";
+ }
+
$page_directory = "pages"; // directory with pages
$page_current = "$page_directory/$page.php";
*
*/
isset($page) || $page = "home"; // default page to show
+ if (!preg_match("/^[a-zA-Z0-9_\-]+$/", $page)) {
+ $page = "home";
+ }
+
$page_directory = "pages"; // directory with pages
$page_current = "$page_directory/$page.php";
*
*/
isset($page) || $page = "home"; // default page to show
+ if (!preg_match("/^[a-zA-Z0-9_\-]+$/", $page)) {
+ $page = "home";
+ }
+
$page_directory = "pages"; // directory with pages
$page_current = "$page_directory/$page.php";