人人商城

rewrite.ctrl.php 762B

12345678910111213141516171819202122
  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. $dos = array('display');
  8. $do = in_array($do, $dos) ? $do : 'display';
  9. $_W['page']['title'] = '伪静态';
  10. if ($do == 'display') {
  11. if (!empty($_W['account']['setting']['default_module'])) {
  12. $eid = table('modules_bindings')->where('module', $_W['account']['setting']['default_module'])->getcolumn('eid');
  13. }
  14. if (!empty($eid)) {
  15. $url = !empty($_W['account']['setting']['bind_domain']) ? current($_W['account']['setting']['bind_domain']) . '/' : $_W['siteroot'];
  16. $url .= $_W['uniacid'] . '-' . $eid .'.html';
  17. }
  18. template('webapp/rewrite');
  19. }