boost.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. if ($section == $service)
  19. $boosts .= '<li><a href="[acp]boost/section/' . $section . '" class="active"><i class="fa fa-list-ol"></i> ' . $aBoost['cs'][$section]['site'] . '</a></li>';
  20. else
  21. $boosts .= '<li><a href="[acp]boost/section/' . $service . '"><i class="fa fa-list-ol"></i> ' . $aBoost['cs'][$service]['site'] . '</a></li>';
  22. }
  23. $html->set('boosts', $boosts);
  24. $html->pack('menu');
  25. $inc = $section != 'index' ? 'service' : 'index';
  26. include(SEC . 'boost/' . $inc . '.php');
  27. ?>