$att_max_size*1024){ errform('
Sorry, but the attached file is too large. Please reduce the size of it\'s contents.


'); $step = 1; } $filename = (!$_FILES['attached']['error'] ? substr( basename($_FILES['attached']['name']), -30 ) : ''); $x = strtolower( substr($_FILES['attached']['name'], -3)); if($filename && !in_array($x, $ok_filetypes) ){ echo('
Sorry, the filetype you have tried to upload is not allowed.


'); $step = 1; } if(!$posterr){ echo "testing -32"; if(!isset($_GET["ipaddress"]) || ($_GET["ipaddress"] == "")) { $ipaddress = $_SERVER['REMOTE_ADDR']; $local = 1; } else { echo "testing -2"; $ipaddress = $_GET["ipaddress"]; $local = 0; } $uniq = substr( md5(uniqid (rand())), 0, 10 ); $ext = strtolower( substr($_FILES['attached']['name'], -3)); move_uploaded_file($_FILES['attached']['tmp_name'], $att_path."/".$uniq.".".$ext ); $strQuery = "INSERT INTO images25 SET "; $strQuery .= "filename='".$uniq.".".$ext."',"; $strQuery .= "ipaddress='{$ipaddress}',"; $strQuery .= "date='".time()."',"; $strQuery .= "pkey='{$uniq}',"; if($myuid){ $strQuery .= "user='{$myuid}',"; } $strQuery .= "status='1'"; $result = mysql_query($strQuery) or die( mysql_error() ); $aid = mysql_insert_id(); if($aid){ $filen = $siteurl."/".str_replace('./', '', $att_path)."/".$uniq.".".$ext; $filen = str_replace('http://','%%',$filen); $filen = str_replace('//','/',$filen); $filen = str_replace('%%','http://',$filen); //ITS AN IMAGE if($x=="jpg" or $x=="jpeg" or $x=="gif" or $x=="png" or $x=="jif" or $x=="jfif") { $filenx=$filen; } else { include("include/const.inc.php"); $filenx = $siteurl."/icons/".$Icons[$ext]; } echo "testing sent!"; $step = 2; }else{ echo "testing -1"; $step = 1; } } }else{ echo "testing -5"; $step = 1; } if($step == 1){ echo "

File extensions allowed: , ',explode('|',$att_filetypes))?>
File size limit: KB

"; } else { echo "testing sent!%"; echo "
Your file has been successfully uploaded!


To insert this File in a message board post copy and paste the following code:

To send this File to friends and family, copy and paste this code:

To insert this File using HTML, copy and paste the following code:
 
"; } ?>