Beispiel #1
0
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();
}
Beispiel #2
0
<?php

$globalMysql = new mysqlConnection();
$session = new sessionController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
/*
회원의 기본 정보를 가져옴
*/
$__toony_member_idno = $session->session_selector("__toony_member_idno");
if (isset($__toony_member_idno)) {
    $globalMysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_member_list\n\t\t\tWHERE me_idno={$__toony_member_idno}\n\t\t");
    $globalMysql->fetchArray("me_idno,me_id,me_password,me_nick,me_name,me_level,me_sex,me_phone,me_telephone,me_regdate,me_login_regdate,me_login_ip,me_point,me_admin");
    $member = $globalMysql->array;
} else {
    $member['me_level'] = 10;
    $member['me_idno'] = NULL;
    $member['me_id'] = NULL;
    $member['me_nick'] = NULL;
    $member['me_phone'] = NULL;
    $member['me_admin'] = NULL;
}
/*
회원 레벨별 명칭을 불러옴
*/
$globalMysql->select("\n\t\tSELECT ad_member_type\n\t\tFROM toony_admin_siteconfig\n\t\tLIMIT 1\n\t");
for ($MT_vars_i = 0; $MT_vars_i <= 8; $MT_vars_i++) {
    $vars = explode(",", htmlspecialchars(stripslashes($globalMysql->fetch("ad_member_type"))));
}
for ($MT_vars_i = 1; $MT_vars_i <= 9; $MT_vars_i++) {
    $member_type_var[$MT_vars_i] = $vars[$MT_vars_i - 1];
Beispiel #3
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 #4
0
<?php

include_once "include/pageJustice.inc.php";
$tpl = new skinController();
$lib = new libraryClass();
/*
검사
*/
if ($member['me_level'] < 10) {
    $lib->error_alert_location("이미 가입 되어 있습니다.", __URL_PATH__ . $viewDir, "A");
}
/*
템플릿 로드
*/
$tpl->skin_file_path("_tpl/{$viewDir}account.html");
/*
템플릿 치환
*/
echo $tpl->skin_echo();
Beispiel #5
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 #6
0
<?php

include_once __DIR_PATH__ . "include/pageJustice.inc.php";
$tpl = new skinController();
$write_password = new skinController();
$skin_write = new skinController();
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$session = new sessionController();
$method->method_param("GET", "mode,read,page,where,keyword,category");
$method->method_param("POST", "s_password");
$session->session_selector("__toony_member_idno");
/*
패스워드가 submit 된 경우 GET변수를 POST변수로 변환
*/
if ($s_password != "") {
    $method->method_param("POST", "s_board_id,s_mode,s_read,s_password,s_page");
    $board_id = $s_board_id;
    $read = $s_read;
    $mode = $s_mode;
    $page = $s_page;
}
if (isset($HTTP_POST_VARS['keyword'])) {
    $method->method_param("POST", "where,keyword");
}
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("skin,title,use_comment,use_list,use_secret,use_category,category,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,top_file,bottom_file,ico_secret_def,tc_1,tc_2,tc_3,tc_4,tc_5");
Beispiel #7
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 * \n\t\tFROM toony_admin_popupconfig\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();
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/popupList.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 #8
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 #9
0
<?php

include_once "include/engine.inc.php";
include_once __DIR_PATH__ . "include/global.php";
$lib = new libraryClass();
$mysql = new mysqlConnection();
$session = new sessionController();
$mysql = new mysqlConnection();
$lib->security_filter("referer");
$lib->security_filter("request_post");
/*
검사
*/
if (isset($__toony_member_idno) == false) {
    $lib->error_alert_location("로그인 되어 있지 않습니다.", $site_config['ad_site_url'], "A");
}
/*
현재 접속자 정보 삭제
*/
$mysql->select("\n\t\tSELECT me_idno\n\t\tFROM toony_admin_member_online\n\t\tWHERE me_idno='{$member['me_idno']}'\n\t");
if ($mysql->numRows() > 0) {
    $mysql->query("\n\t\t\tDELETE FROM toony_admin_member_online\n\t\t\tWHERE me_idno='{$member['me_idno']}'\n\t\t");
}
/*
로그인 세션 삭제
*/
$session->session_deleter("__toony_member_idno");
/*
완료 후 페이지 이동
*/
//리페러 체크하여 PC모드인지 Mobile모드인지 확인
Beispiel #10
0
<?php

$tpl = new skinController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$method->method_param("GET", "act");
/*
회원의 기본 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE me_admin!='Y' AND me_idno='{$act}' AND me_drop_regdate IS NULL\n\t");
$mysql->fetchArray("me_id,me_nick,me_sex,me_phone,me_telephone,me_password,me_point,me_level,me_login_regdate,me_login_ip,me_regdate,me_idCheck");
$array = $mysql->array;
/*
검사
*/
if ($mysql->numRows() < 1) {
    $lib->error_alert_back("회원이 존재하지 않거나 수정할 수 없는 회원입니다.", "A");
}
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/memberList_modify.html");
/*
템플릿 함수
*/
function sex_checked_value_func($obj)
{
    global $array;
    switch ($array['me_sex']) {
        case "M":
Beispiel #11
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", "me_idno,article");
?>
<!DOCTYPE HTML>
<html>
<head>
<?php 
include_once __DIR_PATH__ . "include/head_script.php";
?>
</head>
<body style="background-color:#F5F5F5;">
<?php 
/*
회원 기본정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_member_list\n\t\tWHERE me_idno='{$me_idno}' AND me_drop_regdate IS NULL\n\t");
$mysql->fetchArray("me_nick,me_sex,me_id,me_level,me_point,me_regdate,me_login_regdate,me_login_ip");
$array = $mysql->array;
/*
검사
Beispiel #12
0
<?php

$tpl = new skinController();
$method = new methodController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$method->method_param("GET", "type,org,class,vtype,depth,parent");
/*
변수 처리
*/
if (!$vtype || $vtype != "p" && $vtype != "m") {
    $vtype = "p";
}
/*
검사
*/
if (!$type || $type == "modify" && !$org) {
    $lib->error_alert_location("호출 값이 올바르지 않습니다.", $site_config['ad_site_url'], "A");
}
if ($vtype == "m" && $depth == 3) {
    $lib->error_alert_location("모바일은 3차 메뉴를 지원하지 않습니다.", $site_config['ad_site_url'], "A");
}
/*
수정모드인 경우 기본 정보를 부름
*/
if ($type == "modify") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_admin_menuInfo\n\t\t\tWHERE idno='{$org}' AND drop_regdate IS NULL\n\t\t");
    $mysql->htmlspecialchars = 0;
    $mysql->nl2br = 0;
    $mysql->fetchArray("callName,forward,name,vtype,title_img,img,img2,module,page,class,link,linkDoc,lockMenu,useMenu,useMenu_side,depth,href");
    $array = $mysql->array;
Beispiel #13
0
<?php

include_once "include/pageJustice.inc.php";
$tpl = new skinController();
$header = new skinController();
$loop = new skinController();
$footer = new skinController();
$method = new methodController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$paging = new pagingClass();
$method->method_param("GET", "page");
/*
검사
*/
$lib->func_page_level(__URL_PATH__ . "{$viewDir}?article=login&redirect=" . urlencode("?article=") . $article, 9);
/*
페이징 설정
*/
$paging_query = "\n\t\tSELECT *\n\t\tFROM toony_member_point\n\t\tWHERE me_idno='{$member['me_idno']}'\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(15);
$sql = $paging->getPaggingQuery($paging_query);
$mysql->select($sql);
$array_total = $mysql->numRows();
/*
템플릿 로드
*/
Beispiel #14
0
<?php

$mysql = new mysqlConnection();
$lib = new libraryClass();
/*
모듈이 설치되어 있는지 검사
*/
if (!$mysql->is_table("toony_module_board_config")) {
    $lib->error_location(__URL_PATH__ . "admin/?m=board&p=install", "A");
}
Beispiel #15
0
function array_board_text_limit($text, $num)
{
    $lib = new libraryClass();
    return htmlspecialchars(stripslashes($lib->func_length_limit($text, 0, $num)));
}
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";
}
/*
Beispiel #17
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", "비밀번호와 비밀번호 확인이 일치하지 않습니다.");
Beispiel #18
0
 public function fileNameCheck()
 {
     return libraryClass::func_fileType_check($this->saveFile['name'], $this->filedotType);
 }
Beispiel #19
0
<?php

$tpl = new skinController();
$mysql = new mysqlConnection();
$lib = new libraryClass();
$method->method_param("GET", "vtype");
/*
변수 처리
*/
if (!$vtype || $vtype != "p" && $vtype != "m") {
    $vtype = "p";
}
/*
기본 정보 로드
*/
$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) {
Beispiel #20
0
<?php

$tpl = new skinController();
$mysql = new mysqlConnection();
$method = new methodController();
$lib = new libraryClass();
$method->method_param("GET", "act,type");
/*
변수 처리
*/
if (!$type) {
    $type = "new";
}
/*
수정 모드인 경우 기본 정보 로드
*/
if ($type == "modify") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_admin_popupconfig\n\t\t\tWHERE name='{$act}'\n\t\t");
    $mysql->fetchArray("name,img,memo,void_use,void_link,link,bleft,btop,target,pop_article,pop_article_txt,start_level,end_level");
    $array = $mysql->array;
} else {
    $array = NULL;
}
/*
검사
*/
if ($type == "modify" && $mysql->numRows() < 1) {
    $lib->error_alert_location("팝업이 존재하지 않습니다.", $site_config['ad_site_url'], "A");
}
if (!$type) {
    $lib->error_alert_location("호출 값이 없습니다.", $site_config['ad_site_url'], "A");
Beispiel #21
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 #22
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;
}
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");
/*
페이징 설정
*/
$paging_query = "\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\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();
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/maillingList.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 #24
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");
Beispiel #25
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 #26
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 #27
0
<?php

$tpl = new skinController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
/*
검사
*/
if ($member['me_admin'] != "Y") {
    $lib->error_alert_location("접근 권한이 없습니다.", $site_config[ad_site_url], "A");
}
/*
최고 운영자 기본 정보 로드
*/
$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_id,me_nick,me_sex,me_phone,me_telephone,me_password,me_point");
$array = $mysql->array;
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/adminInfo.html");
/*
템플릿 함수
*/
function sex_checked_value_func($obj)
{
    global $array;
    switch ($array['me_sex']) {
        case "M":
            if ($obj == "M") {
                return "checked";
Beispiel #28
0
function call_board_latest_thumbnail_func($viewType, $article, $board_id, $idno, $file1, $file2, $ment, $width, $height, $quard, $margin)
{
    if ($viewType == "p") {
        $viewDir = "";
    } else {
        $viewDir = "m/";
    }
    $lib = new libraryClass();
    //본문내 첫번째 이미지 태그를 추출
    preg_match("/<img[^>]*src=[\"']?([^>\"']+)[\"']?[^>]*>/i", $ment, $match);
    if (strtolower(array_pop(explode(".", $file1))) == 'gif' || strtolower(array_pop(explode(".", $file1))) == 'jpg' || strtolower(array_pop(explode(".", $file1))) == 'bmp' || strtolower(array_pop(explode(".", $file1))) == 'png') {
        $thumb = $lib->func_img_resize("modules/board/upload/" . $board_id . "/", $file1, $width, $height, $margin, $quard);
    } else {
        if (strtolower(array_pop(explode(".", $file2))) == 'gif' || strtolower(array_pop(explode(".", $file2))) == 'jpg' || strtolower(array_pop(explode(".", $file2))) == 'bmp' || strtolower(array_pop(explode(".", $file2))) == 'png') {
            $thumb = $lib->func_img_resize("modules/board/upload/" . $board_id . "/", $file2, $width, $height, $margin, $quard);
        } else {
            if (isset($match[0])) {
                $thumb = "<img src=\"{$match[1]}\" width=\"" . $width . "\" height=\"" . $height . "\" />";
            } else {
                $thumb = $lib->func_img_resize("images/", "blank_thumbnail.jpg", $width, $height, $margin, $quard);
            }
        }
    }
    return $thumb;
}
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

$skin_delete_form = new skinController();
$lib = new libraryClass();
$mysql = new mysqlConnection();
$method = new methodController();
$fileUploader = new fileUploader();
$lib->security_filter("referer");
$lib->security_filter("request_get");
$method->method_param("POST", "category,writer,comment,comment_modify,cidno,type,mode,board_id,read,page,where,keyword,value,article,s_password");
/*
게시물 설정 정보 로드
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_module_board_config\n\t\tWHERE board_id='{$board_id}'\n\t");
$mysql->fetchArray("skin,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,top_file,bottom_file,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");
$c_array = $mysql->array;
/*
검사
*/
if (!$board_id) {
    $lib->error_alert_back("게시판이 지정되지 않았습니다.", "A");
}
if ($mysql->numRows() < 1) {
    $lib->error_alert_back("존재하지 않는 게시판입니다.", "A");
}
/*
상단 파일&소스코드 출력