Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include './inc/header.php';?>
- #SOME HTML STUFF HERE
- <?php
- $okfiles = array('example','testing','item','something');
- if ($_GET["p"] AND @in_array( $_GET["p"] , $okfiles ) ) {
- $includeFile = $_GET["p"] .".php";
- if (@file_exists($includeFile)){
- @include($includeFile);
- } else {
- echo include("./404.php");
- }
- }
- else {
- @include("./main.php");
- }
- ?>
- <?php include './inc/footer.php';?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement