자동등록방지 이미지 출력이 않됩니다. 정보
자동등록방지 이미지 출력이 않됩니다.본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
최근글을 페이징 하려고 뮤존님의 팁을 얻어
extend 폴더안에 paging.php 를 넣는순간 자동등록방지 이미지가 액박이 뜨더군요..
다른분의 질문과 답변을 봐도 해결하지 못해고 해서 문의를 드립니다.
아래가 paging.php 의 소스인데요..
어느부분을 어떻게 해야 페이징도 쓰고 자동등록방지 이미지가 액박이 뜨는것을 막을수가 있을까요?
<?
// 페이지 노출 축출
function latest_ucc_etc($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="",$options2="",$s_subject="",$s_turn="",$t_end="" , $control="" ,$control2="",$pagenum="" )
{
global $g4, $is_admin;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/basic";
//정렬값이 없다면
if(!$options2)
$options2 = "wr_id";
//가로정렬값이 없는경우
if(!$options)
$options = 3;
//관리 테이블
$bo_table_cf = $bo_table;
//$bo_table 초기화
//$bo_table = "";
//$bo_table = "product";
$list = array();
$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//기간별 조건검색이 없는경우
if(!$s_turn){
$s_turn = 365; // 조건값이 없을경우 1년 이내의 자료만 검색
}
$s_day = 24;
$s_time = $s_day*$s_turn; //정수값을 1일로 환산처리.
$now_time = $g4[time_ymdhis]; //현재시간기준, 삭제해도 됨.
$s_start = date("Y-m-d H:i:s", time()-3600 * $s_time);
//기간별 조건검색이 없는경우
if(!$t_end){
$t_end = $g4[time_ymdhis];; // 현재시간
}
else{
$t_day = 24;
$t_time = $s_day*$t_end; //정수값을 1일로 환산처리.
$now_time = $g4[time_ymdhis]; //현재시간기준, 삭제해도 됨.
$t_end = date("Y-m-d H:i:s", time()-3600 * $t_time);
}
//조건
$s_mct = "wr_is_comment = 0 ";
$s_mct .= " and wr_datetime >= '$s_start'";
$s_mct .= " and wr_datetime <= '$t_end'";
//관리자 control
if($control){
$s_mct .= " and $control = '$control2'";
}
////////////////////////////
$s_query = " select * from $tmp_write_table where $s_mct";
$s_total = sql_query($s_query);
$total = mysql_num_rows($s_total);
$s_page = $options;
$pagesu =ceil($total/$s_page); //페이지수를 구합니다. 결과:4
$start =($s_page*$pagenum); //가져올 시작위치를 결정합니다.
//////////////////////////////
$sql = " select * from $tmp_write_table where $s_mct order by $options2 desc limit $start, $s_page";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
오류 주소 :
최근글을 페이징 하려고 뮤존님의 팁을 얻어
extend 폴더안에 paging.php 를 넣는순간 자동등록방지 이미지가 액박이 뜨더군요..
다른분의 질문과 답변을 봐도 해결하지 못해고 해서 문의를 드립니다.
아래가 paging.php 의 소스인데요..
어느부분을 어떻게 해야 페이징도 쓰고 자동등록방지 이미지가 액박이 뜨는것을 막을수가 있을까요?
<?
// 페이지 노출 축출
function latest_ucc_etc($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="",$options2="",$s_subject="",$s_turn="",$t_end="" , $control="" ,$control2="",$pagenum="" )
{
global $g4, $is_admin;
if ($skin_dir)
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
else
$latest_skin_path = "$g4[path]/skin/latest/basic";
//정렬값이 없다면
if(!$options2)
$options2 = "wr_id";
//가로정렬값이 없는경우
if(!$options)
$options = 3;
//관리 테이블
$bo_table_cf = $bo_table;
//$bo_table 초기화
//$bo_table = "";
//$bo_table = "product";
$list = array();
$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
$board = sql_fetch($sql);
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//기간별 조건검색이 없는경우
if(!$s_turn){
$s_turn = 365; // 조건값이 없을경우 1년 이내의 자료만 검색
}
$s_day = 24;
$s_time = $s_day*$s_turn; //정수값을 1일로 환산처리.
$now_time = $g4[time_ymdhis]; //현재시간기준, 삭제해도 됨.
$s_start = date("Y-m-d H:i:s", time()-3600 * $s_time);
//기간별 조건검색이 없는경우
if(!$t_end){
$t_end = $g4[time_ymdhis];; // 현재시간
}
else{
$t_day = 24;
$t_time = $s_day*$t_end; //정수값을 1일로 환산처리.
$now_time = $g4[time_ymdhis]; //현재시간기준, 삭제해도 됨.
$t_end = date("Y-m-d H:i:s", time()-3600 * $t_time);
}
//조건
$s_mct = "wr_is_comment = 0 ";
$s_mct .= " and wr_datetime >= '$s_start'";
$s_mct .= " and wr_datetime <= '$t_end'";
//관리자 control
if($control){
$s_mct .= " and $control = '$control2'";
}
////////////////////////////
$s_query = " select * from $tmp_write_table where $s_mct";
$s_total = sql_query($s_query);
$total = mysql_num_rows($s_total);
$s_page = $options;
$pagesu =ceil($total/$s_page); //페이지수를 구합니다. 결과:4
$start =($s_page*$pagenum); //가져올 시작위치를 결정합니다.
//////////////////////////////
$sql = " select * from $tmp_write_table where $s_mct order by $options2 desc limit $start, $s_page";
//explain($sql);
$result = sql_query($sql);
for ($i=0; $row = sql_fetch_array($result); $i++)
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
?>
댓글 전체
paging.php 파일을 꼭 extend폴더에 넣어야 하는 이유가 있는건가요?
lib폴더에 넣고 불러오거나 아니면 해당 페이지에 넣어 주면 되지 않을까요?
아니면 common.lib.php파일에 넣어 주시는 것도 추천합니다.
common.lib.php파일에 넣으면 모든페이지에서 기본으로 불러올 수 있으니 좋을 것 같네요.
lib폴더에 넣고 불러오거나 아니면 해당 페이지에 넣어 주면 되지 않을까요?
아니면 common.lib.php파일에 넣어 주시는 것도 추천합니다.
common.lib.php파일에 넣으면 모든페이지에서 기본으로 불러올 수 있으니 좋을 것 같네요.