Beispiel #1
0
<?php

include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
include __DIR_PATH__ . "capcha/zmSpamFree.php";
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$session = new sessionController();
$mailSender = new mailSender();
$fileUploader = new fileUploader();
$validator = new validator();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "article,category,category_ed,board_id,writer,subject,use_secret,use_notice,use_html,use_email,ment,password,email,file1_ed,file2_ed,file1_del,file2_del,read,mode,type,page,where,keyword,capcha,td_1,td_2,td_3,td_4,td_5");
$method->method_param("FILE", "file1,file2");
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("write_point,read_point,viewType,name,use_secret,use_comment,use_list,use_reply,use_file1,use_file2,use_vote,void_html,file_limit,list_limit,length_limit,array_level,write_level,secret_level,comment_level,delete_level,read_level,reply_level,controll_level,tc_1,tc_2,tc_3,tc_4,tc_5");
$c_array = $mysql->array;
$mysql->htmlspecialchars = 0;
$mysql->nl2br = 0;
$c_array['point_board_name'] = $mysql->fetch("name");
/*
수정/답글 모드인 경우 원본 글 가져옴
*/
if ($mode == "modify" || $mode == "reply") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_data_{$board_id}\n\t\t\tWHERE idno={$read}\n\t\t");
    $mysql->fetchArray("ln,category,writer,me_idno,idno,use_notice,use_html,use_secret,password,use_email,email,td_1,td_2,td_3,td_4,td_5");
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "level_1,level_2,level_3,level_4,level_5,level_6,level_7,level_8,level_9");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
레벨 POST변수 배열화
*/
$level['1'] = $level_1;
$level['2'] = $level_2;
$level['3'] = $level_3;
$level['4'] = $level_4;
$level['5'] = $level_5;
$level['6'] = $level_6;
$level['7'] = $level_7;
$level['8'] = $level_8;
$level['9'] = $level_9;
/*
검사
*/
for ($i = 1; $i <= 9; $i++) {
    if (trim($level[$i]) == "") {
        $validator->validt_diserror("level_" . $i, "");
    }
}
Beispiel #3
0
<?php

include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "board_id,read_idno,mode");
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("use_likes");
$c_array = $mysql->array;
/*
검사
*/
if ($c_array['use_likes'] == "N") {
    $validator->validt_diserror("", "추천 기능 비활성 중입니다.");
}
if ($member['me_level'] > 9) {
    $validator->validt_diserror("", "추천 권한이 없습니다.\n\n추천/비추천은 회원만 가능합니다.");
}
/*
이미 추천.비추천 했는지 검사
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_like\n\t\tWHERE board_id='{$board_id}' AND read_idno='{$read_idno}' AND me_idno='{$member['me_idno']}'\n\t");
if ($mysql->numRows() > 0) {
Beispiel #4
0
<?php

include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$mysql = new mysqlConnection();
$method = new methodController();
$method->method_param("GET", "board_id,file");
$file = urldecode($file);
$filepath = __DIR_PATH__ . "modules/board/upload/" . $board_id . "/" . $file;
$filename = iconv("UTF-8", "EUC-KR", $file);
/* 
게시물 정보 로드 
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_data_{$board_id}\n\t\tWHERE file1='{$file}' OR file2='{$file}'\n\t");
$file1_name = $mysql->fetch("file1");
$file2_name = $mysql->fetch("file2");
/* 
첨부된 파일이 file1 인지 file2 인지 확인 
*/
if ($file1_name == $file) {
    $file_tar = 'file1';
    $td_tar = 'file1_cnt';
} else {
    if ($file2_name == $file) {
        $file_tar = 'file2';
        $td_tar = 'file2_cnt';
    } else {
        exit;
    }
}
/* 
Beispiel #5
0
<?php

$tpl = new skinController();
$header = new skinController();
$loop = new skinController();
$footer = new skinController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$paging = new pagingClass();
$method = new methodController();
$method->method_param("GET", "page,where,keyword");
/*
검색 키워드 설정
*/
if (trim($keyword) != "") {
    $array_where = $where . " LIKE '%" . $keyword . "%'";
} else {
    $array_where = "1";
}
/*
페이징 설정
*/
$paging_query = "\n\t\tSELECT *\n\t\tFROM toony_admin_security_member\n\t\tWHERE {$array_where}\n\t\tORDER BY regdate DESC\n\t";
$mysql->select($paging_query);
$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();
Beispiel #6
0
<?php

$mysql = new mysqlConnection();
$lib = new libraryClass();
$tpl = new skinController();
$method = new methodController();
$method->method_param("POST", "submitVal");
/*
모듈이 설치되어 있는지 검사
*/
if ($mysql->is_table("toony_module_board_config")) {
    $lib->error_location("?m=board&p=boardList", "A");
}
/*
POST 변수가 전달된 경우 모듈을 설치
*/
if ($submitVal) {
    include __DIR_PATH__ . "modules/board/install/schema.php";
    $mysql->query($db_toony_board_like);
    $mysql->query($db_toony_board_config);
    $mysql->query($db_insert_toony_board_config);
    $mysql->query($db_toony_module_board_data_notice);
    $mysql->query($db_toony_module_board_comment_notice);
    $mysql->query($db_toony_module_board_data_notice_value);
    $mysql->query($db_toony_module_board_data_webzine);
    $mysql->query($db_toony_module_board_comment_webzine);
    $mysql->query($db_toony_module_board_data_webzine_value);
    $mysql->query($db_toony_module_board_data_gallery);
    $mysql->query($db_toony_module_board_comment_gallery);
    $mysql->query($db_toony_module_board_data_gallery_value);
    $lib->error_alert_location("설치가 완료 되었습니다.", "?m=board&p=boardList", "A");
Beispiel #7
0
<?php

include_once __DIR_PATH__ . "modules/board/install/installCheck.php";
$tpl = new skinController();
$mysql = new mysqlConnection();
$method = new methodController();
$method->method_param("GET", "act,type");
/*
변수 처리
*/
if (!$type) {
    $type = "new";
}
/*
수정 모드인 경우 기본 정보 로드
*/
if ($type == "modify") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_config\n\t\t\tWHERE board_id='{$act}'\n\t\t");
    $mysql->fetchArray("write_point,read_point,skin,board_id,name,list_limit,length_limit,use_secret,use_comment,use_likes,use_category,category,use_reply,use_vote,use_file1,use_file2,use_list,file_limit,void_html,controll_level,write_level,read_level,secret_level,comment_level,array_level,reply_level,delete_level,top_file,bottom_file,thumb_width,thumb_height,articleIMG_width,articleIMG_height,article_length,ico_file,ico_mobile,ico_secret,ico_secret_def,ico_new,ico_new_def,ico_hot,ico_hot_def,tc_1,tc_2,tc_3,tc_4,tc_5");
    $array = $mysql->array;
    $mysql->htmlspecialchars = 0;
    $mysql->nl2br = 0;
    $array['top_source'] = $mysql->fetch("top_source");
    $array['bottom_source'] = $mysql->fetch("bottom_source");
}
/*
홈페이지&모바일페이지 설정 값이 함께 기록되는 필드인 경우 분리
*/
$use_list_exp = explode("|", $array['use_list']);
$array['use_list'] = $use_list_exp[0];
$array['use_m_list'] = $use_list_exp[1];
Beispiel #8
0
<?php

include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$tar_mysql = new mysqlConnection();
$c_tar_mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$skin_delete_form = new skinController();
$fileUploader = new fileUploader();
$validator = new validator();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "board_id,article,where,keyword,page,category,cnum,type,tar_board_id");
/*
검사
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config \n\t\tWHERE board_id='{$board_id}'\n\t");
$c_array['controll_level'] = $mysql->fetch("controll_level");
if ($member['me_level'] > $c_array['controll_level']) {
    $validator->validt_diserror("", "글을 관리할 권한이 없습니다.");
}
/*
선택한 게시물을 쪼갠 후 배열 순서를 재배치
*/
$cnum_ex = explode(",", $cnum);
$cnum_ex = array_reverse($cnum_ex);
/*
파일 중복 저장 방지를 위한 현재 시간 변수 생성
<?php

include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "writer,comment,reply_writer_o,reply_comment_o,comment_modify,cidno,type,mode,board_id,read,page,where,keyword,tr_1,tr_2,tr_3,tr_4,tr_5");
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("viewType,name,use_comment,use_list,use_reply,use_file1,use_file2,void_html,file_limit,list_limit,length_limit,array_level,write_level,secret_level,comment_level,delete_level,read_level,reply_level,controll_level,tc_1,tc_2,tc_3,tc_4,tc_5");
$c_array = $mysql->array;
/*
검사
*/
mb_internal_encoding('UTF-8');
if ($c_array['use_comment'] == "N") {
    $validator->validt_diserror("", "댓글 기능이 비활성 중입니다.");
}
if ($member['me_level'] > $c_array['comment_level']) {
    $validator->validt_diserror("", "권한이 없습니다.");
}
/*
댓글 등록
*/
if ($mode == 1) {
Beispiel #10
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "scriptCode,sourceCode,vtype");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_design_mainVisual SET\n\t\tscriptCode='{$scriptCode}',sourceCode='{$sourceCode}'\n\t\tWHERE vtype='{$vtype}'\n\t");
/*
완료 후 리턴
*/
$validator->validt_success("성공적으로 수정 되었습니다.", "admin/?p=mainVisual&vtype={$vtype}");
Beispiel #11
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$method->method_param("POST", "mode,file_ed,json,html");
$method->method_param("FILE", "file");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
html변수 내용 replace
*/
$html = str_replace("\n", "", $html);
$html = str_replace("\t", "", $html);
/*
배너공간 이미지 파일 업로드
*/
if ($mode == "banner_addfile") {
    //이미지 저장 옵션
    $fileUploader->savePath = __DIR_PATH__ . "upload/siteInformations/";
    $fileUploader->filedotType = "jpg,bmp,gif,png";
    //이미지 저장
    $file_name = "";
    if ($file['size'] > 0) {
        $fileUploader->saveFile = $file;
        //경로 및 파일 검사
        $fileUploader->filePathCheck();
        if ($fileUploader->fileNameCheck() == false) {
Beispiel #12
0
<?php

$tpl = new skinController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$method->method_param("GET", "act");
/*
DB 조건 변수 처리
*/
if ($act) {
    $where = "idno={$act}";
} else {
    $where = "1";
}
/*
메일링 정보 로드
*/
$mysql->select("\n\t\tSELECT A.*,B.*\n\t\tFROM toony_admin_mailling A\n\t\tLEFT OUTER JOIN toony_member_list B\n\t\tON A.me_idno=B.me_idno\n\t\tWHERE {$where}\n\t\tORDER BY regdate DESC\n\t\tLIMIT 1\n\t");
$mysql->fetchArray("idno,min_level,max_level,subject,regdate,me_idno,me_nick");
$array = $mysql->array;
$mysql->htmlspecialchars = 0;
$mysql->nl2br = 0;
$array['memo'] = $mysql->fetch("memo");
/*
검사
*/
if ($mysql->numRows() < 1) {
    $lib->error_alert_location("존재하지 않는 메일링 입니다.", $site_config['ad_site_url'], "A");
}
/*
Beispiel #13
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "type,cnum,id,memo,ip");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/**************************************************
	추가 모드인 경우
	**************************************************/
if ($type == "new") {
    /*
    검사
    */
    $validator->validt_null("ip", "");
    $validator->validt_null("memo", "");
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_admin_security_ip\n\t\t\tWHERE ip='{$ip}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("ip", "이미 등록된 ip입니다.");
    }
    /*
    DB 저장
    */
    $mysql->query("\n\t\t\tINSERT INTO toony_admin_security_ip (ip,memo,regdate)\n\t\t\tVALUES\n\t\t\t('{$ip}','{$memo}',now())\n\t\t");
    /*
    완료 후 리턴
    */
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$mailSender = new mailSender();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "min_level,max_level");
/*
검사
*/
if ($min_level == "none") {
    echo '<!--error::null_min_level-->';
    exit;
}
if ($max_level == "none") {
    echo '<!--error::null_max_level-->';
    exit;
}
/*
발송 대상 인원수 구함
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE (me_level<={$min_level} AND me_level>={$max_level}) AND me_drop_regdate IS NULL\n\t\tORDER BY me_regdate DESC\n\t");
/*
완료 후 리턴
*/
echo $mysql->numRows();
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$validator = new validator();
$method->method_param("POST", "href,depth,parent,forward,callName,type,org,module,page,name,class,title_img_ed,img_ed,img2_ed,del_title_img,del_img,del_img2,link,linkDoc,vtype,useMenu,useMenu_header_val,useMenu_side,useMenu_side_val");
$method->method_param("FILE", "title_img,img,img2");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
변수 처리
*/
if (!$vtype) {
    $vtype = "p";
}
if ($useMenu_side_val == "disabled" || $useMenu_side == "checked") {
    $useMenu_side = "Y";
} else {
    $useMenu_side = "N";
}
if ($useMenu_header_val == "disabled" || $useMenu == "checked") {
    $useMenu = "Y";
} else {
    $useMenu = "N";
}
/*
검사
Beispiel #16
0
PC버전으로 출력함
*/
$viewType = "p";
$viewDir = "";
include "include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
include __DIR_PATH__ . "include/outModules.inc.php";
/*
엔진이 설치되어 있는지 검사
*/
if (!is_file("include/mysql.info.php") || !is_file("include/path.info.php") || !defined('__HOST__') || !defined('__DB_NAME__') || !defined('__DB_USER__') || !defined('__DB_PASS__') || !defined('__URL_PATH__') || !defined('__DIR_PATH__') || strstr("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'], __URL_PATH__) == FALSE || strstr(str_replace("\\", "/", realpath(__FILE__)), __DIR_PATH__) == FALSE) {
    echo '<script type="text/javascript">document.location.href = "install/index.php";</script>';
    exit;
}
$lib = new libraryClass();
$method = new methodController();
$innerCont = new skinController();
$subpage = new skinController();
$mysql = new mysqlConnection();
$method->method_param("GET", "article,m,p,saveViewType,keepViewType");
/*
검사
*/
if (!$article && ($m || $p)) {
    $lib->error_alert_location("올바르지 않은 접근 입니다.", $site_config['ad_site_url'], "A");
}
if (!$article) {
    $article = "main";
}
/*
메뉴 타입이 포워딩인 경우 포워딩 대상 메뉴로 article 변환
Beispiel #17
0
<?php

include_once __DIR_PATH__ . "include/pageJustice.inc.php";
$tpl = new skinController();
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$read_true_3 = new skinController();
$skin_read = new skinController();
$session = new sessionController();
$method->method_param("GET", "read,page,where,keyword,category");
$method->method_param("POST", "s_password");
/*
세션 로드
*/
$__toony_board_view = $session->session_selector('__toony_board_view_' . $board_id . '_' . $read);
//조회수 세션
/*
패스워드가 submit된 경우
*/
if ($s_password != "") {
    $method->method_param("POST", "s_board_id,s_mode,s_read,s_password,s_page,where,keyword");
    $board_id = $s_board_id;
    $read = $s_read;
    $mode = $s_mode;
    $page = $s_page;
}
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
Beispiel #18
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "id,password,password02,nick,sex,phone,telephone,point");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
$validator->validt_email("id", 1, "");
$validator->validt_nick("nick", 1, "");
$validator->validt_phone("phone", 0, "");
$validator->validt_phone("telephone", 0, "");
$validator->validt_number("point", 1, 10, 0, "");
/*
최고 운영자 기본 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE me_admin='Y' AND me_level=1\n\t");
$mysql->fetchArray("me_password,me_point,me_idno");
$array = $mysql->array;
/*
비밀번호 인풋에 값이 입력된 경우 비밀번호를 변경함
*/
if (trim($password) != "") {
    if ($password != $password02) {
        $validator->validt_diserror("password02", "비밀번호와 비밀번호 확인이 일치하지 않습니다.");
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$validator = new validator();
$method->method_param("POST", "type,name,memo,void_use,void_link,link,bleft,btop,target,img_ed,start_level,end_level,pop_article,pop_article_txt");
$method->method_param("FILE", "img");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
//입력값 검사
if ($type == "new" || $type == "modify") {
    $validator->validt_idx("name", 1, "");
    $validator->validt_null("memo", "");
    $validator->validt_number("btop", 0, 5, 1, "");
    $validator->validt_number("bleft", 0, 5, 1, "");
    if ($start_level < $end_level) {
        $validator->validt_diserror("start_level", "최소 레벨이 최대 레벨보다 클 수 없습니다.");
    }
    if ($pop_article == "select" && trim($pop_article_txt) == "") {
        $validator->validt_diserror("pop_article_txt", "");
    }
}
//추가 모드인 경우 추가 입력값 검사
if ($type == "new") {
Beispiel #20
0
<?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();
Beispiel #21
0
<?php

$tpl = new skinController();
$header = new skinController();
$loop = new skinController();
$footer = new skinController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$paging = new pagingClass();
$method = new methodController();
$method->method_param("GET", "page");
/*
페이징 설정
*/
$paging_query = "\n\t\tSELECT B.*,B.me_login_ip AS status_ip,A.guest_ip\n\t\tFROM toony_admin_member_online A\n\t\tLEFT OUTER JOIN toony_member_list B\n\t\tON A.me_idno=B.me_idno\n\t\tWHERE A.visitdate > DATE_SUB(now(), INTERVAL 55 MINUTE) AND (B.me_admin!='Y' OR B.me_admin IS NULL) AND B.me_drop_regdate IS NULL\n\t\tORDER BY A.visitdate DESC\n\t";
$mysql->select($paging_query);
$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/connectingMember.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}]");
Beispiel #22
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
/*
엔진이 설치되어 있는지 검사
*/
if (!is_file("../include/mysql.info.php") || !is_file("../include/path.info.php") || !defined('__HOST__') || !defined('__DB_NAME__') || !defined('__DB_USER__') || !defined('__DB_PASS__') || !defined('__URL_PATH__') || !defined('__DIR_PATH__') || strstr("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'], __URL_PATH__) == FALSE || strstr(str_replace("\\", "/", realpath(__FILE__)), __DIR_PATH__) == FALSE) {
    echo '<script type="text/javascript">document.location.href = "../install/index.php";</script>';
    exit;
}
$method = new methodController();
$method->method_param("GET", "m,p");
?>
<!DOCTYPE HTML>
<html>
<head>
<?php 
include_once __DIR_PATH__ . "admin/include/head_script.php";
?>
</head>
<body>
<?php 
/*
URL 분석
*/
if ($m != "") {
    $incDir = "modules/{$m}/admin/";
} else {
    $incDir = "admin/";
}
Beispiel #23
0
<?php

$tpl = new skinController();
$header = new skinController();
$loop = new skinController();
$footer = new skinController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$paging = new pagingClass();
$method = new methodController();
$method->method_param("GET", "page,vtype");
/*
변수 처리
*/
if (!$vtype || $vtype != "p" && $vtype != "m") {
    $vtype = "p";
}
/*
페이징 설정
*/
$paging_query = "\n\t\tSELECT * \n\t\tFROM toony_page_list\n\t\tWHERE vtype='{$vtype}'\n\t\tORDER BY regdate DESC\n\t";
$mysql->select($paging_query);
$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();
/*
템플릿 함수
Beispiel #24
0
<?php

/*
PC버전으로 출력함
*/
include "../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
include __DIR_PATH__ . "include/outModules.inc.php";
$tpl = new skinController();
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method->method_param("GET", "cnum,article,board_id,where,keyword,page,category");
?>
<!DOCTYPE HTML>
<html>
<head>
<?php 
include_once __DIR_PATH__ . "include/head_script.php";
?>
</head>
<body style="background-color:#F5F5F5;">
<?php 
/*
선택한 게시물을 쪼갬
*/
$cnum = str_replace("on,", "", $cnum);
$cnum_ex = explode(",", $cnum);
/*
검사
*/
Beispiel #25
0
<?php

include "include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$method = new methodController();
$mysql = new mysqlConnection();
$mailSender = new mailSender();
$validator = new validator();
$method->method_param("POST", "chk_agreement,chk_private,id,password,password02,nick,sex,phone,telephone");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
if ($member['me_level'] < 10) {
    $validator->validt_diserror("", "이미 회원가입이 되어 있습니다.");
}
$validator->validt_checked("chk_agreement", "이용약관에 동의해야 합니다.");
$validator->validt_checked("chk_private", "개인정보취급방침에 동의해야 합니다.");
$validator->validt_email("id", 1, "");
$validator->validt_password("password", 1, "");
if ($password != $password02) {
    $validator->validt_diserror("password02", "");
}
$validator->validt_nick("nick", 1, "");
$validator->validt_phone("phone", 0, "");
$validator->validt_phone("telephone", 0, "");
$password_val = "password('{$password}')";
/*
이미 존재하는 아이디인지 검사
<?php

include "../../../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "type,board_id,skin,name,use_list,use_m_list,use_secret,use_comment,use_likes,use_reply,use_category,category,use_file1,use_file2,file_limit,list_limit,list_m_limit,length_limit,length_m_limit,array_level,write_level,secret_level,comment_level,delete_level,read_level,controll_level,reply_level,write_point,read_point,top_file,top_source,bottom_file,bottom_source,thumb_width,thumb_m_width,thumb_height,thumb_m_height,articleIMG_width,articleIMG_m_width,articleIMG_height,articleIMG_m_height,article_length,article_m_length,ico_file_p,ico_file_m,ico_mobile_p,ico_mobile_m,ico_secret_p,ico_secret_m,ico_secret_def,ico_new_p,ico_new_m,ico_new_def,ico_hot_def_v,ico_hot_def_r,ico_hot_def_type,ico_hot_p,ico_hot_m,tc_1,tc_2,tc_3,tc_4,tc_5");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
검사
*/
if ($type == "new") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_config\n\t\t\tWHERE board_id='{$board_id}'\n\t\t");
    if ($mysql->numRows() > 0) {
        $validator->validt_diserror("board_id", "이미 존재하는 코드입니다.");
    }
    $validator->validt_idx("board_id", 1, "");
}
$validator->validt_null("name", "");
$validator->validt_number("list_limit", 1, 10, 1, "");
$validator->validt_number("list_m_limit", 1, 10, 1, "");
$validator->validt_number("length_limit", 1, 10, 1, "");
$validator->validt_number("length_m_limit", 1, 10, 1, "");
$validator->validt_number("file_limit", 1, 10, 1, "");
$validator->validt_number("article_length", 1, 10, 1, "");
$validator->validt_number("article_m_length", 1, 10, 1, "");
$validator->validt_number("write_point", 1, 10, 1, "");
$validator->validt_number("read_point", 1, 10, 1, "");
Beispiel #27
0
<?php

$tpl = new skinController();
$header = new skinController();
$loop = new skinController();
$footer = new skinController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$paging = new pagingClass();
$method = new methodController();
$method->method_param("GET", "page,where,keyword,order,orderby");
/*
검색 키워드 설정
*/
if (trim($keyword) != "") {
    $array_where = $where . " LIKE '%" . $keyword . "%' AND me_admin!='Y' AND me_drop_regdate IS NOT NULL";
} else {
    $array_where = "me_admin!='Y' AND me_drop_regdate IS NOT NULL";
}
/*
정렬 기준 설정
*/
if (!$order) {
    $order = "me_drop_regdate";
}
if (!$orderby) {
    $orderby = "DESC";
}
$array_order = $order . " " . $orderby;
/*
페이징 설정
Beispiel #28
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "skinType,skinName");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
홈페이지, 모바일페이지를 구분하여 DB update 구문 작성
*/
if ($skinType == "p") {
    $update = "ad_site_layout='{$skinName}'";
} else {
    $update = "ad_msite_layout='{$skinName}'";
}
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_siteconfig SET\n\t\t{$update}\n\t");
/*
완료후 리턴
*/
$validator->validt_success("성공적으로 반영 되었습니다.", "");
Beispiel #29
0
<?php

include "../include/engine.inc.php";
include __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$validator = new validator();
$method->method_param("POST", "vtype,body_bgColor,body_txtColor,body_txtSize,link_txtColor,link_hoverColor,link_activeColor,link_visitedColor,link_txtSize,input_txtColor,input_txtSize,useDefault");
$lib->security_filter("referer");
$lib->security_filter("request_get");
/*
변수 처리
*/
if ($useDefault == "checked") {
    $useDefault = "Y";
} else {
    $useDefault = "N";
}
/*
검사
*/
$validator->validt_number("body_txtSize", 1, 10, 1, "");
$validator->validt_number("link_txtSize", 1, 10, 1, "");
$validator->validt_number("input_txtSize", 1, 10, 1, "");
/*
DB수정
*/
$mysql->query("\n\t\tUPDATE toony_admin_design_bodyStyle\n\t\tSET\n\t\tbody_bgColor='{$body_bgColor}',body_txtColor='{$body_txtColor}',body_txtSize='{$body_txtSize}',link_txtColor='{$link_txtColor}',link_hoverColor='{$link_hoverColor}',\n\t\tlink_activeColor='{$link_activeColor}',link_visitedColor='{$link_visitedColor}',link_txtSize='{$link_txtSize}',input_txtColor='{$input_txtColor}',input_txtSize='{$input_txtSize}',useDefault='{$useDefault}'\n\t\tWHERE vtype='{$vtype}'\n\t");
/*
완료 후 리턴
Beispiel #30
0
<?php

include_once __DIR_PATH__ . "include/pageJustice.inc.php";
$tpl = new skinController();
$header = new skinController();
$notice_loop = new skinController();
$array_loop = new skinController();
$footer = new skinController();
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$paging = new pagingClass();
$method->method_param("GET", "where,keyword,page,read,category");
/*
게시판 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config \n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("board_id,name,use_list,use_comment,use_category,use_likes,use_reply,use_file1,use_file2,void_html,file_limit,list_limit,length_limit,array_level,write_level,secret_level,comment_level,delete_level,read_level,controll_level,reply_level,regdate,skin,top_file,bottom_file,thumb_width,thumb_height,article_length,ico_file,ico_secret,ico_new,ico_new_def,ico_hot,ico_hot_def,ico_mobile,tc_1,tc_2,tc_3,tc_4,tc_5");
$c_array = $mysql->array;
$mysql->htmlspecialchars = 0;
$mysql->nl2br = 0;
$mysql->fetchArray("top_source,bottom_source,category");
$c_array = $mysql->array;
/*
설정 필드가 홈페이지+모바일페이지의 설정 값을 같이 사용하는 경우 분리
*/
if ($viewType == "p") {
    $ex_slt = 0;
} else {
    $ex_slt = 1;
}