Chcem tento skript zabezpecit tak aby sa uploadovat dali iba .rar a .zip subory, vsetky ostatne budu zakazane, prosim poradte
<font color="#FFFFFF">
<?php
require('header.html');
if($_REQUEST["odoslane"]==1){
if(move_uploaded_file($_FILES['file']['tmp_name'],$_FILES['file']['name']))
echo("<center>File <b>".$_FILES['file']['name']."</b> has been uploaded.</center>");
}
else{
?>
</font>
<form method="POST" ENCTYPE="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"] ?>">
<table border="1" align="center" valign="center">
<tr>
<td><font color="#FFFFFF">RAR or ZIP file</font></td>
<td><input type="file" name="file"></td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="odoslane" value="1">
<p align="center"><input type="submit" value="Send">
</td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>