View file 5555665/image.php

File size: 17.25Kb
<?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">
.search3{
width: 55px; /* Ширина в пикселах */
height: 12px;
wrap:off;
resize:none
font-family: "tahoma", tahoma, serif; /*шрифт текста*/
font-size: 12px; /*размер текста*/
}
</style>

<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=http://file.cs-kukmor.org/><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>
<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">
<table style="border-collapse: collapse; width: 120px; height: 73px;" cellspacing="2" >
<tbody>

<tr>
<td style="width: 55px;"><span
style="color: rgb(0, 0, 205); font-family: 'Arial Black'; font-size: 13px;">Ширина</span></td>
<td><input value="1164b0" name="q1" class="search3" cols="4"
rows="1"></td>
</tr>
<tr>
<td><span
style="color: rgb(0, 0, 205); font-family: 'Arial Black'; font-size: 13px;">Высота</span></td>
<td><input value="1164b0" name="q1" class="search3" cols="4"
rows="1"></td>
</tr>
</tbody>
</table></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); ">&nbsp;
&nbsp;Данный сервис обладает множеством преимуществ:</span><font
face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="2"><span
style="line-height: 16px;"><br>
</i></span></font>
<ul style="">
<li><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></li>
<li><font face="Arial"><font style="font-size: 10pt;" size="2">Загружайте&nbsp;изображения&nbsp;с&nbsp;любыми&nbsp; расширениями;</stylei></font><style="font-size: 10pt;"></i></font></li>
<li><font style="font-size: 10pt;" face="Arial" size="2">Качество&nbsp;изображение&nbsp;не&nbsp;меняется;</style></font></li>
<li><span
style="font-family: Arial; font-size: 10pt; line-height: 16px; text-align: justify; background-color: rgb(255, 255, 255); ">Срок
хранения файлов неограничен;</span></li>
<li><span
style="background-color: rgb(255, 255, 255); font-family: Arial; font-size: 10pt; line-height: 16px; text-align: justify; ">Максимальный
объем загружаемого файла до 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; "><span
style="font-size: 10pt;  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)):


$vkscript = '<script type="text/javascript" src="//vk.com/js/api/openapi.js?84"></script>';
$vkwidget =<<<EOD
<style type="text/css">
body {
  font-family: tahoma, verdana, arial, sans-serif;
  color:#343434;
}
</style>
<style type="text/css">
<!--
header {
 background: #00b0d8 url(/file_hosting/logo13.png) repeat-x;
}
.header-bg {
 background: url(/file_hosting/logo13.png) repeat-x center bottom; 
 height: 50px; 
}
-->
</style>
<div class="header-bg">
 <a href="/"> <img src="/file_hosting/logo111.png" alt="filestash"></a>
 </div>
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 - бесплатный хостинг файловb изображений, файлообменник</title>


$wer
$werr
$vkscript
$vkwidget
</head>
<body>$werrr<center>

<br>
<br><img
src=$webdir$filepath><br>
<br>
<center><?php include('block2.php'); ?> <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-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="/forum/">Форум </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="/feedback.html">Обратная
связь</a>
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="/reklama.html">Реклама
</a>&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<a style="color: rgb(102, 102, 102);" href="/file_hosting/webmaster.php" target="_blank">Вебмастер
</a>&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">
<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><?php include('block1.php'); ?></center></div>
      <br>
      </td>
    </tr>
  </tbody>
</table>
<br>
</center>

</body></html>