$paging_query_no = $mysql->numRows(); $paging->page_param($page); $total_num = $paging->setTotal($paging_query_no); $paging->setListPerPage(10); $sql = $paging->getPaggingQuery($paging_query); $mysql->select($sql); $array_total = $mysql->numRows(); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/leaveMember.html"); $header->skin_html_load($tpl->skin); $header->skin_loop_header("[{loop_start}]"); $loop->skin_html_load($tpl->skin); $loop->skin_loop_array("[{loop_start}]", "[{loop_end}]"); $footer->skin_html_load($tpl->skin); $footer->skin_loop_footer("[{loop_end}]"); /* 템플릿 함수 */ function keyword_value_func() { global $where, $keyword; if ($where == "me_nick" || $where == "me_id" || $where == "me_login_ip") { return $keyword; } else { return ""; } } function where_value_func($val) {
function call_board_latest($viewType, $article, $board_id, $line, $length, $ment_length, $skin, $width, $height, $margin, $quard) { if ($viewType == "p") { $viewDir = ""; $viewSkinType = ""; } else { $viewDir = "m/"; $viewSkinType = "_mobile"; } $mysql = new mysqlConnection(); $tpl = new skinController(); $lib = new libraryClass(); $tpl = new skinController(); $header = new skinController(); $loop = new skinController(); $footer = new skinController(); $mysql->select("\n\t\t\tSELECT name\n\t\t\tFROM toony_module_board_config\n\t\t\tWHERE board_id='{$board_id}'\n\t\t"); $mysql->fetchArray("name"); $array = $mysql->array; //게시판이 존재하지 않는다면 오류 출력 if (!$array['name']) { return "최근게시물에서 설정된 게시판이 존재하지 않습니다."; } //게시판이 존재한다면 게시물 출력 $mysql->select("\n\t\t\tSELECT\n\t\t\t(\n\t\t\t\tSELECT COUNT(*)\n\t\t\t\tFROM toony_module_board_comment_{$board_id}\n\t\t\t\tWHERE bo_idno=A.idno\n\t\t\t) comment,\n\t\t\t(\n\t\t\t\tSELECT ico_new_def\n\t\t\t\tFROM toony_module_board_config\n\t\t\t\tWHERE board_id='{$board_id}'\n\t\t\t) ico_new_def,\n\t\t\t(\n\t\t\t\tSELECT ico_hot_def\n\t\t\t\tFROM toony_module_board_config\n\t\t\t\tWHERE board_id='{$board_id}'\n\t\t\t) ico_hot_def,\n\t\t\tA.*\n\t\t\tFROM toony_module_board_data_{$board_id} A\n\t\t\tWHERE A.use_notice='N' AND rn=0\n\t\t\tORDER BY A.ln DESC, A.regdate DESC\n\t\t\tLIMIT {$line}\n\t\t"); //최근게시물 템플릿 로드 $tpl->skin_file_path("modules/board/latestskin/{$skin}/index{$viewSkinType}.html"); $header->skin_html_load($tpl->skin); $header->skin_loop_header("[{loop_start}]"); $loop->skin_html_load($tpl->skin); $loop->skin_loop_array("[{loop_start}]", "[{loop_end}]"); $footer->skin_html_load($tpl->skin); $footer->skin_loop_footer("[{loop_end}]"); //header 템플릿 치환 $header->skin_modeling('[/latestskinDir/]', __URL_PATH__ . "modules/board/latestskin/" . $skin . "/"); $header->skin_modeling('[title]', htmlspecialchars($array['name'])); $header->skin_modeling('[board_link]', __URL_PATH__ . $viewDir . '?article=' . $article); $tpl = $header->skin_echo(); //loop 템플릿 치환 if ($mysql->numRows() > 0) { do { $array['memo'] = strip_tags($mysql->fetch("memo")); $mysql->htmlspecialchars = 0; $mysql->fetchArray("board_id,idno,subject,ment,regdate,idno,file1,file2,comment,writer,ico_new_def,ico_hot_def,view,use_secret"); $array = $mysql->array; $loop->skin_modeling('[/latestskinDir/]', __URL_PATH__ . "modules/board/latestskin/" . $skin . "/"); $loop->skin_modeling('[thumbnail]', call_board_latest_thumbnail_func($viewType, $article, $board_id, $array['idno'], $array['file1'], $array['file2'], $array['ment'], $width, $height, $quard, $margin)); $loop->skin_modeling('[subject]', $lib->func_length_limit($array['subject'], 0, $length)); $loop->skin_modeling('[ment]', $lib->func_length_limit(strip_tags($array['ment']), 0, $ment_length)); $loop->skin_modeling('[date]', date("Y.m.d", strtotime($array['regdate']))); $loop->skin_modeling('[nick]', $array['writer']); $loop->skin_modeling('[comment]', latest_comment_func($array['comment'])); $loop->skin_modeling('[link]', __URL_PATH__ . $viewDir . '?article=' . $article . '&p=read&read=' . $array['idno']); $loop->skin_modeling('[new_ico]', latest_new_ico($array['ico_new_def'], $array['regdate'])); $loop->skin_modeling('[hot_ico]', latest_hot_ico($array['ico_hot_def'], $array['likes_count'], $array['view'])); $loop->skin_modeling('[secret_ico]', latest_secret_ico($array['use_secret'])); $tpl .= $loop->skin_echo(); } while ($mysql->nextRec()); } //footer 템플릿 치환 if ($mysql->numRows() < 1) { $footer->skin_modeling_hideArea("[{not_loop_start}]", "[{not_loop_end}]", "show"); } else { $footer->skin_modeling_hideArea("[{not_loop_start}]", "[{not_loop_end}]", "hide"); } $footer->skin_modeling('[/latestskinDir/]', __URL_PATH__ . "modules/board/latestskin/" . $skin . "/"); $footer->skin_modeling('[title]', htmlspecialchars($array['name'])); $footer->skin_modeling('[board_link]', __URL_PATH__ . $viewDir . '?article=' . $article); $tpl .= $footer->skin_echo(); return $tpl; }
$top_source_ex = explode("{||||||||||}", $c_array['top_source']); if ($viewType == "p") { $ex_slt = 0; } else { $ex_slt = 1; } if ($top_file_ex[$ex_slt]) { include $top_file_ex[$ex_slt]; } echo $top_source_ex[$ex_slt]; /* 스킨 템플릿 로드 */ $tpl->skin_file_path("modules/board/skin/{$c_array['skin']}/{$viewDir}write.html"); $write_password->skin_html_load($tpl->skin); $skin_write->skin_html_load($tpl->skin); /* 템플릿 함수 */ //Type 변수 값 function type_act() { global $__toony_member_idno, $mode; if (isset($__toony_member_idno) && !$mode || isset($__toony_member_idno) && $mode == "modify" || isset($__toony_member_idno) && $mode == "reply") { return "2"; } else { return "1"; } } //카테고리 출력 function bbs_category()
$method->method_param("GET", "code"); /* 템플릿 로드 */ $tpl->skin_file_path("_tpl/account.idCheck.html"); //이메일 인증이 성공적으로 수행된 경우 템플릿 $success_tpl->skin_html_load($tpl->skin); $success_tpl->skin_loop_array("[{idCheck_success_start}]", "[{idCheck_success_end}]"); //찾을 수 없는 인증코드인 경우 템플릿 $notAccount_tpl->skin_html_load($tpl->skin); $notAccount_tpl->skin_loop_array("[{idCheck_notAccount_start}]", "[{idCheck_notAccount_end}]"); //폐기된 인증코드인 경우 $notFound_tpl->skin_html_load($tpl->skin); $notFound_tpl->skin_loop_array("[{idCheck_notFound_start}]", "[{idCheck_notFound_end}]"); //이미 인증된 인증코드인 경우 $destroy_tpl->skin_html_load($tpl->skin); $destroy_tpl->skin_loop_array("[{idCheck_destroy_start}]", "[{idCheck_destroy_end}]"); /* 검사 */ $successVar = true; if (trim($code) == "") { $lib->error_alert_location("정상적으로 접근하세요.", $site_config[ad_site_url], "A"); } $mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_idCheck \n\t\tWHERE ric_code='{$code}'\n\t"); $ric_me_idno = $mysql->fetch("me_idno"); if ($mysql->numRows() < 1) { echo $notAccount_tpl->skin_echo(); $successVar = false; } $mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_idCheck\n\t\tWHERE me_idno='{$ric_me_idno}'\n\t\tORDER BY ric_regdate DESC\n\t\tLIMIT 1\n\t");