Example #1
0
                        }
                    }
                }
            }
        }
    }
}
$skin_file = $skin_path . '/setup.skin.php';
if (!file_exists($skin_file)) {
    alert_close('설정을 할 수 없는 스킨입니다.');
}
if ($mode == "save") {
    if ($is_admin != 'super') {
        alert("최고관리자만 가능합니다.");
    }
    $wset = apms_pack($_POST['wset']);
    if ($skin_pc == $skin_mobile) {
        //스킨이 같으면 동일값 적용
        if ($skin == 'list') {
            sql_query(" update {$g5['g5_shop_category_table']} set as_list_set = '{$wset}', as_mobile_list_set = '{$wset}' where ca_id = '{$ca_id}' ", false);
        } else {
            if ($skin == 'item') {
                sql_query(" update {$g5['g5_shop_category_table']} set as_item_set = '{$wset}', as_mobile_item_set = '{$wset}' where ca_id = '{$ca_id}' ", false);
            } else {
                if ($skin == 'ev') {
                    sql_query(" update {$g5['g5_shop_event_table']} set ev_set = '{$wset}', ev_mobile_set = '{$wset}' where ev_id = '{$ev_id}' ", false);
                } else {
                    sql_query(" update {$g5['apms_rows']} set {$skin}_set = '{$wset}', {$skin}_mobile_set = '{$wset}' ", false);
                }
            }
        }
Example #2
0
    auth_check($auth[$sub_menu], 'w');
}
include_once G5_ADMIN_PATH . '/apms_admin/apms.admin.lib.php';
include_once G5_LIB_PATH . '/apms.widget.lib.php';
if (!$bo_table) {
    alert_close('값이 넘어오지 않았습니다.');
}
$skin_file = $board_skin_path . '/setup.skin.php';
if (!file_exists($skin_file)) {
    alert_close('설정을 할 수 없는 보드입니다.');
}
if ($mode == "save") {
    if ($is_demo && $is_admin != 'super') {
        alert("최고관리자만 가능합니다.");
    }
    $boset = apms_pack($_POST['boset']);
    if ($board['bo_skin'] == $board['bo_mobile_skin']) {
        //스킨이 같으면 동일값 적용
        sql_query(" update {$g5['board_table']} set as_set = '{$boset}', as_mobile_set = '{$boset}' where bo_table = '{$bo_table}' ", false);
    } else {
        if (G5_IS_MOBILE) {
            sql_query(" update {$g5['board_table']} set as_mobile_set = '{$boset}' where bo_table = '{$bo_table}' ", false);
        } else {
            sql_query(" update {$g5['board_table']} set as_set = '{$boset}' where bo_table = '{$bo_table}' ", false);
        }
    }
    @(include_once $board_skin_path . '/setupsave.skin.php');
    // 스킨별 저장
    if ($_POST['boset']['list_skin']) {
        $list_skin_path = $board_skin_path . '/list/' . $_POST['boset']['list_skin'];
        @(include_once $list_skin_path . '/setupsave.skin.php');
Example #3
0
<?php

include_once './_common.php';
if ($is_admin != 'super') {
    alert("최고관리자만 접근이 가능합니다.");
}
$type = $_POST['sw_type'];
$code = $_POST['sw_code'];
$thema = $_POST['sw_thema'];
$colorset = $_POST['colorset'];
if ($type && $thema) {
    $str = apms_pack($_POST['at_set']);
    // 등록여부 체크
    $data = sql_fetch(" select * from {$g5['apms_data']} where type = '{$type}' and data_q = '{$code}' ");
    if ($data['id']) {
        sql_query(" update {$g5['apms_data']} set data_set = '{$str}', data_1 = '{$thema}' where type = '{$type}' and data_q = '{$code}' ");
    } else {
        sql_query(" insert {$g5['apms_data']} set type = '{$type}', data_q = '{$code}', data_1 = '{$thema}', data_set = '{$str}' ");
    }
    // 컬러셋
    if ($colorset) {
        if ($type == "11") {
            //커뮤니티 기본 PC 컬러셋
            sql_query(" update {$g5['config_table']} set as_color = '{$colorset}' ");
        } else {
            if ($type == "12") {
                //커뮤니티 그룹 PC 컬러셋
                sql_query(" update {$g5['group_table']} set as_color = '{$colorset}' where gr_id = '{$code}' ");
            } else {
                if ($type == "13") {
                    //커뮤니티 기본 모바일 컬러셋
Example #4
0
if (!$is_demo && $is_admin != 'super') {
    alert_close("최고관리자만 가능합니다.");
}
if (!$wid) {
    alert("설정값 아이디가 없습니다.");
}
// 타입설정
$type = $add ? 101 : 100;
if ($mode == "save") {
    if ($is_admin != 'super') {
        alert("최고관리자만 가능합니다.");
    }
    $wconfig = apms_pack($_POST['wset']);
    $sql_wm = "";
    if ($_POST['wmset']) {
        $wmconfig = apms_pack($_POST['wmset']);
        $sql_wm = ", data_1 = '{$wmconfig}'";
    }
    // 기존값 삭제
    sql_query(" delete from {$g5['apms_data']} where type = '{$type}' and data_q = '{$wid}' ");
    // 신규등록
    sql_query(" insert {$g5['apms_data']} set type = '{$type}', data_q = '{$wid}', data_set = '{$wconfig}' {$sql_wm} ");
    // 캐시 갱신
    if ($add) {
        // 애드온
        $c_name1 = 'aid_' . $wid;
        //캐시아이디 - PC
        $c_name2 = 'aid_' . $wid . '_m';
        //캐시아이디 - MOBILE
    } else {
        $c_name1 = 'wid_' . $wid;