[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error



Using a temporary machine, I notice that when I go to 

http://www.thefreeworld.net/non-US/

using Mozilla 1.1alpha for Windows 2k SP3

I get raw PHP:

"; $ret=$ret.""; $ret=$ret.""; $ret=$ret.""; $ret=$ret.""; return $ret; }
function myfooter() { $ret = ''; $ret=''; $ret=$ret.""; return $ret; }
function mylicense($file = '') { $ret = ''; if($fd=fopen($file,"r")) {
while(!feof($fd)) { $ret=$ret.fgets($fd,4096); } } return $ret; } function
myreadfile() { $i=0; $file="file.index"; if($fd=fopen($file,"r")) {
while(!feof($fd)) {
$line=fgets($fd,4096); $aline=explode("|",$line); if($aline[0]>0) {
if(is_file('data/'.escapeshellcmd($aline[1]))) {
$ret[$i][0]=$aline[0]; $ret[$i][1]=$aline[1]; $ret[$i][2]=$aline[2]; $i++; }
} } } return $ret; } function displaylist($default) { $ret =
''; $array=myreadfile(); $ret=$ret.""; return $ret; }
$license=mylicense("license.txt"); // HW: check if the postvar exists //
The \n is needed because the license.txt contains a ending \n and the nice
browser does not send this if (isset($HTTP_POST_VARS["ititle"]) &&
isset($HTTP_POST_VARS["fileID"]) && $HTTP_POST_VARS["ititle"] ==
$HTTP_POST_VARS["fileID"] ) { // &&
$license==ereg_replace(chr(13),"",$HTTP_POST_VARS["ilicense"]."\n")) {
//checks will be done in the sendfile function
sendfile($HTTP_POST_VARS["fileID"]); exit(); } $download="I Accept the
licence, I am not a US citizen, nor resident in any US
territory"; $title="Thefreeworld's 'NO DMCA'
licence"; $titlelength=strlen($title)+1; $header=myheader($title); $footer=myfooter($title); $list=displaylist($fileID); print
$header; require ('../menu.inc.php'); print "

Dan