Photofly님의 달력형 일정관리 스킨중 pop_schedule.php 소스를 g3로 변환좀 부탁드립니다. > 그누3질답

그누3질답

Photofly님의 달력형 일정관리 스킨중 pop_schedule.php 소스를 g3로 변환좀 부탁드립니다. 정보

Photofly님의 달력형 일정관리 스킨중 pop_schedule.php 소스를 g3로 변환좀 부탁드립니다.

본문

g3로 다른 소스 최신글 보드는 변환이 됬는데..
이 팝업 부분에서 계속 오류가 납니다.

-->g4용 pop_schedule.php 소스

<?
include_once("./_common.php");

 if ($member[mb_level] < $board[bo_read_level]) { 
      alert('글을 읽을 권한이 없습니다.','javascript:window.close()');
  exit;
 }

$g4[title] = "일정보기";

$tmp_write_table = $g4[write_prefix] . $bo_table; // 게시판 테이블 전체이름
// 0~9 월까지를 01 ~ 09 로 만들어 준다.
if((int)$day <= 9){
$day = "0".$day;
}
if((int)$month <= 9){
$month = "0".$month;
}
$thedate = $year.$month.$day;
$latest_skin_path = "$g4[path]/skin/latest/calendar";

$list = array();
$sql = " select * from {$g4[board_table]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);

$sql = " select * from $tmp_write_table where wr_comment > -1 AND (wr_link1 <= $thedate AND wr_link2 >= $thedate) order by wr_id desc limit 0, 10";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = get_list($row, $board, $latest_skin_path, 70);

$html = 0;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;

$list[$i][content] = conv_content($list[$i][wr_content], $html);

}


include_once("$latest_skin_path/pop.skin.php");

?>



제가 한 g3용 pop_schedule.php


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

 if ($member[mb_level] < $board[bo_read_level]) { 
      alert('글을 읽을 권한이 없습니다.','javascript:window.close()');
  exit;
 }

$html_title = "일정 관리";

$tmp_write_table = $cfg[write_table_prefix] . $bo_table; // 게시판 테이블 전체이름
// 0~9 월까지를 01 ~ 09 로 만들어 준다.
if((int)$day <= 9){
$day = "0".$day;
}
if((int)$month <= 9){
$month = "0".$month;
}
$thedate = $year.$month.$day;
$latest_skin = "./bbs/skin/latest/calendar";

$list = array();
$sql = " select * from {$cfg[write_table_prefix]} where bo_table = '$bo_table'";
$board = sql_fetch($sql);

$sql = " select * from $tmp_write_table where wr_comment > -1 AND (wr_link1 <= $thedate AND wr_link2 >= $thedate) order by wr_id desc limit 0, 10";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++) {
    $list[$i] = get_list($row, $board, $latest_skin_path, 70);

$html = 0;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;

$list[$i][content] = conv_content($list[$i][wr_content], $html);

}


include_once("$latest_skin/pop.skin.php");

?>

여기서 계속 펑션 오류가 납니다.. 1046오류
그래서.lib/sql.lib.php소스를 붙여서 했는데도 오류가 납니다.

혹 변환해서 사용하시는분이 계신면 알려주시면 감사하겠습니다.

댓글 전체

전체 9,564
그누3질답 내용 검색

회원로그인

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