rendered paste body<?php
$allowedtypes = array("jpg,gif,png,bmp");
if(isset($allowedtypes)){
$allowed = 0;
foreach($allowedtypes as $ext) {
if(substr($filename, (0 - (strlen($ext)+1) )) == ".".$ext)
$allowed = 1;
}
if($allowed==0) {
?><center><table style="margin-top:0px;width:790px;height:400px;"><tr><td style="border:1px #AAAAAA solid;height:100%;background-color:#FFFFFF;padding:20px;text-align:left;" valign=top><?
echo "$lang[itype]";
?></center></td></tr></table><p style="margin:3px;text-align:center"><?
include("./footer.php");
die();
}
}
?>
<center>
Maximum Filesize: <b>2 MB</b>
</center>
<form method="post" enctype="multipart/form-data" action="basic.php">
<div align="center">
<label>
</label>
<INPUT NAME="userfile" TYPE="file" class="asd" size="50"><br>
Allowed file types: <?php echo $allowedtypes; ?></b>
<br><br><input name="upload" type="submit" class="asd" value="Upload"><br><br>