View file Autoindex ffmpeg/addkomm.php

File size: 4.24Kb
<?php

#############################################################
#############################################################
###                Download RYANT                                                        ###
###                 email: admin@ryantwap.co.cc                                                                  ###
###                 site: http://ryantwap.co.cc                                                         ###
###
#############################################################
#############################################################

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")."GMT");
header ("Content-type: application/xhtml+xml; charset=UTF-8");

$mt=microtime(1);
include('setup.php');
include('func.php');
if($zip)
{include('zip.php');}

$p=intval(@$_GET['p']);
$sort=intval(@$_GET['sort']);
if($sort>1 or $sort<0)
$sort=0;

$file=htmlspecialchars($_GET['file']);
$file=str_replace("\0", '', $file);
if(!file_exists($file) or !is_file($file) or !in_array(r($file), explode(',',$allfile)) or strstr($file,'..') or strstr($file,'http://') or strstr($file,'ftp://'))
$file='';
if($file)
{
$dir=str_replace('load/','',dirname($file));
}
else
{
ob_start();
}

header('Content-type:text/html; charset=utf-8');
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
echo "<title>".$_SERVER['SERVER_NAME']." ".date("H").":".date("i")."</title>";


echo'<link rel="stylesheet" href="orange.css" type="text/css"/></head><body>';
echo "<div class='contur_t'>

<img src='$sitelogourl' alt=''>
</div></div>";

if(!$dir)

{print '<div class="t"><div class="m">
<div style="text-align:center;">
<b><span style="color:#c00000;text-decoration:blink;">Comment to this file!</span>
</b></div></div></div></div>';}

echo "<div class='contur'><div class='header'>";


if(!$file)
{print 'File not found<br />';}
else
{$time=date('d/m/Y H:i');
$dirkomm=str_replace('/', 'D', str_replace('.', 'T', $file));
if(!file_exists('komm/'.$dirkomm))
{
$fp=fopen('komm/'.$dirkomm,'w+');
fclose($fp);
}
$err='';
$name=str_replace("n",'<br />',htmlspecialchars(@$_POST['name']));
$name=str_replace('|','',$name);
$name=substr($name,0,50);
if(!$name)
$err.= 'Sorry<br />';
$komm=str_replace("n",'<br />',htmlspecialchars($_POST['komm']));
$komm=str_replace('|','',$komm);
$komm=substr($komm,0,500);
if(!$komm)
$err.='Sorry<br />';
if(strstr(file_get_contents('komm/'.$dirkomm),'</strong>&gt; <br />'.$komm))
$err.='Comment empty<br />';
if($err)
print $err;
else
{

$text='<strong>'.$name.' ('.$time.')</strong>&gt; <br />'.$komm."n";
$fp=fopen('komm/'.$dirkomm,'a+');
fputs($fp, $text);
fclose($fp);
print 'Thanks for Ur comment<br />';
}
if(r($file)!='txt')
print '</div></div></div><div class="contur"><div class="header"><div style="text-align: left"><a href="file.php?p='.$p.'&amp;file='.$file.'&amp;sort='.$sort.'">Вack to file</a><br />';
else
print '</div></div></div><div class="contur"><div class="header"><div style="text-align: left"><a href="txt.php?p='.$p.'&amp;file='.$file.'&amp;sort='.$sort.'">Вack to file</a><br />';
if(($countj=count(explode('/',$dir)))>1)
{
print '</div></div></div><div class="contur"><div class="header"><div style="text-align: left">Back to:<br/>
<b>/</b><a href="index.php">Download</a><b>/</b>';
$j=explode('/',$dir);
for($i=0; $i<=$countj; $i++)
{
$u=@$j[count($j)-1];
if($u)
{

$g[$i]= '<a href="index.php?dir='.join('/', $j).'&amp;p='.$p.'&amp;sort='.$sort.'">'.transdir($u).'</a><b>/</b>';
unset($j[count($j)-1]);
}
}
for($i=count(@$g)-1; $i>=0; $i--)
print $g[$i];
print '<br/>';
}
}
echo "</div></div></div>";
include('counter.php');
echo "<div class='contur'><div class='header'><img src='home.gif' alt=''/> <a href='../index.php'>Нome</a><br/></div></div><center>";
include('random.php');
echo "</center><div class='contur'><div class='header'><b>[Оnline: $online]</b></div></div>";
echo "<div class='contur_rek'><div class='header_rek'>&copy; ".$_SERVER['SERVER_NAME']."</a></div></div>
</body></html>";
?>