Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <html>
- <head>
- <title>SnowServer - Uploader</title>
- <meta name="Description" content="DESC HERE" />
- <meta name="Keywords" content="KEYW0RDS HERE" />
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <link rel="stylesheet" href="http://www.codyleek.x90x.net/main.css" type="text/css" />
- <?php
- session_start(); /// initialize session
- include("passwords.php");
- check_logged(); /// function checks if visitor is logged.
- ?>
- </head>
- <body background="http://i457.photobucket.com/albums/qq291/acebarachael/Wood-Background.jpg">
- <div id="wrapper"><img src="http://www.uzumakinet.x90x.net/images/banner1.jpg"></img>
- <div id="header">
- <div id="navbar">
- <ul>
- <li><a href="/index.html">Home</a></li>
- <li><a href="/files.html">File Explorer</a></li>
- <li><a href="webmail/index.html">Webmail</a></li>
- <li><a href="/#">Uploader</a></li>
- <font color="FFFFFF"><marquee>Welcome to SnowServer!</marquee></font>
- </ul>
- </div>
- </div>
- </div>
- <div id="main">
- <center><h2>Uploading..</h2></center><br />
- <center>
- <?php
- $folder = "files/";
- $HTTP_POST_FILES = "";
- if(isset($_FILES['filename']['tmp_name'])) // Check if $_FILES['filename']['tmp_name'] is there
- {
- if (is_uploaded_file($_FILES['filename']['tmp_name'])) {
- if (move_uploaded_file($_FILES['filename']['tmp_name'], $folder.$_FILES['filename']['name'])) {
- Echo "Your file has been uploaded! You should probably tell Cody what you uploaded so he can get it in the right place. :)";
- } else {
- Echo "Haha! You don't have access to do that.";
- }
- } else {
- Echo "Your upload has failed.";
- }
- }
- ?>
- </center>
- </div>
- <div id="footer"><font color="FFFFFF">Coded and Designed by Cody Kaczynski | zenLayout by Cody Kaczynski | zenLayout: SnowServer Edition by Cody Kaczynski</font></div>
- </div>
- </font>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement