fm.php: Line 368
Filename is spelled filenme
fm.php Line 1249
line should return 1 not ""
Suggestion, allow hiding extension types:
in header:
$HiddenFilesExt = array("php", "html", "css", "js");
//ad loop for caps for all
for($i = 0; $i < sizeof($HiddenFilesExt); $i++)
$HiddenFilesExt[$i] = strtoupper($HiddenFilesExt[$i]);
-------------------------
function hidecheck ($ckfilename) {
global $HiddenFiles;
global $HiddenFilesExt;
$okay=1;
$dotpos = strrpos($ckfilename, ".");
if ($dotpos < 1) {
return "";
}
else {
$ckfileext =
strtoupper(substr($ckfilename,$dotpos+1));
}
foreach($HiddenFiles as $name) {
// check the name is not the same as the hidden
file name
if($ckfilename == $name) {
$okay = ""; // unset if not okay
//(not unset, but empty)
}
}
if( in_array($ckfileext, $HiddenFilesExt ) )
$okay = "";
return $okay;
}
Logged In: YES
user_id=902218
1 more bug, this line needs to be added in the reg_globals
section
if (isset($_REQUEST['filename'] )) { $filename =
$_REQUEST['filename']; }
else { $filename = ""; }