Размер файла: 2.7Kb
<?
// Файловый Менеджер + Редактор
// Gmanager
//
// Версия: 0.4.1b
// Автор: Gemorroj
// http://wapinet.ru
//
// Номера кошельков. Надеюсь понятно для чего =)
// WMR 167963845445
// WMZ 225757696726
require 'functions.php';
$current = c($_SERVER['QUERY_STRING'],$_GET['c']);
send_header();
print $top.'
<div class="w2">
'.$lng['title_index'].'<br/>
</div>
'.this($current);
if($string)
{
print '<div>
<form action="?" method="get">
<div>
<input type="text" name="c" value="'.$current.'"/><br/>
<input type="submit" value="'.$lng['go'].'"/>
</div>
</form>
</div>';
}
if(!$_GET['f'])
{
print '<form action="change.php?c='.$current.'&go=1" method="post">
<div class="telo">
<table>
<tr>
<th>'.$lng['n'].'</th>
<th>'.$lng['name'].'</th>
<th>'.$lng['type'].'</th>
<th>'.$lng['size'].'</th>
<th>'.$lng['change'].'</th>
<th>'.$lng['del'].'</th>
<th>'.$lng['chmod'].'</th>
<th>'.$lng['date'].'</th>
<th>'.$lng['ch_index'].'</th>
</tr>';
}
if(strpos(strtoupper($current),'.ZIP') || strpos(strtoupper($current),'.JAR'))
{
if($_GET['f'])
{print look_file($current,$_GET['f']);}
else
{
print list_archive($current);
$archive = 1;
}
}
else
{look($current);}
if(file_exists($current))
{
$found = '<div class="border">'.$lng['create'].' <a href="change.php?go=create_file&c='.$current.'">'.$lng['file'].'</a> / <a href="change.php?go=create_dir&c='.$current.'">'.$lng['dir'].'</a><br/></div>
<div class="border"><a href="change.php?go=upload&c='.$current.'">'.$lng['upload'].'</a><br/></div>
<div class="border"><a href="change.php?go=mod&c='.$current.'">'.$lng['mod'].'</a><br/></div>';
if(strpos(strtoupper($current),'.ZIP') || strpos(strtoupper($current),'.JAR'))
{$found = str_replace($current,dirname($current),$found);}
}
else
{$found = '<div class="red">'.$lng['not_found'].'<br/></div>';}
list($msec,$sec) = explode(' ',microtime());
$tm = '<div class="border">'.round(($sec+$msec)-$HeadTime,4).'<br/></div>';
if(!$_GET['f'] && !$archive)
{print '</table><div class="ch"><input type="submit" name="full_chmod" value="'.$lng['chmod'].'"/><br/></div><div class="ch"><input type="submit" name="full_del" value="'.$lng['del'].'"/><br/></div><div class="ch"><input type="submit" name="create_archive" value="'.$lng['create_archive'].'"/></div></div></form>'.$found.$tm.$foot;}
elseif($archive)
{print '</table><div class="ch"><input type="submit" name="full_extract" value="'.$lng['extract_file'].'"/><br/></div><div class="ch"><input type="submit" name="mega_full_extract" value="'.$lng['extract_archive'].'"/></div></div></form>'.$found.$tm.$foot;}
else
{print $found.$tm.$foot;}
?>