로그인시 문제 발생 -고수님들 부탁드립니다... > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

로그인시 문제 발생 -고수님들 부탁드립니다... 정보

로그인시 문제 발생 -고수님들 부탁드립니다...

본문

아직 해결을 못했습니다.. 작업은 UTF8로 되어있습니다...
고수님들 부탁드립니다
게시판에 붙어있는 로그인쪽에서는 항상 패스워드 : 필수입력입니다.
이런 메세지가 팝업으로 뜨고 확인 하면 로그인이 되네요..
html에 붙어있는 로그인에서는 않그렇습니다.
아웃로그인은 기본베이직입니다...
주소는
 
아이디:test   패스워드:test
 
 
bbs.jpg
 
 
--게시판에 올린 상단파일입니다--
----------------------------------------------------------------------------------
 <?
 $g4_path = ".";
 include_once("$g4_path/_common.php");
 $g4[title] = "반석정밀에 오신것을 환영합니다.";
 include_once("$g4[path]/head.sub.php");
 include_once("$g4[path]/lib/outlogin.lib.php");
 ?>
   <html>
 
  <head>
 <title>반석정밀에 오신것을 환영합니다.</title>
  <script language='javascript' src='/board/commonjs/Embed.js'></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
  <table border="0" width="100%" cellpadding="0" cellspacing="0">
  <tr>
        <td width="200" align="left" valign="top">
            <p><? include "../logo.php"; ?></p>
        </td>
 
        <td width="600" align="left" valign="top">
<p><? include "../top_menu.php"; ?></p>
        </td>
 
          <td width="100%" align="left" valign="top" background="<?=$g4['path']?>/img/top_06.gif"> 
          </td>
    </tr>
    <tr>
 
           <td width="200" align="left" valign="top" height="141">
 
               <table border="0" width="200" cellpadding="0" cellspacing="0">
 
                   <tr>
 
                       <td width="190"><img src="<?=$g4['path']?>/img/sub_top_01.gif" width="200" height="30" border="0"></td>
 
                   </tr>
 
                  <tr>
                      <td width="190">
                          <p><?=outlogin("basic_s"); // ?몃? 濡쒓렇???>
  </p>
                      </td>
                  </tr>
               </table>
 
           </td>
 
        <td width="600" align="left" valign="top" height="141" background="<?=$g4['path']?>/img/sub_top_bg.gif">
<p><? include "../top_sub_pro.php"; ?></p>
        </td>
 
           <td width="100%" align="left" valign="top" height="141" background="<?=$g4['path']?>/img/sub_top_bg.gif"> </td>
 
    </tr>
 
    <tr>
        <td width="200" align="left" valign="top">
            <table border="0" width="200" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="188">
                        <p align="right"><br>
   </p>
                    </td>
                    <td width="12"> </td>
                </tr>
                <tr>
                    <td width="188" height="12">
                        <p align="right"><a href="board.php?bo_table=pro_controller" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_060.gif" width="175" height="26" border="0"></a></p>
                    </td>
                    <td width="12" height="25"> </td>
                </tr>
                <tr>
                    <td width="188">
                        <p align="right"><a href="board.php?bo_table=pro_system" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_061.gif" width="175" height="26" border="0"></a></p>
                    </td>
                    <td width="12"> </td>
                </tr>
                <tr>
                    <td width="188">
                        <p align="right"><a href="board.php?bo_table=pro_robot" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_062.gif" width="175" height="22" border="0"></a></p>
                    </td>
                    <td width="12"> </td>
                </tr>
                <tr>
                    <td width="188">
                        <p align="right"><a href="board.php?bo_table=pro_inline" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_063.gif" width="175" height="25" border="0"></a></p>
                    </td>
                    <td width="12"> </td>
                </tr>
                <tr>
                    <td width="188">
                        <p align="right"><a href="board.php?bo_table=pro_2" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_064.gif" width="175" height="25" border="0"></a></p>
                    </td>
                    <td width="12"> </td>
                </tr>
                <tr>
                    <td width="188" height="4">
                        <p align="right"><a href="board.php?bo_table=pro_thank" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_065.gif" width="175" height="26" border="0"></a></p>
                    </td>
                    <td width="12" height="18"> </td>
                </tr>
                <tr>
                    <td width="188" height="4">
                        <p align="right"><a href="board.php?bo_table=pro_acce" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_066.gif" width="175" height="27" border="0"></a></p>
                    </td>
                    <td width="12" height="18"> </td>
                </tr>
                <tr>
                    <td width="188" height="4">
                        <p align="right"><a href="board.php?bo_table=pro_app" target="_parent"><img src="<?=$g4['path']?>/img/sub_com_067.gif" width="175" height="26" border="0"></a></p>
                    </td>
                    <td width="12" height="18"> </td>
                </tr>
            </table>
 
        </td>
           <td width="600" align="left" valign="top">
 
               <table border="0" width="600" cellpadding="0" cellspacing="0" height="132">
 
                  <tr>
                      <td width="600" height="20" colspan="3">
                          <p><span style="font-size:9pt;"><font face="돋움">Home >Products >Controller</font></span></p>
                      </td>
                  </tr>
                  <tr>
                      <td align="left" valign="top" colspan="3" width="600" height="34">
                          <p><img src="<?=$g4['path']?>/img/sub_com_068.gif" width="598" height="34" border="0"></p>
                      </td>
                  </tr>
                   <tr>
 
                       <td width="9" height="13">
 
                          <p> </p>
                       </td>
 
                      <td width="581" height="13"></td>
                     <td width="10" height="13"> </td>
                   </tr>
 
                   <tr>
 
                       <td width="9" align="left" valign="top" height="10">
 
                          <p> </p>
                       </td>
 
                     <td width="581" align="left" valign="top" height="10">
                         <p align="left">
 
 
 
 
 
 
 
---게시판에 올린 하단 파일입니다-------------
-----------------------------------------------------------------------------------
</p>
                     </td>
                     <td width="10" align="left" valign="top" height="10">
 </td>
                   </tr>
 
                 <tr>
  <td width="9" height="19"> </td>
                     <td width="581" height="19" valign="top">
                         <p> </p>
                     </td>
                     <td width="10" height="19" valign="top"> </td>
                 </tr>
               </table>
 
           </td>
 
         <td width="100%" align="left" valign="top"><? include "../event/quick.php"; ?></td>
 
     </tr>
       <tr>
 
           <td width="927" align="left" valign="top" colspan="3"><img src="<?=$g4['path']?>/img/main_014.gif" width="7" height="11" border="0"></td>
 
       </tr>
 
       <tr>
 
           <td width="927" height="9" align="left" valign="top" colspan="3" bgcolor="#EFEFEF"><img src="<?=$g4['path']?>/img/main_014.gif" width="7" height="11" border="0"></td>
 
       </tr>
 
       <tr>
 
           <td width="927" height="9" align="left" valign="top" colspan="3"><img src="<?=$g4['path']?>/img/main_015.gif" width="800" height="64" border="0"></td>
       </tr>
   </table>
   </body>
   </html>

댓글 전체

일단 그누보드의 head.sub.php에는 즉 <body>태그까지가 기본으로 들어가 있습니다.

아래 내용에서 스크립트 및 메타 내용을 헤드서브로 옮기시고 삭제 하십시오.

<html>
 
  <head>
 <title>반석정밀에 오신것을 환영합니다.</title>
  <script language='javascript' src='/board/commonjs/Embed.js'></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">



그누보드 기본 tail.sub.php에는
<script language="javascript" src="<?=$g4['path']?>/js/wrest.js"></script>

<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>

<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>

</body>
</html>
<?
$tmp_sql = " select count(*) as cnt from $g4[login_table] where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
$tmp_row = sql_fetch($tmp_sql);
//sql_query(" lock table $g4[login_table] write ", false);
if ($tmp_row['cnt'])
{
$tmp_sql = " update $g4[login_table] set mb_id = '$member[mb_id]', lo_datetime = '$g4[time_ymdhis]', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
sql_query($tmp_sql, FALSE);
}
else
{
$tmp_sql = " insert into $g4[login_table] ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '$_SERVER[REMOTE_ADDR]', '$member[mb_id]', '$g4[time_ymdhis]', '$lo_location',  '$lo_url' ) ";
sql_query($tmp_sql, FALSE);

// 시간이 지난 접속은 삭제한다
sql_query(" delete from $g4[login_table] where lo_datetime < '".date("Y-m-d H:i:s", $g4[server_time] - (60 * $config[cf_login_minutes]))."' ");

// 부담(overhead)이 있다면 테이블 최적화
//$row = sql_fetch(" SHOW TABLE STATUS FROM `$mysql_db` LIKE '$g4[login_table]' ");
//if ($row['Data_free'] > 0) sql_query(" OPTIMIZE TABLE $g4[login_table] ");
}
//sql_query(" unlock tables ", false);
?>

즉</bodY></html>이 들어가 있습니다.

<script language="javascript" src="<?=$g4['path']?>/js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
를 body 태그가 닫히기 전에 넣어 보시고

게시판 상단부분의 필요한 스크립트 등은 헤드서브에 포함시키시거나 하시고
중첩되는 <html>에서 <body>를 없애 보세요
컥~~~!

참고로 해당페이지 소스보기 한 번 해보시죠...

얼마나 html 태그들이 중복 되었는지를......

이로 인해 발생되는 문제일듯 싶습니다.

나모로 작업하셨네요...나모는 비 추천 드립니다.......^^


** 가장 중요한 답변 : 아래도 똑같은 질문을 하셨지만 답을 못드리는 이유?........

    허공에다가 붓으로 그림을 그리는 재주가 고수라도 없답니다...(저도 고수는 아닙니다)
저도 옛적에 이런 현상이 나던데요. 그리하여 해결하였어요.
즉 스킨에서 로그인하기전에 파일을 열고
<input type="text" 이걸 <input type="password" 이렇게 고쳐주세요.
그럼 해결될거에요.
나모는 쓰기가 않좋아요. 전 현재 드림위버 8.0을 사용하고 있어요. 암튼 dajo 님 저희 말대로
<input type="text" 이걸 <input type="password" 이렇게 고쳐주세요.
그럼 무조건 해결돼요.
아무리 생각해도 아웃로그인과 게시판 로그인과 충돌나는듯 님그림자님 basic_s 는 basic게시판이 안되서 벼래별 방법을 다 사용해서 하느라고 복사해서 폴더를 하나더 만든거에용 흑흑흑
전체 19 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT