View file 5555665/ua/image.php

File size: 16.09Kb
<?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&amp;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/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);">&nbsp;</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; height: 55px;"><img style="width: 640px; height: 50px;" alt="" src="http://file.cs-kukmor.org/file_hosting/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: top;"> <a href="/ua/"><img title="Головна сторінка" style="" 0px="" solid="" ;="" width:="" 269px;="" height:="" 20px;="" alt="Головна сторінка" src="/file_hosting/1-btt.png"></a><a href="/ua/faq.html"><img title="FAQ" style="" 0px="" solid="" ;="" width:="" 58px;="" height:="" 20px;="" alt="FAQ" src="/file_hosting/2-btt.png"></a><a href="/ua/load.html"><img title="Каталог" style="" 0px="" solid="" ;="" width:="" 138px;="" height:="" 20px;="" alt="Каталог файлів" &#1092;&#1072;&#1081;&#1083;&#1086;&#1074;="" src="/file_hosting/3-btt.png"></a><a href="/ua/hosts.html"><img title="Допомога" style="" 175="" px;="" height:="" 20px;="" alt="Допомога" src="/file_hosting/4-btt.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>&nbsp;<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>&nbsp;<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><



<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://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;">&nbsp;
&nbsp;Даний сервіс має безліч переваг: </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">

      
<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="Файл..." type="text"><span
class="file" title="Выбрать файл"> <input name="userfile"
class="file_select"
onchange="document.getElementById('file_fake').value = this.value"
type="file"> <input class="file_select_btn" value="Выбрать файл"
type="image" src="http://file.cs-kukmor.org/file_hosting/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;">Розмір файлу не повинен перевищувати 25 мб.</font></div>
<br/>

<input type="image" src="http://file.cs-kukmor.org/file_hosting/logo22.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 - бесплатный хостинг файловb изображений, файлообменник</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'].'/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;">
HTML код (прямая ссылка):</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 код (прямая ссылка):</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 код (увеличение по клику):</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;">В место 100px , можете поставить любое значение</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="http://file.cs-kukmor.org/forum/">Форум </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="http://file.cs-kukmor.org/feedback.html"> Зворотній зв'язок</a>
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="/file_hosting/reklama.html">Реклама
</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div><center><table style="text-align: left; width: 180px; height: 15px;" border="0"
cellpadding="0" cellspacing="0"></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>