boost.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. if(!DEFINED('EGP'))
  3. exit(header('Refresh: 0; URL=http://'.$_SERVER['SERVER_NAME'].'/404'));
  4. include(DATA.'boost.php');
  5. $info = '<i class="fa fa-cloud"></i> Статистика BOOST CS: 1.6';
  6. $aSection = $aBoost['cs']['boost'];
  7. if($section == 'search')
  8. include(SEC.'boost/search.php');
  9. if(!in_array($section, $aSection))
  10. $section = 'index';
  11. $html->get('menu', 'sections/boost');
  12. $boosts = '';
  13. if($section != 'index')
  14. $html->unit('s_index');
  15. else
  16. $html->unit('s_index', true);
  17. foreach($aSection as $service)
  18. {
  19. if($section == $service)
  20. $boosts .= '<li><a href="[acp]boost/section/'.$section.'" class="active"><i class="fa fa-list-ol"></i> '.$aBoost['cs'][$section]['site'].'</a></li>';
  21. else
  22. $boosts .= '<li><a href="[acp]boost/section/'.$service.'"><i class="fa fa-list-ol"></i> '.$aBoost['cs'][$service]['site'].'</a></li>';
  23. }
  24. $html->set('boosts', $boosts);
  25. $html->pack('menu');
  26. $inc = $section != 'index' ? 'service' : 'index';
  27. include(SEC.'boost/'.$inc.'.php');
  28. ?>