Merge branch 'g5'

This commit is contained in:
chicpro
2013-11-18 18:22:32 +09:00
2 changed files with 23 additions and 18 deletions

View File

@ -40,27 +40,32 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
<?php
$seq = 0;
$href = $_SERVER['PHP_SELF'];
if($_SERVER['QUERY_STRING']) {
$sep = '?';
foreach($_GET as $key=>$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 = '&amp;';
$seq++;
$href .= $sep.$key.'='.$val;
$sep = '&amp;';
$seq++;
}
}
}
if($seq)
$href .= '&amp;device=pc';
else
$href .= '?device=pc';
if($seq)
$href .= '&amp;device=pc';
else
$href .= '?device=pc';
?>
<a href="<?php echo $href; ?>" id="device_change">PC 버전으로 보기</a>
<?php
}
if ($config['cf_analytics']) {
echo $config['cf_analytics'];
}
include_once(G5_PATH."/tail.sub.php");
?>

View File

@ -35,7 +35,7 @@ if ($config['cf_include_tail']) {
</div>
<?php
if(!G5_IS_MOBILE) {
if(G5_USE_MOBILE && !G5_IS_MOBILE) {
$seq = 0;
$href = $_SERVER['PHP_SELF'];
if($_SERVER['QUERY_STRING']) {