From c07c00659fbc601c53e5e17c8276da50c2bb8c5f Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Nov 2013 18:21:52 +0900 Subject: [PATCH] =?UTF-8?q?G5=5FUSE=5FMOBILE=20=EC=83=81=EC=88=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC=20PC=20=EB=B2=84=EC=A0=84=20=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/tail.php | 39 ++++++++++++++++++++++----------------- tail.php | 2 +- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/mobile/tail.php b/mobile/tail.php index b5d830adf..04b42d4a2 100644 --- a/mobile/tail.php +++ b/mobile/tail.php @@ -40,27 +40,32 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 $val) { - if($key == 'device') - continue; +if(G5_USE_MOBILE && G5_IS_MOBILE) { + $seq = 0; + $href = $_SERVER['PHP_SELF']; + if($_SERVER['QUERY_STRING']) { + $sep = '?'; + foreach($_GET as $key=>$val) { + if($key == 'device') + continue; - $href .= $sep.$key.'='.$val; - $sep = '&'; - $seq++; + $href .= $sep.$key.'='.$val; + $sep = '&'; + $seq++; + } } -} -if($seq) - $href .= '&device=pc'; -else - $href .= '?device=pc'; + if($seq) + $href .= '&device=pc'; + else + $href .= '?device=pc'; ?> - PC 버전으로 보기 - \ No newline at end of file diff --git a/tail.php b/tail.php index d31191f07..75a947b28 100644 --- a/tail.php +++ b/tail.php @@ -35,7 +35,7 @@ if ($config['cf_include_tail']) {