Kód: Vybrať všetko
http://www.upload.allmobile.name/Kód: Vybrať všetko
http://www.upload.allmobile.name/<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta http-equiv="Content-Language" content="sk">
<META NAME="Description" CONTENT="Upload page.">
<TITLE>Upload page</TITLE>
<style type="text/css">
a {color:white;}
a:hover{color:white;}
</style>
</HEAD>
<body >
<br>
<center>
<div style="background:#ff7800;width:600px;height:30px;line-height:30px;color:white;" >
<form action="index.php" method="post" enctype="multipart/form-data">
<b>Cesta k súboru: </b>
<input type="file" name="subor" style="border:1px solid black;">
<input type="submit" value="Upload" style="border:1px solid black;">
</form>
</div>
<br>
<div style="width:600px;" >
<table align="left" style="background:#ff7800;width:600px;color:white;" rules='groups' >
<tr style="color:white;">
<th>Názov súboru</th>
<th>Veľkosť súboru</th>
<th>Čas poslednej zmeny</th>
</tr>
<?php
if (is_uploaded_file($_FILES['subor'] ['tmp_name'])){
move_uploaded_file($_FILES['subor'] ['tmp_name'],"./upload/{$_FILES['subor'] ['name']}");
echo "<blink><font style=\"color:red;\"><b>Vas subor bol uspesne odoslany na Server!</b></font></blink>"; }
$handle=opendir('upload');
while (false!==($file = readdir($handle))) {
if (($file != ".") && ($file != "..") && ($file != "/")){
echo "<tr style=\"border-top:1px solid white;\">";
echo "<td><a href=\"./upload/$file\" style=\"margin-left:20px;\">".$file."</a></td>";
echo "<td align=\"center\" >".filesize("upload/$file")." B</td>";
echo "<td align=\"center\" >".date("D M j G:i:s Y",filemtime("upload/$file"))."</td>";
echo "</tr>\n";
}
}
closedir($handle);
?>
</div>
</body>
</HTML>