14 lines
		
	
	
		
			236 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			236 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
// The page we wish to display
 | 
						|
$file = $_GET[ 'page' ];
 | 
						|
 | 
						|
// Input validation
 | 
						|
if( !fnmatch( "file*", $file ) && $file != "include.php" ) {
 | 
						|
	// This isn't the page we want!
 | 
						|
	echo "ERROR: File not found!";
 | 
						|
	exit;
 | 
						|
}
 | 
						|
 | 
						|
?>
 |