14 lines
302 B
PHP
14 lines
302 B
PHP
|
<?php
|
||
|
|
||
|
// The page we wish to display
|
||
|
$file = $_GET[ 'page' ];
|
||
|
|
||
|
// Only allow include.php or file{1..3}.php
|
||
|
if( $file != "include.php" && $file != "file1.php" && $file != "file2.php" && $file != "file3.php" ) {
|
||
|
// This isn't the page we want!
|
||
|
echo "ERROR: File not found!";
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
?>
|