Просмотр файла zagrcent/index.php

Размер файла: 1.49Kb
  1. <?php
  2.  
  3. require_once ("../includes/start.php");
  4. require_once ("../includes/functions.php");
  5. require_once ("../includes/header.php");
  6. include_once ("../themes/".$config['themes']."/index.php");
  7.  
  8.  
  9.  
  10. require_once 'nast.php';
  11. require_once 'shapka.php';
  12. require_once 'func.php';
  13.  
  14. print $beginpage.$vydel;
  15.  
  16. $str=@$_GET['str'];
  17. if($str=='xhtml')
  18. {print 'Загрузки:<br/>';}
  19.  
  20. print $vydel1;
  21.  
  22. require 'rekl.php';
  23.  
  24. print $razd.' <a href="search.php?str='.$str.'">Поиск файлов</a><br/>'.$razd;
  25.  
  26. $file=file('sd.txt');
  27. $page=intval(@$page);
  28. $start=$page*$kolr;
  29. $end=$start+$kolr;
  30. $count=count($file);
  31. if($count<$end)
  32. {$end=$count;}
  33.  
  34. for($i=$start; $i<$end; $i++)
  35. {
  36. $j=explode('|',$file[$i]);
  37. $c=countf($j[0],'load',$allfiler);
  38.  
  39. if(($c>0 or $pusto) and is_dir('load/'.$j[0]))
  40. {
  41. print '<a href="sd.php?sd='.$j[0].'&amp;str='.$str.'">'.$j[1].'</a>('.$c.')<br/>';
  42. if(trim(@$j[2]))
  43. {print $j[2].'<br/>';}
  44. }
  45. }
  46.  
  47. if($end<$count)
  48. {print '<a href="index.php?page='.($page+1).'&amp;str='.$str.'">Далее</a><br/>';}
  49. if($page>0)
  50. {print '<a href="index.php?page='.($page-1).'&amp;str='.$str.'">Назад</a><br/>';}
  51. if($str=='xhtml')
  52. {print $razd.'<a href="zakaz.php?str='.$str.'"><font color="green">Стол заказов</font></a><br/>';}
  53. else
  54. {print $razd.'<a href="zakaz.php?str='.$str.'">Стол заказов</a><br/>';}
  55. print $razd;
  56.  
  57. include 'online.php';
  58. //$onl_c->count_onl();
  59. print $endpage;
  60.  
  61.  
  62. include_once ("themes/".$config['themes']."/foot.php");
  63. ?>