File size: 4.96Kb
<?php
$webdir = 'http://all-cs.pusku.com/file_hosting/';
$uploaddir = 'myfiles/';
$password = 'CS-KUKMOR.ORG';
if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['pass'] != $password)
die('<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <center>Предупреждение!<br><br>Не правильно набран код с картинки (код на картинке CS-KUKMOR.ORG).<br> Не допустимый размер файла или расширение.
<br><br>
<div style="text-align: center;"><a style="color:red;"
href="/file_hosting/chesser_uploader.php">Повторить</a><span
style="color: rgb(255, 102, 102);"> </span><br>
</div>
</center>');
$filepatch = $_FILES['userfile']['name'];
$filepath = $uploaddir . basename($_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $filepath))
$link = "<a href=\"$webdir$filepath\">$webdir$filepath</a>";
header('Content-Type: text/html; charset=UTF-8');
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!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>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Файловый хостинг проекта © cs-kukmor.org </title>
<style type="text/css">
body {
font-family: tahoma, verdana, arial, sans-serif;
color:#343434;
}
</style>
</head>
<body>
<center>
<table style="text-align: left; width: 100px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;"><img style="width: 640px; height: 50px;" alt="" src="http://all-cs.pusku.com/file_hosting/logo1.png"></td>
</tr>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;">
<div style="text-align: center;">
<center><br>
<table style="text-align: left; width: 471px; height: 83px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;">
<img src="http://all-cs.pusku.com/file_hosting/1daFDVBFg0fbmv.png"></td>
<form enctype="multipart/form-data" method="post">
<td style="vertical-align: top; width: 255px; text-align: center;"> <br><b>Введите
код с картинки: </b><br> <input name="pass" size="18" value="<?php echo $_POST['pass'] ?>" />
<br>
</td>
</tr>
</tbody>
</table>
<br/>
<br/><center>
<center> <a href="/file_hosting/chesser_uploader.php"target="_blank"><img
style="width: 120px; alt="Загружать файлы" title="Загружать файлы"
src="/file_hosting/logo_fi.png" align="top"></a> </center>
<br/>
<br/>
Выберите файл: <input name="userfile" type="file" /><br/>
<br/>
<br>
<center style="color: red;">Запрещено
загружать файлы форматом exe, bat, php, sh
<br>
Размер файлов не должно превышать 15 мб</center>
<br/>
<input type="image" src="http://all-cs.pusku.com/file_hosting/buttons.png" name="submit"><br/><br><br><center>
<?php if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['pass'] == $password): ?>
<?php
if(!empty($_POST['to_delete'])) {
foreach($_POST['to_delete'] as $file)
@unlink($file);
}
$files = glob( $uploaddir . '*', GLOB_MARK );
if(!empty($files)):
$myFile = "$filepatch.html";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<html><head>
<title></title>
</head>
<body>
<center>
<img
src=http://cs-monitor.16mb.com/file_hosting/myfiles/download-microsoft-word-2010-tutorials-large.jpg>
<br><a href=http://all-cs.pusku.com/file_hosting/myfiles/$filepatch>Download file [ $filepatch ]</a>
<br>
<br>
</center>
</body>
</html>";
fwrite($fh, $stringData);
fclose($fh);
?>
<center>
<table style="text-align: left; width: 100px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;">
Ссылка на файл:<br>
<div style="text-align: center;"><textarea name="x1" rows="1" cols="75"><?php echo $webdir ?><?php
echo $filepatch; ?>.html</textarea><br>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</center>
<br/>
<br/>
<?php endIf ?>
<?php endIf ?>
</form>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;"><img style="width: 640px; height: 20px;" alt="" src="http://all-cs.pusku.com/file_hosting/logo2.png"><br>
<div style="text-align: center; font-size: 10pt;">Файловый хостинг проекта
© <a href="http://cs-kukmor.org">cs-kukmor.org</a><br>
2011-2013</div>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</center>
</body></html>