Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>image sharer</title>
  4. <style>
  5. footer {
  6. font-family: sans-serif;
  7. position:absolute;
  8. bottom:0;
  9. width:100%;
  10. }
  11. ul {
  12. list-style-type: none;
  13. margin: 0;
  14. padding: 0;
  15. }
  16.  
  17. li {
  18. display: inline;
  19. }
  20. </style>
  21. </head>
  22.  
  23. <body>
  24. <ul>
  25. <li><b><a href="/gallary/gallary.html">gallary</a></b></li>
  26. <li><b><a href="http://ogarserv2.byethost7.com/count.php">statics</a></b></li>
  27.  
  28. </ul>
  29.  
  30. <h1></h1>
  31. <img src="http://ogarserv2.byethost7.com/uploads/logo3.png"/>
  32. <form action="upload.php" method="post" enctype="multipart/form-data">
  33. browse :<input type="file" name="image"><br/><br/>
  34. <input type="submit" name="upload" value="continue">
  35. </form>
  36.  
  37. <link href="/69/ohno.css" rel="stylesheet" type="text/css" />
  38.  
  39. <?php
  40. if(isset($_POST['upload'])){
  41. $image_name = $_FILES['image']['name'];
  42. $image_type = $_FILES['image']['type'];
  43. $image_size = $_FILES['image']['size'];
  44. $image_tmp_name= $_FILES['image']['tmp_name'];
  45. @$desc = $_POST['desc'];
  46. move_uploaded_file($image_tmp_name,"uploads/$image_name");
  47. echo "<img src='uploads/$image_name' width='300' height='300'><br>";
  48. echo "your image:";
  49. }
  50. ?>
  51.  
  52. </style>
  53. <footer>
  54. <a href="terms.html" class="bottomLinks">terms of service </a> - <a href="help.html" class="bottomLinks">help</a> - <a href="faq.html" class="bottomLinks">faq</a>
  55. </div>
  56. </footer>
  57.  
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement