<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/  $m = isset($_GET['m'])?trim($_GET['m']):'index'; $a = isset($_GET['a'])?trim($_GET['a']):'index'; $url = cfg('browser'); if($url == 'wap' || $url == 'wchat'){ if(UQCMS_APP == 'home'){ $get_param = ''; foreach($_GET as $k=>$v){ if($k == 'm' || $k=='a'){ }else{ $get_param .= '&'.$k.'='.$v; } } $arr = array( 'index|index'=>'wap.php', 'goods|detail'=>'wap.php?m=goods&a=detail', ); $now_aa = $m.'|'.$a; if(isset($arr[$now_aa])){ $url = $arr[$now_aa]; if($now_aa == 'index|index'){ }else{ $url = $url.$get_param; } header("Location:".$url); } } } 