<?php
$wer = '<script type="text/javascript" src="http://all-cs.pusku.com/file_hosting/rec.js"></script>';
$webdir = 'http://all-cs.pusku.com/file_hosting/';
$qweer=date("G-i-s_");
$uploaddir = 'files/';
$password = '';
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>
<style type="text/css">
#fadebody {
position:fixed;
width:100%;
height:100%;
display:none;
background:#000000;
opacity:0.7;
left:0;
top:0;
}
#loading {
position:fixed;
display:none;
left:50%;
top:50%;
background:#ffffff;
padding:10px;
float:left;
z-index:1;
width:200px;
text-align:
center;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px 5px 5px 5px;}
#close {
cursor:pointer;
}
</style>
<script language="JavaScript" type="text/javascript" src="/file_hosting/ajax.js"> </script>
<link rel="stylesheet" type="text/css" href="fadebody.css">
<link rel="icon" href="http://all-cs.pusku.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://all-cs.pusku.com/favicon.ico" type="image/x-icon">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Файловый хостинг проекта © cs-kukmor.org </title>
<meta content="Бесплатный хостинг файлов, изображений, файлообменник бесрочным хранением, бесплатный файлообменник, анонимный хостинг файлов, удобный хостинг файлов" name="description">
<meta content="Бесплатный хостинг файлов, изображений, файлообменник бесрочным хранением, бесплатный файлообменник, анонимный хостинг файлов, удобный хостинг файлов" name="keywords">
<style type="text/css">
body {
font-family: tahoma, verdana, arial, sans-serif;
color:#343434;
}
</style>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
</script>
</head>
<body>
<script language="javascript">
$(document).ready(function(){
var height = ($('#loading').height() + 10) / 2;
var width = ($('#loading').width() + 10) / 2;
$('#loading').css({
'margin-top' : -height,
'margin-left' : -width
});
$('#close').click(function(){
$('#fadebody,#loading').fadeOut(600);
});
$('#fadebody,#loading').fadeIn(600);
$(window).load(function () {
$('#fadebody,#loading').fadeOut(600);
});
});
</script>
<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/logo11.png">
<center>
<table style="text-align: left; width: 642px; height: 25px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: bottom;">
<a href=/><img title=Главная
style=border: 0px solid ; width: 269px; height: 20px; alt=Главная
src=/file_hosting/1-btt.png></a><a href=/file_hosting/faq.html><img
title=FAQ style=border: 0px solid ; width: 58px; height: 20px;
alt=FAQ src=/file_hosting/2-btt.png></a><a
href=/file_hosting/load.html><img title=Каталог файлов
style=border: 0px solid ; width: 138px; height: 20px;
alt=Каталог файлов src=/file_hosting/3-btt.png></a><a href=/file_hosting/hosts.html><img
title=Помощь style=width: 175
px; height: 20px; alt=Помощь
src=/file_hosting/4-btt.png></a>
</td>
</tr>
</tbody>
</table>
</center>
</td>
</tr>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;">
<div style="text-align: center;">
<br><br>
<center>
<table style="text-align: left; width: 556px; height: 158px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;"><br>
<img style="" alt="Загрузка изображения"
title="Загрузка изображения"
src="http://all-cs.pusku.com/file_hosting/logo_fi.png" width="120"></td>
<td style="vertical-align: top;"><span
style="font-family: Arial; font-size: 12pt; line-height: 16px; text-align: justify; background-color: rgb(255, 255, 255); font-style: italic;">
Данный сервис обладает множеством преимуществ:</span><font
face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="2"><span
style="line-height: 16px;"><i><br>
</i></span></font>
<ul style="">
<li><i style="font-size: 10pt;"><span
style="font-family: Arial; font-size: 10pt; line-height: 16px; text-align: justify; background-color: rgb(255, 255, 255);">Не
требует регистрации</span></i></li>
<li><font face="Arial"><font style="font-size: 10pt;" size="2"><i>Загружайте
файлы с любыми </i></font><i style="font-size: 10pt;">расширениями;</i></font></li>
<li><font style="font-size: 10pt;" face="Arial" size="2"><i>Неограниченная
скорость;</i></font></li>
<li><span
style="font-family: Arial; font-size: 10pt; line-height: 16px; text-align: justify; background-color: rgb(255, 255, 255); font-style: italic;">Срок
хранения файлов неограничен;</span></li>
<li><span
style="background-color: rgb(255, 255, 255); font-family: Arial; font-size: 10pt; line-height: 16px; text-align: justify; font-style: italic;">Максимальный
объем загружаемого файла до 25Мб;</span></li>
<li><span
style="background-color: rgb(255, 255, 255); font-family: Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 10pt; line-height: 16px; text-align: justify; font-style: italic;"><span
style="font-size: 10pt; font-style: italic; font-family: Arial;">Сервис
полностью бесплатен;</span></span></li>
</ul>
</td>
</tr>
</tbody>
</table>
</center>
<form enctype="multipart/form-data" method="post">
<br>
Выберите файл: <input name="userfile" type="file" /><br/>
<br/>
<div style="text-align: center;"><span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 8pt;">Названия файла не должно содержать пробелы.</span></div><div style="text-align: center;"><span style="color: rgb(255, 0, 0); font-family: Arial; font-size: 8pt;">Запрещено </span><span style="color: rgb(255, 0, 0); font-size: 8pt; font-family: Arial;">загружать файлы форматом .exe</span></div>
<br/>
<input type="image" src="http://all-cs.pusku.com/file_hosting/logo22.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 = "$qwee$filepatch.html";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<html><head>
<meta http-equiv=content-type content=text/html; charset=UTF-8 />
<title>Бесплатный файлообменник</title>
$wer
</head>
<body>
<center> <img src=/file_hosting/logo11.png><br>
<a href=/><img title=Главная
style=border: 0px solid ; width: 269px; height: 20px; alt=Главная
src=/file_hosting/1-btt.png></a><a href=/file_hosting/faq.html><img
title=FAQ style=border: 0px solid ; width: 58px; height: 20px;
alt=FAQ src=/file_hosting/2-btt.png></a><a
href=/file_hosting/load.html><img title=Каталог файлов
style=border: 0px solid ; width: 138px; height: 20px;
alt=Каталог файлов src=/file_hosting/3-btt.png></a><a href=/file_hosting/hosts.html><img
title=Помощь style=width: 175
px; height: 20px; alt=Помощь
src=/file_hosting/4-btt.png></a>
<br>
<br><br>
<table style=width: 526px; height: 25px; left;>
<tbody>
<tr>
<td style= top;= > <img style= width= 120px;
src= http://all-cs.pusku.com/file_hosting/logo_fi1.png > <br>
</td>
<td style= top;= ><center><b>Файл:</b><br> $filepatch
<br><br>
<center><a href=http://all-cs.pusku.com/file_hosting/files/$qwee$filepatch><img src=/file_hosting/22-butt.png></a></center> <br>
</center></td>
</tr>
</tbody>
</table>
<br>
<img src=http://all-cs.pusku.com/file_hosting/logo2.png><br>
<div style= font-size: 10pt >Файловый хостинг проекта
© <a href=http://cs-kukmor.org>cs-kukmor.org</a><br>
2011-2013</div>
</center>
</body>
</html>";
fwrite($fh, $stringData);
fclose($fh);
$myPath = $_SERVER['DOCUMENT_ROOT'].'/file_hosting/files/';
rename("$myPath/$filepatch", "$myPath/$qweer$filepatch");
?>
<?php
xhr.upload.onprogress = function(event) {
alert('Загружено ' + event.loaded + ' байт из '+ event.total);
}
xhr.upload.onload = function() {
alert('Данные полностью загружены на сервер!');
}
var form = document.forms.upload;
form.onsubmit = function() {
var userfile = this.elements.file.files[0];
if (file) upload(file, onSuccess, onError, onProgress);
return false;
}
function upload(file, onSuccess, onError, onProgress) {
var xhr = new XMLHttpRequest();
xhr.onload = xhr.onerror = function() {
if(this.status != 200 || this.responseText != 'OK') {
onError(this);
return;
}
onSuccess();
};
xhr.upload.onprogress = function(event) {
onProgress(event.loaded, event.total);
}
xhr.open("POST", "1qww.php", true);
xhr.send(file);
}
?>
<div id="loading">
Загрузка...Подождите<br />
<div id="close">Закрыть</div>
</div>
<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 $qwee ?><?php
echo $filepatch; ?>.html</textarea><br>
</div>
</td>
</tr>
</tbody>
</table>
</center>
</center>
<br/>
<br/>
<div class="indicator" style="width:200px; border-radius:12px;
border:1px solid #4874a3; padding:5px;"><img src="http://all-cs.pusku.com/file_hosting/myfiles/ajax-loader.gif" alt="">
</div>
<script type="text/javascript">
$(document).ready(function(){
$("div.indicator").delay(2000).fadeOut(1000);
});
</script>
<?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>