팝업창관리 스킨적용했는데 에러수정좀 부탁합니다. > 그누4 질문답변

그누4 질문답변

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

팝업창관리 스킨적용했는데 에러수정좀 부탁합니다. 정보

팝업창관리 스킨적용했는데 에러수정좀 부탁합니다.

본문

Photofly 님이 올리신 팝업창관리 스킨적용을 했는대요..에러가 나네요..
 
제가 왕초보라.. 아무리 해봐도 답이 없어서 여기에 질문 드립니다.
 
작지만 100포인트 걸겠습니다.
 
고수님들..좀 도와주세요..ㅜㅜ
 
아래주소에서 popup_euc-kr.zip 이 파일을 다운 받아서 설치했습니다.
 
 
 
↓↓↓에러내용입니다..↓↓↓
 
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/ohgood/html/head.php on line 10
 
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/ohgood/html/head.php on line 10
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/ohgood/html/tail.php on line 3
 
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/ohgood/html/tail.php on line 3
Warning: include_once(./_common.php) [function.include-once]: failed to open stream: No such file or directory in /web/home/ohgood/html/include/birth/birth2.php on line 2
Warning: include_once() [function.include]: Failed opening './_common.php' for inclusion (include_path='.:/usr/lib/php/pear') in /web/home/ohgood/html/include/birth/birth2.php on line 2
 
그냥 지나치지 마시고 제가 왕초보라서...명쾌한 답변좀 부탁드립니다..
 
아래는 popup_list.php 파일 내용입니다.
 
<?
if(!isset($g4_path)) $g4_path = "../../..";
include_once("$g4_path/common.php");
// 접근권한 체크
if ($member[mb_level] <= 8)
        alert("관리자 또는 관리권한이 있는 회원만 접근 가능합니다.", $g4[path]);
$sql_common = " FROM $g4[popup_table] ";
$sql_search = " WHERE (1) ";
$sql_order  = " ORDER BY nIdx DESC ";
$sql = " SELECT COUNT(*) as cnt
         $sql_common
         $sql_order ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = $config[cf_page_rows];
$total_page  = ceil($total_count / $rows);  // 전체 페이지 계산
if ($page == "") { $page = 1; }             // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows;         // 시작 열을 구함
$sql = " SELECT *
          $sql_common
          $sql_search
          $sql_order
          limit $from_record, $rows ";
$result = sql_query($sql);
$listall = "<a href='$_SERVER[PHP_SELF]'>처음</a>";
$g4[title] = "팝업관리";
include_once("$g4[path]/head.php");
?>
<link rel="stylesheet" href="<?=$g4['admin_path']?>/admin.style.css" type="text/css">
<table width="100%" cellpadding="3" cellspacing="1">
<tr><td colspan="2" class='line2'></td></tr>
<tr><td colspan="2" height="30" align="center"><b>팝업창 관리</b></td></tr>
<tr><td colspan="2" class='line2'></td></tr>
<tr>
    <td width="50%" align="left"><?=$listall?> (등록된 팝업수 : <?=number_format($total_count)?>개)</td>
    <td width="50%" align="right"></td>
</tr>
</table>

<table width="100%" cellpadding="0" cellspacing="1" border="0">
<tr><td colspan='5' class='line1'></td></tr>
<tr class="bgcol1 bold col1 ht center">
    <td width="15%">등록일</td>
    <td width="40%">제 목</td>
    <td width="25%">게시기간</td>
    <td width="10%">보이기</td>
    <td width="10%"><a href='popup_form.php' title='팝업생성'><img src='./img/icon_insert.gif' border='0' border='0'></a></td>
</tr>
<tr><td colspan='5' class='line2'></td></tr>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
    $szRegDate = date('Y-m-d', $row[nDate]);
    $szSubject = cut_str($row[szSubject], 50);
    $szSDay    = date('Y-m-d', $row[nStartDate]);
    $szEDay    = date('Y-m-d', $row[nEndDate]);
    $szView    = $row[szView];
    echo "<tr class='list$list col1 ht center'>
        <td>$szRegDate</td>
        <td align='left'>$szSubject</td>
        <td>$szSDay ~ $szEDay</td>
        <td>$szView</td>
        <td>
        <a href='./popup_form.php?page=$page&no=$row[nIdx]' title='수정'><img src='./img/icon_modify.gif' border='0' border='0'></a>
        <a href='./popup_process.php?szMode=DELETE&page=$page&no=$row[nIdx]&imgurl=$row[szImage]' title='삭제' onClick=\"return confirm('정말 삭제 하시겠습니까?\\n\\n한번 삭제된 내역은 복구할 수 없습니다.')\"><img src='./img/icon_delete.gif' border='0'></a></td></tr>";
}
if ($i == 0) {
    echo "
    <tr><td colspan='5' align='center' height='100' bgcolor='#ffffff'>자료가 없습니다.</td></tr>
    ";
}
?>
    <tr><td colspan='5' class='line2'></td></tr>
</table>

<?
$pagelist = get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
?>

<table width="100%" cellpadding="3" cellspacing="1">
<tr>
    <td width="70%"></td>
    <td width="30%" align="right"><?=$pagelist?></td>
</tr>
</table>
<?
include_once("$g4[path]/tail.php");
?>
 
 
적은포인트지만...100포인트 걸겠습니다..
 
그럼, 여러님들 행복한 하루돼세요..^^

 

댓글 전체

common.php 파일이 있는 경로를 지정해야합니다. 저도 여기서 에러가 났는데 경로지정을 고쳐주니깐 되더라고요.
if(!isset($g4_path)) $g4_path = "../../.."; 를 if(!isset($g4_path)) $g4_path = "../../"; 으로 고치시거나
if(!isset($g4_path)) $g4_path = "../"; 이렇게 고쳐보시기 바랍니다.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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