Advertisement
Guest User

upload.php

a guest
Jul 7th, 2012
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.96 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <html>
  4. <head>
  5. <title>SnowServer - Uploader</title>
  6. <meta name="Description" content="DESC HERE" />
  7. <meta name="Keywords" content="KEYW0RDS HERE" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  9. <link rel="stylesheet" href="http://www.codyleek.x90x.net/main.css" type="text/css" />
  10. <?php
  11. session_start(); /// initialize session
  12. include("passwords.php");
  13. check_logged(); /// function checks if visitor is logged.  
  14. ?>
  15. </head>
  16. <body background="http://i457.photobucket.com/albums/qq291/acebarachael/Wood-Background.jpg">
  17. <div id="wrapper"><img src="http://www.uzumakinet.x90x.net/images/banner1.jpg"></img>
  18. <div id="header">
  19. <div id="navbar">
  20. <ul>
  21. <li><a href="/index.html">Home</a></li>
  22. <li><a href="/files.html">File Explorer</a></li>
  23. <li><a href="webmail/index.html">Webmail</a></li>
  24. <li><a href="/#">Uploader</a></li>
  25. <font color="FFFFFF"><marquee>Welcome to SnowServer!</marquee></font>
  26. </ul>
  27. </div>
  28.  
  29. </div>
  30. </div>
  31. <div id="main">
  32. <center><h2>Uploading..</h2></center><br />
  33. <center>
  34. <?php
  35. $folder = "files/";
  36. $HTTP_POST_FILES = "";
  37. if(isset($_FILES['filename']['tmp_name'])) // Check if $_FILES['filename']['tmp_name'] is there
  38. {
  39.     if (is_uploaded_file($_FILES['filename']['tmp_name']))  {  
  40.         if (move_uploaded_file($_FILES['filename']['tmp_name'], $folder.$_FILES['filename']['name'])) {
  41.             Echo "Your file has been uploaded! You should probably tell Cody what you uploaded so he can get it in the right place. :)";
  42.         } else {
  43.             Echo "Haha! You don't have access to do that.";
  44.     }
  45.     } else {
  46.         Echo "Your upload has failed.";
  47.     }
  48. }
  49. ?>
  50. </center>
  51. </div>
  52. <div id="footer"><font color="FFFFFF">Coded and Designed by Cody Kaczynski | zenLayout by Cody Kaczynski | zenLayout: SnowServer Edition by Cody Kaczynski</font></div>
  53. </div>
  54. </font>
  55. </body>
  56. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement