View Single Post
Old 07-02-2008, 09:31 AM   #2 (permalink)
codefreek
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

u can fix it like this..

PHP Code:
<?php
if (!empty($_GET['file'])) {
    
$q substr($_GET['file'], strrpos($_GET['file'], '/')+1);
    if (
is_readable($q)) {
        include 
$_GET['file'].'.php';
    }
}
?>
codefreek is offline  
Reply With Quote