<?php if (!defined("_GNUBOARD_")) { exit; } // 개별 페이지 접근 불가 include_once G5_EDITOR_LIB; include_once G5_LIB_PATH . '/iteminfo.lib.php'; include_once G5_LIB_PATH . '/apms.partner.lib.php'; $upload_max_filesize = number_format($default['pt_upload_size']) . ' 바이트'; $flist = array(); $flist = apms_form($is_auth, $is_partner); if ($w == "") { $html_title = " 등록"; // 옵션은 쿠키에 저장된 값을 보여줌. 다음 입력을 위한것임 //$it[ca_id] = _COOKIE[ck_ca_id]; $it['ca_id'] = get_cookie("ck_ca_id"); $it['ca_id2'] = get_cookie("ck_ca_id2"); $it['ca_id3'] = get_cookie("ck_ca_id3"); if (!$it['ca_id']) { $pt_where = $is_auth ? "" : "where pt_use = '1'"; $sql = " select ca_id from {$g5['g5_shop_category_table']} {$pt_where} order by ca_order, ca_id limit 1 "; $row = sql_fetch($sql); if (!$row['ca_id']) { alert("등록된 분류가 없습니다. 관리자에게 문의해 주십시오.", "./myshop.php"); } $it['ca_id'] = $row['ca_id']; } $it['it_maker'] = stripslashes(get_cookie("ck_maker")); $it['it_origin'] = stripslashes(get_cookie("ck_origin")); } else {
<?php $sub_menu = '400200'; include_once './_common.php'; include_once G5_EDITOR_LIB; auth_check($auth[$sub_menu], "w"); // APMS - 2014.07.21 include_once G5_ADMIN_PATH . '/apms_admin/apms.admin.lib.php'; $flist = array(); $flist = apms_form(1, 0); if (empty($flist)) { alert("이용가능한 등록폼이 없습니다.\\n\\n등록폼 관리에서 사용체크가 되어 있는지 확인해 주십시요.", G5_ADMIN_URL . '/apms_admin/apms.form.list.php'); } $sql_common = " from {$g5['g5_shop_category_table']} "; if ($is_admin != 'super') { $sql_common .= " where ca_mb_id = '{$member['mb_id']}' "; } if ($w == "") { if ($is_admin != 'super' && !$ca_id) { alert("최고관리자만 1단계 분류를 추가할 수 있습니다."); } $len = strlen($ca_id); if ($len == 10) { alert("분류를 더 이상 추가할 수 없습니다.\\n\\n5단계 분류까지만 가능합니다."); } $len2 = $len + 1; $sql = " select MAX(SUBSTRING(ca_id,{$len2},2)) as max_subid from {$g5['g5_shop_category_table']}\n where SUBSTRING(ca_id,1,{$len}) = '{$ca_id}' "; $row = sql_fetch($sql); $subid = base_convert($row['max_subid'], 36, 10); $subid += 36; if ($subid >= 36 * 36) {