<?
///////////////////////////UTF-8////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
////(!!!!! ГЛАВНОЕ УСЛОВИЕ, КОРРЕКТНОЙ РАБОТЫ СКРИПТА, НЕ ИСПОЛЬЗЫВАНИЕ В НАЗВАНИИ ФАЙЛОВ И ПАПОК ТОЧЕК!!!!!!!!!!)////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
Автор: Evgenij made in AZOV
E-mail: [email protected] (Всем вопросы и тех. поддержка)
Запрещенно!!: добавлять данный скрипт в бесплатные архивы!!, продавать!!, Меняться на форумах и т.д и т.п!!, без моего согласия:)
*/
include "main/cfg.php";/////Настройки
//////////////////////////////////////////////////////////////////////////////
$down=intval($down);
if($down==1){
$yes_file=@file("$a/$s");
if(empty($yes_file)){ header("location: index.php?style=$style&ver=$ver");}
if($pics==""){ header("location: $a/$s");}
if(!empty($yes_file)){
$file = fopen("main/down/$s.dat","r");
$zapis = fread($file, 100);
$count = ($zapis + 1);
fclose($file);
$file2 = fopen("main/down/$s.dat","w");
fputs($file2, $count.'||/'.$a);
fclose($file2);
chmod ("main/down/$s.dat", 0664);} }
if($sh=="") {$sh=$img_array_pred_i; $w1=$sh; }
if($w1=="") {$w1=$sh; }
$pics=intval($pics);
if($pics==1) {$type=1;
$f=''.$a.'/'.$s.'';
if ($type == 1) $w = $sh;
if($qq=="") {$qq=100;}
if (!isset($q)) $q = $qq;
$src = imagecreatefromjpeg($f);
$w_src = imagesx($src);
$h_src = imagesy($src);
header("Content-type: image/jpeg");
if ($w_src != $w)
{if (($type==0)||($type==1))
{$dest = imagecreatetruecolor($w,$w1);
if ($w_src>$h_src)
imagecopyresized($dest, $src, 0, 0,
round((max($w_src,$h_src)-min($w_src,$h_src))/2),
0, $w, $w1, min($w_src,$h_src), min($w_src,$h_src));
if ($w_src<$h_src)
imagecopyresized($dest, $src, 0, 0, 0, 0, $w, $w1,
min($w_src,$h_src), min($w_src,$h_src));
if ($w_src==$h_src)
imagecopyresized($dest, $src, 0, 0, 0, 0, $w, $w1, $w_src, $w_src); }
imagejpeg($dest,'',$q);
imagedestroy($dest);
imagedestroy($src); }
imagecopyresized($dest, $src, 0, 0, 0, 0, $w,
$w1, min($w_src,$h_src), min($w_src,$h_src));} else {
//////////////////////////////////////////////////////////////////////
function allfiles($aa){
return count(glob($aa."/*")); }
$ver=intval($ver);
if($ver==0) {
$header ='<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title>'.$title.'</title><link rel="stylesheet" href="main/'.$dir_style.'/'.$style.'" type="text/css"/>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" />
</head><body>';
$footer ='<br/>
<a href="'.$copy.'">На главную</a></div>';
$end='</div></body></html>';} else {
$header ='<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.3//EN" "http://www.phone.com/dtd/wml13.dtd">
<wml>
<card id="Menu" title="'.$title.'"><p align="left">';
$footer ='<br/>
<a href="'.$copy.'">На главную</a><br/>
® '.$copy.'';
$end='</p>
</card>
</wml>';}
if($ver==0) {
header ("Content-type: application/xhtml+xml; charset=utf-8");} else { header ("Content-type:text/vnd.wap.wml; charset=utf-8");}
print $header;
if($shop=="ok") {$files = @file("main/shop.txt");
if(!empty($files)) {
$shop = file("main/shop.txt");
$i = rand(0, sizeof($shop)-1);
$magazin = "$shop[$i]";
echo "$magazin";
} else {print'Не могу открыть файл (main/shop.txt) с рекламой.<br/> В настройках(main/cfg.php) можно убрать рекламу. '; }}
$file=intval($file);
if(($filename!="")and($show=="")) {
$filename=htmlspecialchars($filename, ENT_QUOTES);
list($startif,$endif) = explode('.',$filename);
list($filename,$endif) = explode('.',$filename);
$endif='.'.$endif.'';
$dp=substr($dirr,1);
$extu = explode('/',$dp);
$extu = $extu[count($extu)-1];
$ddirruu=substr_count($extu,"!");
if($ddirruu==2) {$namefile=$startif;} else {$namefile=latrus($startif);}
$namefile=str_replace('_',' ',$namefile);
$yes_file=@file("$dp/$filename$endif");
if(empty($yes_file)){ if($ver==0) {
echo '<div class="bottom">';print 'Такого файла не существует!! Empty this file!!';} print $end;exit; }
if($ver==0) {
echo '<div class="bottom">';} echo '<b>'.$namefile.$endif.'</b>'; if($ver==0) { echo ' </div><div class="block">';} else { print '<br/>-----<br/>';}
for ($i=0; $i<count($type_screenshot); $i++)
{if ($endif=="$type_screenshot[$i]")
{$file =@file("$dp/$dir_screenshot/$filename.jpg");
if(!empty($file)) {
$imgs='<img src="'.$this_file.'?pics=1&a='.$dp.'/'.$dir_screenshot.'/&s='.$filename.'.jpg&sh='.$sh_screenshot.'&w1='.$w1_screenshot.'" alt=""/><br/>';}
else {echo'[Скриншота нет]<br/>';}}}
print $imgs;
for ($i=0; $i<count($type_img); $i++)
{if ($endif=="$type_img[$i]")
{$img='<img src="'.$this_file.'?pics=1&a='.substr($dirr,1).'/&s='.$filename.$endif.'&sh='.$sh.'" alt=""/><br/>';}}
print $img;
for ($i=0; $i<count($type_opisanie); $i++)
{ if ($endif=="$type_opisanie[$i]"){
$file =@file("$dp/$dir_opisanie/$filename.txt");
if(!empty($file)) {
print 'Описание: ';
include("$dp/$dir_opisanie/$filename.txt"); } else {echo'[Описания нет]';}print '<br/>';}}
print '<img src="main/img/endif.gif" alt=""/>Тип: <b>'.substr(strtoupper($endif),1).'</b><br/>';
print 'Добавлен: '.date("d.m.Y - H:i",filemtime($dp.'/'.$filename.$endif)).'<br/>';
echo 'Скачено: <b>';
$file =@file("main/down/$filename$endif.dat");
if(!empty($file)) {$filew = @file("main/down/$filename$endif.dat");
$totalw = count($filew);
$totalw=$totalw-1;
$dw = explode("|",$filew[$totalw]);
echo '<b> '.$dw[0].'</b>';} else {echo'<b>0</b>';}
print '</b>';
$file_size=filesize($dp.'/'.$filename.$endif);
if ($file_size < 1024) $file_size = $file_size."b";
if ($file_size >= 1024) $file_size = round (($file_size/1024), 1)."Kb";
if ($file_size >= 1024) $file_size = round (($file_size/1024), 1)."Mb";
print '<br/>Размер: <b>'
.$file_size.'</b><br/>';
if($endif==".mp3") {
require_once "main/ID3_mp3/id.php";
$id3 = new MP3_Id();
$result = $id3->read($dp.'/'.$filename.$endif);
$result = $id3->study();
if (($id3->getTag('bitrate')!="") && ($id3->getTag('bitrate')!=0)) {
print 'Битрейт: <b>'.$id3->getTag('bitrate').'кбит/сек</b><br/>';}
$err=substr($id3->getTag('length'),0,1); if (($id3->getTag('length')!="") && ($err!="-") && ($id3->getTag('length')!=0)){ print 'Длительность: <b>'.$id3->getTag('length').'</b><br/>';}
if (($id3->getTag('frequency')!="") && ($id3->getTag('frequency')!=0)){ print 'Частота дискретизации: <b>'.$id3->getTag('frequency').'Гц</b><br/>
';}}
print '<img src="main/img/down_file.gif" alt=""/>Скачать: <b><a href="'.$this_file.'?down=1&s='.$filename.$endif.'&a='.$dp.'&ver='.$ver.'&style='.$style.'">'.$namefile.$endif.'</a></b>
<br/>';
for ($i=0; $i<count($type_img); $i++)
{if ($endif=="$type_img[$i]"){
foreach($img_array as $z){list ($sh,$w1) = explode ("x",$z); print '<a href="'.$this_file.'?down=1&pics=1&a='.$dp.'&s='.$filename.$endif.'&sh='.$sh.'&w1='.$w1.'">'.$sh.'x'.$w1.'</a><br/>';}}}
for ($i=0; $i<count($type_text); $i++)
{if ($endif=="$type_text[$i]"){print 'Прямая ссылка:<br/><input name="name" type="text" value="'.$copy.'/'.$dp.'/'.$filename.$endif.'"></input>';}}
if($endif==".mp3") { if($ver==0){
print'<div class="text"></div>'; } else {print '<br/>-<br/>';} print 'Нарезать:'; if($ver==0) {
print '<form method="post" action="main/?filename='.$filename.$endif.'&dirr='.$dirr.'&style='.$style.'&ver='.$ver.'">';} else {print '<br/>';}
print '
С мм:сс <input type="text" name="frommin" value="00" maxlength="2" size="2" class="num" />:
<input type="text" name="fromsec" value="0" maxlength="2" size="2" class="num" /><br/>
По мм:сс <input type="text" name="tomin" value="00" maxlength="2" size="2" class="num" />:
<input type="text" name="tosec" value="30" maxlength="2" size="2" class="num" /><br/>';
if($ver==1){print '<anchor title="ok">сделать звонок<go href="main/?filename='.$filename.$endif.'&dirr='.$dirr.'&style='.$style.'&ver='.$ver.'" method="post">
<postfield name="frommin" value="$frommin"/><postfield name="fromsec" value="$fromsec"/><postfield name="tomin" value="$tomin"/><postfield name="tosec" value="$tosec"/>';}
if($ver==0){ print '<input type="submit" value="сделать звонок" />
</form>';}
else {print '</go></anchor><br/>-<br/>';}
}
if($endif!=".mp3") {print '<br/>';}
for ($i=0; $i<count($type_komments); $i++)
{if ($endif=="$type_komments[$i]"){
print '<a href="main/news.php?filename='.$filename.$endif.'&dirr='.$dirr.'&style='.$style.'&ver='.$ver.'">Комментарии</a>';
$file =@file("main/news/$filename$endif.dat");
if(!empty($file)) {$filew = @file("main/news/$filename$endif.dat");
$totalw = count($filew);
$totalw=$totalw-1;
$dw = explode("|",$filew[$totalw]);
echo '<b> ('.$dw[5].')</b>';} else {echo'<b>(0)</b>';}
$file =@file("main/news/$filename$endif.dat");
if(!empty($file)) {
@file("main/news/$filename$endif.dat");
$dw = explode("|",$filew[$totalw]);
echo '<br/>Последний: '.$dw[2].' / '.$dw[3].'<br/>Имя: '.$dw[4].'<br/>Коммент: '.$dw[1].''; if ($ver==1) {print'<br/>';}}
else { echo'<br/>Комментов нет :('; }}}
if($ver==0){print '</div><div class="top">';} else
{ print '<br/>-----<br/>';}
$sector='filename='.$filename.$endif.'&dirr='.$dirr.'';} else {
$substr_count = substr_count($show,"$papkas");
$substr_count2 = substr_count($show,"$Obmennik");
if (($substr_count==0)&&($substr_count2==0)){$show=$papkas;}
if(!@$_GET['tr']) $tr=''; else $tr=$_GET['tr'];
function gettime()
{$part_time = explode(' ', microtime());
$real_time = $part_time[1].substr($part_time[0], 1);
return $real_time;}
$index_flag = false;
$existion_flag = false;
$size_flag = false;
$start1 = gettime();
if (!@$show) {$curren_dir = getcwd ().'/';// $show ,
}else{$curren_dir=''.getcwd ().'/'.$show.'/';}
$curren_dir=str_replace('//','/', $curren_dir);
$curren_dir=str_replace("..","",$curren_dir);
$addon='';
if ($tr=="") {$tr=true; }
$dirr=@$show;
$lenghth = strlen ($curren_dir);
for ( $i = $lenghth-1; $i>0; $i--) {
if ( $curren_dir [$i] === "/" or $curren_dir [$i] === "\\" )
{ $curren_dir_title = substr ( $curren_dir, $i+1, $lenghth); break; }}
$ext = explode('/',$dirr);
$ext = $ext[count($ext)-1];
$ddirru=substr_count($ext,"!");
if($ddirru==2) {$tr=false;}
if ($tr==true)
{$addon=$addon.'&tr=true';} else {$addon=$addon.'&tr=false';}
$body = "";
$body_line = "";
$i = 1;
$show = opendir ($curren_dir);
function allowed_type ($d)
{$lenghth = strlen ($d);
$d=@substr($d, strrpos($d,'/')+1);
$p=strpos($d, '.');
global $name;
$name=substr($d,0,$p);
global $existion;
$existion=trim(substr($d, $p+1));
global $allowed_file;
global $type;
for ($i=0; $i<count($type); $i++){$type[$i]=trim($type[$i]);}
return in_array(trim($existion), $type);}while ( ($d = readdir ($show)) != false)
{if ( is_dir ($curren_dir.'/'.$d) and !($d==".") and !($d== "..")){
if ($tr!=false) {
if ($tr==true) {$dname=latrus($d);} else {$dname=$d;}} else {$dname=$d;}
$dname=str_replace('_', ' ', $dname);
$aa=substr($dirr,1);
$allfiles="";
$all="";
$dir_next = opendir ("$aa/$d"); while ($file = readdir ($dir_next))
{if (( $file != ".") and ($file != "..") and ($file != "$dir_opisanie") and ($file != "$dir_screenshot"))
{$all[]=$file;}}closedir ($dir_next);
list ($startif,$endif) = explode (".",$all[0]);
if($startif.$endif!=$all[0]) {$allfiles = 'файлов:'.count($all).'';} else {$allfiles = 'папок:'.count($all).'';}
if(($startif=="") and ($endif=="")){$allfiles = 'пустая папка';}
if($ddirru==2){$dname=$d;}
$ddirr=substr_count($d,"!");
if($ddirr==1) {$dname=substr($d,1);} else {$dname=latrus($d);}
if($ddirr==2) {$dname=substr($d,2);}
if($ddirru==2){$dname=$d;}
if(($ddirru==2)&&($ddirr==2)) {$dname=substr($d,2);}
if(($ddirru==2)&&($ddirr==1)) {$dname=substr($d,1);}
if (($d!=$dir_opisanie) and ($d!=$dir_screenshot))
{$links[]='<img src="main/img/dir.gif" alt=""/><a href="'.$_SERVER['PHP_SELF'].'?show='.$dirr.'/'.$d.'&style='.$style.'&ver='.$ver.'">'.$dname.'</a><small>|'.$allfiles.'</small><br/>';
$poslinks[count($links)-1]=$dname;}}};
if (@count(@$links)>0) {global $dddd;
$dddd=654;} else {$show = opendir ($curren_dir);
while ( ($d = readdir ($show)) !== false)
{if ( is_dir ( $d ) and !($d == ".") and !($d == ".."))
{$body_line ='';
$body = $body.$body_line;}
$dd=$curren_dir.'/'.$d;
$dd=str_replace('//','/', $dd);
$dd=str_replace('//','/', $dd);
$flag_allowed = true;
if (allowed_type($dd))
{$LIST_FILE = @stat ($dd);
$file_size = $LIST_FILE [7];
$file_change_time = $LIST_FILE [9];
if ($index_flag) $index = $i;
else $index = "";
if ($existion_flag) $filename = $d;
else $filename = $name;
if (!$size_flag) $file_size = "$file_size";
if ($file_size < 1024) $file_size = $file_size."b";
if ($file_size >= 1024) $file_size = round (($file_size/1024), 1)."Kb";
if ($file_size >= 1024) $file_size = round (($file_size/1024), 1)."Mb";
global $links;
global $poslinks;
if (($tr=='true')or($trh=='true')) {$namefile=latrus($filename);} else {$namefile=$filename;}
$namefile=str_replace('_', ' ', $namefile);
$endif = explode('.',$d);
$endif = $endif[count($endif)-1];
$endif='.'.$endif.'';;
for ($i=0; $i<count($type_music); $i++){if ($endif=="$type_music[$i]"){$dfg="";}}
for ($i=0; $i<count($type_img); $i++){if ($endif=="$type_img[$i]") {$dfg='<img src="'.$this_file.'?pics=1&qq=70&a='.substr($dirr,1).'/&s='.$filename.$endif.'&sh='.$sh.'" alt=""/><br/>'; $siska='&sh='.$sh.'';}}
$dp=substr($dirr,1);
for ($i=0; $i<count($type_opisanie_spisok); $i++){
if($ver==0) {$hgg= '<div class="text"></div>';} else {$hgg= '<br/>---------<br/>';}
if ($endif=="$type_opisanie_spisok[$i]"){
$filew = @file("$dp/$dir_opisanie/$filename.txt");
if(!empty($filew)) {$dfg="";
$filew=fopen("$dp/$dir_opisanie/$filename.txt", "r");
$dw = fread($filew, $TXT_simvolov*2);
$opisanie='»'.$dw.'<a href="'.$this_file.'?filename='.$filename.$endif.'&dirr='.$dirr.'&style='.$style.'&ver='.$ver.$siska.'">...</a>'.$hgg.''; } else {$opisanie='» описания нет '.$hgg.'';}}}
for ($i=0; $i<count($type_screenshot_img); $i++)
{$file =@file("$dp/$dir_screenshot/$filename.jpg");
if(!empty($file)) {
if ($endif=="$type_screenshot_img[$i]") {$dfg='<img src="'.$this_file.'?pics=1&qq=70&a='.substr($dirr,1).'/'.$dir_screenshot.'/&s='.$filename.'.jpg&sh='.$sh.'" alt=""/><br/>'; $siska='&sh='.$sh.'';}} }
if($sh=="No") {$dfg="";}
$links[]=''.$dfg.'<a href="'.$this_file.'?filename='.$d.'&dirr='.$dirr.'&style='.$style.'&ver='.$ver.$siska.'">'.$namefile.$endif.'</a> ['
.$file_size.']<br/>'.$opisanie.'
'; $dfg=""; $opisanie='';
for ($i=0; $i<count($type_img); $i++)
{if (($endif==$type_img[$i])||($endif==$type_screenshot_img[$i])){$predsz=1;}}
$poslinks[count($links)-1]=$namefile;
$i++;
}}}
function checkGetVar($var)
{if (array_key_exists($var,$_GET))
return $_GET[$var];
else return -1;}
$part=checkGetVar("part");
if (@$goo==1) $part=$part-1;
if ($part==-1) { $part=0; };
$limstr=checkGetVar("limit");
if ($limstr==-1) {$limstr=$kolvo;};
if ($part==0) {$begin=1;} else {$begin=0;};
$addon='';
if($dirr==$papkas) {$top20='<a href="rat.php?style='.$style.'&ver='.$ver.'">TOP 20 скачиваемых</a><br/>';
$na_zakaz='<a href="na_zakaz/?style='.$style.'&ver='.$ver.'">Стол заказов</a><br/>'; }
$papka=substr($dirr, strrpos($dirr, '/')+1);
if($dirr==$papkas) {$papka=strtoupper($papka);}
$ddirr=substr_count($papka,"!");
if($ddirr==1) {$papka=substr($papka,1); $tr=false;}
if($ddirr==2) {$papka=substr($papka,2); $tr=false;}
if (($tr=='true')or($trh=='true')) {$papka=latrus($papka);} else {$papka=$papka;}
$papka=str_replace('_', ' ', $papka);
if (($tr=='true')||($trh=='true')) {$st1=substr($papka,0,2);
$st1=bigletter($st1);
$papka=$st1.(substr($papka,2));
$papka=latrus($papka);} else{
$papka=(ucfirst($papka));}
$vsedela='&limit='.$limstr.'&part='.$part.'';
if($ver==0) {print '<div class="bottom">';} else { print'';}
$sector='show='.$dirr.$d.'';
if($sh=="No") {$sha="Нет";} else {$sha=''.$sh.'x'.$sh.'';}
if($predsz==1) { $predpros='<small>|Предпросмотр:<a href="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$ver.$vsedela.'&preds=1&sh='.$sh.'&tr='.$tr.'">'.$sha.'</a></small>';} else {$predpros='';}
print '<b><img src="main/img/open_dir.gif" alt=""/>'.$papka.'</b>'.$predpros.'';
if($ver==0) {print '</div><div class="block">';} else { print '<br/>------<br/>';}
print $top20;
$preds=intval($preds);
$sh=intval($sh);
if($preds==1) {if($ver==0){print '<form action ="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$ver.$vsedela.'&tr='.$tr.'" method="post">
<select name="sh" multiple="false">';}
else {print '<select name="sh" multiple="false">';}
foreach($img_array_pred as $zz)
{list ($sh,$sh) = explode ("x",$zz);
if($sh=="No") {$sha="Убрать";} else {$sha=''.$sh.'x'.$sh.'';}
print '<option value="'.$sh.'">'.$sha.'</option>';}
print '</select>';
if($ver==1){print '<anchor title="ok">··»<go href="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$ver.$vsedela.'&tr='.$tr.'" method="post">
<postfield name="sh" value="$sh"/>';}
if($ver==0){ print '<input type="submit" name="go" value="··»"></input></form>';}
else {print '</go></anchor><br/>';}}$poslinks=@array_flip($poslinks);
$poslinks = @array_splice($poslinks, $part*$limstr, $limstr);
if(@count(@$links)==0){echo "Пустая папка<br/>";
}else{foreach ($poslinks as $name=>$pos){print $links[$pos]."\n";}}
if (count(@$res)==2) {$result=@$res[0].@$res[1];} else {$result=@$res[0];};
print @$result;
print $na_zakaz;
if($dirr==$papkas) {if($ver==0) {print '<div class="bottom">';} else {print '----<br/>';}$Obmennik=substr($Obmennik,1); print '<img src="main/img/open_dir.gif" alt=""/><b>'.str_replace('_', ' ',(latrus(strtoupper($Obmennik)))).'</b>'; if($ver==0) {print '</div>';} else {print '<br/>';}
print '<a href="rat-you.php?style='.$style.'&ver='.$ver.'">TOP 20 скачиваемых</a><br/>';
$dir = opendir ("$Obmennik");
while ($obmennik = readdir ($dir))
{if (( $obmennik != ".") && ($obmennik != "..") && ($obmennik != ".htaccess"))
{ $obmennikrus=latrus($obmennik);
$allfiles="";
$all="";
$dir_next = opendir ("$Obmennik/$obmennik"); while ($file = readdir ($dir_next))
{if (( $file != ".") and ($file != ".."))
{$all[]=$file;}}closedir ($dir_next);
list ($startif,$endif) = explode (".",$all[0]);
if($startif.$endif!=$all[0]) {$allfiles = 'файлов:'.count($all).'';}
if(($startif=="") and ($endif=="")){$allfiles = 'пустая папка';}
$qddirr=substr_count($obmennik,"!");
if($qddirr==1) {$dname=substr($obmennik,1);} else {$dname=latrus($obmennik);}
if($qddirr==2) {$dname=substr($obmennik,2);}
if($ddirru==2){$dname=$obmennik;}
if(($ddirru==2)&&($qddirr==2)) {$dname=substr($obmennik,2);}
if(($ddirru==2)&&($qddirr==1)) {$dname=substr($obmennik,1);}
print '<img src="main/img/dir.gif" alt=""/><a href="'.$this_file_obmennik.'?show=/'.$Obmennik.'/'.$obmennik.'&style='.$style.'&ver='.$ver.'">'.$dname.'</a><small>|'.$allfiles.'</small><br/>';}}
closedir ($dir);
print '<a href="upload.php?style='.$style.'&ver='.$ver.'">Добавить файл!</a>'; if($ver==1) {print '<br/>';}
}
if($ver==0) {print '</div><div class="top">';} else { print '------<br/>';}
if($dirr!=$papkas) {
print 'Страница: ';
$i=0;
$a=((int)(count(@$links) / $limstr)+1);
while (++$i<=$a){if($i==$part+1) {print '<small>[<b>'.$i.'</b>]</small>'; } else { print '<small><a href="'.$PHP_SELF.'?show='.$dirr.'&limit='.$limstr.'&part='.($i-1).$addon.'&style='.$style.'&ver='.$ver.$siska.'&tr='.$tr.'">['.$i.']</a></small>'; } }
if (@$dddd!==654) print '<br/>Файлов: '; else print '<br/>Папок: ';
print ''.count(@$links).''.'<br/>';
$sector='show='.$dirr.$d.'';}}$dirrarr=substr($dirr,1);
if($ver==0) {print '<div class="bottomn">';}
if(($show!="")&&($dirr!=$papkas)) {
$ext= explode('/',$dirrarr);
print '<a href="'.$this_file.'?show=/'.$ext[0].'&style='.$style.'&ver='.$ver.'">...</a>';
for ($i=0; $i<count($ext)-1; $i++)
{ if($i!=0) { $DD=$DD+1; if($i==1) {$setr=$ext[$i-$DD+0].'/';} if($i==2) {$setr=$setr.$ext[$i-$DD+1].'/';}if($i==3) {$setr=$setr.$ext[$i-$DD+2].'/';}
if($i==4) {$setr=$setr.$ext[$i-$DD+3].'/';} if($i==5) {$setr=$setr.$ext[$i-$DD+4].'/';} if($i==6) {$setr=$setr.$ext[$i-$DD+5].'/';} if($i==6) {$setr=$setr.$ext[$i-$DD+7].'/';}
print '/<a href="'.$this_file.'?show=/'.$setr.$ext[$i].$addon.'&style='.$style.'&ver='.$ver.'">';
$exto=$ext[$i];
$ddirrp=substr_count($exto,"!");
if($ddirrp==2) {$exto=substr($exto,2);}
if($ddirrp==1) {$exto=substr($exto,1);}
if($ddirrp=='') {$exto=latrus($exto);}
print $exto;
print '</a>';}
}
} else { if($dirr!=$papkas) {print '<a href="'.$this_file.'?show='.$dirr.'&style='.$style.'&ver='.$ver.'">Назад</a>';} else {if($ver==0) {print '</div>';}
}}
if($dirr!=$papkas) {print $footer; } else {print '® '.$copy.'';}
$style_this=substr($style,0,-4); $style_this=latrus($style_this); $style_this=str_replace('_',' ',$style_this);
if($ver==0) {print '</div><div class="copy">';} else {print '<br/>';}
if($ver==0){ $gg=1; $ggg='wml'; $ggg1='xhtml(<a href="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$ver.$siska.$vsedela.'&sm=yes&tr='.$tr.'">'.$style_this.'*</a>)';} else {$gg=0; $ggg='xhtml('.$style_this.')'; $ggg1='wml';}
print 'Версия сайта: <a href="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$gg.$siska.'&tr='.$tr.'">'.$ggg.'</a> | '.$ggg1.'';
if($ver==0) { print '</div><div class="block">';}
$sm=htmlspecialchars($sm, ENT_QUOTES);
if($ver==0) {if($sm=="yes") {print '<form action ="'.$this_file.'?'.$sector.'&style='.$style.'&ver='.$ver.$siska.$vsedela.'&tr='.$tr.'" method="post">
Стиль:<select name="style" multiple="false">';
$dir = opendir ("main/css");
while ($style = readdir ($dir))
{if (( $style != ".") && ($style != "..") && ($style != ".htaccess"))
{$style_this=substr($style,0,-4); $style_this=latrus($style_this); $style_this=str_replace('_',' ',$style_this); print '<option value="'.$style.'">'.$style_this.'</option>';}}
print '</select>';
closedir ($dir);
print '<input type="submit" name="go" value="··» "></input></form>';}}
if($count=="") {$file =@file("main/count.php");
if(!empty($file)) {
include("main/count.php"); print $count;} else {echo'<br/>Не могу открыть файл (main/count.php) с Щетиками.<br/> В настройках(main/cfg.php) можно убрать их.'; }} ///////Выводим Сщетчики, баннеры и т.д
}
print $end;
?>