<?php
$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;
?>
<?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/en/';
$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>
<link rel="icon" href="http://file.cs-kukmor.org/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://file.cs-kukmor.org//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>
<style type="text/css">
.search {
width: 600px; /* Ширина в пикселах */
height:12px;
wrap:off;
resize:none
font-family: "tahoma", tahoma, serif; /*шрифт текста*/
font-size: 12px; /*размер текста*/
}
</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">
A {
text-decoration: none;
}
</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="/en/img/logo11.png"></td>
</tr>
<tr>
<td colspan="1" rowspan="1" style="vertical-align: top;">
<center>
<table style="text-align: left; width: 642px; height: 25px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: bottom; height: 25px;">
<a href=/en/><img title=Home
style=border: 0px solid ; width: 269px; height: 20px; alt=Home
src=/en/img/en-home.png></a><a href=/en/faq.html><img
title=FAQ style=border: 0px solid ; width: 58px; height: 20px;
alt=FAQ src=/en/img/en-faq.png></a><a
href=/en/load.html><img title=Download
style=border: 0px solid ; width: 138px; height: 20px;
alt=Downloadв src=/en/img/en-load.png></a><a href=/en/hosts.html><img
title=Forum style=width: 175
px; height: 20px; alt=Forum
src=/en/img/en-forum.png></a><a href=/en/forum/><img
title=Help style=width: 175
px; height: 20px; alt=Help
src=/en/img/en-help.png></a>
</td>
</tr>
<tr>
<td style="vertical-align: bottom; text-align: right;"><a
href="/ua/"><img style="border: 0px solid ; width: 17px; height: 11px;"
alt="Український" title="Український"
src="http://file.cs-kukmor.org/file_hosting/ua.png"></a> <a
href="/en/"><img style="border: 0px solid ; width: 16px; height: 11px;"
alt="English" title="English"
src="http://file.cs-kukmor.org/file_hosting/us.png"></a> <a
href="/"><img style="border: 0px solid ; width: 16px; height: 11px;"
alt="Русский" title="Русский"
src="http://file.cs-kukmor.org/file_hosting/ru.png"></a> </td>
</tr>
</tbody>
</table>
</center>
<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="Upload images"
title="Upload images"
src="http://file.cs-kukmor.org/file_hosting/logo_ft.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;">
This service has many advantages:</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);">t does not require registration;</span></i></li>
<li><font face="Arial"><font style="font-size: 10pt;" size="2"><i>Load images with any extension;</i></font><i style="font-size: 10pt;">расширениями;</i></font></li>
<li><font style="font-size: 10pt;" face="Arial" size="2"><i>Load images with any extension;</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;">The term of keeping of files is unlimited;</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;">Maximum volume of storage file is up to 25MB download size;</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;">Service is completely free;</span></span></li>
</ul>
</td>
</tr>
</tbody>
</table>
</center>
<form enctype="multipart/form-data" method="post">
<center>
<table style="text-align: center; width: 190px; height: 20px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;">
<div style="text-align: center;" class="attach"> <input
id="file_fake" readonly="readonly" value="Select file to" type="text"><span
class="file" title="Select file to"> <input name="userfile"
class="file_select"
onchange="document.getElementById('file_fake').value = this.value"
type="file"> <input class="file_select_btn" value="Select file to"
type="image" src="/en/img/input.png"> </span></div>
</td>
</tr>
</tbody>
</table></center>
<br/>
<div style="text-align: center;"><font color="#ff0000" face="Arial" size="1" style="font-size: 8pt;">File size should not exceed 25 MB.</font></div>
<br/>
<input type="image" src="/en/img/upload.png" name="submit" id="submit" value="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 = "$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 - free file hosting and photo, sharing</title>
$wer
$werr
</head>
<body>$werrr<center>
<img
src=$webdir$filepath>
<br>
<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>
</body>
</html>";
fwrite($fh, $stringData);
fclose($fh);
$myPath = $_SERVER['DOCUMENT_ROOT'].'/en/files/';
// Удалить последнюю строку
$a = file('sitemap_image.xml');
array_pop($a);
$f = fopen('sitemap_image.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_image.xml", "r");
$all_notes = fread($fh, filesize("sitemap_image.xml"));
fclose($fh);
$fh2 = fopen("sitemap_image.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;">
HTML code (explicit reference):</span></div>
<div style="text-align: center;"><textarea name="x1" rows="1" cols="200" class="search" onclick="select(this)"><?php echo $webdir ?><?php echo $filepath ?></textarea><br>
</div><br>
<div style="text-align: left; "><span style="color: rgb(102, 51, 255);font-size: 10pt;">
BB code (explicit reference):</span></div>
<div style="text-align: center;"><textarea name="x1" rows="1" cols="300" class="search" onclick="select(this)">[img]<?php echo $webdir ?><?php echo $filepath ?>[/img]</textarea><br>
</div>
<br>
<div style="text-align: left; "><span style="color: rgb(102, 51, 255);font-size: 10pt;">
HTML code (increase the click):</span></div>
<div style="text-align: center;"><textarea name="x1" rows="1" cols="375" class="search" onclick="select(this)"><a href="<?php echo $webdir ?><?php echo $filepat ?>.html" target="_blank"><img style="width: 100px" alt="" src="<?php echo $webdir ?><?php
echo $filepath ?>"></a></textarea><br>
<div><span style="font-style: italic; font-size: 10pt;">In place of 100px, can put any value</span></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; height: 25px;"><img style="width: 640px; height: 20px;" src="/file_hosting/logo2.png"><br>
</td></tr><tr>
<td colspan="1" rowspan="1" style="vertical-align: bottom; height: 20px;">
<div style="text-align: center;"><span
style="font-family: Arial; font-size: 10pt;">
<a style="color: rgb(102, 102, 102);" href="/en/forum/">Forum </a>
<a style="color: rgb(102, 102, 102);" href="/en/feedback.html">Feedback</a>
<a style="color: rgb(102, 102, 102);" href="/en/reklama.html">Advertisement
</a>
</div>
<center><table style="text-align: left; width: 180px; height: 15px;" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: middle; text-align: center; height: 12px;"><?php echo $stat ?>
</td>
<td style="vertical-align: middle; text-align: center; height: 12px;"><?php echo $statik ?>
</td>
</tr>
</tbody>
</table></center></div>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</center>
</body></html>