rendered paste body<?php include_once('config.php');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>sparkload</title><link href="iframe.css" rel="stylesheet" type="text/css" /></head><body><div id="right"> <?php $error = 'Incorrect file size or extension';$mimetypes = array('audio/flac','image/tif','image/x-tif','image/tiff','image/x-tiff','application/tif','application/x-tif','application/tiff','application/x-tiff','image/jpeg','image/pjpeg','image/gif','video/avi','video/msvideo','image/bmp','image/png','application/x-rar-compressed','image/x-png','image/photoshop','image/x-photoshop','image/psd','application/photoshop','audio/mpeg','application/x-compressed','application/x-rar','audio/x-mpeg','audio/mp3','audio/x-mp3','application/rar','compressed/rar','audio/mpeg3','application/x-ace-compressed','audio/x-mpeg3',application/x-rar-compressed';'application/x-rar','audio/mpg','audio/x-mpg','audio/x-mpegaudio','application/psd','zz-application/zz-winassoc-psd','application/x-compressed','application/x-shockwave-flash','application/zip','audio/mpeg3');if(in_array($_FILES['userfile']['type'],$mimetypes) && $_FILES['userfile']['size'] <= '26214400'){ $filename = substr($_FILES['userfile']['type'], 0, strrpos($_FILES['userfile'], '.'));$filename .= $mimetypes[$_FILES['type']]; $filename = str_replace(' ', '_', $_FILES['userfile']['name']); $filename = substr(sha1(rand(1000000, 9999999)), 0, 5) . '-'.$filename; move_uploaded_file($_FILES['userfile']['tmp_name'], 'uploads/'.$filename); $_SESSION['SL'] = $filename.';' . $_SESSION['SL']; ?> Thank for using SparkLoad, below you can find the details of your upload. <p /> <a href="main.php" target="_self"><b>Upload Again</b></a></div><div id="right-base"> <div style="padding-bottom:3px;">Website: <input onclick="this.select()" name="link1" type="text" size="40" value=' <a href="<?php echo URI ?>"><img border="0" src="<?php echo URI . 'uploads/' . $filename ?>" alt="SparkLoad Image" /></a>'> </div> <div style="padding-bottom:3px;">Forums 1: <input onclick="this.select()" name="link2" type="text" size="40" value="[URL=<?php echo URI ?>][IMG]<?php echo URI . 'uploads/' . $filename ?>[/IMG][/URL]" /> </div> <div style="padding-bottom:3px;">Forums 2: <input onclick="this.select()" name="link3" type="text" size="40" value="[url=<?php echo URI ?>][img=<?php echo URI . 'uploads/' . $filename ?>][/url]" /> </div> <div style="padding-bottom:3px;">Direct Link: <input onclick="this.select()" name="link3" type="text" size="40" value="<?php echo URI . 'uploads/' . $filename ?>> </div></div><?php } else { echo '<div id="error">'.$error.'</div>'; }?>