File size: 3.32Kb
<?php
include '../config.php';
Error_Reporting(E_ALL & ~E_NOTICE);
?>
<html>
<head><title>Файловый обменник</title>
<?php
require ('config.php'); # Include configuration file.
require ('common.php'); # Include common file with functions in.
?>
<!--- HTML Submission Form Section --->
<body bgcolor="#FFFFFF">
<font face="verdana" color="#ff0000" link="#00ff00" text="#FFFFFF">
<!--- Main Logo Image --->
<?php
# Do not change the logo file here, there is an option for this in the config.php file.
echo "<h1>Файловый обменник<br/>$sitename</h1>";
?>
<!--- Setup Table, To Hold Function Links --->
<left><br>
<!-- Maximum File Size Warning -->
<?php
if ($show_info == "1")
{
require 'config.php';
$fileaccept = "";
if($filetype1 != "NULL")
{
$fileaccept = $fileaccept . $filetype1;
}
if($filetype2 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype2;
}
if($filetype3 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype3;
}
if($filetype4 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype4;
}
if($filetype5 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype5;
}
if($filetype6 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype6;
}
if($filetype7 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype7;
}
if($filetype8 != "NULL")
{
$fileaccept = $fileaccept . ", " . $filetype8;
}
$upload_size = $max_file_size/1024;
print "<h8><b>Допустимые разрешения файлов:</b> $fileaccept <br/><br/><b>Максимальный размер файла:</b> $upload_size kilobytes (KB).</h8>";
}
?>
<!--- Actual Form --->
<form enctype="multipart/form-data" action"<?php print $PHP_SELF ?>" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo ($max_file_size); ?>">
<input type="file" name="fupload">
<br/><br/>
<input type="submit" value="загрузить">
<br><br><font color="#ffff00"><a href="<? print "$homepage" ?>/upload/files/">Загруженные файлы</a></font><br><br>
</form>
</body>
</html>