모바일에서 무한...로딩...모바일로 접속해야지만 아실수 있으실거에요 정보
모바일에서 무한...로딩...모바일로 접속해야지만 아실수 있으실거에요관련링크
http://haruai.com/m
110회 연결
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
<!-- 모바일 이동시작 -->
<script type="text/javascript">
//<![CDATA[
//모바일 페이지로 자동 포워딩
function isMobileBrowser(a)
{
return (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iphone|iris|kindle|lge |maemo|midp|mmp|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))
}
if ( isMobileBrowser(navigator.userAgent||navigator.vendor||window.opera))
{
location.href="이동할 모바일용 페이지 경로";
}
//]]>
</script>
<!-- 모바일 페이지 이동소스끝 -->
이 부분을 www/
head.sub.php부분에 추가를 했구요
/m으로 이동이 되게 해놨어요
/m은...G4M을 사용하였는데...
계속 사이트만 불러 오기만 하구...
어디가 잘못된건지 통 모르겠네요...
사이트 주소 올려볼게요
모바일에서 확인해야 아실 수 있어요.
도움 부탁드려요...ㅜ
오류 주소 :
<!-- 모바일 이동시작 -->
<script type="text/javascript">
//<![CDATA[
//모바일 페이지로 자동 포워딩
function isMobileBrowser(a)
{
return (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iphone|iris|kindle|lge |maemo|midp|mmp|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))
}
if ( isMobileBrowser(navigator.userAgent||navigator.vendor||window.opera))
{
location.href="이동할 모바일용 페이지 경로";
}
//]]>
</script>
<!-- 모바일 페이지 이동소스끝 -->
이 부분을 www/
head.sub.php부분에 추가를 했구요
/m으로 이동이 되게 해놨어요
/m은...G4M을 사용하였는데...
계속 사이트만 불러 오기만 하구...
어디가 잘못된건지 통 모르겠네요...
사이트 주소 올려볼게요
모바일에서 확인해야 아실 수 있어요.
도움 부탁드려요...ㅜ
댓글 전체
/m/head.sub.php 에도
모바일포워딩 을 소스를추가하신 듯 합니다
뺴주세요.
당연히 새로고침(되지요..)
왜냐... 포워딩을 계속 시키니까요..
소스를 뺴보세요.
/m/head.sub.php 에 있는 모바일포워딩 소스를 빼주세요.
모바일포워딩 을 소스를추가하신 듯 합니다
뺴주세요.
당연히 새로고침(되지요..)
왜냐... 포워딩을 계속 시키니까요..
소스를 뺴보세요.
/m/head.sub.php 에 있는 모바일포워딩 소스를 빼주세요.
<?php
/*
* http://www.g4mob.com
*/
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member['mb_memo_call'], "mb_nick");
sql_query(" update {$g4['member_table']} set mb_memo_call = '' where mb_id = '{$member['mb_id']}' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER['REQUEST_URI']);
}
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset={$g4['charset']}");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta name="Author" content="g4mob.com"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" />
<meta http-equiv="content-type" content="text/html; charset=<?php echo $g4['charset'] ?>"/>
<title><?php echo $g4['title'] ?></title>
<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?php echo $g4['path'] ?>";
var g4m_path = "<?php echo $g4['g4m_path'] ?>";
var g4_bbs = "<?php echo $g4['bbs'] ?>";
var g4m_bbs = "<?php echo $g4['g4m_bbs'] ?>";
var g4_bbs_img = "<?php echo $g4['bbs_img'] ?>";
var g4_url = "<?php echo $g4['url'] ?>";
var g4_is_member = "<?php echo $is_member ?>";
var g4_is_admin = "<?php echo $is_admin ?>";
var g4_bo_table = "<?php echo isset($bo_table) ? $bo_table : ''; ?>";
var g4_sca = "<?php echo isset($sca) ? $sca : ''; ?>";
var g4_charset = "<?php echo $g4['charset'] ?>";
var g4_cookie_domain = "<?php echo $g4['cookie_domain'] ?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<?php if ($is_admin) {
echo "var g4_admin = '{$g4['admin']}';";
} ?>
</script>
<script type="text/javascript" src="<?php echo $g4['g4m_path'] ?>/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo $g4['g4m_path'] ?>/js/common.js"></script>
<!-- <link type="text/css" href="<?php echo $g4['g4m_path'] ?>/css/mobile.css" rel="stylesheet" /> -->
<style type="text/css">
body {
/*padding-top: 60px;
padding-bottom: 40px;*/
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<!-- site skin -->
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/bootstrap.css" rel="stylesheet"/>
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/bootstrap-responsive.css" rel="stylesheet"/>
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/default.css" rel="stylesheet"/>
<script type="text/javascript" src="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/js/bootstrap.min.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- // site skin -->
</head>
<body>
/*
* http://www.g4mob.com
*/
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member['mb_memo_call'], "mb_nick");
sql_query(" update {$g4['member_table']} set mb_memo_call = '' where mb_id = '{$member['mb_id']}' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER['REQUEST_URI']);
}
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset={$g4['charset']}");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta name="Author" content="g4mob.com"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" />
<meta http-equiv="content-type" content="text/html; charset=<?php echo $g4['charset'] ?>"/>
<title><?php echo $g4['title'] ?></title>
<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?php echo $g4['path'] ?>";
var g4m_path = "<?php echo $g4['g4m_path'] ?>";
var g4_bbs = "<?php echo $g4['bbs'] ?>";
var g4m_bbs = "<?php echo $g4['g4m_bbs'] ?>";
var g4_bbs_img = "<?php echo $g4['bbs_img'] ?>";
var g4_url = "<?php echo $g4['url'] ?>";
var g4_is_member = "<?php echo $is_member ?>";
var g4_is_admin = "<?php echo $is_admin ?>";
var g4_bo_table = "<?php echo isset($bo_table) ? $bo_table : ''; ?>";
var g4_sca = "<?php echo isset($sca) ? $sca : ''; ?>";
var g4_charset = "<?php echo $g4['charset'] ?>";
var g4_cookie_domain = "<?php echo $g4['cookie_domain'] ?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<?php if ($is_admin) {
echo "var g4_admin = '{$g4['admin']}';";
} ?>
</script>
<script type="text/javascript" src="<?php echo $g4['g4m_path'] ?>/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo $g4['g4m_path'] ?>/js/common.js"></script>
<!-- <link type="text/css" href="<?php echo $g4['g4m_path'] ?>/css/mobile.css" rel="stylesheet" /> -->
<style type="text/css">
body {
/*padding-top: 60px;
padding-bottom: 40px;*/
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<!-- site skin -->
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/bootstrap.css" rel="stylesheet"/>
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/bootstrap-responsive.css" rel="stylesheet"/>
<link href="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/css/default.css" rel="stylesheet"/>
<script type="text/javascript" src="<?php echo "{$g4['g4m_site_skin']}/{$config['cf_m_site_skin']}" ?>/js/bootstrap.min.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- // site skin -->
</head>
<body>
흠,head.sub.php 가아니라면,
혹시 /m/ 폴더중에 head.php / index.php 를 확인해보세요
전체페이지 다 뜨는것으로보아 head.php소스도 부탁드려요.
혹시 /m/ 폴더중에 head.php / index.php 를 확인해보세요
전체페이지 다 뜨는것으로보아 head.php소스도 부탁드려요.
이게 /m/head.sub.php 부분 입니다. 하아...
보시는 것 처럼 없는데 ㅠㅠ
보시는 것 처럼 없는데 ㅠㅠ
어딘가에서 아래소스를 호출합니다.
-----------------
<!-- 모바일 이동시작 -->
<script type="text/javascript">
//<![CDATA[
//모바일 페이지로 자동 포워딩
function isMobileBrowser(a)
{
return (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iphone|iris|kindle|lge |maemo|midp|mmp|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))
}
if ( isMobileBrowser(navigator.userAgent||navigator.vendor||window.opera))
{
location.href="http://haruai.com/m";
}
//]]>
</script>
<!-- 모바일 페이지 이동소스끝 -->
-----------------
<!-- 모바일 이동시작 -->
<script type="text/javascript">
//<![CDATA[
//모바일 페이지로 자동 포워딩
function isMobileBrowser(a)
{
return (/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iphone|iris|kindle|lge |maemo|midp|mmp|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))
}
if ( isMobileBrowser(navigator.userAgent||navigator.vendor||window.opera))
{
location.href="http://haruai.com/m";
}
//]]>
</script>
<!-- 모바일 페이지 이동소스끝 -->
<?
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
function BoardUrl($set_bo_table) {
echo "bbs/board.php?bo_table=$set_bo_table";
}
?>
<SCRIPT LANGUAGE="JavaScript">
function side_content() {
if(sidecontent.style.display != "none") {
sidecontent.style.display = "none";
sidebtn.src="<?=$g4[path]?>/img/btn_side_open.png";
} else {
sidecontent.style.display = "block";
sidebtn.src="<?=$g4[path]?>/img/btn_side_close.png";
}
}
</SCRIPT>
<Style>
#header {border:0px;height:45px;position:fixed;vertical-align:top;width:100%;background: rgb(255,137,137); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,137,137,1) 0%, rgba(239,83,83,1) 40%, rgba(224,6,6,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,137,137,1)), color-stop(40%,rgba(239,83,83,1)), color-stop(100%,rgba(224,6,6,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8989', endColorstr='#e00606',GradientType=0 ); /* IE6-9 */
border-bottom:1px solid #e73535;}
#header .title {color:#fff;text-shadow:0 1px 1px #000;text-align:center;font-weight:bold;font-size:15pt;}
</Style>
<!-- 모바일 Header -->
<table cellpadding=0 cellspacing=0 id=header>
<tr>
<td align=left width=50><a href="javascript:history.back()"><img src="<?=$g4[path]?>/m/img/back.png" border=0 align=absmiddle></a></td>
<td class=title>Hello</td>
<td align=right width=50><a href="javascript:location.reload()"><img src="<?=$g4[path]?>/m/img/reload.png" border=0 align=absmiddle></a></td>
</tr>
</table>
<!-- Header END -->
<div style="height:45px;"> </div>
----이 부분이 head 입니다.
include_once("./_common.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
function BoardUrl($set_bo_table) {
echo "bbs/board.php?bo_table=$set_bo_table";
}
?>
<SCRIPT LANGUAGE="JavaScript">
function side_content() {
if(sidecontent.style.display != "none") {
sidecontent.style.display = "none";
sidebtn.src="<?=$g4[path]?>/img/btn_side_open.png";
} else {
sidecontent.style.display = "block";
sidebtn.src="<?=$g4[path]?>/img/btn_side_close.png";
}
}
</SCRIPT>
<Style>
#header {border:0px;height:45px;position:fixed;vertical-align:top;width:100%;background: rgb(255,137,137); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,137,137,1) 0%, rgba(239,83,83,1) 40%, rgba(224,6,6,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,137,137,1)), color-stop(40%,rgba(239,83,83,1)), color-stop(100%,rgba(224,6,6,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,137,137,1) 0%,rgba(239,83,83,1) 40%,rgba(224,6,6,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff8989', endColorstr='#e00606',GradientType=0 ); /* IE6-9 */
border-bottom:1px solid #e73535;}
#header .title {color:#fff;text-shadow:0 1px 1px #000;text-align:center;font-weight:bold;font-size:15pt;}
</Style>
<!-- 모바일 Header -->
<table cellpadding=0 cellspacing=0 id=header>
<tr>
<td align=left width=50><a href="javascript:history.back()"><img src="<?=$g4[path]?>/m/img/back.png" border=0 align=absmiddle></a></td>
<td class=title>Hello</td>
<td align=right width=50><a href="javascript:location.reload()"><img src="<?=$g4[path]?>/m/img/reload.png" border=0 align=absmiddle></a></td>
</tr>
</table>
<!-- Header END -->
<div style="height:45px;"> </div>
----이 부분이 head 입니다.
<?
include_once("_common.php");
include_once("head.php");
// 메인 배너
$main_banner = array();
$main_banner[0][url] = "http://m.haruai.com";
$main_banner[0][img] = "$g4[path]/adver/ad5.gif";
$main_banner[0][tar] = "_self";
$main_banner[1][url] = "http://www.haruai.com/";
$main_banner[1][img] = "$g4[path]/adver/ad2.gif";
$main_banner[1][tar] = "_self";
$main_banner[2][url] = "http://company.haruai.com";
$main_banner[2][img] = "$g4[path]/adver/ad2.gif";
$main_banner[2][tar] = "_self";
$main_banner[3][url] = "http://center.haruai.com/";
$main_banner[3][img] = "$g4[path]/adver/ad3.gif";
$main_banner[3][tar] = "_self";
$main_banner[4][url] = "http://center.haruai.com/";
$main_banner[4][img] = "$g4[path]/adver/ad4.gif";
$main_banner[4][tar] = "_self";
shuffle($main_banner);
?>
<!-- 중앙--><div id="main_banner_div" style="height:150;border:0;"><a href="<?=$main_banner[0][url]?>" target="<?=$main_banner[0][tar]?>"
id="main_banner_url"><img src="<?=$main_banner[0][img]?>" id="main_banner_img" style="max-width:100%;height:150; border="0"></a></div>
<!-- Main -->
<table width="100%" id="main" border=0 cellpadding=0 cellspacing=0>
<tr>
<td width="100%" valign="top">
</td>
<div style="height:45;"></div>
<?
include_once("tail.php");
?>
-*-*-* 이 부분이 index 입니다.
include_once("_common.php");
include_once("head.php");
// 메인 배너
$main_banner = array();
$main_banner[0][url] = "http://m.haruai.com";
$main_banner[0][img] = "$g4[path]/adver/ad5.gif";
$main_banner[0][tar] = "_self";
$main_banner[1][url] = "http://www.haruai.com/";
$main_banner[1][img] = "$g4[path]/adver/ad2.gif";
$main_banner[1][tar] = "_self";
$main_banner[2][url] = "http://company.haruai.com";
$main_banner[2][img] = "$g4[path]/adver/ad2.gif";
$main_banner[2][tar] = "_self";
$main_banner[3][url] = "http://center.haruai.com/";
$main_banner[3][img] = "$g4[path]/adver/ad3.gif";
$main_banner[3][tar] = "_self";
$main_banner[4][url] = "http://center.haruai.com/";
$main_banner[4][img] = "$g4[path]/adver/ad4.gif";
$main_banner[4][tar] = "_self";
shuffle($main_banner);
?>
<!-- 중앙--><div id="main_banner_div" style="height:150;border:0;"><a href="<?=$main_banner[0][url]?>" target="<?=$main_banner[0][tar]?>"
id="main_banner_url"><img src="<?=$main_banner[0][img]?>" id="main_banner_img" style="max-width:100%;height:150; border="0"></a></div>
<!-- Main -->
<table width="100%" id="main" border=0 cellpadding=0 cellspacing=0>
<tr>
<td width="100%" valign="top">
</td>
<div style="height:45;"></div>
<?
include_once("tail.php");
?>
-*-*-* 이 부분이 index 입니다.
아..미치겠네요.. 어디선가 호출을 하긴하는데...
head / head.sub.php 는 아니에요
근데, 소스 상으로는 head.sub.php 가 가능성이 제일 높은데..
근데, 소스 상으로는 head.sub.php 가 가능성이 제일 높은데..
저도 환장하겠네요...이상한 부분이 없는것 같은데...
도대체 왜이러는지...ㅠㅠ
도대체 왜이러는지...ㅠㅠ
그렇다면, 혹시 모르니
가능성이 희박하지만
모바일 폴더말고
/홈폴더/m/이렇게 있으면
홈폴더에있는 head.sub.php에 있는
모바일이동을 뺴보시구, 테스트해보세요.
가능성이 희박하지만
모바일 폴더말고
/홈폴더/m/이렇게 있으면
홈폴더에있는 head.sub.php에 있는
모바일이동을 뺴보시구, 테스트해보세요.
모바일 head 안에
include_once("$g4[path]/head.sub.php");
이게 있었네요
include_once("$g4[path]/head.sub.php");
이게 있었네요
^^
해결하셔서 다행입니다~^^
해결하셔서 다행입니다~^^
모바일 접속인지의 판별을 저런 복잡하고 긴 코드로 해야하는지 모르겠습니다
if(screen.width<450) location.href=~~~~
pc해상도가 450이하는 없을 것이고 모바일 해상도가 450이상을 없을테니
이런식으로 가로 픽셀 크기로 판단하면 간단할텐데...
if(screen.width<450) location.href=~~~~
pc해상도가 450이하는 없을 것이고 모바일 해상도가 450이상을 없을테니
이런식으로 가로 픽셀 크기로 판단하면 간단할텐데...
와우 균이님 말씀처럼
그런식으로 잡는다면
태블릿과 모바일 구분 짓기도 편하겠네요 ㅎㅎ
그런식으로 잡는다면
태블릿과 모바일 구분 짓기도 편하겠네요 ㅎㅎ