Chodzi o to aby po uploadzie nazwa obrazka została zmieniana na nazwe md5 wraz z godziną (przykład: 38fd850a9f63311404.jpg)
lub
aby po uploadzie nazwa obrazka została zmieniona na dowolny ciąg znaków nie większy niż 8 znaków (przykład: cb17caf.jpg lub da6wv.jpg)
Mój skrypt:
<style type="text/css"> /* <![CDATA[ */ a { text-decoration: none } /* ]]> */ </style> <html> <head> <title>ImageStick - Najszybszy darmowy hosting obrazków!</title> <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" /> </head> <body background="images/inxed_02.png" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <center> <table id="Tabela_01" width="1028" height="769" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="6"> <img src="images/inxed_01.png" width="1027" height="135" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="135" alt=""></td> </tr> <tr> <td> <img src="images/inxed_02.png" width="156" height="141" alt=""></td> <td colspan="2" rowspan="2"> <img src="images/inxed_03.png" width="385" height="142" alt=""></td> <td rowspan="2"> <table background="images/inxed_04.png" width="354" height="142" valign="top" > <tr> <td> <font size=2> Hostowanych grafik: <b><? include("pliki.php"); ?></b><br> Gości online:<b><? include("goscie.php"); ?></b><br> Wizyt ogółem: <b><? include("licznik.php"); ?></b><br> Przepełnienie serwera: <b>1%</b><br> </tr> </table> <td rowspan="4"> <img src="images/inxed_05.png" width="1" height="363" alt=""></td> <td> <img src="images/inxed_06.png" width="131" height="141" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="141" alt=""></td> </tr> <tr> <td rowspan="4"> <img src="images/inxed_07.png" width="156" height="223" alt=""></td> <td> <img src="images/inxed_08.png" width="131" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/inxed_09.png" width="739" height="1" alt=""></td> <td rowspan="2"> <img src="images/inxed_10.png" width="131" height="221" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> </tr> <tr> <td colspan="3"> <table background="images/inxed_11.png" width="739" height="220" valign="top" > <tr> <td> <center><br><br><h5><font color="#a4a4a4">Wybierz obrazek i naciśnij wyślij...</font></h5><br><form enctype="multipart/form-data" action="index.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="500000" /> <input name="plik" type="file" size="65" /><br><br> <input type="image" src="images/przycisk.png"/> </form><br><br><br> <?php $plik_tmp = $_FILES['plik']['tmp_name']; $plik_nazwa = $_FILES['plik']['name']; $plik_rozmiar = $_FILES['plik']['size']; echo "Obrazek: <b>$plik_nazwa</b> został przesłany!<br><br> <font size=\"2\">Link do twojego obrazka:</font><br> <table bgcolor=\"#1b1b1b\" width=\"350\"> <tr> <td><center><a href=\"http://imagestick.pl/i/$plik_nazwa\"><font color=\"WHITE\">http://imagestick.pl/i/$plik_nazwa</font></a></center></td> </tr> </table>"; } ?></center> </td> </tr> </table> <td> <img src="images/spacer.gif" width="1" height="220" alt=""></td> </tr> <tr> <td> <img src="images/inxed_12.png" width="1" height="1" alt=""></td> <td colspan="3" rowspan="2"> <table background="images/inxed_13.png" width="739" height="106" valign="top" > <tr> <td> google reklama </td> </tr> </table> <td rowspan="3"> <img src="images/inxed_14.png" width="131" height="137" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> </tr> <tr> <td colspan="2" rowspan="2"> <img src="images/inxed_15.png" width="157" height="136" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="105" alt=""></td> </tr> <tr> <td colspan="3"> <table background="images/inxed_16.png" width="739" height="31" valign="top" > <tr> <td> <center> <div id="copyright"> <center><a href="http://GamesBoard.pl"><font color="BLACK" size=2>GamesBoard.pl</font></a></center> </div> </center> </td> </tr> </table> <td> <img src="images/spacer.gif" width="1" height="31" alt=""></td> </tr> <tr> <td colspan="6"> <img src="images/inxed_17.png" width="1027" height="133" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="133" alt=""></td> </tr> <tr> <td> <img src="images/spacer.gif" width="156" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="384" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="354" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="1" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="131" height="1" alt=""></td> <td></td> </tr> </table> <center> </body> </html>