<?php
/////////////////////////////////////////////////////////////////////////////////////////////////
// //
// BsLmoBi Uploader //
//
// Author : Sajol //
// You you can redistribute it and/or modify this script but please always put author's name //
// //
/////////////////////////////////////////////////////////////////////////////////////////////////
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html"/>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<title>Upload And Share Ur Files Absolutely FREE!</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
';
if ($upload="upload"&&$superdat_name){
if (!eregi("\.(mid|gif|bmp|mid|midi|3gp|mp3|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr|thm|png|wbmp|php)$",$superdat_name)){
print "<b>Unsupported File Extention!</b>";
}else{
$superdat_name = preg_replace(
'/[^a-zA-Z0-9\.\$\%\'\`\-\@\{\}\~\!\#\(\)\&\_\^]/'
,'',str_replace(array(' ','%20'),array('_','_'),$superdat_name));
if(strlen($superdat_name)>53){ print "<b>File Name Is Too Long!</b>";
}else{
if (empty($superdat)) {
print "<b>No input file specified!!!</b>";
}else{
copy("$superdat", "BsLmoBi_files/$superdat_name") or
die("Couldn't copy file.");
$date=(date("D, j F Y"));
$fsize=round($superdat_size/1024,1);
$text = "&&$superdat_name&&$fsize KB&&$date&&$REMOTE_ADDR&&";
$text=strip_tags($text);
$text = ereg_replace("\n", " ", $text);
$text = ereg_replace("\r", "", $text);
$text = ereg_replace("~", "-", $text);
$text = str_replace('$', '$$', $text);
$xfile = @file("BsLmoBi_Uploads");
$xfile = array_reverse($xfile);
$check = explode("&&",$xfile[0]);
if("$text"!="$check[1]"){
$fp=@fopen("BsLmoBi_Uploads","a");
@fputs($fp,"$text \r\n");
@fclose($fp);
}
echo "<b>$superdat_name</b> has successfully been uploaded to our uploader";
}
}
}
}
?>
<FORM ACTION="upload.php" METHOD="POST" ENCTYPE="multipart/form-data">
<div class="menu" style="text-align: center;">Upload Ur Files</div>
<b>Select File To Be Uploaded :</b><br/>
<input type="file" name="superdat">
<input type="hidden" name="upload" value="upload"/>
<INPUT TYPE=SUBMIT NAME="submit" VALUE="Upload File!"><br/><br/></small><br/> <b><u>You can only upload files with folowing extentions:</u></b><br/>
.jpg, .jpeg, .gif, .png, .bmp, wbmp, .mid, .midi, .mpn, .mpc, .mpg, .mmf, .amr, .mp3, .wav, .wmv , .avi, .3gp, .sis, .thm, .nth, .jar, .jad, .zip, .rar, .txt<br/>
<br/>
<div class="p"><a href="index.php">Uploaded Files</a></div>
<p class="footer"><a href="/index.php">Back to Home</a>
</p>
</FORM>
</body>
</html>