답변 1개 / 댓글 1개
수정하신건 없나요? 해당 함수는 common.lib.php
에 있습니다
function get_device_change_url()
{
$p = @parse_url(G5_URL);
$href = $p['scheme'].'://'.$p['host'];
if(isset($p['port']) && $p['port'])
$href .= ':'.$p['port'];
$href .= $_SERVER['SCRIPT_NAME'];
$q = array();
$device = 'device='.(G5_IS_MOBILE ? 'pc' : 'mobile');
if($_SERVER['QUERY_STRING']) {
foreach($_GET as $key=>$val) {
if($key == 'device')
continue;
$key = strip_tags($key);
$val = strip_tags($val);
if($key && $val)
$q[$key] = $val;
}
}
if(!empty($q)) {
$query = http_build_query($q, '', '&');
$href .= '?'.$query.'&'.$device;
} else {
$href .= '?'.$device;
}
return $href;
}
답변을 작성하려면 로그인이 필요합니다.
common.lib.php 파일은 www하위에 있나요..? 찾아도 안 보이네요 ㅜㅜ