site.php 621 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * 模块接口
  4. *
  5. * @author 泸州市音速科技有限公司
  6. * @url https://www.rryong.cn
  7. */
  8. error_reporting(0);
  9. // error_reporting(E_ERROR | E_WARNING | E_PARSE);
  10. // error_reporting(E_ALL);
  11. defined('IN_IA') or exit('Access Denied');
  12. class Wike_agingModuleSite extends WeModuleSite
  13. {
  14. public function __call($name, $arguments)
  15. {
  16. $host = isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
  17. header("Location:http://" . $host . '/addons/wike_aging/public/index.php');
  18. }
  19. }