/spb3/sinc/lib/function_board3list.php
sitePHPbasic 디버그 모드 : WARNING
[2] file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Line : 89 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 file() 함수사용, line(89), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 89 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => file(http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 89 [4] => Array ( [_GET] => Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [_SERVER] => Array ( [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/) [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5 [HTTP_ACCEPT_ENCODING] => br,gzip [HTTP_HOST] => kamprs.or.kr [HTTP_CONNECTION] => Keep-Alive [PATH] => /sbin:/usr/sbin:/bin:/usr/bin [SERVER_SIGNATURE] =>
Apache/2.2.3 (CentOS) Server at kamprs.or.kr Port 80
[SERVER_SOFTWARE] => Apache/2.2.3 (CentOS) [SERVER_NAME] => kamprs.or.kr [SERVER_ADDR] => 61.14.208.190 [SERVER_PORT] => 80 [REMOTE_ADDR] => 18.204.2.231 [DOCUMENT_ROOT] => /wecan/cc/cc.sdong.kr [SERVER_ADMIN] => root@localhost [SCRIPT_FILENAME] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [REMOTE_PORT] => 45180 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => GET [QUERY_STRING] => md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php [REQUEST_URI] => /spb3/sadmin/util/svn/spb3_diff.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php [SCRIPT_NAME] => /spb3/sadmin/util/svn/spb3_diff.php [PHP_SELF] => /spb3/sadmin/util/svn/spb3_diff.php [REQUEST_TIME_FLOAT] => 1634528869.224 [REQUEST_TIME] => 1634528869 ) [GLOBALS] => Array *RECURSION* [SITE] => Array ( [database] => [th] => spb3_ [uh] => /spb3/ [home] => /spb3/ [name] => sitePHPbasic [company] => 뉴21커뮤니티(주) [webmaster] => spb@sdong.kr [hp] => 16449501 [version] => 3.2.0 [debug] => 2 [home_path] => /wecan/cc/cc.sdong.kr/ [spb3_path] => /wecan/cc/cc.sdong.kr/spb3/ [html_path] => /wecan/cc/cc.sdong.kr/spb3/sinc/skin/ [lib_path] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/ ) [_SESSION] => Array ( ) [spb_error_checktime_time] => class_spb_checktime Object ( [vars] => Array ( ) ) [thisPath] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/ [file_source] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [http_response_header] => Array ( [0] => HTTP/1.1 404 Not Found [1] => Date: Mon, 18 Oct 2021 03:47:49 GMT [2] => Server: Apache/2.2.3 (CentOS) [3] => Content-Length: 301 [4] => Connection: close [5] => Content-Type: text/html; charset=iso-8859-1 ) ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 89 [function] => file [args] => Array ( [0] => http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php ) ) ) [key] => 1 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 89 [function] => file [args] => Array ( [0] => http://spb3.staredong.com/spb3_diff_source.php?md5_path=%2Fspb3%2Fsinc%2Flib%2Ffunction_board3list.php ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] file(): Filename cannot be empty
Line : 119 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 file() 함수사용, line(119), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => file(): Filename cannot be empty [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 119 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => file(): Filename cannot be empty [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 119 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 119 [function] => file [args] => Array ( [0] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => 0 ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => 0 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //======================================================= [oindex] => 1 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //======================================================= ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //======================================================= [oindex] => 1 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [oindex] => 2 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [oindex] => 2 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [oindex] => 3 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [oindex] => 3 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [oindex] => 4 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [oindex] => 4 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // Project: sitePHPbasic [oindex] => 5 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // Project: sitePHPbasic ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // Project: sitePHPbasic [oindex] => 5 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // ChangeLog [oindex] => 6 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // ChangeLog ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // ChangeLog [oindex] => 6 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // DATE 수정인 수정 내용 [oindex] => 7 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // DATE 수정인 수정 내용 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // DATE 수정인 수정 내용 [oindex] => 7 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // -------- ------ -------------------------------------- [oindex] => 8 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // -------- ------ -------------------------------------- ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // -------- ------ -------------------------------------- [oindex] => 8 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 07/04/07 박선민 function_board2 가지고 수정 [oindex] => 9 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // 07/04/07 박선민 function_board2 가지고 수정 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // 07/04/07 박선민 function_board2 가지고 수정 [oindex] => 9 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //======================================================= [oindex] => 10 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //======================================================= ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //======================================================= [oindex] => 10 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => /* [oindex] => 11 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => /* ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => /* [oindex] => 11 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => 포함함수 [oindex] => 12 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => 포함함수 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => 포함함수 [oindex] => 12 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [oindex] => 13 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [oindex] => 13 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [oindex] => 14 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [oindex] => 14 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //board3SqlSort($table,$sort) // order by .. [oindex] => 15 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //board3SqlSort($table,$sort) // order by .. ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //board3SqlSort($table,$sort) // order by .. [oindex] => 15 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //inputfield($table,$list_uid=NULL) [oindex] => 16 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => //inputfield($table,$list_uid=NULL) ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => //inputfield($table,$list_uid=NULL) [oindex] => 16 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => */ [oindex] => 17 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => */ ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => */ [oindex] => 17 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 18 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 18 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 19 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 19 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => /** [oindex] => 20 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => /** ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => /** [oindex] => 20 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [oindex] => 21 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [oindex] => 21 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * [oindex] => 22 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => * ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * [oindex] => 22 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [oindex] => 23 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [oindex] => 23 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * @update 05/01/08 by Sunmin Park [oindex] => 24 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => * @update 05/01/08 by Sunmin Park ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => * @update 05/01/08 by Sunmin Park [oindex] => 24 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => */ [oindex] => 25 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => */ ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => */ [oindex] => 25 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // function_board.php의 boardCount()와 동일 [oindex] => 26 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // function_board.php의 boardCount()와 동일 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // function_board.php의 boardCount()와 동일 [oindex] => 26 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [oindex] => 27 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [oindex] => 27 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => { [oindex] => 28 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => { ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => { [oindex] => 28 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // total, pern [oindex] => 29 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // total, pern ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // total, pern [oindex] => 29 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => $count['total'] = (int)$total; [oindex] => 30 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => $count['total'] = (int)$total; ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => $count['total'] = (int)$total; [oindex] => 30 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [oindex] => 31 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [oindex] => 31 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [oindex] => 32 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [oindex] => 32 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 33 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => [oindex] => 33 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 3 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] array_keys() expects parameter 1 to be array, boolean given
Line : 122 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(),
#1 array_keys() 함수사용, line(122), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#4 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => array_keys() expects parameter 1 to be array, boolean given [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 122 [arr] => Array ( [0] => Array ( [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => array_keys() expects parameter 1 to be array, boolean given [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 122 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage']; [42] => [43] => // privpage, nextpage [44] => $count['prevpage'] = $count['nextpage'] = $count['nowpage']; [45] => if($count['nowpage'] > 1) $count['prevpage'] = $count['nowpage'] - 1; [46] => if($count['nowpage'] < $count['totalpage']) $count['nextpage'] = $count['nowpage'] + 1; [47] => [48] => // firstno - 레코드의 처음 위치(SQL문 ... limit ???, pern)를 구한다. [49] => $count['firstno'] = ($count['nowpage'] - 1) * $count['pern']; [50] => [51] => // lastnum - 마지막 게시물 번호 구하기 [52] => if($count['nowpage']==1) $count['lastnum']=$count['total']; [53] => else $count['lastnum']=$count['total'] - ($count['nowpage'] - 1)*$count['pern']; [54] => [55] => // page_pern, nowblock [56] => $count['page_pern'] = (int)$page_pern ? (int)$page_pern : 5; // 혹시나 DB에 값이 0이라면.. [57] => $count['nowblock'] = ($count['nowpage']%$count['page_pern']) ? ceil($count['nowpage']/$count['page_pern']) : (int)($count['nowpage']/$count['page_pern']); [58] => [59] => // firstpage, lastpage - 현재블럭의 첫페이지와 마지막 페이지 구함 [60] => $count['firstpage'] = ($count['nowblock']-1)*$count['page_pern']+1; [61] => $count['lastpage'] = $count['nowblock']*$count['page_pern']; [62] => if ($count['lastpage'] > $count['totalpage']) $count['lastpage']=$count['totalpage']; [63] => [64] => return $count; [65] => } // end func boardcount [66] => [67] => [68] => // 04/01/10 $sort가 테이블의 필드라면, order by 절 만듦 [69] => // $sort값 앞에 '!'이 있다면 역순 정렬 [70] => // function_board.php의 board3SqlSort()와 동일 [71] => /*function board3SqlSort($table,$sort) { [72] => GLOBAL $SITE; [73] => if(!$SITE['database']) return ''; [74] => if(!$sort) return ''; [75] => [76] => $sort_option = ''; // init [77] => if($sort[0]=='!') { [78] => $sort = substr($sort,1); [79] => $sort_option = ' DESC'; [80] => } [81] => [82] => // $sort가 테이블의 필드인지 [83] => $fields = mysql_list_fields($SITE['database'], $table); [84] => $columns = mysql_num_fields($fields); [85] => $sw_find = 0; // init [86] => for ($i = 0; $i < $columns; $i++) { [87] => if($sort==mysql_field_name($fields, $i)) $sw_find = 1; [88] => } [89] => [90] => if($sw_find) return $sort . $sort_option; [91] => else return ''; [92] => } [93] => */ [94] => ?> ) [new] => [ovalue] => // totalpage [oindex] => 34 [nkeys] => ) ) ) [1] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 122 [function] => array_keys [args] => Array ( [0] => [1] => // totalpage ) ) [2] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 142 [function] => doDiff [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [3] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 197 [function] => diffWrap [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => ) ) [4] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) ) [key] => 4 [value] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 92 [function] => inline [class] => diff [object] => diff Object ( [changes] => Array ( ) [diff] => Array ( ) [linepadding] => 2 ) [type] => -> [args] => Array ( [0] => /wecan/cc/cc.sdong.kr/spb3/sinc/lib/function_board3list.php [1] => [2] => 2 ) ) )
sitePHPbasic 디버그 모드 : WARNING
[2] Invalid argument supplied for foreach()
Line : 123 (file:/wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php)
- 디버그 추적(debug_backtrace)
#0 spb_error_handler() 함수사용, line(123), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#1 doDiff() 함수사용, line(142), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#2 diffWrap() 함수사용, line(197), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php
#3 inline() 함수사용, line(92), /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php




사용변수들 ...
$_GET = Array ( [md5_path] => /spb3/sinc/lib/function_board3list.php ) $_POST = Array ( ) $_COOKIE = Array ( ) Array ( [errno] => 2 [errstr] => Invalid argument supplied for foreach() [errfile] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [errline] => 123 [arr] => Array ( [0] => Array ( [file] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [line] => 123 [function] => spb_error_handler [args] => Array ( [0] => 2 [1] => Invalid argument supplied for foreach() [2] => /wecan/cc/cc.sdong.kr/spb3/sadmin/util/svn/spb3_diff.php [3] => 123 [4] => Array ( [old] => Array ( [0] => //======================================================= [2] => // $Id: function_board3list.php 13 2010-08-24 08:28:50Z sitehis $ [3] => // 설 명 : board3 사용에 있어서 사용되는 함수 모음 (function_board3.php) [4] => // 책임자 : 박선민 (sponsor@new21.com), 검수: 07/04/07 [5] => // Project: sitePHPbasic [6] => // ChangeLog [7] => // DATE 수정인 수정 내용 [8] => // -------- ------ -------------------------------------- [9] => // 07/04/07 박선민 function_board2 가지고 수정 [10] => //======================================================= [11] => /* [12] => 포함함수 [13] => board3count( $total, $nowpage, $pern = 5, $page_pern=5); [14] => board3Cateinfo(&$dbinfo, $cateuid=0,$enable_catelist='Y', $tmp_sw_view_topcatetitles=1, $tmp_sw_view_cate_notitems=1, $tmp_sw_view_cate_itemcount=1, $catelist_view_firsttop_str='(전체)') [15] => //board3SqlSort($table,$sort) // order by .. [16] => //inputfield($table,$list_uid=NULL) [17] => */ [18] => [19] => [20] => /** [21] => * 게시판 구현을 위한 각종 계산 - 현재, 전체, 이전, 다음 페이지, 첫 게시물 번호, 페이지 블럭 등을 계산 [22] => * [23] => * @return array ( total, pern, totalpage, nowpage, prevpage, nextpage, firstno, lastnum, page_pern, nowblock, firstpage, lastpage) [24] => * @update 05/01/08 by Sunmin Park [25] => */ [26] => // function_board.php의 boardCount()와 동일 [27] => function b3count_list( $total, $nowpage, $pern=5, $page_pern=5) [28] => { [29] => // total, pern [30] => $count['total'] = (int)$total; [31] => if($pern < 0) $pern = $count['total']; // pern이 -1 등 음수이면, 모든 게시물 보여주기 위해 [32] => $count['pern'] = (int)$pern ? (int)$pern : 5; //페이지당 게시물수 [33] => [34] => // totalpage [35] => $count['totalpage'] = ($count['total']%$count['pern']) ? ceil($count['total'] / $count['pern']) : (int)($count['total'] / $count['pern']); [36] => if($count['totalpage']<=0) $count['totalpage'] = 1; [37] => [38] => // nowpage [39] => $count['nowpage'] = (int)$nowpage; [40] => if($count['nowpage'] <= 0) $count['nowpage'] = 1; [41] => if($count['nowpage'] > $count['totalpage']) $count['nowpage']=$count['totalpage'];