Exemplo n.º 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();
}
Exemplo n.º 2
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";
Exemplo n.º 3
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();
Exemplo n.º 4
0
*/
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");
}
/*
템플릿 로드
*/
$tpl->skin_file_path("modules/board/admin/_tpl/install.html");
/*
특정 디텍토리 퍼미션 검사
*/
function permission_check($file)
{
    $open = @is_writable($file);
    if (!$open) {
        return "N";
    } else {
        return "Y";
Exemplo n.º 5
0
    $ex_slt = 0;
} else {
    $ex_slt = 1;
}
$use_list_ex = explode("|", $c_array['use_list']);
$c_array['use_list'] = $use_list_ex[$ex_slt];
$articleIMG_width_ex = explode("|", $c_array['articleIMG_width']);
$c_array['articleIMG_width'] = $articleIMG_width_ex[$ex_slt];
$articleIMG_height_ex = explode("|", $c_array['articleIMG_height']);
$c_array['articleIMG_height'] = $articleIMG_height_ex[$ex_slt];
/*
게시물 정보 로드
*/
$mysql->select("\n\t\tSELECT\n\t\t(\n\t\t\tSELECT COUNT(*)\n\t\t\tFROM toony_module_board_like\n\t\t\tWHERE board_id='{$board_id}' AND read_idno='{$read}' AND likes>0\n\t\t) likes_count,\n\t\t(\n\t\t\tSELECT COUNT(*)\n\t\t\tFROM toony_module_board_like\n\t\t\tWHERE board_id='{$board_id}' AND read_idno='{$read}' AND unlikes>0\n\t\t) unlikes_count,\n\t\tA.*\n\t\tFROM toony_module_board_data_{$board_id} A\n\t\tWHERE A.idno='{$read}'\n\t");
if ($mysql->numRows() < 1) {
    $lib->error_alert_location("해당 게시물이 존재하지 않습니다.", __URL_PATH__ . $viewDir, "A");
}
$mysql->htmlspecialchars = 1;
$mysql->nl2br = 1;
$mysql->fetchArray("rn,ln,category,regdate,subject,writer,me_idno,cmtnum,view,vote,password,use_secret,use_notice,use_html,me_idno,file1,file1_cnt,file2,file2_cnt,likes_count,unlikes_count,td_1,td_2,td_3,td_4,td_5");
$array = $mysql->array;
$mysql->htmlspecialchars = 0;
$mysql->nl2br = 0;
$mysql->fetchArray("ment");
$array = $mysql->array;
/*
게시물이 답글이고, 회원에 대한 답글인 경우 부모글의 정보를 로드
*/
if ($array['rn'] > 0 && $array['password'] == "") {
    $mysql->select("\n\t\t\tSELECT *\n\t\t\tFROM toony_module_board_data_{$board_id}\n\t\t\tWHERE ln>{$array['ln']} AND rn={$array['rn']}-1\n\t\t\tORDER BY ln ASC\n\t\t\tLIMIT 1\n\t\t");
    $mysql->fetchArray("me_idno");
Exemplo n.º 6
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();
Exemplo n.º 7
0
*/
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 변환
*/
$mysql->select("\n\t\tSELECT href,forward\n\t\tFROM toony_admin_menuInfo\n\t\tWHERE callName='{$article}' AND vtype='p' AND drop_regdate IS NULL\n\t");
if ($mysql->fetch("href") == "fm") {
    $article = $mysql->fetch("forward");
}
/*
article로 DB를 색인하여 페이지 링크,링크문서 정보를 로드함
*/
$mysql->select("\n\t\tSELECT *\n\t\tFROM toony_admin_menuInfo\n\t\tWHERE callName='{$article}' AND drop_regdate IS NULL AND vtype='p'\n\t");
Exemplo n.º 8
0
<?php

$mysql = new mysqlConnection();
$lib = new libraryClass();
/*
모듈이 설치되어 있는지 검사
*/
if (!$mysql->is_table("toony_module_board_config") && $viewType) {
    $lib->error_alert_location("게시판 모듈 추가 설치가 필요합니다.", __URL_PATH__ . "admin/?m=board&p=install", "A");
}
/*
최근게시물 출력 관련 함수
*/
//댓글 갯수
function latest_comment_func($comment)
{
    if ($comment > 0) {
        return number_format($comment);
    } else {
        return "";
    }
}
//NEW 아이콘 출력
function latest_new_ico($ico_new_def, $regdate)
{
    $now_date = date("Y-m-d H:i:s");
    $sign_date = date("Y-m-d H:i:s", strtotime($regdate));
    if ((strtotime($now_date) - strtotime($sign_date)) / 60 < $ico_new_def) {
        return "<img src=\"" . __URL_PATH__ . "modules/board/images/array_list_new.gif\" title=\"NEW\" alt=\"NEW\" style=\"padding-left:5px;\" />";
    }
}
Exemplo n.º 9
0
    $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");
}
/*
템플릿 로드
*/
$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 {
Exemplo n.º 10
0
}
$length_limit_ex = explode("|", $c_array['length_limit']);
$c_array['length_limit'] = $length_limit_ex[$ex_slt];
$list_limit_ex = explode("|", $c_array['list_limit']);
$c_array['list_limit'] = $list_limit_ex[$ex_slt];
$article_length_ex = explode("|", $c_array['article_length']);
$c_array['article_length'] = $article_length_ex[$ex_slt];
$thumb_width_ex = explode("|", $c_array['thumb_width']);
$c_array['thumb_width'] = $thumb_width_ex[$ex_slt];
$thumb_height_ex = explode("|", $c_array['thumb_height']);
$c_array['thumb_height'] = $thumb_height_ex[$ex_slt];
/*
검사
*/
if (!$board_id) {
    $lib->error_alert_location("게시판이 지정되지 않았습니다.", __URL_PATH__ . $viewDir, "A");
}
if ($mysql->numRows() < 1) {
    $lib->error_alert_location("존재하지 않는 게시판 입니다.", __URL_PATH__ . $viewDir, "A");
}
$lib->func_page_level(__URL_PATH__ . $viewDir . "?article=login&redirect=" . urlencode("?article={$article}&board_id={$board_id}&where={$where}&keyword={$keyword}"), $c_array['array_level']);
/*
상단 파일&소스코드 출력
*/
if (!isset($read_true)) {
    $top_file_ex = explode("{||||||||||}", $c_array['top_file']);
    $top_source_ex = explode("{||||||||||}", $c_array['top_source']);
    if ($viewType == "p") {
        $ex_slt = 0;
    } else {
        $ex_slt = 1;
Exemplo n.º 11
0
}
/*
수정 모드인 경우 기본 정보 로드
*/
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");
}
/*
템플릿 로드
*/
$tpl->skin_file_path("admin/_tpl/popupList_modify.html");
/*
템플릿 함수
*/
function target_radio_checked($obj)
{
    global $array, $type;
    if ($type == "new" && $obj == "_self") {
Exemplo n.º 12
0
$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;
    if ($mysql->numRows() < 1) {
        $lib->error_alert_location("메뉴가 존재하지 않습니다.", $site_config['ad_site_url'], "A");
Exemplo n.º 13
0
    } else {
        if ($array['me_idno'] == $member['me_idno'] && $member['me_level'] <= $c_array['delete_level']) {
            $delete_true = 1;
        } else {
            $delete_true = 0;
        }
    }
}
/*
패스워드가 submit 된 경우
*/
if ($value == 2) {
    if ($s_password == $array['password']) {
        $delete_true = 1;
    } else {
        $lib->error_alert_location("비밀번호가 일치하지 않습니다.", __URL_PATH__ . $viewDir . "?article={$article}", "A");
    }
}
/*
비밀번호 입력폼 스킨 템플릿 로드
*/
$skin_delete_form->skin_file_path("modules/board/skin/{$c_array['skin']}/{$viewDir}delete.html");
/*
스킨 CSS로드
*/
echo "\n<link href=\"" . __URL_PATH__ . "modules/board/skin/{$c_array['skin']}/{$viewDir}style.css\" rel=\"stylesheet\" type=\"text/css\" />";
/*
템플릿 치환
*/
if ($delete_true == 0) {
    $lib->error_alert_back("삭제 권한이 없습니다.", "A");