人人商城

home.ctrl.php 707B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. $do = safe_gpc_belong($do, array('switch', 'display'), 'display');
  8. if($do == 'display') {
  9. $modulelist = uni_modules();
  10. if (!empty($modulelist)) {
  11. foreach ($modulelist as $name => &$row) {
  12. if (!empty($row['issystem']) || (!empty($_GPC['keyword']) && !strexists ($row['title'], $_GPC['keyword'])) || (!empty($_GPC['letter']) && $row['title_initial'] != $_GPC['letter'])) {
  13. unset($modulelist[$name]);
  14. continue;
  15. }
  16. }
  17. $modules = $modulelist;
  18. }
  19. template('webapp/home');
  20. }