Размер файла: 2.24Kb
<?PHP
########################################################
#This script is written by Daynah at http://daynah.net #
#and Dodo at http://regretless.com. Please credit us if#
#you decide to use it! Thanks! #
# #
#Description: This is the uploadfile.php for uploading #
#either your avatars or emoticons for ikonboard. Please#
#read the readme files before you use it! #
########################################################
// Include the settings
include('settings.inc');
// Start the page
print "
<html>
<head>
<title>$ikonboardname";
if ($kind == 1)
{
print " Avatars";
}
else
{
print " Emoticons";
}
print "</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfile\">
</style>
<style type=\"text/css\">
TR, TD, BODY {font-family:$font; font-size:10pt}
</style>
</head>
<body bgcolor=$backgroundcolor text=$textcolor link=$linkcolor
vlink=$vlinkcolor alink=$alinkcolor>";
print "<h4>$ikonboardname";
if ($kind == 1)
{
print " Avatars";
}
else
{
print " Emoticons";
}
print " Upload</h4></center>";
if (is_uploaded_file($userfile))
{
// path
copy($userfile, "$userpath/$userfile_name")
or die("<BR><B>Couldn't copy the file! Cannot Overwrite exisitng files!</B><BR>
Please rename the file to something different.");
//move_uploaded_file($userfile, "$userpath");
echo "<H3>File added succesfully!</H3>
//<a href=\"index.php\">See your document!</a>";
}
else
{
echo"<table cellspacing=5><tr><td>
<H3>Add documentation</H3>
<FORM CONTENT_TYPE=\"jpg, jpeg, gif\" ENCTYPE=\"multipart/form-data\" ACTION=\"$PHP_SELF\" METHOD=POST>
<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"$filesizebytes\">
<B>Upload this file:</B> (Under $filesizebytes Bytes)<BR>
<INPUT NAME=\"userfile\" TYPE=\"file\"><BR>
<INPUT TYPE=\"submit\" VALUE=\"Send File\"></FORM>
</td></tr></table>";
print "<b>Back to <a href=\"$ikonboardurl\">$ikonboardname</a></b>";
print " | <b>Or <a href=\"index.php\">View All</a></b>";
}
?>
</body>
</html>