人人商城

welcome.ctrl.php 934B

123456789101112131415161718192021222324252627282930313233
  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. load()->model('module');
  8. if (!empty($_W['uid'])) {
  9. header('Location: '.url('account/display', array('type' => ACCOUNT_TYPE_SIGN)));
  10. exit;
  11. }
  12. $settings = $_W['setting'];
  13. if (!empty($settings['site_welcome_module'])) {
  14. $site = WeUtility::createModuleSystemWelcome($settings['site_welcome_module']);
  15. if (!is_error($site)) {
  16. exit($site->systemWelcomeDisplay());
  17. }
  18. }
  19. $copyright = $settings['copyright'];
  20. $copyright['slides'] = iunserializer($copyright['slides']);
  21. if (isset($copyright['showhomepage']) && empty($copyright['showhomepage'])) {
  22. header("Location: ".url('user/login'));
  23. exit;
  24. }
  25. load()->model('article');
  26. $notices = article_notice_home();
  27. $news = article_news_home();
  28. template('account/welcome');