
Prosze o pomoc.
wizytowka.php
<? include '../gora.php'; ?> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <script language="JavaScript" type="text/javascript" src="wyzz.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2"> <title>Upload pliku</title> </head> <body> <h5> </h5> <form enctype="multipart/form-data" method="POST" action="wyslij.php"> <p align="center"> <textarea name="textfield" id="textfield" rows="10" cols="40"></textarea><br /> <script language="javascript1.2"> make_wyzz('textfield'); </script><br><br> </p> <input type="hidden" name="MAX_FILE_SIZE" value="150000"> <p align="center"><input name="logo" type="file" size="60"> <br><br><br> <input type="submit" value="Zapisz" name="wyzz"></p> </form> </body> </html> <? include '../dol.php'; ?>
wyslij.php
<?php include '../gora.php'; $plik = $_FILES['logo']['name']; if ($_FILES['logo']['error'] > 0) { switch ($_FILES['logo']['error']) { } exit; } // czy plik ma prawidłowy typ MIME? if ($_FILES['logo']['type'] != 'image/jpeg') { exit; } // umieszczenie pliku w pożądanej lokalizacji $lokalizacja = '/home/.../images/'.$_FILES['logo']['name']; { { exit; } } else { exit; } include '../config.php'; if ($plik != ""); $query = "UPDATE `USERS` SET `IMG` = '$plik' WHERE `NAME` = '$user'"; if(!$result) { } else { } $tekst = $POST['tekstfield']; if ($tekst != ""); $query = "UPDATE `USERS` SET `TXT` = '$tekst' WHERE `NAME` = '$user'"; if(!$result) { } else { } include '../dol.php'; ?>
gora.php
<?php ?> <html> <head> <meta http-equiv="Content-Language" content="pl"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title>Katalog firm</title> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="752" id="AutoNumber1"> <tr> <td> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#808080" width="750" id="AutoNumber2"> <tr> <td width="750" colspan="2" height="120"> <img border="0" src="img/baner.jpg" width="750" height="120"></td> </tr> <tr> <!--poczatek gory--> <td width="200" valign="top"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="96%"> <tr> <td width="100%"> </td> </tr> <tr> <td width="100%"><? { include 'menu2.php'; } else{ include 'menu1.php'; }?></td> </tr> <tr> <td width="100%"> </td> </tr> <tr> <td width="100%">szukaczka</td> </tr> <tr> <td width="100%"> </td> </tr> <tr> <td width="100%"><? include 'kategorie.php'; ?></td> </tr> </table> </center> </div> </td> <td width="550" height="600"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber3"> <tr> <td width="100%"> <!--prawa strona-->
dol.php
<?php </td> </tr> </table> </center> </div> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> <p> </td> </tr> </table> </center> </div> </td> </tr> </table> </center> </div> </body> </html> ?>