Location: PHPKode > projects > Download Manager > uploader.php
<?php
include('config.php');
print "<title>".$title."</title>";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"bswstyle.css\">";
include('header.php');
print "<table align=\"center\"><th class=\"bar\" align=\"center\"><a href=\"index.php\">Return to Main Page</a></th>"."</table>";
$ip = getenv("REMOTE_ADDR");
if($_COOKIE["user"]){

print "<script language=\"JavaScript\" type=\"text/javascript\" src=\"wysiwyg.js\"></script>";

print "<table align=\"center\">";
print "<tr><td width=\"600\" align=\"center\">";

print "<form method=\"POST\" action=\"doupload.php\"enctype=\"multipart/form-data\" style=\"width: 227px\">";
print "<table align=\"center\" style=\"width: 600px\"><tr><td align=\"right\"width=\"20%\" class=\"topic\"><b>Upload File:</b></td>";

print "<td><input type=\"file\" name=\"file\"></td></tr>";
print "<tr><td><input type=\"hidden\" name=\"ip\" value=\"$ip\"></td></tr>";
print "<tr><td><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"51200\"></td></tr></table>";

print "<table align=\"center\"width=\"600\"><td align=\"right\"width=\"20%\" class=\"topic\"><b>Name:</b></td>"."<td><input type=\"text\" name=\"fname\"></td><th width=\"50%\">The name that you would like to apear in the main page</th></table>";
print"<table align=\"center\" width=\"600\">";
print "<td align=\"right\"width=\"20%\" class=\"topic\">Category:</td>"."<td><select name=\"cat\"><option value=\"\">Select Category</option><option value=\"PHP Scripts\">PHP Scripts</option>";
print "<option value=\"java Scripts\">Java Scripts</option>";
print "<option value=\"CFML Scripts\">CFML Scripts</option>";

print "<option value=\"AJAX\">AJAX</option>";
print "<option value=\"Templates\">Templates</option>";
print "<option value=\"Database Management\">Database Management</option>";
print "<option value=\"Tools and Utilities\">Tools and utilities</option>";
print "<option value=\"Antivirus\">Antivirus</option>";
print "<option value=\"Desktop Management\">Desktop Management</option>";
print "<option value=\"Images\">Desktop Images</option>";
print "</select></td></table>";
print "<table align=\"center\"width=\"600\"><td class=\"topic\" width=\"20%\">Description:</td><td>";
print "<td><textarea name=\"description\" id=\"descrip\"></textarea>";
print "<script language=\"JavaScript\">generate_wysiwyg('descrip');</script></td></table>";
print "<table align=\"center\" width=\"600\"><td width=\"600\" align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Submit\">";
print "<input name=\"Reset1\" type=\"reset\" value=\"Reset\" style=\"width: 56px\"></td></table>";

print "</form>";
}
else
{header("location:login.php");}

print "</table>";



include('footer.php');?>
Return current item: Download Manager