<?php
$wer = '<script type="text/javascript" src="http://file.cs-kukmor.org/file_hosting/rec.js"></script>';
$werr = '<script type="text/javascript" src="http://file.cs-kukmor.org/file_hosting/res.js"></script>';
$werrr = '<script type="text/javascript" src="http://file.cs-kukmor.org/file_hosting/red.js"></script>';
$webdir = 'http://file.cs-kukmor.org/file_hosting/';
$qweer=date("Gis");
$uploaddir = 'files/';
$up = 'more/'; // Папка для создании html документов
$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'];
// Получаем расширение файла
$file_ext = strtolower(strrchr($_FILES['userfile']['name'],'.'));
// Генерируем случайное число
$file_name = uniqid(rand(1,10));
// Формируем путь на сервере
$filepat = $up.$qweer.$file_name.$file_ext;
$filepath = $uploaddir.$qweer.$file_name.$file_ext;;
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">
.raised { background:transparent; width:600px;margin:0 auto; }
.raised h1, .raised p { margin:0 10px; }
.raised h1 { font-size:2em; color:#fff; }
.raised p { padding-bottom:0.5em; }
.raised .b1, .raised .b2, .raised .b3, .raised .b4, .raised .b1b, .raised .b2b, .raised .b3b, .raised .b4b { display:block; overflow:hidden; font-size:1px; }
.raised .b1, .raised .b2, .raised .b3, .raised .b1b, .raised .b2b, .raised .b3b { height:1px; }
.raised .b2 { background:#ccc; border-left:1px solid #fff; border-right:1px solid #eee; }
.raised .b3 { background:#ccc; border-left:1px solid #fff; border-right:1px solid #ddd; }
.raised .b4 { background:#ccc; border-left:1px solid #fff; border-right:1px solid #aaa; }
.raised .b4b { background:#ccc; border-left:1px solid #eee; border-right:1px solid #999; }
.raised .b3b { background:#ccc; border-left:1px solid #ddd; border-right:1px solid #999; }
.raised .b2b { background:#ccc; border-left:1px solid #aaa; border-right:1px solid #999; }
.raised .b1 { margin:0 5px; background:#fff; }
.raised .b2, .raised .b2b { margin:0 3px; border-width:0 2px; }
.raised .b3, .raised .b3b { margin:0 2px; }
.raised .b4, .raised .b4b { height:2px; margin:0 1px; }
.raised .b1b { margin:0 5px; background:#999; }
.raised .boxcontent { display:block; background:#ccc; border-left:1px solid #fff; border-right:1px solid #999; }
</style>
<style type="text/css">
.classname {
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1163b0), color-stop(1, #1163b0) );
background:-moz-linear-gradient( center top, #1163b0 5%, #1163b0 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1163b0', endColorstr='#1163b0');
background-color:#1163b0;
display:inline-block;
color:#ffffff;
font-family:arial;
font-size:13px;
font-weight:bold;
padding:3px 8px;
text-decoration:none;
}.classname:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #1163b0), color-stop(1, #1163b0) );
background:-moz-linear-gradient( center top, #1163b0 5%, #1163b0 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#1163b0', endColorstr='#1163b0');
background-color:#1163b0;
}.classname:active {
position:relative;
top:1px;
}
/* This imageless css button was generated by CSSButtonGenerator.com */
</style>
<style type="text/css">
.attach { position:relative; width:130px; height:15px; }
.attach #file_fake { width:100%; height:100%; cursor:default; color:gray; //padding:2px 0; }
.attach span.file { position:absolute; right:-70px; top:0; width:53px; height:20px; }
.attach span.file * { cursor:pointer; }
.attach span.file:hover * { color:gray; }
.attach input.file_select_btn { overflow:visible; width:100%; height:100%; }
.attach input.file_select { position:absolute; font-size:20px; right:0; top:0; opacity:0; -moz-opacity:0; filter:alpha(opacity=0); }
</style>
<style type="text/css">
.search {
width: 600px; /* Ширина в пикселах */
height:12px;
wrap:off;
resize:none
font-family: "tahoma", tahoma, serif; /*шрифт текста*/
font-size: 12px; /*размер текста*/
}
</style>
<!--Progress Bar and iframe Styling-->
<link href="upload_frame.php/style_progress.css" rel="stylesheet" type="text/css" />
<!--Get jQuery-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.js" type="text/javascript"></script>
<!--display bar only if file is chosen-->
<script>
$(document).ready(function() {
//
//show the progress bar only if a file field was clicked
var show_bar = 0;
$('input[type="file"]').click(function(){
show_bar = 1;
});
//show iframe on form submit
$("#form1").submit(function(){
if (show_bar === 1) {
$('#upload_frame').show();
function set () {
$('#upload_frame').attr('src','upload_frame.php?up_id=<?php echo $up_id; ?>');
}
setTimeout(set);
}
});
//
});
</script>
<script language="JavaScript" type="text/javascript" src="/file_hosting/ajax.js"> </script>
<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>FileStash - бесплатный хостинг файлов, изображений, файлообменник бесрочным хранением, бесплатный файлообменник, анонимный хостинг файлов, удобный хостинг файлов </title>
<meta content="FileStash - бесплатный хостинг файлов, изображений, файлообменник бесрочным хранением, бесплатный файлообменник, анонимный хостинг файлов, удобный хостинг файлов" name="description">
<meta content="FileStash - бесплатный хостинг файлов, изображений, файлообменник бесрочным хранением, бесплатный файлообменник, анонимный хостинг файлов, удобный хостинг файлов" name="keywords">
<style type="text/css">
body {
font-family: tahoma, verdana, arial, sans-serif;
color:#343434;
}
</style>
<body style="background-color: rgb(204, 204, 255); color: rgb(0, 0, 0);"
alink="#ee0000" link="#0000ee" vlink="#551a8b">
<br>
<div class="raised">
<div style="text-align: left;"><b class="b1"> </b><b class="b2"> </b><b
class="b3"> </b><b class="b4"> </b>
<center></center>
</div>
<div class="boxcontent">
<?php
//get unique id
$up_id = uniqid();
?>
<form enctype="multipart/form-data" method="post" name="form1" id="form1">
<!--APC hidden field-->
<input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $up_id; ?>"/>
<!---->
<table style="text-align: left; width: 594px; height: 135px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top; text-align: center;"><br>
<img style="width: 100px; height: 94px;" alt="FileStash"
title="FileStash"
src="http://file.cs-kukmor.org/file_hosting/files/51016105131d0083e5c8.png"><br>
</td>
<td style="vertical-align: top;">
<div style="text-align: center;"><input name="userfile"
type="file"><br>
<br>
<br><!--Include the iframe-->
<input value="Загрузить" class="classname" name="Submit"
type="submit"><br>
</div>
</td>
</tr>
</tbody>
</table>
<center><iframe id="upload_frame"
name="upload_frame" border="0" src="" scrollbar="no" frameborder="0"
height="34" scrolling="no" width="222"> </iframe> </center>
</div>
<b class="b4b"> </b><b class="b3b"> </b><b class="b2b"> </b><b
class="b1b"> </b>
</div>
<br>
<br>
<!---->
</form>
</div>
<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)):
$stat=<<<EOD
<!-- Rating@Mail.ru counter -->
<script type="text/javascript">//<![CDATA[
(function(w,n,d,r,s){d.write('<p><a href="http://top.mail.ru/jump?from=2312723">'+
'<img src="http://da.c4.b3.a2.top.mail.ru/counter?id=2312723;t=171;js=13'+
((r=d.referrer)?';r='+escape(r):'')+((s=w.screen)?';s='+s.width+'*'+s.height:'')+';_='+Math.random()+
'" style="border:0;" height="15" width="88" alt="Рейтинг@Mail.ru" /><\/a><\/p>');})(window,navigator,document);//]]>
</script><noscript><p><a href="http://top.mail.ru/jump?from=2312723">
<img src="http://da.c4.b3.a2.top.mail.ru/counter?id=2312723;t=171;js=na"
style="border:0;" height="15" width="88" alt="Рейтинг@Mail.ru" /></a></p></noscript>
<!-- //Rating@Mail.ru counter -->
EOD;
$statik= <<<EOD
<!-- Yandex.Metrika informer -->
<a href="http://metrika.yandex.ru/stat/?id=20225281&from=informer"
target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/20225281/1_0_6590C2FF_4570A2FF_1_pageviews"
style="width:80px; height:15px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры)" onclick="try{Ya.Metrika.informer({i:this,id:20225281,lang:'ru'});return false}catch(e){}"/></a>
<!-- /Yandex.Metrika informer -->
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter20225281 = new Ya.Metrika({id:20225281,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/20225281" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
EOD;
$myFile = "$filepat.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>FileStash - бесплатный файлообменник</title>
$wer
$werr
</head>
<body>
$werrr
<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://file.cs-kukmor.org/file_hosting/logo_fi1.png > <br>
</td>
<td style= top;= ><center><b>Файл:</b><br> $filepatch
<br><br>
<center><a href=$webdir$filepath><img src=/file_hosting/22-butt.png></a></center> <br>
</center></td>
</tr>
</tbody>
</table>
<br>
<table style=width: 620px; height: 63px; center;>
<tbody>
<tr>
<td style=vertical-align: top; text-align: center;><a
target= _blank href=/file_hosting/reklama.html><img
style=width: 300px; height: 60px;
src=/file_hosting/baner.gif></a><br>
</td>
<td style=vertical-align: top;><a target=_blank
href=/file_hosting/reklama1.html><img
style= width: 300px; height: 60px;
src=/file_hosting/baner.gif></a></td>
</tr>
</tbody>
</table>
<br>
<img src=http://file.cs-kukmor.org/file_hosting/logo2.png><br>
<div style=' font-size: 10pt '>Файловый хостинг проекта
© <a href='http://cs-kukmor.org' target='_blank'>cs-kukmor.org</a><br>
2011-2013<br>
<center><table style=text-align: left; width: 180px; height: 15px;>
<tbody>
<tr>
<td style=vertical-align: middle; text-align: center; height: 12px;> $stat
</td>
<td style=vertical-align: middle; text-align: center; height: 12px;> $statik
</td>
</tr>
</tbody>
</table></center>
</div>
</center>
</body>
</html>";
fwrite($fh, $stringData);
fclose($fh);
$myPath = $_SERVER['DOCUMENT_ROOT'].'/file_hosting/files/';
// Удалить последнюю строку
$a = file('sitemap.xml');
array_pop($a);
$f = fopen('sitemap.xml', 'w');
foreach ($a as $e) fwrite($f, $e);
// добавить запись к файлу
$tod = date("c");
$new = '
<url>
<loc>'.$webdir.''.$filepat.'.html</loc>
<lastmod>'.$tod.'</lastmod>
<changefreq>weekly </changefreq>
<priority>0.5 </priority>
</url>
</urlset>';
$fh = fopen("sitemap.xml", "r");
$all_notes = fread($fh, filesize("sitemap.xml"));
fclose($fh);
$fh2 = fopen("sitemap.xml", "w");
fwrite($fh2, $all_notes);
fwrite($fh2, $new);
fclose($fh2);
?>
<center>
<table style="text-align: left; width: 100px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;">
<div style="text-align: left; "><span style="color: rgb(102, 51, 255);font-size: 10pt;">
Ссылка на файл:</span></div>
<div style="text-align: center;"><textarea name="x1" rows="1" cols="115" class="search" readOnly cols=1 onclick="select(this)"><?php echo $webdir ?><?php echo $filepat ?>.html</textarea><br>
</div>
</td>
</tr>
</tbody>
</table>
<br>
</center>
</center>
<br/>
<?php endIf ?>
<?php endIf ?>
</form>
</div>
</div>
<br>
</center>
</body></html>