고수님들 많이 도와주세요..ㅠ.ㅠ 에러가...ㅜ.ㅠ > 그누4 질문답변

그누4 질문답변

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

고수님들 많이 도와주세요..ㅠ.ㅠ 에러가...ㅜ.ㅠ 정보

고수님들 많이 도와주세요..ㅠ.ㅠ 에러가...ㅜ.ㅠ

본문

현재버전 : 4.06.16 (06.01.31)
호스팅 : ivyro.net

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/lib/common.lib.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home1/****/public_html/gnuboard4/index.php:2) in /home1/****/public_html/gnuboard4/head.sub.php on line 38

위와 같은 에러가 자꾸 발생하네요..
자동로그인도 안되구요..
head.sub.php가 중복 인클루드되어 있지도 안은데 외그러는지..ㅠ.ㅠ
혹 config.php부분 쿠키도메인 설정이 잘못되어 있는건지...

config.php

============================================================================

<?
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define("_GNUBOARD_", TRUE);

// 디렉토리
$g4[bbs]            = "bbs";
$g4[bbs_path]      = $g4[path] . "/" . $g4[bbs];
$g4[bbs_img]        = "img";
$g4[bbs_img_path]  = $g4[path] . "/" . $g4[bbs] . "/" . $g4[bbs_img];

$g4[admin]          = "adm";
$g4[admin_path]    = $g4[path] . "/" . $g4[admin];

$g4[editor]        = "cheditor";
$g4[editor_path]    = $g4[path] . "/" . $g4[editor];

// 자주 사용하는 값
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
// 하루는 86400 초입니다. 1시간은 3600초
// 6시간이 빠른 경우 time() + (3600 * 6);
// 6시간이 느린 경우 time() - (3600 * 6);
$g4[server_time] = time();
$g4[time_ymd]    = date("Y-m-d", $g4[server_time]);
$g4[time_his]    = date("H:i:s", $g4[server_time]);
$g4[time_ymdhis] = date("Y-m-d H:i:s", $g4[server_time]);

//
// 테이블 명
// (상수로 선언한것은 함수에서 global 선언을 하지 않아도 바로 사용할 수 있기 때문)
//
$g4[table_prefix]        = "g4_"; // 테이블명 접두사
$g4[write_prefix]        = $g4[table_prefix] . "write_"; // 게시판 테이블명 접두사

$g4[auth_table]          = $g4[table_prefix] . "auth";          // 관리권한 설정 테이블
$g4[config_table]        = $g4[table_prefix] . "config";        // 기본환경 설정 테이블
$g4[group_table]        = $g4[table_prefix] . "group";        // 게시판 그룹 테이블
$g4[group_member_table]  = $g4[table_prefix] . "group_member";  // 게시판 그룹+회원 테이블
$g4[board_table]        = $g4[table_prefix] . "board";        // 게시판 설정 테이블
$g4[board_file_table]    = $g4[table_prefix] . "board_file";    // 게시판 첨부파일 테이블
$g4[board_new_table]    = $g4[table_prefix] . "board_new";    // 게시판 새글 테이블
$g4[login_table]        = $g4[table_prefix] . "login";        // 로그인 테이블 (접속자수)
$g4[mail_table]          = $g4[table_prefix] . "mail";          // 회원메일 테이블
$g4[member_table]        = $g4[table_prefix] . "member";        // 회원 테이블
$g4[memo_table]          = $g4[table_prefix] . "memo";          // 메모 테이블
$g4[poll_table]          = $g4[table_prefix] . "poll";          // 투표 테이블
$g4[poll_etc_table]      = $g4[table_prefix] . "poll_etc";      // 투표 기타의견 테이블
$g4[point_table]        = $g4[table_prefix] . "point";        // 포인트 테이블
$g4[popular_table]      = $g4[table_prefix] . "popular";      // 인기검색어 테이블
$g4[scrap_table]        = $g4[table_prefix] . "scrap";        // 게시글 스크랩 테이블
$g4[visit_table]        = $g4[table_prefix] . "visit";        // 방문자 테이블
$g4[visit_sum_table]    = $g4[table_prefix] . "visit_sum";    // 방문자 합계 테이블
//$g4[zip_table]          = $g4[table_prefix] . "zip";          // 우편번호 테이블

//
// 기타
//

// www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요.
// 이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
$g4[cookie_domain] = ".****.com";

// 게시판에서 링크의 기본갯수를 말합니다.
// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오.
$g4[link_count] = 2;

$g4[charset] = "euc-kr";

$g4[phpmyadmin_dir] = $g4[admin] . "/phpMyAdmin/";

// config.php 가 있는곳의 웹경로. 뒤에 / 를 붙이지 마세요.
// 예) http://g4.sir.co.kr
$g4[url] = "http://****.com/gnuboard4";
?>

============================================================================

head.php부분은 수정해서 사용하구 있는데 이부분이 잘못된건지 알수가 없네요..ㅠ.ㅠ

============================================================================

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
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");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;

$c1 = "#006600";
$c2 = "#009900";

$menu = $_GET['menu'];
$fmenu = $menu;
$subp = $_GET['subp'];
$subpp = $_GET['subp'];
$fsubp = $subp;
if ($subp == ""){
$subp = "main.php";
}else{
$subp = "sub".$menu."-".$subp.".htm";
}

if ($menu == "1"){
$c1 = "#006600";
$c2 = "#009900";
$flhi = "220";
}else if ($menu == "2"){
$c1 = "#AD681D";
$c2 = "#FF9900";
$flhi = "140";
}else if ($menu == "3"){
$c1 = "#0000cE";
$c2 = "#0066ff";
$flhi = "60";
}else if ($menu == "4"){
$c1 = "#AD681D";
$c2 = "#FF9900";
$flhi = "200";
}else if ($menu == "5"){
$c1 = "#84009F";
$c2 = "#CC00FF";
$flhi = "220";
}

if ($menu == "" ) {
if ($bo_table == "sub1_4") {
  $fl = "<div style='height:10px;'></div><embed src=http://****.com/gnuboard4/images/submenu1.swf width=160 height=220></embed>";
$fmenu = "1";
$fsubp = "4";
$c1 = "#006600";
$c2 = "#009900";
  }else if ($bo_table == "sub2_5") {
  $fl = "<div style='height:10px;'></div><embed src=http://****.com/gnuboard4/images/submenu2.swf width=160 height=140></embed>";
$fmenu = "2";
$fsubp = "5";
$c1 = "#AD681D";
$c2 = "#FF9900";
}else if ($bo_table == "sub3_1" or $bo_table == "sub3_2") {
  $fl = "<div style='height:10px;'></div><embed src=http://****.com/gnuboard4/images/submenu3.swf width=160 height=140></embed>";
$fmenu = "3";
if ($bo_table == "sub3_1") {
$fsubp = "1";
}else{
$fsubp = "2";
}
$c1 = "#0000cE";
$c2 = "#0066ff";
  }else if ($bo_table == "sub5_1" or $bo_table == "sub5_2" or $bo_table == "sub5_3" or $bo_table == "sub5_4" or $bo_table == "sub5_5" or $bo_table == "sub5_6" or $bo_table == "sub5_7" or $bo_table == "sub5_8") {
  $fl = "<div style='height:10px;'></div><embed src=http://****.com/gnuboard4/images/submenu5.swf width=160 height=220></embed>";
$fmenu = "5";
$c1 = "#84009F";
$c2 = "#CC00FF";
if ( $bo_table == "sub5_1" ) {
$fsubp = "1";
} else if ( $bo_table == "sub5_2" ) {
$fsubp = "2";
} else if ( $bo_table == "sub5_3" ) {
$fsubp = "3";
} else if ( $bo_table == "sub5_4" ) {
$fsubp = "4";
} else if ( $bo_table == "sub5_5" ) {
$fsubp = "5";
} else if ( $bo_table == "sub5_6" ) {
$fsubp = "6";
} else if ( $bo_table == "sub5_7" ) {
$fsubp = "7";
} else if ( $bo_table == "sub5_8" ) {
$fsubp = "8";
}
  }else{
  $fl = "";
  }
} else {
$fl = "<div style='height:10px;'></div><embed src=http://****.com/gnuboard4/images/submenu".$menu.".swf width=160 height=".$flhi."></embed>";
}
$flashsub = $fmenu.$fsubp;
?>

<!-- 상단 배경 시작 -->

<!-- 상단 배경 끝 -->

<!-- 상단 로고 및 버튼 시작 --><style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
-->
</style>
<table width="1004" height="300" cellpadding="0" cellspacing="0">
<tr>
    <td height="57">
<?
echo("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='1004' height='300'>
      <param name='movie' value='http://****.com/gnuboard4/images/menu.swf'>
      <param name='quality' value='high'>
  <param name='wmode' value='transparent'>
  <param name='FlashVars' value='main=".$fmenu."&sub=".$flashsub."'>
      <embed src='http://****.com/gnuboard4/images/menu.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='1004' height='300'></embed>
    </object>");
?>
    </td>
    <!-- 로고 -->
  </tr>
</table>


<div style='height:18px;'></div>

<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>

<table width='1004' cellpadding=0 cellspacing=0>
<tr>
    <td width=24></td>
  <td width=180 valign=top>
<table width="162"  border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
  <tr>
    <td width="1" height="13%"></td>
    <td width="160" bgcolor="<? echo("$c1"); ?>">&nbsp;</td>
    <td width="1" height="13%"></td>
  </tr>
  <tr>
    <td width="1" height="12%"></td>
    <td width="160" align="center" bgcolor="<? echo("$c2"); ?>">&nbsp;</td>
    <td width="1" height="12%"></td>
  </tr>
  <tr>
    <td width="1" height="25%"></td>
    <td width="160" align="center" bgcolor="<? echo("$c2"); ?>"><?=outlogin("basic"); // 외부 로그인 ?></td>
    <td width="1" height="25%"></td>
  </tr>
  <tr>
    <td width="1" height="25%"></td>
    <td width="160" align="center" valign="top" bgcolor="#FFFFFF">

<?php echo("$fl"); ?>


        <div style='height:10px;'></div>

        <?=visit("basic"); // 방문자수 ?>   

<div style='height:10px;'></div>

<?=connect(); // 현재 접속자수 ?>

<div style='height:10px;'></div>

        <?=poll("basic"); // 설문조사 ?>     </td>
    <td width="1" height="25%"></td>

</table>

  </td>
    <td width=800 valign=top>


============================================================================

다른곳은 그대로 사용하고 있는데..ㅠ.ㅠ
다른 페이지만 링크 불러오면 에러가 뜨네요.
게시판이나 설정 페이지를 열었을때는 에러가 전혀 없는데 무엇이 문제인지알수가 없네요.

계별페이지 접근 불가라는것이 문제인지..ㅠ.ㅠ
정말 모르겠습니다. 고수님들 도움좀 부탁드리겠습니다.

index.php

============================================================================
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4[title] = "****";
include_once("./_head.php");
?>

<!-- 메인화면 최신글 시작 --><style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
-->
</style>
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?php
  include("$subp");
    ?>
<?
//  최신글
// $sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
// $result = sql_query($sql);
// for ($i=0; $row=sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
 //  echo latest("basic", $row[bo_table], 5, 70);
 //  echo "<p>\n";
// }
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->

<?
include_once("./_tail.php");
?>
============================================================================

다른 불러오는 페이지는 모두 빈페이지입니다.

고수님들 수고스러우시더라도 부탁드리겠습니다..ㅠ.ㅠ
  • 복사

댓글 전체

UTF-8버전 header already sent by 문제때문에 골머리를 앓고 있는 분들께...
여기에 올려서 적당한지 모르겠지만 UTF-8 버전에서 저처럼...
Warning: Cannot modify header information - headers already sent by (output started at C:\\Program Files\\xampp\\htdocs\\KB7\\club\\club.lib.php:1) in C:\\Program Files\\xampp\\…
UTF-8버전 header already sent by 문제때문에 골머리를 앓고 있는 분들께...
여기에 올려서 적당한지 모르겠지만 UTF-8 버전에서 저처럼...
Warning: Cannot modify header information - headers already sent by (output started at C:\\Program Files\\xampp\\htdocs\\KB7\\club\\club.lib.php:1) in C:\\Program Files\\xampp\\…
© SIRSOFT
현재 페이지 제일 처음으로