function call_design_page($vtype, $name) { global $viewType, $site_config, $member, $viewDir, $member_type_var, $article, $m, $p; $mysql = new mysqlConnection(); $lib = new libraryClass(); $subpage = new skinController(); $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_page_list\n\t\t\tWHERE vtype='{$vtype}' AND name='{$name}'\n\t\t"); $mysql->htmlspecialchars = 0; $mysql->nl2br = 0; $mysql->fetchArray("scriptCode,source,level,idno"); $pageArray = $mysql->array; if ($vtype == "m") { $dir = "m/"; } else { $dir = ""; } //만약, 페이지 정보를 찾을 수 없는 경우(소멸된 경우) 메인 페이지로 이동 if (!$pageArray['idno']) { $lib->error_alert_location("페이지를 찾을 수 없거나, 소멸 되었습니다.", __URL_PATH__ . $dir, "A"); } $_SERVER['QUERY_STRING'] = urlencode($_SERVER['QUERY_STRING']); $lib->func_page_level(__URL_PATH__ . "{$viewDir}?article=login&redirect=?{$_SERVER['QUERY_STRING']}", $pageArray['level']); //서브페이지와 디자인 결합 if (isset($member['me_admin']) && $member['me_admin'] == "Y") { $modifyButton = ' <div style="text-align:right; padding-bottom:10px;"> <input type="button" class="__button_small_gray" value="디자인 변경" onclick="document.location.href=\'' . __URL_PATH__ . 'admin/?p=pageList_modify&vtype=' . $viewType . '&type=modify&act=' . $pageArray['idno'] . '\';" /> </div> '; } else { $modifyButton = ""; } $subpage->skin_file_path("sub.php"); $subpage->skin_modeling("[contentArea]", $pageArray['scriptCode'] . "\n" . $modifyButton . $pageArray['source']); echo $subpage->skin_echo(); }
} if ($repeatCount + 1 == $max_repeat) { $menu = $menu . "</li></ul></li>"; } $depthRound++; } else { if ($repeatCount != 0) { $menu = "</li>"; } if ($depthRound > 0) { $menu .= "</ul></li>"; } $menu .= "{$li}<a href=\"{$header_link}\">{$menu_img}</a>"; if ($repeatCount + 1 == $max_repeat) { $menu = $menu . "</li>"; } $depthRound = 0; } $repeatCount++; $loop->skin_modeling("[menu]", $menu); echo $loop->skin_echo(); $menu = ""; } while ($mysql->nextRec()); } //footer $footer->skin_modeling("[logo]", site_logo()); $footer->skin_modeling("[site_url]", site_url_func()); $footer->skin_modeling("[site_name]", $site_config['ad_site_name']); $footer->skin_modeling("[status]", status_func()); $footer->skin_modeling("[/layoutskinDir/]", __URL_PATH__ . "layoutskin/" . CALLED_LAYOUTDIR); echo $footer->skin_echo();
<?php include_once "include/pageJustice.inc.php"; $tpl = new skinController(); $lib = new libraryClass(); $mysql = new mysqlConnection(); /* 템플릿 로드 */ $tpl->skin_file_path("_tpl/{$viewDir}contactUs.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[nick]", $member['me_nick']); $tpl->skin_modeling("[id_value]", $member['me_id']); $tpl->skin_modeling("[phone_value]", $member['me_phone']); if ($member['me_level'] < 10) { $tpl->skin_modeling_hideArea("[{nick_member_start}]", "[{nick_member_end}]", "show"); $tpl->skin_modeling_hideArea("[{nick_guest_start}]", "[{nick_guest_end}]", "hide"); } else { $tpl->skin_modeling_hideArea("[{nick_member_start}]", "[{nick_member_end}]", "hide"); $tpl->skin_modeling_hideArea("[{nick_guest_start}]", "[{nick_guest_end}]", "show"); } if (!isset($__toony_member_idno)) { $tpl->skin_modeling_hideArea("[{capcha_start}]", "[{capcha_end}]", "show"); $tpl->skin_modeling("[capcha_img]", "<img id=\"zsfImg\" src=\"" . __URL_PATH__ . "capcha/zmSpamFree.php?zsfimg\" alt=\"코드를 바꾸시려면 여기를 클릭해 주세요.\" title=\"코드를 바꾸시려면 여기를 클릭해 주세요.\" style=\"cursor:pointer\" onclick=\"this.src='" . __URL_PATH__ . "capcha/zmSpamFree.php?re&zsfimg='+new Date().getTime()\" />"); } else { $tpl->skin_modeling_hideArea("[{capcha_start}]", "[{capcha_end}]", "hide"); } echo $tpl->skin_echo();
$footer->skin_loop_footer("[{loop_end}]"); /* 템플릿 치환 */ //header $header->skin_modeling("[tab_active_p]", tab_active("p")); $header->skin_modeling("[tab_active_m]", tab_active("m")); echo $header->skin_echo(); //loop if ($array_total > 0) { $i = 0; do { $mysql->fetchArray("idno,name,memo"); $array = $mysql->array; $loop->skin_modeling("[number]", $paging->getNo($i)); $i++; $loop->skin_modeling("[name]", "<a href=\"" . __URL_PATH__ . "admin/?p=pageList_modify&vtype={$vtype}&type=modify&act=" . $array['idno'] . "\">" . $array['name'] . "</a>"); $loop->skin_modeling("[memo]", $array['memo']); $loop->skin_modeling("[modify_btn]", "<a href=\"" . __URL_PATH__ . "admin/?p=pageList_modify&vtype={$vtype}&type=modify&act=" . $array['idno'] . "\" class=\"__btn_s_setting\" title=\"설정 변경\"></a>"); echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer $footer->skin_modeling("[vtype]", $vtype); if ($array_total > 0) { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show"); } $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=pageList")); echo $footer->skin_echo();
function sex_checked_value_func($obj) { global $array; switch ($array['me_sex']) { case "M": if ($obj == "M") { return "checked"; } else { return ""; } break; case "F": if ($obj == "F") { return "checked"; } else { return ""; } break; } } /* 템플릿 치환 */ $tpl->skin_modeling("[id_value]", $array['me_id']); $tpl->skin_modeling("[nick_value]", $array['me_nick']); $tpl->skin_modeling("[sex_checked_value_M]", sex_checked_value_func("M")); $tpl->skin_modeling("[sex_checked_value_F]", sex_checked_value_func("F")); $tpl->skin_modeling("[phone_value]", $array['me_phone']); $tpl->skin_modeling("[telephone_value]", $array['me_telephone']); $tpl->skin_modeling("[point_value]", $array['me_point']); echo $tpl->skin_echo();
$loop->skin_modeling("[number]", $paging->getNo($i)); $i++; $loop->skin_modeling("[name]", $array['me_nick']); if ($array['me_idno']) { $loop->skin_modeling("[id]", "<a href=\"" . __URL_PATH__ . "admin/?p=memberList_modify&act=" . $array['me_idno'] . "\">" . $array['me_id'] . "</a>"); $loop->skin_modeling("[mail_btn]", "<a href=\"" . __URL_PATH__ . "admin/?p=mailling&act=" . $array['me_id'] . "\" class=\"__btn_s_mail\" title=\"메일 발송\"></a>"); $loop->skin_modeling("[modify_btn]", "<a href=\"" . __URL_PATH__ . "admin/?p=memberList_modify&act=" . $array['me_idno'] . "\" class=\"__btn_s_detail\" title=\"상세 보기\"></a>"); $loop->skin_modeling("[regdate]", "<span title=\"" . $array['me_regdate'] . "\">" . date("Y.m.d", strtotime($array['me_regdate'])) . "</span>"); $loop->skin_modeling("[member_type]", $member_type_var[$array['me_level']] . " ({$array['me_level']})"); $loop->skin_modeling("[point]", number_format($array['me_point'])); } else { $loop->skin_modeling("[id]", $array['guest_ip']); $loop->skin_modeling("[mail_btn]", ""); $loop->skin_modeling("[modify_btn]", ""); $loop->skin_modeling("[mail_btn]", ""); $loop->skin_modeling("[modify_btn]", ""); $loop->skin_modeling("[member_type]", "비회원"); $loop->skin_modeling("[regdate]", ""); $loop->skin_modeling("[point]", "-"); } echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer if ($array_total > 0) { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show"); } $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=connectingMember")); echo $footer->skin_echo();
/* 템플릿 치환 */ if ($type == "modify") { $tpl->skin_modeling_hideArea("[{name_new_start}]", "[{name_new_end}]", "hide"); $tpl->skin_modeling_hideArea("[{name_modify_start}]", "[{name_modify_end}]", "show"); $tpl->skin_modeling_hideArea("[{deleteBtn_start}]", "[{deleteBtn_end}]", "show"); } else { if ($type == "new") { $tpl->skin_modeling_hideArea("[{name_new_start}]", "[{name_new_end}]", "show"); $tpl->skin_modeling_hideArea("[{name_modify_start}]", "[{name_modify_end}]", "hide"); $tpl->skin_modeling_hideArea("[{deleteBtn_start}]", "[{deleteBtn_end}]", "hide"); } } if ($type == "modify") { $tpl->skin_modeling("[use_comment_checked_Y]", use_checked("Y", "comment")); $tpl->skin_modeling("[use_comment_checked_N]", use_checked("N", "comment")); $tpl->skin_modeling("[use_secret_checked_Y]", use_checked("Y", "secret")); $tpl->skin_modeling("[use_secret_checked_N]", use_checked("N", "secret")); $tpl->skin_modeling("[use_likes_checked_Y]", use_checked("Y", "likes")); $tpl->skin_modeling("[use_likes_checked_N]", use_checked("N", "likes")); $tpl->skin_modeling("[use_reply_checked_Y]", use_checked("Y", "reply")); $tpl->skin_modeling("[use_reply_checked_N]", use_checked("N", "reply")); $tpl->skin_modeling("[use_vote_checked_Y]", use_checked("Y", "vote")); $tpl->skin_modeling("[use_vote_checked_N]", use_checked("N", "vote")); $tpl->skin_modeling("[use_file1_checked_Y]", use_checked("Y", "file1")); $tpl->skin_modeling("[use_file1_checked_N]", use_checked("N", "file1")); $tpl->skin_modeling("[use_file2_checked_Y]", use_checked("Y", "file2")); $tpl->skin_modeling("[use_file2_checked_N]", use_checked("N", "file2")); $tpl->skin_modeling("[use_list_checked_Y]", use_checked("Y", "list")); $tpl->skin_modeling("[use_list_checked_N]", use_checked("N", "list"));
//패스워드 입력 폼 출력 if ($read_true == 3) { $read_true_3->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir); $read_true_3->skin_modeling("[board_id_value]", $board_id); $read_true_3->skin_modeling("[read_value]", $read); $read_true_3->skin_modeling("[page_value]", $page); $read_true_3->skin_modeling("[where_value]", $where); $read_true_3->skin_modeling("[keyword_value]", $keyword); $read_true_3->skin_modeling("[article_value]", $article); $read_true_3->skin_modeling("[category_value]", $category); echo $read_true_3->skin_echo(); //일반 글 보기 출력 } else { if ($read_true == 1) { include_once __DIR_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/plugins/read.inc.php"; $skin_read->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir); $skin_read->skin_modeling_hideArea("[{read_password_start}]", "[{read_password_end}]", "hide"); if ($array['file1']) { $skin_read->skin_modeling_hideArea("[{read_file1_start}]", "[{read_file1_end}]", "show"); } else { $skin_read->skin_modeling_hideArea("[{read_file1_start}]", "[{read_file1_end}]", "hide"); } if ($array['file2']) { $skin_read->skin_modeling_hideArea("[{read_file2_start}]", "[{read_file2_end}]", "show"); } else { $skin_read->skin_modeling_hideArea("[{read_file2_start}]", "[{read_file2_end}]", "hide"); } if ($c_array['use_comment'] == "Y") { $skin_read->skin_modeling_hideArea("[{read_comment_start}]", "[{read_comment_end}]", "show"); } else { $skin_read->skin_modeling_hideArea("[{read_comment_start}]", "[{read_comment_end}]", "hide");
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; }
$array_loop->skin_modeling("[td_2]", $array['td_2']); $array_loop->skin_modeling("[td_3]", $array['td_3']); $array_loop->skin_modeling("[td_4]", $array['td_4']); $array_loop->skin_modeling("[td_5]", $array['td_5']); echo $array_loop->skin_echo(); $j++; } while ($mysql->nextRec()); } //footer include_once __DIR_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/plugins/index_footer.inc.php"; if ($array_total > 0) { $footer->skin_modeling_hideArea("[{array_not_loop_start}]", "[{array_not_loop_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{array_not_loop_start}]", "[{array_not_loop_end}]", "show"); } $footer->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir); $footer->skin_modeling("[ss_selected]", $ss); $footer->skin_modeling("[sm_selected]", $sm); $footer->skin_modeling("[sw_selected]", $sw); $footer->skin_modeling("[keyword_value]", $keyword); $footer->skin_modeling("[write_btn]", bbs_write_btn()); $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "{$viewDir}?article={$article}&category={$category}&where={$where}&keyword={$keyword}")); $footer->skin_modeling("[controll_btn]", bbs_controll_btn()); $footer->skin_modeling("[search_btn]", "<input type=\"submit\" class=\"submit\" value=\"검색\" />"); $footer->skin_modeling("[search_cancel_btn]", "<input type=\"button\" class=\"cancel\" value=\"취소\" onclick=\"document.location.href='" . __URL_PATH__ . "{$viewDir}?article={$article}';\"; />"); echo $footer->skin_echo(); /* 하단 파일&소스코드 출력 */ if (!isset($read_true)) { $bottom_file_ex = explode("{||||||||||}", $c_array['bottom_file']);
/* 검사 */ if ($mysql->numRows() < 1) { $lib->error_alert_location("존재하지 않는 메일링 입니다.", $site_config['ad_site_url'], "A"); } /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/maillingList_view.html"); /* 템플릿 함수 */ //수신 범위 출력 function receive_func() { global $array; if ($array['me_idno'] == "") { return "레벨{$array['min_level']} ~ 레벨{$array['max_level']}"; } else { return "<a href=\"" . __URL_PATH__ . "admin/?p=memberList_modify&act=" . $array['me_idno'] . "\" target=\"_blank\"><strong>" . $array['me_nick'] . "</strong></a>"; } } /* 템플릿 치환 */ $tpl->skin_modeling("[receive]", receive_func()); $tpl->skin_modeling("[subject]", $array['subject']); $tpl->skin_modeling("[memo]", $array['memo']); $tpl->skin_modeling("[regdate]", "<span title=\"" . $array['regdate'] . "\">" . date("Y.m.d H:i", strtotime($array['regdate'])) . "</span>"); echo $tpl->skin_echo();
} else { $selected = ""; } $option .= "<option value=\"" . $marray[$i] . "\" " . $selected . ">" . $marrayTxt[$i] . "</option>"; } return $option; } /* 템플릿 치환 */ if ($type == "modify") { $tpl->skin_modeling_hideArea("[{name_new_start}]", "[{name_new_end}]", "hide"); $tpl->skin_modeling_hideArea("[{name_modify_start}]", "[{name_modify_end}]", "show"); $tpl->skin_modeling_hideArea("[{deleteBtn_start}]", "[{deleteBtn_end}]", "show"); $tpl->skin_modeling_hideArea("[{popup_modify_start}]", "[{popup_modify_end}]", "show"); $tpl->skin_modeling("[btop]", $array['btop']); $tpl->skin_modeling("[bleft]", $array['bleft']); $tpl->skin_modeling("[link]", $array['link']); $tpl->skin_modeling("[pop_article_txt]", $array['pop_article_txt']); } else { if ($type == "new") { $tpl->skin_modeling_hideArea("[{name_new_start}]", "[{name_new_end}]", "show"); $tpl->skin_modeling_hideArea("[{name_modify_start}]", "[{name_modify_end}]", "hide"); $tpl->skin_modeling_hideArea("[{deleteBtn_start}]", "[{deleteBtn_end}]", "hide"); $tpl->skin_modeling_hideArea("[{popup_modify_start}]", "[{popup_modify_end}]", "hide"); $tpl->skin_modeling("[btop]", 200); $tpl->skin_modeling("[bleft]", 300); $tpl->skin_modeling("[link]", ""); $tpl->skin_modeling("[pop_article_txt]", ""); } }
<?php include_once "../include/pageJustice.inc.php"; $tpl = new skinController(); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/header.inc.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[gotoHomepageUrl]", $site_config['ad_site_url']); echo $tpl->skin_echo();
<?php $tpl = new skinController(); $mysql = new mysqlConnection(); /* 레이아웃 스킨 템플릿 로드 */ $tpl->skin_file_path("layoutskin/" . CALLED_LAYOUTDIR . "main.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[/layoutskinDir/]", __URL_PATH__ . "layoutskin/" . CALLED_LAYOUTDIR); echo $tpl->skin_echo();
if ($mode == "modify" && $member['me_level'] == 10 && $write_password_true != 1) { $write_password->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir); $write_password->skin_loop_array("[{write_password_form_start}]", "[{write_password_form_end}]"); $write_password->skin_modeling("[board_id_value]", $board_id); $write_password->skin_modeling("[mode_value]", $mode); $write_password->skin_modeling("[read_value]", $read); $write_password->skin_modeling("[page_value]", $page); $write_password->skin_modeling("[where_value]", $where); $write_password->skin_modeling("[keyword_value]", $keyword); $write_password->skin_modeling("[article_value]", $article); $write_password->skin_modeling("[category_value]", $category); echo $write_password->skin_echo(); //글쓰기 폼 } else { include_once __DIR_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/plugins/write.inc.php"; $skin_write->skin_modeling("[/boardskinDir/]", __URL_PATH__ . "modules/board/skin/" . $c_array['skin'] . "/" . $viewDir); $skin_write->skin_modeling_hideArea("[{write_password_form_start}]", "[{write_password_form_end}]", "hide"); if (!isset($__toony_member_idno) || $mode == "modify" && $array['me_idno'] == "0") { $skin_write->skin_modeling_hideArea("[{write_writer_start}]", "[{write_writer_end}]", "show"); } else { $skin_write->skin_modeling_hideArea("[{write_writer_start}]", "[{write_writer_end}]", "hide"); } if (!isset($__toony_member_idno) || $mode == "modify" && $array['me_idno'] == "0") { $skin_write->skin_modeling_hideArea("[{write_password_start}]", "[{write_password_end}]", "show"); $skin_write->skin_modeling_hideArea("[{write_email_start}]", "[{write_email_end}]", "show"); } else { $skin_write->skin_modeling_hideArea("[{write_password_start}]", "[{write_password_end}]", "hide"); $skin_write->skin_modeling_hideArea("[{write_email_start}]", "[{write_email_end}]", "hide"); } if (!isset($__toony_member_idno)) { $skin_write->skin_modeling_hideArea("[{write_capcha_start}]", "[{write_capcha_end}]", "show");
<?php include_once "../include/pageJustice.inc.php"; $tpl = new skinController(); $method = new methodController(); $lib = new libraryClass(); $mysql = new mysqlConnection(); $method->method_param("GET", "redirect"); /* 검사 */ if ($member['me_level'] < 10) { $lib->error_alert_location("이미 로그인 되어 있습니다.", $site_config['ad_site_url'], "A"); } /* 최고 운영자 이메일 로드 */ $mysql->select("\n\t\tSELECT me_id\n\t\tFROM toony_member_list\n\t\tWHERE me_admin='Y' AND me_drop_regdate IS NULL\n\t\tLIMIT 1\n\t"); $admin_email = $mysql->fetch("me_id"); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/login.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[admin_email]", $admin_email); $tpl->skin_modeling("[redirectUri]", urlencode($redirect)); echo $tpl->skin_echo();
} /* 템플릿 치환 */ //header echo $header->skin_echo(); //loop if ($array_total > 0) { $i = 0; do { $mysql->htmlspecialchars = 1; $mysql->nl2br = 1; $mysql->fetchArray("idno,min_level,max_level,memo,regdate,me_idno,me_nick"); $array = $mysql->array; $loop->skin_modeling("[number]", $paging->getNo($i)); $i++; $loop->skin_modeling("[receive]", receive_func()); $loop->skin_modeling("[memo]", "<a href=\"" . __URL_PATH__ . "admin/?p=maillingList_view&act=" . $array['idno'] . "\">" . $lib->func_length_limit(strip_tags($lib->htmldecode($array['memo'])), 0, 40) . "</a>"); $loop->skin_modeling("[regdate]", "<span title=\"" . $array['regdate'] . "\">" . date("Y.m.d H:i", strtotime($array['regdate'])) . "</span>"); $loop->skin_modeling("[view_btn]", "<a href=\"" . __URL_PATH__ . "admin/?p=maillingList_view&act=" . $array['idno'] . "\" class=\"__btn_s_detail\" title=\"상세 보기\"></a>"); echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer if ($array_total > 0) { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show"); } $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=maillingList")); echo $footer->skin_echo();
*/ $mysql->select("\n\t\tSELECT *\n\t\tFROM toony_admin_design_mainVisual\n\t\tWHERE vtype='{$vtype}'\n\t"); $mysql->htmlspecialchars = 0; $mysql->nl2br = 0; $mysql->fetchArray("scriptCode,sourceCode"); $array = $mysql->array; /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/mainVisual.html"); /* 템플릿 함수 */ function tab_active($tab_vtype) { global $vtype; if ($vtype == $tab_vtype) { return " class=\"active\""; } else { return ""; } } /* 템플릿 치환 */ $tpl->skin_modeling("[tab_active_p]", tab_active("p")); $tpl->skin_modeling("[tab_active_m]", tab_active("m")); $tpl->skin_modeling("[vtype_value]", $vtype); $tpl->skin_modeling("[scriptCode]", $lib->htmldecode($array['scriptCode'])); $tpl->skin_modeling("[sourceCode]", $lib->htmldecode($array['sourceCode'])); echo $tpl->skin_echo();
특정 디텍토리 퍼미션 검사 */ function permission_check($file) { $open = @is_writable($file); if (!$open) { return "N"; } else { return "Y"; } } function permission_txt($val) { if ($val == "Y") { return "<span style='color:blue;font-size:11px;letter-spacing:-1px;padding-left:10px;'>변경 완료됨</span>"; } else { return "<span style='color:red;font-size:11px;letter-spacing:-1px;padding-left:10px;'>퍼미션 변경되지 않음</span>"; } } /* 템플릿 치환 */ if (permission_check(__DIR_PATH__ . "modules/board/upload") == "Y") { $tpl->skin_modeling_hideArea("[{installBtn_start}]", "[{installBtn_end}]", "show"); $tpl->skin_modeling_hideArea("[{recheckBtn_start}]", "[{recheckBtn_end}]", "hide"); } else { $tpl->skin_modeling_hideArea("[{installBtn_start}]", "[{installBtn_end}]", "hide"); $tpl->skin_modeling_hideArea("[{recheckBtn_start}]", "[{recheckBtn_end}]", "show"); } $tpl->skin_modeling("[permissionCheck_upload]", permission_txt(permission_check(__DIR_PATH__ . "modules/board/upload"))); echo $tpl->skin_echo();
레이아웃 스킨 템플릿 로드 */ $tpl->skin_file_path("layoutskin/" . CALLED_LAYOUTDIR . "footer.inc.html"); /* 템플릿 함수 */ function footer_status_func() { global $site_config, $member, $viewDir; $btn = ""; if ($member['me_level'] > 9) { //현재 페이지의 uri를 변수에 저장 $nowUri = urlencode("?" . $_SERVER['QUERY_STRING']); $btn = "<li><a href=\"" . __URL_PATH__ . "{$viewDir}?article=login&redirect={$nowUri}\">회원로그인</a></li>"; $btn .= "<li><a href=\"" . __URL_PATH__ . "{$viewDir}?article=account\">신규 회원가입</a></li>"; $btn .= "<li><a href=\"" . __URL_PATH__ . "{$viewDir}?article=findPassword\">비밀번호 찾기</a></li>"; } else { $btn .= "<li><a href=\"" . __URL_PATH__ . "{$viewDir}?article=mypage\">마이페이지</a></li>"; $btn .= "<li><a href=\"" . __URL_PATH__ . "{$viewDir}?article=member&p=logout.submit\">로그아웃</a></li>"; } if ($member['me_level'] == 1) { $btn .= "<li><a href=\"" . __URL_PATH__ . "admin/\">관리모드</a></li>"; } return $btn; } /* 템플릿 치환 */ $tpl->skin_modeling("[status]", footer_status_func()); $tpl->skin_modeling("[/layoutskinDir/]", __URL_PATH__ . "layoutskin/" . CALLED_LAYOUTDIR); echo $tpl->skin_echo();
$path = opendir(__DIR_PATH__ . "modules/"); while ($dir = readdir($path)) { if ($dir != "." && $dir != "..") { if (file_exists(__DIR_PATH__ . "modules/{$dir}/configure/sidebar.inc.html")) { $modules_sidebarTpl[$dir] = new skinController(); $modules_sidebarTpl[$dir]->skin_file_path("modules/{$dir}/configure/sidebar.inc.html"); } } } if (count($modules_sidebarTpl) > 0) { $modules_sidebarTpl_outputs = ""; foreach ($modules_sidebarTpl as $val) { $modules_sidebarTpl_outputs .= $val->skin_echo(); } return $modules_sidebarTpl_outputs; } } /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/sidebar.inc.html"); /* 템플릿 치환 */ if ($member['me_admin'] == "Y") { $tpl->skin_modeling_hideArea("[{adminInfo_menuDisplay_start}]", "[{adminInfo_menuDisplay_end}]", "show"); } else { $tpl->skin_modeling_hideArea("[{adminInfo_menuDisplay_start}]", "[{adminInfo_menuDisplay_end}]", "hide"); } $tpl->skin_modeling("[modules_sideBarInclude]", modules_sideBarInclude()); echo $tpl->skin_echo();
<?php include_once "include/pageJustice.inc.php"; $tpl = new skinController(); $lib = new libraryClass(); /* 템플릿 로드 */ $tpl = new skinController(); $tpl->skin_file_path("_tpl/security_error.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[why]", htmlspecialchars($this->fetch("memo"))); $tpl->skin_modeling("[when]", date("Y년 m월 d일 H:i", strtotime($this->fetch("regdate")))); $tpl->skin_modeling("[email]", "<a href=\"mailto:{$site_config['ad_email']}\">" . $site_config['ad_email'] . "</a>"); $tpl->skin_modeling("[file_dir]", __URL_PATH__); echo $tpl->skin_echo();
<?php $tpl = new skinController(); $mysql = new mysqlConnection(); /* 기본 정보 로드 */ $mysql->select("\n\t\tSELECT source\n\t\tFROM toony_admin_mailling_template\n\t\tWHERE type='mailling'\n\t"); $mysql->htmlspecialchars = 0; $mysql->nl2br = 0; $sourceCode = $mysql->fetch("source"); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/mailTplMailling.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[sourceCode]", $sourceCode); echo $tpl->skin_echo();
/* 템플릿 함수 */ function board_list_options() { global $mysql; $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_config\n\t\t\tORDER BY name ASC\n\t\t"); $option = ""; do { $mysql->fetchArray("board_id,name"); $array = $mysql->array; $option .= "<option value=\"" . $array['board_id'] . "\">" . $array['name'] . "(" . $array['board_id'] . ")</option>"; } while ($mysql->nextRec()); return $option; } /* 템플릿 치환 */ $tpl->skin_modeling("[board_id]", $board_id); $tpl->skin_modeling("[article]", $article); $tpl->skin_modeling("[keyword]", $keyword); $tpl->skin_modeling("[where]", $where); $tpl->skin_modeling("[page]", $page); $tpl->skin_modeling("[category]", $category); $tpl->skin_modeling("[select_count]", sizeof($cnum_ex)); $tpl->skin_modeling("[cnum]", $cnum); $tpl->skin_modeling("[board_list_options]", board_list_options()); echo $tpl->skin_echo(); ?> </body> </html>
<?php $tpl = new skinController(); $mysql = new mysqlConnection(); $lib = new libraryClass(); $paging = new pagingClass(); $method = new methodController(); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/countResult.html"); /* 템플릿 함수 */ //Total Count function total_count() { $query = new mysqlConnection(); $query->select("select count(*) total_count from toony_admin_counter"); return number_format($query->fetch("total_count")); } /* 템플릿 치환 */ $tpl->skin_modeling("[total_count]", total_count()); echo $tpl->skin_echo();
서브페이지 네비게이션 선언 */ if (CALLED_DEPTH == 1) { $where = "callName='" . CALLED_ARTICLE . "'"; } else { if (CALLED_DEPTH == 2) { $where = "(callName='" . CALLED_ARTICLE . "') OR (class='" . CALLED_CLASS . "' AND depth=1)"; } else { if (CALLED_DEPTH == 3) { $where = "(callName='" . CALLED_ARTICLE . "') OR (class='" . CALLED_CLASS . "' AND depth=1) OR (idno='" . CALLED_PARENT . "' AND depth=2)"; } } } $mysql->select("\n\t\tSELECT *\n\t\tFROM toony_admin_menuInfo\n\t\tWHERE vtype='" . CALLED_VIEWTYPE . "' AND drop_regdate IS NULL AND ({$where})\n\t\tORDER BY depth ASC\n\t"); $naviTxt = "<a href=\"{$site_config['ad_site_url']}" . CALLED_VIEWDIR . "\">{$site_config['ad_site_name']}</a>"; //depth가 1인 경우 1차 메뉴 출력 if (CALLED_DEPTH == 1) { $naviTxt .= " > <a href=\"?article=" . $mysql->fetch("callName") . "\">" . $mysql->fetch("name") . "</a>"; //depth가 2 이상인 경우 2차 메뉴 출력 } else { do { $naviTxt .= " > <a href=\"?article=" . $mysql->fetch("callName") . "\">" . $mysql->fetch("name") . "</a>"; } while ($mysql->nextRec()); } /* 템플릿 치환 */ $tpl->skin_modeling("[/layoutskinDir/]", __URL_PATH__ . "layoutskin/" . CALLED_LAYOUTDIR); $tpl->skin_modeling("[subpage_title]", $mysql->fetch("name")); $tpl->skin_modeling("[navigator]", $naviTxt); echo $tpl->skin_echo();
//header $header->skin_modeling("[keyword_value]", keyword_value_func()); $header->skin_modeling("[keyword_link_value]", urlencode($keyword)); $header->skin_modeling("[where_value]", $where); $header->skin_modeling("[where_link_value]", urlencode($where)); $header->skin_modeling("[where_value_me_id]", where_value_func("me_id")); $header->skin_modeling("[where_value_memo]", where_value_func("memo")); echo $header->skin_echo(); //loop if ($array_total > 0) { do { $mysql->htmlspecialchars = 1; $mysql->nl2br = 1; $mysql->fetchArray("idno,me_id,me_idno,memo,regdate"); $array = $mysql->array; $array['memo'] = htmlspecialchars($array['memo']); $loop->skin_modeling("[idno]", $array['idno']); $loop->skin_modeling("[id]", "<a href=\"" . __URL_PATH__ . "admin/?p=memberList_modify&act=" . $array['me_idno'] . "\" target=\"_blank\">" . $array['me_id'] . "</a>"); $loop->skin_modeling("[memo]", $lib->func_length_limit($array['memo'], 0, 20)); $loop->skin_modeling("[regdate]", "<span title=\"" . $array['regdate'] . "\">" . date("Y.m.d", strtotime($array['regdate'])) . "</span>"); echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer if ($array_total > 0) { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show"); } $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=blockMember&where={$where}&keyword={$keyword}")); echo $footer->skin_echo();
<?php $tpl = new skinController(); /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/emptyTempFiles.html"); /* 템플릿 치환 */ $tpl->skin_modeling("[sessionCookiePath]", __DIR_PATH__ . "upload/sessionCookies/"); echo $tpl->skin_echo();
$header->skin_modeling("[where_value_me_nick]", where_value_func("me_nick")); $header->skin_modeling("[where_value_me_id]", where_value_func("me_id")); $header->skin_modeling("[where_value_me_login_ip]", where_value_func("me_login_ip")); $header->skin_modeling("[order_value]", $order); $header->skin_modeling("[orderby_value]", $orderby); echo $header->skin_echo(); //loop if ($array_total > 0) { $i = 0; do { $mysql->fetchArray("me_idno,me_id,me_level,me_nick,me_regdate,me_point,me_drop_regdate"); $array = $mysql->array; $loop->skin_modeling("[number]", $paging->getNo($i)); $i++; $loop->skin_modeling("[member_type]", $member_type_var[$array['me_level']] . " ({$array['me_level']})"); $loop->skin_modeling("[name]", $array['me_nick']); $loop->skin_modeling("[point]", number_format($array['me_point'])); $loop->skin_modeling("[id]", $array['me_id']); $loop->skin_modeling("[regdate]", "<span title=\"" . $array['me_regdate'] . "\">" . date("Y.m.d", strtotime($array['me_regdate'])) . "</span>"); $loop->skin_modeling("[drop_regdate]", "<span title=\"" . $array['me_drop_regdate'] . "\">" . date("Y.m.d", strtotime($array['me_drop_regdate'])) . "</span>"); echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer if ($array_total > 0) { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "hide"); } else { $footer->skin_modeling_hideArea("[{not_content_start}]", "[{not_content_end}]", "show"); } $footer->skin_modeling("[paging_area]", $paging->Show(__URL_PATH__ . "admin/?p=leaveMember&where={$where}&keyword={$keyword}&order={$order}&orderby={$orderby}")); echo $footer->skin_echo();
/* 시간 초기화 */ $month_var = $month; /* 템플릿 로드 */ $tpl->skin_file_path("admin/_tpl/countResult_day.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 echo $header->skin_echo(); //loop $mysql->select("\n\t\tSELECT COUNT(*) count_re,\n\t\tDATE_FORMAT(regdate,'%Y.%m.%d') date_re\n\t\tFROM toony_admin_counter\n\t\tWHERE DATE_FORMAT(regdate,'%Y.%m')='{$month_var}'\n\t\tGROUP BY date_re\n\t\tORDER BY date_re DESC\n\t"); if ($mysql->numRows() > 0) { do { $loop->skin_modeling("[count]", number_format($mysql->fetch("count_re"))); $loop->skin_modeling("[date]", substr($mysql->fetch("date_re"), 5)); $loop->skin_modeling("[list_btn]", "<img src=\"" . __URL_PATH__ . "admin/images/countResult_spr_down.png\" RV_list=\"" . $mysql->fetch("date_re") . "\" class=\"list_btn_img\" RV_list=\"" . $mysql->fetch("date_re") . "\" />"); echo $loop->skin_echo(); } while ($mysql->nextRec()); } //footer echo $footer->skin_echo();