Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f83d336e0b |
No files matched your search
+1
-8
@@ -6,15 +6,8 @@ sirgle/
|
|||||||
test.php
|
test.php
|
||||||
*.key
|
*.key
|
||||||
*.sh
|
*.sh
|
||||||
log
|
|
||||||
g5_tree
|
|
||||||
cheditor5.*/
|
cheditor5.*/
|
||||||
!ckeditor*/
|
ckeditor*/
|
||||||
log/
|
log/
|
||||||
g5_tree/
|
g5_tree/
|
||||||
.vscode/
|
|
||||||
naver*.html
|
naver*.html
|
||||||
initests01/
|
|
||||||
SIRsoft000/
|
|
||||||
config.php
|
|
||||||
pma/
|
|
||||||
@@ -1,10 +1,2 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./common.php');
|
include_once('./common.php');
|
||||||
|
|
||||||
// 커뮤니티 사용여부
|
|
||||||
if(defined('G5_COMMUNITY_USE') && G5_COMMUNITY_USE === false) {
|
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
|
||||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
|
||||||
|
|
||||||
define('_SHOP_', true);
|
|
||||||
}
|
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
define('G5_IS_ADMIN', true);
|
define('G5_IS_ADMIN', true);
|
||||||
require_once '../common.php';
|
include_once ('../common.php');
|
||||||
require_once G5_ADMIN_PATH . '/admin.lib.php';
|
include_once(G5_ADMIN_PATH.'/admin.lib.php');
|
||||||
|
|
||||||
if( isset($token) ){
|
if( isset($token) ){
|
||||||
$token = @htmlspecialchars(strip_tags($token), ENT_QUOTES);
|
$token = @htmlspecialchars(strip_tags($token), ENT_QUOTES);
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$is_use_apache = (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false);
|
$is_use_apache = (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false);
|
||||||
|
|
||||||
|
|||||||
+14
-24
@@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
||||||
|
|
||||||
@@ -12,16 +10,14 @@ if (is_array($files)) {
|
|||||||
$fileinfo = pathinfo($css_file);
|
$fileinfo = pathinfo($css_file);
|
||||||
$ext = $fileinfo['extension'];
|
$ext = $fileinfo['extension'];
|
||||||
|
|
||||||
if ($ext !== 'css') {
|
if( $ext !== 'css' ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$css_file = str_replace(G5_ADMIN_PATH, G5_ADMIN_URL, $css_file);
|
$css_file = str_replace(G5_ADMIN_PATH, G5_ADMIN_URL, $css_file);
|
||||||
add_stylesheet('<link rel="stylesheet" href="'.$css_file.'">', $k);
|
add_stylesheet('<link rel="stylesheet" href="'.$css_file.'">', $k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once G5_PATH . '/head.sub.php';
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
function print_menu1($key, $no='')
|
function print_menu1($key, $no='')
|
||||||
{
|
{
|
||||||
@@ -37,25 +33,21 @@ function print_menu2($key, $no = '')
|
|||||||
global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu;
|
global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu;
|
||||||
|
|
||||||
$str = "<ul>";
|
$str = "<ul>";
|
||||||
for ($i = 1; $i < count($menu[$key]); $i++) {
|
for($i=1; $i<count($menu[$key]); $i++)
|
||||||
|
{
|
||||||
if( ! isset($menu[$key][$i]) ){
|
if( ! isset($menu[$key][$i]) ){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0], $auth) || !strstr($auth[$menu[$key][$i][0]], 'r'))) {
|
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
$gnb_grp_div = $gnb_grp_style = '';
|
$gnb_grp_div = $gnb_grp_style = '';
|
||||||
|
|
||||||
if (isset($menu[$key][$i][4])){
|
if (isset($menu[$key][$i][4])){
|
||||||
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) {
|
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) $gnb_grp_div = 'gnb_grp_div';
|
||||||
$gnb_grp_div = 'gnb_grp_div';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($menu[$key][$i][4] == 1) {
|
if ($menu[$key][$i][4] == 1) $gnb_grp_style = 'gnb_grp_style';
|
||||||
$gnb_grp_style = 'gnb_grp_style';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$current_class = '';
|
$current_class = '';
|
||||||
@@ -87,11 +79,11 @@ if (!empty($_COOKIE['g5_admin_btn_gnb'])) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var g5_admin_csrf_token_key = "<?php echo (function_exists('admin_csrf_token_key')) ? admin_csrf_token_key() : ''; ?>";
|
|
||||||
var tempX = 0;
|
var tempX = 0;
|
||||||
var tempY = 0;
|
var tempY = 0;
|
||||||
|
|
||||||
function imageview(id, w, h) {
|
function imageview(id, w, h)
|
||||||
|
{
|
||||||
|
|
||||||
menu(id);
|
menu(id);
|
||||||
|
|
||||||
@@ -119,9 +111,6 @@ if (!empty($_COOKIE['g5_admin_btn_gnb'])) {
|
|||||||
|
|
||||||
<div id="tnb">
|
<div id="tnb">
|
||||||
<ul>
|
<ul>
|
||||||
<?php if (defined('G5_USE_SHOP') && G5_USE_SHOP) { ?>
|
|
||||||
<li class="tnb_li"><a href="<?php echo G5_SHOP_URL ?>/" class="tnb_shop" target="_blank" title="쇼핑몰 바로가기">쇼핑몰 바로가기</a></li>
|
|
||||||
<?php } ?>
|
|
||||||
<li class="tnb_li"><a href="<?php echo G5_URL ?>/" class="tnb_community" target="_blank" title="커뮤니티 바로가기">커뮤니티 바로가기</a></li>
|
<li class="tnb_li"><a href="<?php echo G5_URL ?>/" class="tnb_community" target="_blank" title="커뮤니티 바로가기">커뮤니티 바로가기</a></li>
|
||||||
<li class="tnb_li"><a href="<?php echo G5_ADMIN_URL ?>/service.php" class="tnb_service">부가서비스</a></li>
|
<li class="tnb_li"><a href="<?php echo G5_ADMIN_URL ?>/service.php" class="tnb_service">부가서비스</a></li>
|
||||||
<li class="tnb_li"><button type="button" class="tnb_mb_btn">관리자<span class="./img/btn_gnb.png">메뉴열기</span></button>
|
<li class="tnb_li"><button type="button" class="tnb_mb_btn">관리자<span class="./img/btn_gnb.png">메뉴열기</span></button>
|
||||||
@@ -149,9 +138,8 @@ if (!empty($_COOKIE['g5_admin_btn_gnb'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$current_class = "";
|
$current_class = "";
|
||||||
if (isset($sub_menu) && (substr($sub_menu, 0, 3) == substr($menu['menu' . $key][0][0], 0, 3))) {
|
if (isset($sub_menu) && (substr($sub_menu, 0, 3) == substr($menu['menu'.$key][0][0], 0, 3)))
|
||||||
$current_class = " on";
|
$current_class = " on";
|
||||||
}
|
|
||||||
|
|
||||||
$button_title = $menu['menu'.$key][0][1];
|
$button_title = $menu['menu'.$key][0][1];
|
||||||
?>
|
?>
|
||||||
@@ -191,7 +179,9 @@ if (!empty($_COOKIE['g5_admin_btn_gnb'])) {
|
|||||||
} else {
|
} else {
|
||||||
delete_cookie(menu_cookie_key);
|
delete_cookie(menu_cookie_key);
|
||||||
}
|
}
|
||||||
} catch (err) {}
|
}
|
||||||
|
catch(err) {
|
||||||
|
}
|
||||||
|
|
||||||
$("#container").toggleClass("container-small");
|
$("#container").toggleClass("container-small");
|
||||||
$("#gnb").toggleClass("gnb_small");
|
$("#gnb").toggleClass("gnb_small");
|
||||||
|
|||||||
+1
-3
@@ -83,13 +83,11 @@ function delete_confirm2(msg)
|
|||||||
|
|
||||||
function get_ajax_token()
|
function get_ajax_token()
|
||||||
{
|
{
|
||||||
var token = "",
|
var token = "";
|
||||||
admin_csrf_token_key = (typeof g5_admin_csrf_token_key !== "undefined") ? g5_admin_csrf_token_key : "";
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: g5_admin_url+"/ajax.token.php",
|
url: g5_admin_url+"/ajax.token.php",
|
||||||
data : {admin_csrf_token_key:admin_csrf_token_key},
|
|
||||||
cache: false,
|
cache: false,
|
||||||
async: false,
|
async: false,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|||||||
+76
-161
@@ -1,7 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// 081022 : CSRF 방지를 위해 코드를 작성했으나 효과가 없어 주석처리 함
|
// 081022 : CSRF 방지를 위해 코드를 작성했으나 효과가 없어 주석처리 함
|
||||||
@@ -31,14 +29,11 @@ function get_skin_select($skin_gubun, $id, $name, $selected = '', $event = '')
|
|||||||
|
|
||||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||||
for ($i=0; $i<count($skins); $i++) {
|
for ($i=0; $i<count($skins); $i++) {
|
||||||
if ($i == 0) {
|
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||||
$str .= "<option value=\"\">선택</option>";
|
if(preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||||
}
|
|
||||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
|
|
||||||
$text = '(테마) '.$match[1];
|
$text = '(테마) '.$match[1];
|
||||||
} else {
|
else
|
||||||
$text = $skins[$i];
|
$text = $skins[$i];
|
||||||
}
|
|
||||||
|
|
||||||
$str .= option_selected($skins[$i], $selected, $text);
|
$str .= option_selected($skins[$i], $selected, $text);
|
||||||
}
|
}
|
||||||
@@ -66,14 +61,11 @@ function get_mobile_skin_select($skin_gubun, $id, $name, $selected = '', $event
|
|||||||
|
|
||||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||||
for ($i=0; $i<count($skins); $i++) {
|
for ($i=0; $i<count($skins); $i++) {
|
||||||
if ($i == 0) {
|
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||||
$str .= "<option value=\"\">선택</option>";
|
if(preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||||
}
|
|
||||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
|
|
||||||
$text = '(테마) '.$match[1];
|
$text = '(테마) '.$match[1];
|
||||||
} else {
|
else
|
||||||
$text = $skins[$i];
|
$text = $skins[$i];
|
||||||
}
|
|
||||||
|
|
||||||
$str .= option_selected($skins[$i], $selected, $text);
|
$str .= option_selected($skins[$i], $selected, $text);
|
||||||
}
|
}
|
||||||
@@ -90,19 +82,14 @@ function get_skin_dir($skin, $skin_path = G5_SKIN_PATH)
|
|||||||
$result_array = array();
|
$result_array = array();
|
||||||
|
|
||||||
$dirname = $skin_path.'/'.$skin.'/';
|
$dirname = $skin_path.'/'.$skin.'/';
|
||||||
if (!is_dir($dirname)) {
|
if(!is_dir($dirname))
|
||||||
return array();
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
$handle = opendir($dirname);
|
$handle = opendir($dirname);
|
||||||
while ($file = readdir($handle)) {
|
while ($file = readdir($handle)) {
|
||||||
if ($file == '.' || $file == '..') {
|
if($file == '.'||$file == '..') continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_dir($dirname . $file)) {
|
if (is_dir($dirname.$file)) $result_array[] = $file;
|
||||||
$result_array[] = $file;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
sort($result_array);
|
sort($result_array);
|
||||||
@@ -119,17 +106,14 @@ function get_theme_dir()
|
|||||||
$dirname = G5_PATH.'/'.G5_THEME_DIR.'/';
|
$dirname = G5_PATH.'/'.G5_THEME_DIR.'/';
|
||||||
$handle = opendir($dirname);
|
$handle = opendir($dirname);
|
||||||
while ($file = readdir($handle)) {
|
while ($file = readdir($handle)) {
|
||||||
if ($file == '.' || $file == '..') {
|
if($file == '.'||$file == '..') continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_dir($dirname.$file)) {
|
if (is_dir($dirname.$file)) {
|
||||||
$theme_path = $dirname.$file;
|
$theme_path = $dirname.$file;
|
||||||
if (is_file($theme_path . '/index.php') && is_file($theme_path . '/head.php') && is_file($theme_path . '/tail.php')) {
|
if(is_file($theme_path.'/index.php') && is_file($theme_path.'/head.php') && is_file($theme_path.'/tail.php'))
|
||||||
$result_array[] = $file;
|
$result_array[] = $file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
natsort($result_array);
|
natsort($result_array);
|
||||||
|
|
||||||
@@ -145,14 +129,12 @@ function get_theme_info($dir)
|
|||||||
|
|
||||||
if(is_dir($path)) {
|
if(is_dir($path)) {
|
||||||
$screenshot = $path.'/screenshot.png';
|
$screenshot = $path.'/screenshot.png';
|
||||||
$screenshot_url = '';
|
|
||||||
if(is_file($screenshot)) {
|
if(is_file($screenshot)) {
|
||||||
$size = @getimagesize($screenshot);
|
$size = @getimagesize($screenshot);
|
||||||
|
|
||||||
if ($size[2] == 3) {
|
if($size[2] == 3)
|
||||||
$screenshot_url = str_replace(G5_PATH, G5_URL, $screenshot);
|
$screenshot_url = str_replace(G5_PATH, G5_URL, $screenshot);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$info['screenshot'] = $screenshot_url;
|
$info['screenshot'] = $screenshot_url;
|
||||||
|
|
||||||
@@ -180,10 +162,9 @@ function get_theme_info($dir)
|
|||||||
$info['license_uri'] = trim($m7[1]);
|
$info['license_uri'] = trim($m7[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$info['theme_name']) {
|
if(!$info['theme_name'])
|
||||||
$info['theme_name'] = $dir;
|
$info['theme_name'] = $dir;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return $info;
|
return $info;
|
||||||
}
|
}
|
||||||
@@ -196,8 +177,8 @@ function get_theme_config_value($dir, $key = '*')
|
|||||||
|
|
||||||
$theme_config_file = G5_PATH.'/'.G5_THEME_DIR.'/'.$dir.'/theme.config.php';
|
$theme_config_file = G5_PATH.'/'.G5_THEME_DIR.'/'.$dir.'/theme.config.php';
|
||||||
if(is_file($theme_config_file)) {
|
if(is_file($theme_config_file)) {
|
||||||
include $theme_config_file;
|
include($theme_config_file);
|
||||||
// 22.05.26 Undefined Variable $theme_config;
|
|
||||||
if($key == '*') {
|
if($key == '*') {
|
||||||
$tconfig = $theme_config;
|
$tconfig = $theme_config;
|
||||||
} else {
|
} else {
|
||||||
@@ -218,15 +199,12 @@ function get_member_level_select($name, $start_id = 0, $end_id = 10, $selected =
|
|||||||
global $g5;
|
global $g5;
|
||||||
|
|
||||||
$str = "\n<select id=\"{$name}\" name=\"{$name}\"";
|
$str = "\n<select id=\"{$name}\" name=\"{$name}\"";
|
||||||
if ($event) {
|
if ($event) $str .= " $event";
|
||||||
$str .= " $event";
|
|
||||||
}
|
|
||||||
$str .= ">\n";
|
$str .= ">\n";
|
||||||
for ($i=$start_id; $i<=$end_id; $i++) {
|
for ($i=$start_id; $i<=$end_id; $i++) {
|
||||||
$str .= '<option value="'.$i.'"';
|
$str .= '<option value="'.$i.'"';
|
||||||
if ($i == $selected) {
|
if ($i == $selected)
|
||||||
$str .= ' selected="selected"';
|
$str .= ' selected="selected"';
|
||||||
}
|
|
||||||
$str .= ">{$i}</option>\n";
|
$str .= ">{$i}</option>\n";
|
||||||
}
|
}
|
||||||
$str .= "</select>\n";
|
$str .= "</select>\n";
|
||||||
@@ -242,11 +220,10 @@ function get_member_id_select($name, $level, $selected = "", $event = "")
|
|||||||
$sql = " select mb_id from {$g5['member_table']} where mb_level >= '{$level}' ";
|
$sql = " select mb_id from {$g5['member_table']} where mb_level >= '{$level}' ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
$str = '<select id="'.$name.'" name="'.$name.'" '.$event.'><option value="">선택안함</option>';
|
$str = '<select id="'.$name.'" name="'.$name.'" '.$event.'><option value="">선택안함</option>';
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$str .= '<option value="'.$row['mb_id'].'"';
|
$str .= '<option value="'.$row['mb_id'].'"';
|
||||||
if ($row['mb_id'] == $selected) {
|
if ($row['mb_id'] == $selected) $str .= ' selected';
|
||||||
$str .= ' selected';
|
|
||||||
}
|
|
||||||
$str .= '>'.$row['mb_id'].'</option>';
|
$str .= '>'.$row['mb_id'].'</option>';
|
||||||
}
|
}
|
||||||
$str .= '</select>';
|
$str .= '</select>';
|
||||||
@@ -254,11 +231,11 @@ function get_member_id_select($name, $level, $selected = "", $event = "")
|
|||||||
}
|
}
|
||||||
|
|
||||||
// php8 버전 호환 권한 검사 함수
|
// php8 버전 호환 권한 검사 함수
|
||||||
function auth_check_menu($auth, $sub_menu, $attr, $return = false)
|
function auth_check_menu($auth, $sub_menu, $attr, $return=false) {
|
||||||
{
|
|
||||||
|
|
||||||
$check_auth = isset($auth[$sub_menu]) ? $auth[$sub_menu] : '';
|
$check_auth = isset($auth[$sub_menu]) ? $auth[$sub_menu] : '';
|
||||||
return auth_check($check_auth, $attr, $return);
|
return auth_check($check_auth, $attr, $return);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 권한 검사
|
// 권한 검사
|
||||||
@@ -266,53 +243,46 @@ function auth_check($auth, $attr, $return = false)
|
|||||||
{
|
{
|
||||||
global $is_admin;
|
global $is_admin;
|
||||||
|
|
||||||
if ($is_admin == 'super') {
|
if ($is_admin == 'super') return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!trim($auth)) {
|
if (!trim($auth)) {
|
||||||
$msg = '이 메뉴에는 접근 권한이 없습니다.\\n\\n접근 권한은 최고관리자만 부여할 수 있습니다.';
|
$msg = '이 메뉴에는 접근 권한이 없습니다.\\n\\n접근 권한은 최고관리자만 부여할 수 있습니다.';
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$attr = strtolower($attr);
|
$attr = strtolower($attr);
|
||||||
|
|
||||||
if (!strstr($auth, $attr)) {
|
if (!strstr($auth, $attr)) {
|
||||||
if ($attr == 'r') {
|
if ($attr == 'r') {
|
||||||
$msg = '읽을 권한이 없습니다.';
|
$msg = '읽을 권한이 없습니다.';
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
|
||||||
} else if ($attr == 'w') {
|
} else if ($attr == 'w') {
|
||||||
$msg = '입력, 추가, 생성, 수정 권한이 없습니다.';
|
$msg = '입력, 추가, 생성, 수정 권한이 없습니다.';
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
|
||||||
} else if ($attr == 'd') {
|
} else if ($attr == 'd') {
|
||||||
$msg = '삭제 권한이 없습니다.';
|
$msg = '삭제 권한이 없습니다.';
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$msg = '속성이 잘못 되었습니다.';
|
$msg = '속성이 잘못 되었습니다.';
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 작업아이콘 출력
|
// 작업아이콘 출력
|
||||||
@@ -322,11 +292,10 @@ function icon($act, $link = '', $target = '_parent')
|
|||||||
|
|
||||||
$img = array('입력'=>'insert', '추가'=>'insert', '생성'=>'insert', '수정'=>'modify', '삭제'=>'delete', '이동'=>'move', '그룹'=>'move', '보기'=>'view', '미리보기'=>'view', '복사'=>'copy');
|
$img = array('입력'=>'insert', '추가'=>'insert', '생성'=>'insert', '수정'=>'modify', '삭제'=>'delete', '이동'=>'move', '그룹'=>'move', '보기'=>'view', '미리보기'=>'view', '복사'=>'copy');
|
||||||
$icon = '<img src="'.G5_ADMIN_PATH.'/img/icon_'.$img[$act].'.gif" title="'.$act.'">';
|
$icon = '<img src="'.G5_ADMIN_PATH.'/img/icon_'.$img[$act].'.gif" title="'.$act.'">';
|
||||||
if ($link) {
|
if ($link)
|
||||||
$s = '<a href="'.$link.'">'.$icon.'</a>';
|
$s = '<a href="'.$link.'">'.$icon.'</a>';
|
||||||
} else {
|
else
|
||||||
$s = $icon;
|
$s = $icon;
|
||||||
}
|
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -339,10 +308,9 @@ function rm_rf($file)
|
|||||||
if (is_dir($file)) {
|
if (is_dir($file)) {
|
||||||
$handle = opendir($file);
|
$handle = opendir($file);
|
||||||
while($filename = readdir($handle)) {
|
while($filename = readdir($handle)) {
|
||||||
if ($filename != '.' && $filename != '..') {
|
if ($filename != '.' && $filename != '..')
|
||||||
rm_rf($file.'/'.$filename);
|
rm_rf($file.'/'.$filename);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
|
|
||||||
@chmod($file, G5_DIR_PERMISSION);
|
@chmod($file, G5_DIR_PERMISSION);
|
||||||
@@ -396,8 +364,7 @@ function get_admin_token()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||||
function get_admin_captcha_by($type = 'get')
|
function get_admin_captcha_by($type='get'){
|
||||||
{
|
|
||||||
|
|
||||||
$captcha_name = 'ss_admin_use_captcha';
|
$captcha_name = 'ss_admin_use_captcha';
|
||||||
|
|
||||||
@@ -409,8 +376,7 @@ function get_admin_captcha_by($type = 'get')
|
|||||||
}
|
}
|
||||||
|
|
||||||
//input value 에서 xss 공격 filter 역할을 함 ( 반드시 input value='' 타입에만 사용할것 )
|
//input value 에서 xss 공격 filter 역할을 함 ( 반드시 input value='' 타입에만 사용할것 )
|
||||||
function get_sanitize_input($s, $is_html = false)
|
function get_sanitize_input($s, $is_html=false){
|
||||||
{
|
|
||||||
|
|
||||||
if(!$is_html){
|
if(!$is_html){
|
||||||
$s = strip_tags($s);
|
$s = strip_tags($s);
|
||||||
@@ -421,18 +387,7 @@ function get_sanitize_input($s, $is_html = false)
|
|||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
function domain_mail_host($is_at=true){
|
function check_log_folder($log_path){
|
||||||
list($domain_host,) = explode(':', $_SERVER['HTTP_HOST']);
|
|
||||||
|
|
||||||
if ('www.' === substr($domain_host, 0, 4)) {
|
|
||||||
$domain_host = substr($domain_host, 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $is_at ? '@'.$domain_host : $domain_host;
|
|
||||||
}
|
|
||||||
|
|
||||||
function check_log_folder($log_path, $is_delete = true)
|
|
||||||
{
|
|
||||||
|
|
||||||
if( is_writable($log_path) ){
|
if( is_writable($log_path) ){
|
||||||
|
|
||||||
@@ -456,8 +411,6 @@ function check_log_folder($log_path, $is_delete = true)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_delete) {
|
|
||||||
try {
|
|
||||||
// txt 파일과 log 파일을 조회하여 30일이 지난 파일은 삭제합니다.
|
// txt 파일과 log 파일을 조회하여 30일이 지난 파일은 삭제합니다.
|
||||||
$txt_files = glob($log_path.'/*.txt');
|
$txt_files = glob($log_path.'/*.txt');
|
||||||
$log_files = glob($log_path.'/*.log');
|
$log_files = glob($log_path.'/*.log');
|
||||||
@@ -473,9 +426,6 @@ function check_log_folder($log_path, $is_delete = true)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// POST로 넘어온 토큰과 세션에 저장된 토큰 비교
|
// POST로 넘어온 토큰과 세션에 저장된 토큰 비교
|
||||||
@@ -484,25 +434,12 @@ function check_admin_token()
|
|||||||
$token = get_session('ss_admin_token');
|
$token = get_session('ss_admin_token');
|
||||||
set_session('ss_admin_token', '');
|
set_session('ss_admin_token', '');
|
||||||
|
|
||||||
if (!$token || !$_REQUEST['token'] || $token != $_REQUEST['token']) {
|
if(!$token || !$_REQUEST['token'] || $token != $_REQUEST['token'])
|
||||||
alert('올바른 방법으로 이용해 주십시오.', G5_URL);
|
alert('올바른 방법으로 이용해 주십시오.', G5_URL);
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function admin_csrf_token_key($is_must=0){
|
|
||||||
global $member;
|
|
||||||
|
|
||||||
$key = '';
|
|
||||||
|
|
||||||
if($is_must || !((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'))){
|
|
||||||
$key = md5((isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '').(defined('G5_TOKEN_ENCRYPTION_KEY') ? G5_TOKEN_ENCRYPTION_KEY : '').$member['mb_id'].$_SERVER['DOCUMENT_ROOT']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return run_replace('admin_csrf_token_key', $key, $is_must);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 관리자 페이지 referer 체크
|
// 관리자 페이지 referer 체크
|
||||||
function admin_referer_check($return=false)
|
function admin_referer_check($return=false)
|
||||||
{
|
{
|
||||||
@@ -510,12 +447,11 @@ function admin_referer_check($return = false)
|
|||||||
if(!$referer) {
|
if(!$referer) {
|
||||||
$msg = '정보가 올바르지 않습니다.';
|
$msg = '정보가 올바르지 않습니다.';
|
||||||
|
|
||||||
if ($return) {
|
if($return)
|
||||||
return $msg;
|
return $msg;
|
||||||
} else {
|
else
|
||||||
alert($msg, G5_URL);
|
alert($msg, G5_URL);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$p = @parse_url($referer);
|
$p = @parse_url($referer);
|
||||||
|
|
||||||
@@ -539,22 +475,17 @@ function admin_referer_check($return = false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function admin_check_xss_params($params)
|
function admin_check_xss_params($params){
|
||||||
{
|
|
||||||
|
|
||||||
if (!$params) {
|
if( ! $params ) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach( $params as $key=>$value ){
|
foreach( $params as $key=>$value ){
|
||||||
|
|
||||||
if (empty($value)) {
|
if ( empty($value) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( is_array($value) ){
|
if( is_array($value) ){
|
||||||
admin_check_xss_params($value);
|
admin_check_xss_params($value);
|
||||||
} else if ((preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/(onload|onerror)=.*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) || (preg_match('/(onload|onerror|focus)=.*/ius', $value) && preg_match('/(eval|expression|exec|prompt)(\s*)\((.*)\)/ius', $value))) {
|
} else if ( (preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/[onload|onerror]=.*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) || (preg_match('/[onload|onerror|focus]=.*/ius', $value) && preg_match('/(eval|expression|exec|prompt)(\s*)\((.*)\)/ius', $value)) ){
|
||||||
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.', G5_URL);
|
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.', G5_URL);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
@@ -563,8 +494,7 @@ function admin_check_xss_params($params)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function admin_menu_find_by($call, $search_key)
|
function admin_menu_find_by($call, $search_key){
|
||||||
{
|
|
||||||
global $menu;
|
global $menu;
|
||||||
|
|
||||||
static $cache_menu = array();
|
static $cache_menu = array();
|
||||||
@@ -572,18 +502,12 @@ function admin_menu_find_by($call, $search_key)
|
|||||||
if( empty($cache_menu) ){
|
if( empty($cache_menu) ){
|
||||||
foreach( $menu as $k1=>$arr1 ){
|
foreach( $menu as $k1=>$arr1 ){
|
||||||
|
|
||||||
if (empty($arr1)) {
|
if (empty($arr1) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
foreach( $arr1 as $k2=>$arr2 ){
|
foreach( $arr1 as $k2=>$arr2 ){
|
||||||
if (empty($arr2)) {
|
if (empty($arr2) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu_key = isset($arr2[3]) ? $arr2[3] : '';
|
$menu_key = isset($arr2[3]) ? $arr2[3] : '';
|
||||||
if (empty($menu_key)) {
|
if (empty($menu_key) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$cache_menu[$menu_key] = array(
|
$cache_menu[$menu_key] = array(
|
||||||
'sub_menu'=>$arr2[0],
|
'sub_menu'=>$arr2[0],
|
||||||
@@ -602,29 +526,35 @@ function admin_menu_find_by($call, $search_key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 접근 권한 검사
|
// 접근 권한 검사
|
||||||
if (!$member['mb_id']) {
|
if (!$member['mb_id'])
|
||||||
|
{
|
||||||
alert('로그인 하십시오.', G5_BBS_URL.'/login.php?url=' . urlencode(correct_goto_url(G5_ADMIN_URL)));
|
alert('로그인 하십시오.', G5_BBS_URL.'/login.php?url=' . urlencode(correct_goto_url(G5_ADMIN_URL)));
|
||||||
} else if ($is_admin != 'super') {
|
}
|
||||||
|
else if ($is_admin != 'super')
|
||||||
|
{
|
||||||
$auth = array();
|
$auth = array();
|
||||||
$sql = " select au_menu, au_auth from {$g5['auth_table']} where mb_id = '{$member['mb_id']}' ";
|
$sql = " select au_menu, au_auth from {$g5['auth_table']} where mb_id = '{$member['mb_id']}' ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$auth[$row['au_menu']] = $row['au_auth'];
|
$auth[$row['au_menu']] = $row['au_auth'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$i) {
|
if (!$i)
|
||||||
|
{
|
||||||
alert('최고관리자 또는 관리권한이 있는 회원만 접근 가능합니다.', G5_URL);
|
alert('최고관리자 또는 관리권한이 있는 회원만 접근 가능합니다.', G5_URL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 관리자의 클라이언트를 검증하여 일치하지 않으면 세션을 끊고 관리자에게 메일을 보낸다.
|
// 관리자의 아이피, 브라우저와 다르다면 세션을 끊고 관리자에게 메일을 보낸다.
|
||||||
if (!verify_mb_key($member)) {
|
$admin_key = md5($member['mb_datetime'] . get_real_client_ip() . $_SERVER['HTTP_USER_AGENT']);
|
||||||
|
if (get_session('ss_mb_key') !== $admin_key) {
|
||||||
|
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
||||||
include_once G5_LIB_PATH . '/mailer.lib.php';
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
// 메일 알림
|
// 메일 알림
|
||||||
mailer($member['mb_nick'], $member['mb_email'], $member['mb_email'], 'XSS 공격 알림', $_SERVER['REMOTE_ADDR'] . ' 아이피로 XSS 공격이 있었습니다.<br><br>관리자 권한을 탈취하려는 접근이므로 주의하시기 바랍니다.<br><br>해당 아이피는 차단하시고 의심되는 게시물이 있는지 확인하시기 바랍니다.' . G5_URL, 0);
|
mailer($member['mb_nick'], $member['mb_email'], $member['mb_email'], 'XSS 공격 알림', $_SERVER['REMOTE_ADDR'].' 아이피로 XSS 공격이 있었습니다.\n\n관리자 권한을 탈취하려는 접근이므로 주의하시기 바랍니다.\n\n해당 아이피는 차단하시고 의심되는 게시물이 있는지 확인하시기 바랍니다.\n\n'.G5_URL, 0);
|
||||||
|
|
||||||
alert_close('정상적으로 로그인하여 접근하시기 바랍니다.');
|
alert_close('정상적으로 로그인하여 접근하시기 바랍니다.');
|
||||||
}
|
}
|
||||||
@@ -642,16 +572,15 @@ unset($amenu);
|
|||||||
$tmp = dir(G5_ADMIN_PATH);
|
$tmp = dir(G5_ADMIN_PATH);
|
||||||
$menu_files = array();
|
$menu_files = array();
|
||||||
while ($entry = $tmp->read()) {
|
while ($entry = $tmp->read()) {
|
||||||
if (!preg_match('/^admin.menu([0-9]{3}).*\.php$/', $entry, $m)) {
|
if (!preg_match('/^admin.menu([0-9]{3}).*\.php$/', $entry, $m))
|
||||||
continue; // 파일명이 menu 으로 시작하지 않으면 무시한다.
|
continue; // 파일명이 menu 으로 시작하지 않으면 무시한다.
|
||||||
}
|
|
||||||
|
|
||||||
$amenu[$m[1]] = $entry;
|
$amenu[$m[1]] = $entry;
|
||||||
$menu_files[] = G5_ADMIN_PATH.'/'.$entry;
|
$menu_files[] = G5_ADMIN_PATH.'/'.$entry;
|
||||||
}
|
}
|
||||||
@asort($menu_files);
|
@asort($menu_files);
|
||||||
foreach($menu_files as $file){
|
foreach($menu_files as $file){
|
||||||
include_once $file;
|
include_once($file);
|
||||||
}
|
}
|
||||||
@ksort($amenu);
|
@ksort($amenu);
|
||||||
|
|
||||||
@@ -661,21 +590,11 @@ if (isset($menu) && $menu) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$arr_query = array();
|
$arr_query = array();
|
||||||
if (isset($sst)) {
|
if (isset($sst)) $arr_query[] = 'sst='.$sst;
|
||||||
$arr_query[] = 'sst=' . $sst;
|
if (isset($sod)) $arr_query[] = 'sod='.$sod;
|
||||||
}
|
if (isset($sfl)) $arr_query[] = 'sfl='.$sfl;
|
||||||
if (isset($sod)) {
|
if (isset($stx)) $arr_query[] = 'stx='.$stx;
|
||||||
$arr_query[] = 'sod=' . $sod;
|
if (isset($page)) $arr_query[] = 'page='.$page;
|
||||||
}
|
|
||||||
if (isset($sfl)) {
|
|
||||||
$arr_query[] = 'sfl=' . $sfl;
|
|
||||||
}
|
|
||||||
if (isset($stx)) {
|
|
||||||
$arr_query[] = 'stx=' . $stx;
|
|
||||||
}
|
|
||||||
if (isset($page)) {
|
|
||||||
$arr_query[] = 'page=' . $page;
|
|
||||||
}
|
|
||||||
$qstr = implode("&", $arr_query);
|
$qstr = implode("&", $arr_query);
|
||||||
|
|
||||||
if ( isset($_REQUEST) && $_REQUEST ){
|
if ( isset($_REQUEST) && $_REQUEST ){
|
||||||
@@ -684,9 +603,5 @@ if (isset($_REQUEST) && $_REQUEST) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 관리자에서는 추가 스크립트와 추가 매타태그, 방문자분석 스크립트가 실행되지 않게 빈값으로 합니다.
|
// 관리자에서는 추가 스크립트는 사용하지 않는다.
|
||||||
if (run_replace('safe_admin_add_script_boolean', false) === false) {
|
//$config['cf_add_script'] = '';
|
||||||
$config['cf_analytics'] = '';
|
|
||||||
$config['cf_add_script'] = '';
|
|
||||||
$config['cf_add_meta'] = '';
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu['menu400'] = array(
|
|
||||||
array('400000', '쇼핑몰관리', G5_ADMIN_URL . '/shop_admin/', 'shop_config'),
|
|
||||||
array('400010', '쇼핑몰현황', G5_ADMIN_URL . '/shop_admin/', 'shop_index'),
|
|
||||||
array('400100', '쇼핑몰설정', G5_ADMIN_URL . '/shop_admin/configform.php', 'scf_config'),
|
|
||||||
array('400400', '주문내역', G5_ADMIN_URL . '/shop_admin/orderlist.php', 'scf_order', 1),
|
|
||||||
array('400440', '개인결제관리', G5_ADMIN_URL . '/shop_admin/personalpaylist.php', 'scf_personalpay', 1),
|
|
||||||
array('400200', '분류관리', G5_ADMIN_URL . '/shop_admin/categorylist.php', 'scf_cate'),
|
|
||||||
array('400300', '상품관리', G5_ADMIN_URL . '/shop_admin/itemlist.php', 'scf_item'),
|
|
||||||
array('400660', '상품문의', G5_ADMIN_URL . '/shop_admin/itemqalist.php', 'scf_item_qna'),
|
|
||||||
array('400650', '사용후기', G5_ADMIN_URL . '/shop_admin/itemuselist.php', 'scf_ps'),
|
|
||||||
array('400620', '상품재고관리', G5_ADMIN_URL . '/shop_admin/itemstocklist.php', 'scf_item_stock'),
|
|
||||||
array('400610', '상품유형관리', G5_ADMIN_URL . '/shop_admin/itemtypelist.php', 'scf_item_type'),
|
|
||||||
array('400500', '상품옵션재고관리', G5_ADMIN_URL . '/shop_admin/optionstocklist.php', 'scf_item_option'),
|
|
||||||
array('400800', '쿠폰관리', G5_ADMIN_URL . '/shop_admin/couponlist.php', 'scf_coupon'),
|
|
||||||
array('400810', '쿠폰존관리', G5_ADMIN_URL . '/shop_admin/couponzonelist.php', 'scf_coupon_zone'),
|
|
||||||
array('400750', '추가배송비관리', G5_ADMIN_URL . '/shop_admin/sendcostlist.php', 'scf_sendcost', 1),
|
|
||||||
array('400410', '미완료주문', G5_ADMIN_URL . '/shop_admin/inorderlist.php', 'scf_inorder', 1),
|
|
||||||
);
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<?php
|
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$menu['menu500'] = array(
|
|
||||||
array('500000', '쇼핑몰현황/기타', G5_ADMIN_URL . '/shop_admin/itemsellrank.php', 'shop_stats'),
|
|
||||||
array('500110', '매출현황', G5_ADMIN_URL . '/shop_admin/sale1.php', 'sst_order_stats'),
|
|
||||||
array('500100', '상품판매순위', G5_ADMIN_URL . '/shop_admin/itemsellrank.php', 'sst_rank'),
|
|
||||||
array('500120', '주문내역출력', G5_ADMIN_URL . '/shop_admin/orderprint.php', 'sst_print_order', 1),
|
|
||||||
array('500400', '재입고SMS알림', G5_ADMIN_URL . '/shop_admin/itemstocksms.php', 'sst_stock_sms', 1),
|
|
||||||
array('500300', '이벤트관리', G5_ADMIN_URL . '/shop_admin/itemevent.php', 'scf_event'),
|
|
||||||
array('500310', '이벤트일괄처리', G5_ADMIN_URL . '/shop_admin/itemeventlist.php', 'scf_event_mng'),
|
|
||||||
array('500500', '배너관리', G5_ADMIN_URL . '/shop_admin/bannerlist.php', 'scf_banner', 1),
|
|
||||||
array('500140', '보관함현황', G5_ADMIN_URL . '/shop_admin/wishlist.php', 'sst_wish'),
|
|
||||||
array('500210', '가격비교사이트', G5_ADMIN_URL . '/shop_admin/price.php', 'sst_compare', 1)
|
|
||||||
);
|
|
||||||
+7
-11
@@ -1,11 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전이 통합됨에 따라 그누보드 버전만 표시
|
$print_version = defined('G5_YOUNGCART_VER') ? 'YoungCart Version '.G5_YOUNGCART_VER : 'Version '.G5_GNUBOARD_VER;
|
||||||
// $print_version = defined('G5_YOUNGCART_VER') ? 'YoungCart Version '.G5_YOUNGCART_VER : 'Version '.G5_GNUBOARD_VER;
|
|
||||||
$print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
@@ -28,9 +24,7 @@ $print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(".scroll_top").click(function(){
|
$(".scroll_top").click(function(){
|
||||||
$("body,html").animate({
|
$("body,html").animate({scrollTop:0},400);
|
||||||
scrollTop: 0
|
|
||||||
}, 400);
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -135,7 +129,8 @@ $print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
|
|||||||
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
|
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
|
||||||
}
|
}
|
||||||
|
|
||||||
function menu_rearrange(el) {
|
function menu_rearrange(el)
|
||||||
|
{
|
||||||
var width = $("#gnb_1dul").width();
|
var width = $("#gnb_1dul").width();
|
||||||
var left = w1 = w2 = 0;
|
var left = w1 = w2 = 0;
|
||||||
var idx = $(".gnb_1dli").index(el);
|
var idx = $(".gnb_1dli").index(el);
|
||||||
@@ -151,7 +146,8 @@ $print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
|
|||||||
left += w1;
|
left += w1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_PATH . '/tail.sub.php';
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
+3
-9
@@ -1,18 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
include_once(G5_LIB_PATH.'/json.lib.php');
|
||||||
|
|
||||||
set_session('ss_admin_token', '');
|
set_session('ss_admin_token', '');
|
||||||
|
|
||||||
$admin_csrf_token_key = isset($_POST['admin_csrf_token_key']) ? $_POST['admin_csrf_token_key'] : '';
|
|
||||||
|
|
||||||
if(function_exists('admin_csrf_token_key') && $admin_csrf_token_key !== admin_csrf_token_key(1)){
|
|
||||||
die(json_encode(array('error' => '토큰키 에러!', 'url' => G5_URL)));
|
|
||||||
}
|
|
||||||
|
|
||||||
$error = admin_referer_check(true);
|
$error = admin_referer_check(true);
|
||||||
if ($error) {
|
if($error)
|
||||||
die(json_encode(array('error'=>$error, 'url'=>G5_URL)));
|
die(json_encode(array('error'=>$error, 'url'=>G5_URL)));
|
||||||
}
|
|
||||||
|
|
||||||
$token = get_admin_token();
|
$token = get_admin_token();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if( isset($_POST['admin_use_captcha']) ){
|
if( isset($_POST['admin_use_captcha']) ){
|
||||||
set_session('ss_admin_use_captcha', true);
|
set_session('ss_admin_use_captcha', true);
|
||||||
|
|||||||
+19
-22
@@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100200";
|
$sub_menu = "100200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['auth_table']} a left join {$g5['member_table']} b on (a.mb_id=b.mb_id) ";
|
$sql_common = " from {$g5['auth_table']} a left join {$g5['member_table']} b on (a.mb_id=b.mb_id) ";
|
||||||
|
|
||||||
@@ -34,9 +33,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
@@ -49,7 +46,7 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall btn_ov02">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall btn_ov02">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = "관리권한설정";
|
$g5['title'] = "관리권한설정";
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 5;
|
$colspan = 5;
|
||||||
?>
|
?>
|
||||||
@@ -94,7 +91,8 @@ $colspan = 5;
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$count = 0;
|
$count = 0;
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$is_continue = false;
|
$is_continue = false;
|
||||||
// 회원아이디가 없는 메뉴는 삭제함
|
// 회원아이디가 없는 메뉴는 삭제함
|
||||||
if($row['mb_id'] == '' && $row['mb_nick'] == '') {
|
if($row['mb_id'] == '' && $row['mb_nick'] == '') {
|
||||||
@@ -103,14 +101,14 @@ $colspan = 5;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
|
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
|
||||||
if (!isset($auth_menu[$row['au_menu']])) {
|
if (!isset($auth_menu[$row['au_menu']]))
|
||||||
|
{
|
||||||
sql_query(" delete from {$g5['auth_table']} where au_menu = '{$row['au_menu']}' ");
|
sql_query(" delete from {$g5['auth_table']} where au_menu = '{$row['au_menu']}' ");
|
||||||
$is_continue = true;
|
$is_continue = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_continue) {
|
if($is_continue)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||||
|
|
||||||
@@ -135,9 +133,8 @@ $colspan = 5;
|
|||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($count == 0) {
|
if ($count == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -151,11 +148,10 @@ $colspan = 5;
|
|||||||
//if (isset($stx))
|
//if (isset($stx))
|
||||||
// echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'."\n";
|
// echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'."\n";
|
||||||
|
|
||||||
if (strstr($sfl, 'mb_id')) {
|
if (strstr($sfl, 'mb_id'))
|
||||||
$mb_id = $stx;
|
$mb_id = $stx;
|
||||||
} else {
|
else
|
||||||
$mb_id = '';
|
$mb_id = '';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@@ -202,11 +198,11 @@ echo $pagelist;
|
|||||||
<select id="au_menu" name="au_menu" required class="required">
|
<select id="au_menu" name="au_menu" required class="required">
|
||||||
<option value=''>선택하세요</option>
|
<option value=''>선택하세요</option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($auth_menu as $key => $value) {
|
foreach($auth_menu as $key=>$value)
|
||||||
if (!(substr($key, -3) == '000' || $key == '-' || !$key)) {
|
{
|
||||||
|
if (!(substr($key, -3) == '000' || $key == '-' || !$key))
|
||||||
echo '<option value="'.$key.'">'.$key.' '.$value.'</option>';
|
echo '<option value="'.$key.'">'.$key.' '.$value.'</option>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
@@ -226,7 +222,7 @@ echo $pagelist;
|
|||||||
<th scope="row">자동등록방지</th>
|
<th scope="row">자동등록방지</th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
$captcha_html = captcha_html();
|
$captcha_html = captcha_html();
|
||||||
$captcha_js = chk_captcha_js();
|
$captcha_js = chk_captcha_js();
|
||||||
echo $captcha_html;
|
echo $captcha_html;
|
||||||
@@ -252,7 +248,8 @@ echo $pagelist;
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function fauthlist_submit(f) {
|
function fauthlist_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -269,4 +266,4 @@ echo $pagelist;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,27 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100200";
|
$sub_menu = "100200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||||
$post_act_button = isset($_POST['act_button']) ? clean_xss_tags($_POST['act_button'], 1, 1) : '';
|
$post_act_button = isset($_POST['act_button']) ? clean_xss_tags($_POST['act_button'], 1, 1) : '';
|
||||||
|
|
||||||
if (!$count) {
|
if (!$count)
|
||||||
alert($_POST['act_button']." 하실 항목을 하나 이상 체크하세요.");
|
alert($_POST['act_button']." 하실 항목을 하나 이상 체크하세요.");
|
||||||
}
|
|
||||||
|
|
||||||
if ( (isset($_POST['mb_id']) && ! is_array($_POST['mb_id'])) || (isset($_POST['au_menu']) && ! is_array($_POST['au_menu'])) ){
|
if ( (isset($_POST['mb_id']) && ! is_array($_POST['mb_id'])) || (isset($_POST['au_menu']) && ! is_array($_POST['au_menu'])) ){
|
||||||
alert("잘못된 요청입니다.");
|
alert("잘못된 요청입니다.");
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i=0; $i<$count; $i++)
|
||||||
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|
||||||
|
|||||||
+6
-8
@@ -1,25 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100200";
|
$sub_menu = "100200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
$au_menu = isset($_POST['au_menu']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['au_menu']) : '';
|
$au_menu = isset($_POST['au_menu']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['au_menu']) : '';
|
||||||
$post_r = isset($_POST['r']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['r']) : '';
|
$post_r = isset($_POST['r']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['r']) : '';
|
||||||
$post_w = isset($_POST['w']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['w']) : '';
|
$post_w = isset($_POST['w']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['w']) : '';
|
||||||
$post_d = isset($_POST['d']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['d']) : '';
|
$post_d = isset($_POST['d']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['d']) : '';
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
if (!$mb['mb_id']) {
|
if (!$mb['mb_id'])
|
||||||
alert('존재하는 회원아이디가 아닙니다.');
|
alert('존재하는 회원아이디가 아닙니다.');
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
@@ -29,7 +27,7 @@ $sql = " insert into {$g5['auth_table']}
|
|||||||
set mb_id = '$mb_id',
|
set mb_id = '$mb_id',
|
||||||
au_menu = '$au_menu',
|
au_menu = '$au_menu',
|
||||||
au_auth = '{$post_r},{$post_w},{$post_d}' ";
|
au_auth = '{$post_r},{$post_w},{$post_d}' ";
|
||||||
$result = sql_query($sql, false);
|
$result = sql_query($sql, FALSE);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$sql = " update {$g5['auth_table']}
|
$sql = " update {$g5['auth_table']}
|
||||||
set au_auth = '{$post_r},{$post_w},{$post_d}'
|
set au_auth = '{$post_r},{$post_w},{$post_d}'
|
||||||
|
|||||||
+6
-12
@@ -1,19 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
require_once "./_common.php";
|
include_once("./_common.php");
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
$g5['title'] = '게시판 복사';
|
$g5['title'] = '게시판 복사';
|
||||||
require_once G5_PATH . '/head.sub.php';
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
if (empty($bo_table)) {
|
|
||||||
alert_close("정상적인 방법으로 이용해주세요.");
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<script>
|
|
||||||
var g5_admin_csrf_token_key = "<?php echo (function_exists('admin_csrf_token_key')) ? admin_csrf_token_key() : ''; ?>";
|
|
||||||
</script>
|
|
||||||
<script src="<?php echo G5_ADMIN_URL ?>/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
<script src="<?php echo G5_ADMIN_URL ?>/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||||
|
|
||||||
<div class="new_win">
|
<div class="new_win">
|
||||||
@@ -62,9 +56,9 @@ if (empty($bo_table)) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardcopy_check(f) {
|
function fboardcopy_check(f)
|
||||||
|
{
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(!$w){
|
if(!$w){
|
||||||
$js_array = get_bo_table_banned_word();
|
$js_array = get_bo_table_banned_word();
|
||||||
echo "var banned_array = ". json_encode($js_array) . ";\n";
|
echo "var banned_array = ". json_encode($js_array) . ";\n";
|
||||||
@@ -88,4 +82,4 @@ if (empty($bo_table)) {
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_PATH . '/tail.sub.php';
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
+15
-25
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300100';
|
$sub_menu = '300100';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -8,39 +8,31 @@ auth_check_menu($auth, $sub_menu, 'w');
|
|||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$bo_table = isset($_POST['bo_table']) ? substr(preg_replace('/[^a-z0-9_]/i', '', $_POST['bo_table']), 0, 20) : null;
|
|
||||||
$target_table = isset($_POST['target_table']) ? trim($_POST['target_table']) : '';
|
$target_table = isset($_POST['target_table']) ? trim($_POST['target_table']) : '';
|
||||||
$target_subject = isset($_POST['target_subject']) ? trim($_POST['target_subject']) : '';
|
$target_subject = isset($_POST['target_subject']) ? trim($_POST['target_subject']) : '';
|
||||||
|
|
||||||
$target_subject = strip_tags(clean_xss_attributes($target_subject));
|
$target_subject = strip_tags(clean_xss_attributes($target_subject));
|
||||||
|
|
||||||
$file_copy = array();
|
|
||||||
|
|
||||||
if (empty($bo_table)) {
|
|
||||||
alert("원본 테이블 정보가 없습니다.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table)) {
|
if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table)) {
|
||||||
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
|
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
|
||||||
}
|
}
|
||||||
|
|
||||||
$target_table = substr(preg_replace('/[^a-z0-9_]/i', '', $target_table), 0, 20);
|
|
||||||
|
|
||||||
// 게시판명이 금지된 단어로 되어 있으면
|
// 게시판명이 금지된 단어로 되어 있으면
|
||||||
if ( $w == '' && in_array($target_table, get_bo_table_banned_word()) ){
|
if ( $w == '' && in_array($target_table, get_bo_table_banned_word()) ){
|
||||||
alert('입력한 게시판 TABLE명을 사용할수 없습니다. 다른 이름으로 입력해 주세요.');
|
alert('입력한 게시판 TABLE명을 사용할수 없습니다. 다른 이름으로 입력해 주세요.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '$target_table' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '$target_table' ");
|
||||||
if ($row['cnt']) {
|
if ($row['cnt'])
|
||||||
alert($target_table.'은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.');
|
alert($target_table.'은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
// 게시판 테이블 생성
|
// 게시판 테이블 생성
|
||||||
$sql = get_table_define($g5['write_prefix'] . $bo_table);
|
$sql = get_table_define($g5['write_prefix'] . $bo_table);
|
||||||
$sql = str_replace($g5['write_prefix'] . $bo_table, $g5['write_prefix'] . $target_table, $sql);
|
$sql = str_replace($g5['write_prefix'] . $bo_table, $g5['write_prefix'] . $target_table, $sql);
|
||||||
sql_query($sql, false);
|
sql_query($sql, false);
|
||||||
|
|
||||||
|
$file_copy = array();
|
||||||
|
|
||||||
// 구조만 복사시에는 공지사항 번호는 복사하지 않는다.
|
// 구조만 복사시에는 공지사항 번호는 복사하지 않는다.
|
||||||
if ($copy_case == 'schema_only') {
|
if ($copy_case == 'schema_only') {
|
||||||
$board['bo_notice'] = '';
|
$board['bo_notice'] = '';
|
||||||
@@ -91,10 +83,10 @@ $sql = " insert into {$g5['board_table']}
|
|||||||
bo_new = '{$board['bo_new']}',
|
bo_new = '{$board['bo_new']}',
|
||||||
bo_hot = '{$board['bo_hot']}',
|
bo_hot = '{$board['bo_hot']}',
|
||||||
bo_image_width = '{$board['bo_image_width']}',
|
bo_image_width = '{$board['bo_image_width']}',
|
||||||
bo_skin = '" . sql_real_escape_string($board['bo_skin']). "',
|
bo_skin = '{$board['bo_skin']}',
|
||||||
bo_mobile_skin = '" . sql_real_escape_string($board['bo_mobile_skin']). "',
|
bo_mobile_skin = '{$board['bo_mobile_skin']}',
|
||||||
bo_include_head = '" . sql_real_escape_string($board['bo_include_head']). "',
|
bo_include_head = '{$board['bo_include_head']}',
|
||||||
bo_include_tail = '" . sql_real_escape_string($board['bo_include_tail']). "',
|
bo_include_tail = '{$board['bo_include_tail']}',
|
||||||
bo_content_head = '".addslashes($board['bo_content_head'])."',
|
bo_content_head = '".addslashes($board['bo_content_head'])."',
|
||||||
bo_content_tail = '".addslashes($board['bo_content_tail'])."',
|
bo_content_tail = '".addslashes($board['bo_content_tail'])."',
|
||||||
bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."',
|
bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."',
|
||||||
@@ -154,9 +146,7 @@ $copy_file = 0;
|
|||||||
if ($copy_case == 'schema_data_both') {
|
if ($copy_case == 'schema_data_both') {
|
||||||
$d = dir(G5_DATA_PATH.'/file/'.$bo_table);
|
$d = dir(G5_DATA_PATH.'/file/'.$bo_table);
|
||||||
while ($entry = $d->read()) {
|
while ($entry = $d->read()) {
|
||||||
if ($entry == '.' || $entry == '..') {
|
if ($entry == '.' || $entry == '..') continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 김선용 201007 :
|
// 김선용 201007 :
|
||||||
if(is_dir(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry)){
|
if(is_dir(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry)){
|
||||||
@@ -164,15 +154,14 @@ if ($copy_case == 'schema_data_both') {
|
|||||||
@mkdir(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
@mkdir(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
||||||
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
||||||
while ($entry2 = $dd->read()) {
|
while ($entry2 = $dd->read()) {
|
||||||
if ($entry2 == '.' || $entry2 == '..') {
|
if ($entry2 == '.' || $entry2 == '..') continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
@copy(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry.'/'.$entry2, G5_DATA_PATH.'/file/'.$target_table.'/'.$entry.'/'.$entry2);
|
@copy(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry.'/'.$entry2, G5_DATA_PATH.'/file/'.$target_table.'/'.$entry.'/'.$entry2);
|
||||||
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry.'/'.$entry2, G5_DIR_PERMISSION);
|
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry.'/'.$entry2, G5_DIR_PERMISSION);
|
||||||
$copy_file++;
|
$copy_file++;
|
||||||
}
|
}
|
||||||
$dd->close();
|
$dd->close();
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
@copy(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry, G5_DATA_PATH.'/file/'.$target_table.'/'.$entry);
|
@copy(G5_DATA_PATH.'/file/'.$bo_table.'/'.$entry, G5_DATA_PATH.'/file/'.$target_table.'/'.$entry);
|
||||||
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
@chmod(G5_DATA_PATH.'/file/'.$target_table.'/'.$entry, G5_DIR_PERMISSION);
|
||||||
$copy_file++;
|
$copy_file++;
|
||||||
@@ -193,15 +182,16 @@ if ($copy_case == 'schema_data_both') {
|
|||||||
sql_query($sql, false);
|
sql_query($sql, false);
|
||||||
|
|
||||||
// 4.00.01
|
// 4.00.01
|
||||||
|
// 위의 코드는 같은 테이블명을 사용하였다는 오류가 발생함. (희한하네 ㅡㅡ;)
|
||||||
$sql = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' ";
|
$sql = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' ";
|
||||||
$result = sql_query($sql, false);
|
$result = sql_query($sql, false);
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
$file_copy[$i] = $row;
|
$file_copy[$i] = $row;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (count($file_copy)) {
|
if (count($file_copy)) {
|
||||||
for ($i=0; $i<count($file_copy); $i++) {
|
for ($i=0; $i<count($file_copy); $i++) {
|
||||||
|
|
||||||
$file_copy[$i] = run_replace('admin_copy_update_file', $file_copy[$i], $file_copy[$i]['bf_file'], $bo_table, $target_table);
|
$file_copy[$i] = run_replace('admin_copy_update_file', $file_copy[$i], $file_copy[$i]['bf_file'], $bo_table, $target_table);
|
||||||
|
|
||||||
$sql = " insert into {$g5['board_file_table']}
|
$sql = " insert into {$g5['board_file_table']}
|
||||||
|
|||||||
@@ -1,18 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
// board_delete.php , boardgroup_delete.php 에서 include 하는 파일
|
// board_delete.php , boardgroup_delete.php 에서 include 하는 파일
|
||||||
|
|
||||||
// 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_BOARD_DELETE_')) exit; // 개별 페이지 접근 불가
|
||||||
exit;
|
|
||||||
}
|
|
||||||
if (!defined('_BOARD_DELETE_')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
// $tmp_bo_table 에는 $bo_table 값을 넘겨주어야 함
|
// $tmp_bo_table 에는 $bo_table 값을 넘겨주어야 함
|
||||||
if (!$tmp_bo_table) {
|
if (!$tmp_bo_table) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 게시판 1개는 삭제 불가 (게시판 복사를 위해서)
|
// 게시판 1개는 삭제 불가 (게시판 복사를 위해서)
|
||||||
//$row = sql_fetch(" select count(*) as cnt from $g5['board_table'] ");
|
//$row = sql_fetch(" select count(*) as cnt from $g5['board_table'] ");
|
||||||
@@ -31,7 +24,7 @@ sql_query(" delete from {$g5['scrap_table']} where bo_table = '{$tmp_bo_table}'
|
|||||||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
sql_query(" delete from {$g5['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|
||||||
// 게시판 테이블 DROP
|
// 게시판 테이블 DROP
|
||||||
sql_query(" drop table {$g5['write_prefix']}{$tmp_bo_table} ", false);
|
sql_query(" drop table {$g5['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||||
|
|
||||||
// 좋아요 테이블에서 기록 삭제
|
// 좋아요 테이블에서 기록 삭제
|
||||||
sql_query(" delete from {$g5['board_good_table']} where bo_table = '{$tmp_bo_table}' ");
|
sql_query(" delete from {$g5['board_good_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|||||||
+28
-32
@@ -1,17 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
$sql = " select count(*) as cnt from {$g5['group_table']} ";
|
$sql = " select count(*) as cnt from {$g5['group_table']} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (!$row['cnt']) {
|
if (!$row['cnt'])
|
||||||
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
||||||
}
|
|
||||||
|
|
||||||
$html_title = '게시판';
|
$html_title = '게시판';
|
||||||
|
$reaonly = '';
|
||||||
|
$required_valid = '';
|
||||||
|
|
||||||
if (!isset($board['bo_device'])) {
|
if (!isset($board['bo_device'])) {
|
||||||
// 게시판 사용 필드 추가
|
// 게시판 사용 필드 추가
|
||||||
@@ -51,11 +52,9 @@ if (!isset($board['bo_use_sns'])) {
|
|||||||
|
|
||||||
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||||
" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
|
||||||
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
|
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
|
||||||
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false
|
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,10 +69,8 @@ if (!isset($board['bo_use_list_file'])) {
|
|||||||
|
|
||||||
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||||
" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
ADD `wr_file` TINYINT NOT NULL DEFAULT '0' AFTER `wr_datetime` ", false);
|
||||||
ADD `wr_file` TINYINT NOT NULL DEFAULT '0' AFTER `wr_datetime` ", false
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,8 +142,8 @@ run_event('adm_board_form_before', $board, $w);
|
|||||||
$required = "";
|
$required = "";
|
||||||
$readonly = "";
|
$readonly = "";
|
||||||
$sound_only = "";
|
$sound_only = "";
|
||||||
$required_valid = "";
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
|
|
||||||
$html_title .= ' 생성';
|
$html_title .= ' 생성';
|
||||||
|
|
||||||
$required = 'required';
|
$required = 'required';
|
||||||
@@ -183,20 +180,21 @@ if ($w == '') {
|
|||||||
$board['bo_use_secret'] = 0;
|
$board['bo_use_secret'] = 0;
|
||||||
$board['bo_include_head'] = '_head.php';
|
$board['bo_include_head'] = '_head.php';
|
||||||
$board['bo_include_tail'] = '_tail.php';
|
$board['bo_include_tail'] = '_tail.php';
|
||||||
|
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
|
|
||||||
$html_title .= ' 수정';
|
$html_title .= ' 수정';
|
||||||
|
|
||||||
if (!$board['bo_table']) {
|
if (!$board['bo_table'])
|
||||||
alert('존재하지 않은 게시판 입니다.');
|
alert('존재하지 않은 게시판 입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin == 'group') {
|
if ($is_admin == 'group') {
|
||||||
if ($member['mb_id'] != $group['gr_admin']) {
|
if ($member['mb_id'] != $group['gr_admin'])
|
||||||
alert('그룹이 틀립니다.');
|
alert('그룹이 틀립니다.');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$readonly = 'readonly';
|
$readonly = 'readonly';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super') {
|
||||||
@@ -205,7 +203,7 @@ if ($is_admin != 'super') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
$g5['title'] = $html_title;
|
||||||
require_once './admin.head.php';
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
$pg_anchor = '<ul class="anchor">
|
$pg_anchor = '<ul class="anchor">
|
||||||
<li><a href="#anc_bo_basic">기본 설정</a></li>
|
<li><a href="#anc_bo_basic">기본 설정</a></li>
|
||||||
@@ -256,9 +254,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<th scope="row"><label for="gr_id">그룹<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="gr_id">그룹<strong class="sound_only">필수</strong></label></th>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php echo get_group_select('gr_id', $board['gr_id'], 'required'); ?>
|
<?php echo get_group_select('gr_id', $board['gr_id'], 'required'); ?>
|
||||||
<?php if ($w=='u') { ?>
|
<?php if ($w=='u') { ?><a href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">동일그룹 게시판목록</a><?php } ?>
|
||||||
<a href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">동일그룹 게시판목록</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -553,9 +549,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<?php
|
<?php
|
||||||
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
||||||
for ($i=0; $i<count($arr); $i++) {
|
for ($i=0; $i<count($arr); $i++) {
|
||||||
if ($i == 0) {
|
if ($i == 0) echo "<option value=\"\">기본환경설정의 에디터 사용</option>";
|
||||||
echo "<option value=\"\">기본환경설정의 에디터 사용</option>";
|
|
||||||
}
|
|
||||||
echo "<option value=\"".$arr[$i]."\"".get_selected($board['bo_select_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
echo "<option value=\"".$arr[$i]."\"".get_selected($board['bo_select_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -712,6 +706,8 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
if ($config['cf_cert_use']) {
|
if ($config['cf_cert_use']) {
|
||||||
echo option_selected("cert", $board['bo_use_cert'], "본인확인된 회원전체");
|
echo option_selected("cert", $board['bo_use_cert'], "본인확인된 회원전체");
|
||||||
echo option_selected("adult", $board['bo_use_cert'], "본인확인된 성인회원만");
|
echo option_selected("adult", $board['bo_use_cert'], "본인확인된 성인회원만");
|
||||||
|
echo option_selected("hp-cert", $board['bo_use_cert'], "휴대폰 본인확인된 회원전체");
|
||||||
|
echo option_selected("hp-adult", $board['bo_use_cert'], "휴대폰 본인확인된 성인회원만");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
@@ -914,7 +910,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_include_head">상단 파일 경로</label></th>
|
<th scope="row"><label for="bo_include_head">상단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="bo_include_head" value="<?php echo get_sanitize_input($board['bo_include_head']); ?>" id="bo_include_head" class="frm_input" size="50">
|
<input type="text" name="bo_include_head" value="<?php echo $board['bo_include_head'] ?>" id="bo_include_head" class="frm_input" size="50">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_include_head" value="1" id="chk_grp_include_head">
|
<input type="checkbox" name="chk_grp_include_head" value="1" id="chk_grp_include_head">
|
||||||
@@ -926,7 +922,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_include_tail">하단 파일 경로</label></th>
|
<th scope="row"><label for="bo_include_tail">하단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="bo_include_tail" value="<?php echo get_sanitize_input($board['bo_include_tail']); ?>" id="bo_include_tail" class="frm_input" size="50">
|
<input type="text" name="bo_include_tail" value="<?php echo $board['bo_include_tail'] ?>" id="bo_include_tail" class="frm_input" size="50">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_include_tail" value="1" id="chk_grp_include_tail">
|
<input type="checkbox" name="chk_grp_include_tail" value="1" id="chk_grp_include_tail">
|
||||||
@@ -941,7 +937,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<?php
|
<?php
|
||||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||||
|
|
||||||
include_once G5_CAPTCHA_PATH.'/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
$captcha_html = captcha_html();
|
$captcha_html = captcha_html();
|
||||||
$captcha_js = chk_captcha_js();
|
$captcha_js = chk_captcha_js();
|
||||||
echo $captcha_html;
|
echo $captcha_html;
|
||||||
@@ -1066,7 +1062,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<th scope="row"><label for="bo_gallery_cols">갤러리 이미지 수<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="bo_gallery_cols">갤러리 이미지 수<strong class="sound_only">필수</strong></label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help('갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여 줄 것인지를 설정하는 값') ?>
|
<?php echo help('갤러리 형식의 게시판 목록에서 이미지를 한줄에 몇장씩 보여 줄 것인지를 설정하는 값') ?>
|
||||||
<input type="text" name="bo_gallery_cols" value="<?php echo $board['bo_gallery_cols'] ?>" id="bo_gallery_cols" required class="required numeric frm_input" size="4">
|
<?php echo get_member_level_select('bo_gallery_cols', 1, 10, $board['bo_gallery_cols']); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_gallery_cols" value="1" id="chk_grp_gallery_cols">
|
<input type="checkbox" name="chk_grp_gallery_cols" value="1" id="chk_grp_gallery_cols">
|
||||||
@@ -1200,6 +1196,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<?php echo help('리스트에서 기본으로 정렬에 사용할 필드를 선택합니다. "기본"으로 사용하지 않으시는 경우 속도가 느려질 수 있습니다.') ?>
|
<?php echo help('리스트에서 기본으로 정렬에 사용할 필드를 선택합니다. "기본"으로 사용하지 않으시는 경우 속도가 느려질 수 있습니다.') ?>
|
||||||
<select id="bo_sort_field" name="bo_sort_field">
|
<select id="bo_sort_field" name="bo_sort_field">
|
||||||
<?php foreach( get_board_sort_fields($board) as $v ){
|
<?php foreach( get_board_sort_fields($board) as $v ){
|
||||||
|
|
||||||
$option_value = $order_by_str = $v[0];
|
$option_value = $order_by_str = $v[0];
|
||||||
if( $v[0] === 'wr_num, wr_reply' ){
|
if( $v[0] === 'wr_num, wr_reply' ){
|
||||||
$selected = (! $board['bo_sort_field']) ? 'selected="selected"' : '';
|
$selected = (! $board['bo_sort_field']) ? 'selected="selected"' : '';
|
||||||
@@ -1423,10 +1420,9 @@ function use_captcha_check(){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var bo_include_head = jQuery.trim(jQuery("#bo_include_head").val()),
|
|
||||||
bo_include_tail = jQuery.trim(jQuery("#bo_include_tail").val());
|
|
||||||
|
|
||||||
function frm_check_file(){
|
function frm_check_file(){
|
||||||
|
var bo_include_head = "<?php echo $board['bo_include_head']; ?>";
|
||||||
|
var bo_include_tail = "<?php echo $board['bo_include_tail']; ?>";
|
||||||
var head = jQuery.trim(jQuery("#bo_include_head").val());
|
var head = jQuery.trim(jQuery("#bo_include_head").val());
|
||||||
var tail = jQuery.trim(jQuery("#bo_include_tail").val());
|
var tail = jQuery.trim(jQuery("#bo_include_tail").val());
|
||||||
|
|
||||||
@@ -1496,4 +1492,4 @@ function fboardform_submit(f)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
+17
-27
@@ -2,31 +2,22 @@
|
|||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($w == 'u') {
|
if ($w == 'u')
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$gr_id = isset($_POST['gr_id']) ? preg_replace('/[^a-z0-9_]/i', '', (string)$_POST['gr_id']) : '';
|
$gr_id = isset($_POST['gr_id']) ? preg_replace('/[^a-z0-9_]/i', '', $_POST['gr_id']) : '';
|
||||||
$bo_admin = isset($_POST['bo_admin']) ? preg_replace('/[^a-z0-9_\, \|\#]/i', '', $_POST['bo_admin']) : '';
|
$bo_admin = isset($_POST['bo_admin']) ? preg_replace('/[^a-z0-9_\, \|\#]/i', '', $_POST['bo_admin']) : '';
|
||||||
$bo_subject = isset($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'])) : '';
|
$bo_subject = isset($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'])) : '';
|
||||||
$bo_mobile_subject = isset($_POST['bo_mobile_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_mobile_subject'])) : '';
|
$bo_mobile_subject = isset($_POST['bo_mobile_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_mobile_subject'])) : '';
|
||||||
|
|
||||||
if (!$gr_id) {
|
if (!$gr_id) { alert('그룹 ID는 반드시 선택하세요.'); }
|
||||||
alert('그룹 ID는 반드시 선택하세요.');
|
if (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }
|
||||||
}
|
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); }
|
||||||
if (!$bo_table) {
|
if (!$bo_subject) { alert('게시판 제목을 입력하세요.'); }
|
||||||
alert('게시판 TABLE명은 반드시 입력하세요.');
|
|
||||||
}
|
|
||||||
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) {
|
|
||||||
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
|
|
||||||
}
|
|
||||||
if (!$bo_subject) {
|
|
||||||
alert('게시판 제목을 입력하세요.');
|
|
||||||
}
|
|
||||||
|
|
||||||
// 게시판명이 금지된 단어로 되어 있으면
|
// 게시판명이 금지된 단어로 되어 있으면
|
||||||
if ( $w == '' && in_array($bo_table, get_bo_table_banned_word()) ){
|
if ( $w == '' && in_array($bo_table, get_bo_table_banned_word()) ){
|
||||||
@@ -37,7 +28,7 @@ $bo_include_head = isset($_POST['bo_include_head']) ? preg_replace(array("#[\\\]
|
|||||||
$bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_tail'], 0, 255)) : '';
|
$bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_tail'], 0, 255)) : '';
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||||
if ($board && (isset($board['bo_include_head']) && $board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
if ($board && ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
||||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
@@ -93,7 +84,7 @@ $src_char = array('&', '=');
|
|||||||
$dst_char = array('&', '〓');
|
$dst_char = array('&', '〓');
|
||||||
$bo_category_list = isset($_POST['bo_category_list']) ? str_replace($src_char, $dst_char, $_POST['bo_category_list']) : '';
|
$bo_category_list = isset($_POST['bo_category_list']) ? str_replace($src_char, $dst_char, $_POST['bo_category_list']) : '';
|
||||||
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
||||||
$str_bo_category_list = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", (string)$bo_category_list);
|
$str_bo_category_list = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", $bo_category_list);
|
||||||
|
|
||||||
$bo_use_category = isset($_POST['bo_use_category']) ? (int) $_POST['bo_use_category'] : 0;
|
$bo_use_category = isset($_POST['bo_use_category']) ? (int) $_POST['bo_use_category'] : 0;
|
||||||
$bo_use_sideview = isset($_POST['bo_use_sideview']) ? (int) $_POST['bo_use_sideview'] : 0;
|
$bo_use_sideview = isset($_POST['bo_use_sideview']) ? (int) $_POST['bo_use_sideview'] : 0;
|
||||||
@@ -161,10 +152,6 @@ $bo_comment_min = isset($_POST['bo_comment_min']) ? (int) $_POST['bo_comment_min
|
|||||||
$bo_comment_max = isset($_POST['bo_comment_max']) ? (int) $_POST['bo_comment_max'] : 0;
|
$bo_comment_max = isset($_POST['bo_comment_max']) ? (int) $_POST['bo_comment_max'] : 0;
|
||||||
$bo_sort_field = isset($_POST['bo_sort_field']) ? clean_xss_tags($_POST['bo_sort_field'], 1, 1) : '';
|
$bo_sort_field = isset($_POST['bo_sort_field']) ? clean_xss_tags($_POST['bo_sort_field'], 1, 1) : '';
|
||||||
|
|
||||||
if (strpbrk($bo_skin.$bo_mobile_skin, "?%*:|\"<>") !== false) {
|
|
||||||
alert('스킨 디렉토리명 오류!');
|
|
||||||
}
|
|
||||||
|
|
||||||
$etcs = array();
|
$etcs = array();
|
||||||
|
|
||||||
for($i=1;$i<=10;$i++){
|
for($i=1;$i<=10;$i++){
|
||||||
@@ -273,10 +260,10 @@ $sql_common .= " bo_insert_content = '{$bo_insert_content}',
|
|||||||
bo_10 = '{$bo_10}' ";
|
bo_10 = '{$bo_10}' ";
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
|
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '{$bo_table}' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '{$bo_table}' ");
|
||||||
if ($row['cnt']) {
|
if ($row['cnt'])
|
||||||
alert($bo_table.' 은(는) 이미 존재하는 TABLE 입니다.');
|
alert($bo_table.' 은(는) 이미 존재하는 TABLE 입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " insert into {$g5['board_table']}
|
$sql = " insert into {$g5['board_table']}
|
||||||
set bo_table = '{$bo_table}',
|
set bo_table = '{$bo_table}',
|
||||||
@@ -297,8 +284,10 @@ if ($w == '') {
|
|||||||
$source = array('/__TABLE_NAME__/', '/;/');
|
$source = array('/__TABLE_NAME__/', '/;/');
|
||||||
$target = array($create_table, '');
|
$target = array($create_table, '');
|
||||||
$sql = preg_replace($source, $target, $sql);
|
$sql = preg_replace($source, $target, $sql);
|
||||||
sql_query($sql, false);
|
sql_query($sql, FALSE);
|
||||||
|
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
|
|
||||||
// 게시판의 글 수
|
// 게시판의 글 수
|
||||||
$sql = " select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
|
$sql = " select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
@@ -338,7 +327,8 @@ if ($w == '') {
|
|||||||
for ($i=0; $i<count($tmp_array); $i++) {
|
for ($i=0; $i<count($tmp_array); $i++) {
|
||||||
$tmp_wr_id = trim($tmp_array[$i]);
|
$tmp_wr_id = trim($tmp_array[$i]);
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_id = '{$tmp_wr_id}' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_id = '{$tmp_wr_id}' ");
|
||||||
if ($row['cnt']) {
|
if ($row['cnt'])
|
||||||
|
{
|
||||||
$bo_notice .= $lf . $tmp_wr_id;
|
$bo_notice .= $lf . $tmp_wr_id;
|
||||||
$lf = ",";
|
$lf = ",";
|
||||||
}
|
}
|
||||||
@@ -352,6 +342,7 @@ if ($w == '') {
|
|||||||
{$sql_common}
|
{$sql_common}
|
||||||
where bo_table = '{$bo_table}' ";
|
where bo_table = '{$bo_table}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -536,9 +527,8 @@ if ($all_fields) {
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
if (function_exists('get_admin_captcha_by')) {
|
if(function_exists('get_admin_captcha_by'))
|
||||||
get_admin_captcha_by('remove');
|
get_admin_captcha_by('remove');
|
||||||
}
|
|
||||||
|
|
||||||
run_event('admin_board_form_update', $bo_table, $w);
|
run_event('admin_board_form_update', $bo_table, $w);
|
||||||
|
|
||||||
|
|||||||
+13
-9
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -40,9 +40,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||||
@@ -51,7 +49,7 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = '게시판관리';
|
$g5['title'] = '게시판관리';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 15;
|
$colspan = 15;
|
||||||
?>
|
?>
|
||||||
@@ -62,6 +60,7 @@ $colspan = 15;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
|
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
|
||||||
|
|
||||||
<label for="sfl" class="sound_only">검색대상</label>
|
<label for="sfl" class="sound_only">검색대상</label>
|
||||||
<select name="sfl" id="sfl">
|
<select name="sfl" id="sfl">
|
||||||
<option value="bo_table"<?php echo get_selected($sfl, "bo_table", true); ?>>TABLE</option>
|
<option value="bo_table"<?php echo get_selected($sfl, "bo_table", true); ?>>TABLE</option>
|
||||||
@@ -71,8 +70,11 @@ $colspan = 15;
|
|||||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||||
<input type="text" name="stx" value="<?php echo $stx ?>" id="stx" required class="required frm_input">
|
<input type="text" name="stx" value="<?php echo $stx ?>" id="stx" required class="required frm_input">
|
||||||
<input type="submit" value="검색" class="btn_submit">
|
<input type="submit" value="검색" class="btn_submit">
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
|
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||||
@@ -186,9 +188,8 @@ $colspan = 15;
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -198,6 +199,8 @@ $colspan = 15;
|
|||||||
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value" class="btn_02 btn">
|
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value" class="btn_02 btn">
|
||||||
<?php if ($is_admin == 'super') { ?>
|
<?php if ($is_admin == 'super') { ?>
|
||||||
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="btn_02 btn">
|
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="btn_02 btn">
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ($is_admin == 'super') { ?>
|
||||||
<a href="./board_form.php" id="bo_add" class="btn_01 btn">게시판 추가</a>
|
<a href="./board_form.php" id="bo_add" class="btn_01 btn">게시판 추가</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
@@ -207,7 +210,8 @@ $colspan = 15;
|
|||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&page='); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'].'?'.$qstr.'&page='); ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardlist_submit(f) {
|
function fboardlist_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -231,4 +235,4 @@ $colspan = 15;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -16,9 +16,11 @@ if (!$post_count_chk) {
|
|||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
if ($act_button === "선택수정") {
|
if ($act_button === "선택수정") {
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
for ($i=0; $i<$post_count_chk; $i++) {
|
for ($i=0; $i<$post_count_chk; $i++) {
|
||||||
|
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|
||||||
@@ -41,10 +43,9 @@ if ($act_button === "선택수정") {
|
|||||||
and a.gr_id = b.gr_id
|
and a.gr_id = b.gr_id
|
||||||
and b.gr_admin = '{$member['mb_id']}' ";
|
and b.gr_admin = '{$member['mb_id']}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (!$row['cnt']) {
|
if (!$row['cnt'])
|
||||||
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$p_bo_subject = is_array($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'][$k])) : '';
|
$p_bo_subject = is_array($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'][$k])) : '';
|
||||||
|
|
||||||
@@ -65,17 +66,15 @@ if ($act_button === "선택수정") {
|
|||||||
|
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($act_button === "선택삭제") {
|
} else if ($act_button === "선택삭제") {
|
||||||
if ($is_admin != 'super') {
|
|
||||||
|
if ($is_admin != 'super')
|
||||||
alert('게시판 삭제는 최고관리자만 가능합니다.');
|
alert('게시판 삭제는 최고관리자만 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'd');
|
auth_check_menu($auth, $sub_menu, 'd');
|
||||||
|
|
||||||
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
|
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
|
||||||
/* 확인필요 22.05.27
|
|
||||||
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects,
|
|
||||||
or it should execute logic with side effects, but should not do both.*/
|
|
||||||
define('_BOARD_DELETE_', true);
|
define('_BOARD_DELETE_', true);
|
||||||
|
|
||||||
for ($i=0; $i<$post_count_chk; $i++) {
|
for ($i=0; $i<$post_count_chk; $i++) {
|
||||||
@@ -86,9 +85,11 @@ if ($act_button === "선택수정") {
|
|||||||
$tmp_bo_table = isset($_POST['board_table'][$k]) ? trim(clean_xss_tags($_POST['board_table'][$k], 1, 1)) : '';
|
$tmp_bo_table = isset($_POST['board_table'][$k]) ? trim(clean_xss_tags($_POST['board_table'][$k], 1, 1)) : '';
|
||||||
|
|
||||||
if( preg_match("/^[A-Za-z0-9_]+$/", $tmp_bo_table) ){
|
if( preg_match("/^[A-Za-z0-9_]+$/", $tmp_bo_table) ){
|
||||||
include './board_delete.inc.php';
|
include ('./board_delete.inc.php');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_event('admin_board_list_update', $act_button, $chk, $board_table, $qstr);
|
run_event('admin_board_list_update', $act_button, $chk, $board_table, $qstr);
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300100';
|
$sub_menu = '300100';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
if (!$board['bo_table']) {
|
if(!$board['bo_table'])
|
||||||
alert('존재하지 않는 게시판입니다.');
|
alert('존재하지 않는 게시판입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = $board['bo_subject'].' 게시판 썸네일 삭제';
|
$g5['title'] = $board['bo_subject'].' 게시판 썸네일 삭제';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_desc02 local_desc">
|
<div class="local_desc02 local_desc">
|
||||||
@@ -34,11 +33,10 @@ if (is_dir($dir)) {
|
|||||||
|
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
if (($cnt % 10) == 0) {
|
if ($cnt%10==0)
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
||||||
echo '<div class="local_desc01 local_desc"><p><strong>썸네일 '.$cnt.'건의 삭제 완료됐습니다.</strong></p></div>'.PHP_EOL;
|
echo '<div class="local_desc01 local_desc"><p><strong>썸네일 '.$cnt.'건의 삭제 완료됐습니다.</strong></p></div>'.PHP_EOL;
|
||||||
@@ -50,4 +48,4 @@ if (is_dir($dir)) {
|
|||||||
<div class="btn_confirm01 btn_confirm"><a href="./board_form.php?w=u&bo_table=<?php echo $bo_table; ?>&<?php echo $qstr; ?>">게시판 수정으로 돌아가기</a></div>
|
<div class="btn_confirm01 btn_confirm"><a href="./board_form.php?w=u&bo_table=<?php echo $bo_table; ?>&<?php echo $qstr; ?>">게시판 수정으로 돌아가기</a></div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+19
-32
@@ -1,12 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
if ($is_admin != 'super' && $w == '') {
|
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$html_title = '게시판그룹';
|
$html_title = '게시판그룹';
|
||||||
$gr_id_attr = '';
|
$gr_id_attr = '';
|
||||||
@@ -18,30 +16,26 @@ if (!isset($group['gr_id'])) {
|
|||||||
$group['gr_device'] = '';
|
$group['gr_device'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$gr = array('gr_use_access' => 0, 'gr_admin' => '');
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
$gr_id_attr = 'required';
|
$gr_id_attr = 'required';
|
||||||
$sound_only = '<strong class="sound_only"> 필수</strong>';
|
$sound_only = '<strong class="sound_only"> 필수</strong>';
|
||||||
|
$gr = array('gr_use_access' => 0, 'gr_admin'=>'');
|
||||||
$html_title .= ' 생성';
|
$html_title .= ' 생성';
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
$gr_id_attr = 'readonly';
|
$gr_id_attr = 'readonly';
|
||||||
$gr = sql_fetch(" select * from {$g5['group_table']} where gr_id = '$gr_id' ");
|
$gr = sql_fetch(" select * from {$g5['group_table']} where gr_id = '$gr_id' ");
|
||||||
$html_title .= ' 수정';
|
$html_title .= ' 수정';
|
||||||
} else {
|
|
||||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||||
|
|
||||||
if (!isset($group['gr_device'])) {
|
if (!isset($group['gr_device'])) {
|
||||||
sql_query(" ALTER TABLE `{$g5['group_table']}` ADD `gr_device` ENUM('both','pc','mobile') NOT NULL DEFAULT 'both' AFTER `gr_subject` ", false);
|
sql_query(" ALTER TABLE `{$g5['group_table']}` ADD `gr_device` ENUM('both','pc','mobile') NOT NULL DEFAULT 'both' AFTER `gr_subject` ", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 접근회원수
|
|
||||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$gr_id}' ";
|
|
||||||
$row1 = sql_fetch($sql1);
|
|
||||||
$group_member_count = $row1['cnt'];
|
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
$g5['title'] = $html_title;
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fboardgroup" id="fboardgroup" action="./boardgroup_form_update.php" onsubmit="return fboardgroup_check(this);" method="post" autocomplete="off">
|
<form name="fboardgroup" id="fboardgroup" action="./boardgroup_form_update.php" onsubmit="return fboardgroup_check(this);" method="post" autocomplete="off">
|
||||||
@@ -65,11 +59,10 @@ require_once './admin.head.php';
|
|||||||
<th scope="row"><label for="gr_id">그룹 ID<?php echo $sound_only ?></label></th>
|
<th scope="row"><label for="gr_id">그룹 ID<?php echo $sound_only ?></label></th>
|
||||||
<td><input type="text" name="gr_id" value="<?php echo $group['gr_id'] ?>" id="gr_id" <?php echo $gr_id_attr; ?> class="<?php echo $gr_id_attr; ?> alnum_ frm_input" maxlength="10">
|
<td><input type="text" name="gr_id" value="<?php echo $group['gr_id'] ?>" id="gr_id" <?php echo $gr_id_attr; ?> class="<?php echo $gr_id_attr; ?> alnum_ frm_input" maxlength="10">
|
||||||
<?php
|
<?php
|
||||||
if ($w == '') {
|
if ($w=='')
|
||||||
echo '영문자, 숫자, _ 만 가능 (공백없이)';
|
echo '영문자, 숫자, _ 만 가능 (공백없이)';
|
||||||
} else {
|
else
|
||||||
echo '<a href="'.G5_BBS_URL.'/group.php?gr_id='.$group['gr_id'].'" class="btn_frmline">게시판그룹 바로가기</a>';
|
echo '<a href="'.G5_BBS_URL.'/group.php?gr_id='.$group['gr_id'].'" class="btn_frmline">게시판그룹 바로가기</a>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -78,9 +71,8 @@ require_once './admin.head.php';
|
|||||||
<td>
|
<td>
|
||||||
<input type="text" name="gr_subject" value="<?php echo get_text($group['gr_subject']) ?>" id="gr_subject" required class="required frm_input" size="80">
|
<input type="text" name="gr_subject" value="<?php echo get_text($group['gr_subject']) ?>" id="gr_subject" required class="required frm_input" size="80">
|
||||||
<?php
|
<?php
|
||||||
if ($w == 'u') {
|
if ($w == 'u')
|
||||||
echo '<a href="./board_form.php?gr_id='.$gr_id.'" class="btn_frmline">게시판생성</a>';
|
echo '<a href="./board_form.php?gr_id='.$gr_id.'" class="btn_frmline">게시판생성</a>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -96,22 +88,13 @@ require_once './admin.head.php';
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">
|
<th scope="row"><?php if ($is_admin == 'super') { ?><label for="gr_admin"><?php } ?>그룹 관리자<?php if ($is_admin == 'super') { ?></label><?php } ?></th>
|
||||||
<?php
|
|
||||||
if ($is_admin == 'super') {
|
|
||||||
echo '<label for="gr_admin">그룹 관리자</label>';
|
|
||||||
} else {
|
|
||||||
echo '그룹 관리자';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</th>
|
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ($is_admin == 'super') {
|
if ($is_admin == 'super')
|
||||||
echo '<input type="text" id="gr_admin" name="gr_admin" class="frm_input" value="'.$gr['gr_admin'].'" maxlength="20">';
|
echo '<input type="text" id="gr_admin" name="gr_admin" class="frm_input" value="'.$gr['gr_admin'].'" maxlength="20">';
|
||||||
} else {
|
else
|
||||||
echo '<input type="hidden" id="gr_admin" name="gr_admin" value="'.$gr['gr_admin'].'">'.$gr['gr_admin'];
|
echo '<input type="hidden" id="gr_admin" name="gr_admin" value="'.$gr['gr_admin'].'">'.$gr['gr_admin'];
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -127,7 +110,10 @@ require_once './admin.head.php';
|
|||||||
<th scope="row">접근회원수</th>
|
<th scope="row">접근회원수</th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
echo '<a href="./boardgroupmember_list.php?gr_id=' . $gr_id . '">' . $group_member_count . '</a>';
|
// 접근회원수
|
||||||
|
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$gr_id}' ";
|
||||||
|
$row1 = sql_fetch($sql1);
|
||||||
|
echo '<a href="./boardgroupmember_list.php?gr_id='.$gr_id.'">'.$row1['cnt'].'</a>';
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -161,11 +147,12 @@ require_once './admin.head.php';
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardgroup_check(f) {
|
function fboardgroup_check(f)
|
||||||
|
{
|
||||||
f.action = './boardgroup_form_update.php';
|
f.action = './boardgroup_form_update.php';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($w == 'u') {
|
if ($w == 'u')
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
if ($is_admin != 'super' && $w == '') {
|
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$gr_id = isset($_POST['gr_id']) ? $_POST['gr_id'] : '';
|
$gr_id = isset($_POST['gr_id']) ? $_POST['gr_id'] : '';
|
||||||
|
|
||||||
if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $gr_id)) {
|
if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $gr_id))
|
||||||
alert('그룹 ID는 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (10자 이내)');
|
alert('그룹 ID는 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (10자 이내)');
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($gr_subject)) {
|
if (!$gr_subject) alert('그룹 제목을 입력하세요.');
|
||||||
alert('그룹 제목을 입력하세요.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$posts = array();
|
$posts = array();
|
||||||
|
|
||||||
@@ -68,28 +62,30 @@ $sql_common = " gr_subject = '{$posts['gr_subject']}',
|
|||||||
gr_8 = '{$posts['gr_8']}',
|
gr_8 = '{$posts['gr_8']}',
|
||||||
gr_9 = '{$posts['gr_9']}',
|
gr_9 = '{$posts['gr_9']}',
|
||||||
gr_10 = '{$posts['gr_10']}' ";
|
gr_10 = '{$posts['gr_10']}' ";
|
||||||
if (isset($_POST['gr_use_access'])) {
|
if (isset($_POST['gr_use_access']))
|
||||||
$sql_common .= ", gr_use_access = '{$_POST['gr_use_access']}' ";
|
$sql_common .= ", gr_use_access = '{$_POST['gr_use_access']}' ";
|
||||||
} else {
|
else
|
||||||
$sql_common .= ", gr_use_access = '' ";
|
$sql_common .= ", gr_use_access = '' ";
|
||||||
}
|
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
|
|
||||||
$sql = " select count(*) as cnt from {$g5['group_table']} where gr_id = '{$gr_id}' ";
|
$sql = " select count(*) as cnt from {$g5['group_table']} where gr_id = '{$gr_id}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt']) {
|
if ($row['cnt'])
|
||||||
alert('이미 존재하는 그룹 ID 입니다.');
|
alert('이미 존재하는 그룹 ID 입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " insert into {$g5['group_table']}
|
$sql = " insert into {$g5['group_table']}
|
||||||
set gr_id = '{$gr_id}',
|
set gr_id = '{$gr_id}',
|
||||||
{$sql_common} ";
|
{$sql_common} ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
} else if ($w == "u") {
|
} else if ($w == "u") {
|
||||||
|
|
||||||
$sql = " update {$g5['group_table']}
|
$sql = " update {$g5['group_table']}
|
||||||
set {$sql_common}
|
set {$sql_common}
|
||||||
where gr_id = '{$gr_id}' ";
|
where gr_id = '{$gr_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-15
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -16,9 +16,8 @@ if (!isset($group['gr_device'])) {
|
|||||||
$sql_common = " from {$g5['group_table']} ";
|
$sql_common = " from {$g5['group_table']} ";
|
||||||
|
|
||||||
$sql_search = " where (1) ";
|
$sql_search = " where (1) ";
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
$sql_search .= " and (gr_admin = '{$member['mb_id']}') ";
|
$sql_search .= " and (gr_admin = '{$member['mb_id']}') ";
|
||||||
}
|
|
||||||
|
|
||||||
if ($stx) {
|
if ($stx) {
|
||||||
$sql_search .= " and ( ";
|
$sql_search .= " and ( ";
|
||||||
@@ -34,11 +33,10 @@ if ($stx) {
|
|||||||
$sql_search .= " ) ";
|
$sql_search .= " ) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sst) {
|
if ($sst)
|
||||||
$sql_order = " order by {$sst} {$sod} ";
|
$sql_order = " order by {$sst} {$sod} ";
|
||||||
} else {
|
else
|
||||||
$sql_order = " order by gr_id asc ";
|
$sql_order = " order by gr_id asc ";
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
@@ -46,9 +44,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||||
@@ -57,7 +53,7 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">처음</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">처음</a>';
|
||||||
|
|
||||||
$g5['title'] = '게시판그룹설정';
|
$g5['title'] = '게시판그룹설정';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 10;
|
$colspan = 10;
|
||||||
?>
|
?>
|
||||||
@@ -110,7 +106,8 @@ $colspan = 10;
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
// 접근회원수
|
// 접근회원수
|
||||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
||||||
$row1 = sql_fetch($sql1);
|
$row1 = sql_fetch($sql1);
|
||||||
@@ -163,11 +160,11 @@ $colspan = 10;
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_mng td_mng_s"><?php echo $s_upd ?></td>
|
<td class="td_mng td_mng_s"><?php echo $s_upd ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -192,7 +189,8 @@ echo $pagelist;
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardgrouplist_submit(f) {
|
function fboardgrouplist_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -209,4 +207,4 @@ echo $pagelist;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
//print_r2($_POST); exit;
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -12,13 +14,13 @@ $post_chk = isset($_POST['chk']) ? (array) $_POST['chk'] : array();
|
|||||||
$post_group_id = isset($_POST['group_id']) ? (array) $_POST['group_id'] : array();
|
$post_group_id = isset($_POST['group_id']) ? (array) $_POST['group_id'] : array();
|
||||||
$act_button = isset($_POST['act_button']) ? $_POST['act_button'] : '';
|
$act_button = isset($_POST['act_button']) ? $_POST['act_button'] : '';
|
||||||
|
|
||||||
$chk_count = count($post_chk);
|
$count = count($post_chk);
|
||||||
|
|
||||||
if (!$chk_count) {
|
if(!$count)
|
||||||
alert($act_button.'할 게시판그룹을 1개이상 선택해 주세요.');
|
alert($act_button.'할 게시판그룹을 1개이상 선택해 주세요.');
|
||||||
}
|
|
||||||
|
|
||||||
for ($i = 0; $i < $chk_count; $i++) {
|
for ($i=0; $i<$count; $i++)
|
||||||
|
{
|
||||||
$k = isset($post_chk[$i]) ? (int) $post_chk[$i] : 0;
|
$k = isset($post_chk[$i]) ? (int) $post_chk[$i] : 0;
|
||||||
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $post_group_id[$k]);
|
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $post_group_id[$k]);
|
||||||
$gr_subject = isset($_POST['gr_subject'][$k]) ? strip_tags(clean_xss_attributes($_POST['gr_subject'][$k])) : '';
|
$gr_subject = isset($_POST['gr_subject'][$k]) ? strip_tags(clean_xss_attributes($_POST['gr_subject'][$k])) : '';
|
||||||
@@ -35,15 +37,13 @@ for ($i = 0; $i < $chk_count; $i++) {
|
|||||||
gr_use_access = '".$gr_use_access."',
|
gr_use_access = '".$gr_use_access."',
|
||||||
gr_order = '".$gr_order."'
|
gr_order = '".$gr_order."'
|
||||||
where gr_id = '{$gr_id}' ";
|
where gr_id = '{$gr_id}' ";
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
$sql .= " and gr_admin = '{$gr_admin}' ";
|
$sql .= " and gr_admin = '{$gr_admin}' ";
|
||||||
}
|
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
} else if($act_button == '선택삭제') {
|
} else if($act_button == '선택삭제') {
|
||||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where gr_id = '$gr_id' ");
|
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where gr_id = '$gr_id' ");
|
||||||
if ($row['cnt']) {
|
if ($row['cnt'])
|
||||||
alert("이 그룹에 속한 게시판이 존재하여 게시판 그룹을 삭제할 수 없습니다.\\n\\n이 그룹에 속한 게시판을 먼저 삭제하여 주십시오.", './board_list.php?sfl=gr_id&stx='.$gr_id);
|
alert("이 그룹에 속한 게시판이 존재하여 게시판 그룹을 삭제할 수 없습니다.\\n\\n이 그룹에 속한 게시판을 먼저 삭제하여 주십시오.", './board_list.php?sfl=gr_id&stx='.$gr_id);
|
||||||
}
|
|
||||||
|
|
||||||
// 그룹 삭제
|
// 그룹 삭제
|
||||||
sql_query(" delete from {$g5['group_table']} where gr_id = '$gr_id' ");
|
sql_query(" delete from {$g5['group_table']} where gr_id = '$gr_id' ");
|
||||||
@@ -53,6 +53,6 @@ for ($i = 0; $i < $chk_count; $i++) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
run_event('admin_boardgroup_list_update', $act_button, $post_chk, $post_group_id, $qstr);
|
run_event('admin_boardgroup_list_update', $act_button, $chk, $post_group_id, $qstr);
|
||||||
|
|
||||||
goto_url('./boardgroup_list.php?'.$qstr);
|
goto_url('./boardgroup_list.php?'.$qstr);
|
||||||
@@ -1,18 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
$token = isset($token) ? $token : '';
|
$token = isset($token) ? $token : '';
|
||||||
|
|
||||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||||
alert('존재하지 않는 회원입니다.');
|
alert('존재하지 않는 회원입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '접근가능그룹';
|
$g5['title'] = '접근가능그룹';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 4;
|
$colspan = 4;
|
||||||
?>
|
?>
|
||||||
@@ -20,14 +19,13 @@ $colspan = 4;
|
|||||||
<form name="fboardgroupmember_form" id="fboardgroupmember_form" action="./boardgroupmember_update.php" onsubmit="return boardgroupmember_form_check(this)" method="post">
|
<form name="fboardgroupmember_form" id="fboardgroupmember_form" action="./boardgroupmember_update.php" onsubmit="return boardgroupmember_form_check(this)" method="post">
|
||||||
<input type="hidden" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id">
|
<input type="hidden" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id">
|
||||||
<input type="hidden" name="token" value="" id="token">
|
<input type="hidden" name="token" value="" id="token">
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
<div class="local_ov01 local_ov">
|
||||||
<span class="btn_ov01"><span class="ov_txt"> 아이디</span><span class="ov_num"><?php echo $mb['mb_id'] ?></span></span>
|
<span class="btn_ov01"><span class="ov_txt"> 아이디</span><span class="ov_num"><?php echo $mb['mb_id'] ?></span></span>
|
||||||
<span class="btn_ov01"><span class="ov_txt"> 이름</span><span class="ov_num"><?php echo get_text($mb['mb_name']); ?></span></span>
|
<span class="btn_ov01"><span class="ov_txt"> 이름</span><span class="ov_num"><?php echo get_text($mb['mb_name']); ?></span></span>
|
||||||
<span class="btn_ov01"><span class="ov_txt"> 닉네임</span><span class="ov_num"><?php echo $mb['mb_nick'] ?></span></span>
|
<span class="btn_ov01"><span class="ov_txt"> 닉네임</span><span class="ov_num"><?php echo $mb['mb_nick'] ?></span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="local_cmd01 local_cmd">
|
<div class="local_cmd01 local_cmd">
|
||||||
|
|
||||||
<label for="gr_id">그룹지정</label>
|
<label for="gr_id">그룹지정</label>
|
||||||
<select name="gr_id" id="gr_id">
|
<select name="gr_id" id="gr_id">
|
||||||
<option value="">접근가능 그룹을 선택하세요.</option>
|
<option value="">접근가능 그룹을 선택하세요.</option>
|
||||||
@@ -35,9 +33,9 @@ $colspan = 4;
|
|||||||
$sql = " select *
|
$sql = " select *
|
||||||
from {$g5['group_table']}
|
from {$g5['group_table']}
|
||||||
where gr_use_access = 1 ";
|
where gr_use_access = 1 ";
|
||||||
if ($is_admin != 'super') {
|
//if ($is_admin == 'group') {
|
||||||
|
if ($is_admin != 'super')
|
||||||
$sql .= " and gr_admin = '{$member['mb_id']}' ";
|
$sql .= " and gr_admin = '{$member['mb_id']}' ";
|
||||||
}
|
|
||||||
$sql .= " order by gr_id ";
|
$sql .= " order by gr_id ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
@@ -78,9 +76,8 @@ $colspan = 4;
|
|||||||
$sql = " select * from {$g5['group_member_table']} a, {$g5['group_table']} b
|
$sql = " select * from {$g5['group_member_table']} a, {$g5['group_table']} b
|
||||||
where a.mb_id = '{$mb['mb_id']}'
|
where a.mb_id = '{$mb['mb_id']}'
|
||||||
and a.gr_id = b.gr_id ";
|
and a.gr_id = b.gr_id ";
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
|
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
|
||||||
}
|
|
||||||
$sql .= " order by a.gr_id desc ";
|
$sql .= " order by a.gr_id desc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
@@ -111,7 +108,8 @@ $colspan = 4;
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardgroupmember_submit(f) {
|
function fboardgroupmember_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -120,7 +118,8 @@ $colspan = 4;
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function boardgroupmember_form_check(f) {
|
function boardgroupmember_form_check(f)
|
||||||
|
{
|
||||||
if (f.gr_id.value == '') {
|
if (f.gr_id.value == '') {
|
||||||
alert('접근가능 그룹을 선택하세요.');
|
alert('접근가능 그룹을 선택하세요.');
|
||||||
return false;
|
return false;
|
||||||
@@ -131,4 +130,4 @@ $colspan = 4;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -11,8 +11,8 @@ if (!$gr['gr_id']) {
|
|||||||
|
|
||||||
$sql_common = " from {$g5['group_member_table']} a
|
$sql_common = " from {$g5['group_member_table']} a
|
||||||
left outer join {$g5['member_table']} b on (a.mb_id = b.mb_id) ";
|
left outer join {$g5['member_table']} b on (a.mb_id = b.mb_id) ";
|
||||||
$sql_search = " where gr_id = '{$gr_id}' ";
|
|
||||||
|
|
||||||
|
$sql_search = " where gr_id = '{$gr_id}' ";
|
||||||
// 회원아이디로 검색되지 않던 오류를 수정
|
// 회원아이디로 검색되지 않던 오류를 수정
|
||||||
if (isset($stx) && $stx) {
|
if (isset($stx) && $stx) {
|
||||||
$sql_search .= " and ( ";
|
$sql_search .= " and ( ";
|
||||||
@@ -39,9 +39,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
@@ -52,7 +50,7 @@ $sql = " select *
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$g5['title'] = $gr['gr_subject'].' 그룹 접근가능회원 (그룹아이디:'.$gr['gr_id'].')';
|
$g5['title'] = $gr['gr_subject'].' 그룹 접근가능회원 (그룹아이디:'.$gr['gr_id'].')';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 7;
|
$colspan = 7;
|
||||||
?>
|
?>
|
||||||
@@ -97,14 +95,14 @@ $colspan = 7;
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
// 접근가능한 그룹수
|
// 접근가능한 그룹수
|
||||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = "";
|
$group = "";
|
||||||
if ($row2['cnt']) {
|
if ($row2['cnt'])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||||
}
|
|
||||||
|
|
||||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||||
|
|
||||||
@@ -125,7 +123,8 @@ $colspan = 7;
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
|
{
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -138,12 +137,11 @@ $colspan = 7;
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&gr_id=$gr_id&page="); ?>
|
||||||
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&gr_id=$gr_id&page=");
|
|
||||||
?>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardgroupmember_submit(f) {
|
function fboardgroupmember_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -154,4 +152,4 @@ echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pa
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,19 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300200";
|
$sub_menu = "300200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
sql_query(" ALTER TABLE {$g5['group_member_table']} CHANGE `gm_id` `gm_id` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ", false);
|
sql_query(" ALTER TABLE {$g5['group_member_table']} CHANGE `gm_id` `gm_id` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ", false);
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '')
|
||||||
|
{
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
if (empty($mb['mb_id'])) {
|
if (!$mb['mb_id']) {
|
||||||
alert('존재하지 않는 회원입니다.');
|
alert('존재하지 않는 회원입니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$gr = get_group($gr_id);
|
$gr = get_group($gr_id);
|
||||||
if (empty($gr['gr_id'])) {
|
if (!$gr['gr_id']) {
|
||||||
alert('존재하지 않는 그룹입니다.');
|
alert('존재하지 않는 그룹입니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,7 +25,9 @@ if ($w == '') {
|
|||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt']) {
|
if ($row['cnt']) {
|
||||||
alert('이미 등록되어 있는 자료입니다.');
|
alert('이미 등록되어 있는 자료입니다.');
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$sql = " insert into {$g5['group_member_table']}
|
$sql = " insert into {$g5['group_member_table']}
|
||||||
@@ -33,13 +36,14 @@ if ($w == '') {
|
|||||||
gm_datetime = '".G5_TIME_YMDHIS."' ";
|
gm_datetime = '".G5_TIME_YMDHIS."' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
} elseif ($w == 'd' || $w == 'ld') {
|
}
|
||||||
|
else if ($w == 'd' || $w == 'ld')
|
||||||
|
{
|
||||||
auth_check_menu($auth, $sub_menu, 'd');
|
auth_check_menu($auth, $sub_menu, 'd');
|
||||||
|
|
||||||
$count = count($_POST['chk']);
|
$count = count($_POST['chk']);
|
||||||
if (!$count) {
|
if(!$count)
|
||||||
alert('삭제할 목록을 하나이상 선택해 주세요.');
|
alert('삭제할 목록을 하나이상 선택해 주세요.');
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
@@ -48,20 +52,18 @@ if ($w == '') {
|
|||||||
$sql = " select * from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
$sql = " select * from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
||||||
$gm = sql_fetch($sql);
|
$gm = sql_fetch($sql);
|
||||||
if (!$gm['gm_id']) {
|
if (!$gm['gm_id']) {
|
||||||
if ($count == 1) {
|
if($count == 1)
|
||||||
alert('존재하지 않는 자료입니다.');
|
alert('존재하지 않는 자료입니다.');
|
||||||
} else {
|
else
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " delete from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
$sql = " delete from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == 'ld') {
|
if ($w == 'ld')
|
||||||
goto_url('./boardgroupmember_list.php?gr_id='.$gr_id);
|
goto_url('./boardgroupmember_list.php?gr_id='.$gr_id);
|
||||||
} else {
|
else
|
||||||
goto_url('./boardgroupmember_form.php?mb_id='.$mb_id);
|
goto_url('./boardgroupmember_form.php?mb_id='.$mb_id);
|
||||||
}
|
|
||||||
+5
-7
@@ -1,17 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100510";
|
$sub_menu = "100510";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||||
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = 'Browscap 업데이트';
|
$g5['title'] = 'Browscap 업데이트';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="processing">
|
<div id="processing">
|
||||||
@@ -43,4 +41,4 @@ require_once './admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,22 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100520";
|
$sub_menu = "100520";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||||
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
|
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
|
||||||
if (!$rows) {
|
if(!$rows)
|
||||||
$rows = 100;
|
$rows = 100;
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '접속로그 변환';
|
$g5['title'] = '접속로그 변환';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="processing">
|
<div id="processing">
|
||||||
@@ -32,9 +29,7 @@ require_once './admin.head.php';
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "./browscap_converter.php",
|
url: "./browscap_converter.php",
|
||||||
data: {
|
data: { rows: "<?php echo $rows; ?>" },
|
||||||
rows: "<?php echo strval($rows); ?>"
|
|
||||||
},
|
|
||||||
async: true,
|
async: true,
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
@@ -47,4 +42,4 @@ require_once './admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+12
-19
@@ -1,17 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set('memory_limit', '-1');
|
ini_set('memory_limit', '-1');
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
// clean the output buffer
|
// clean the output buffer
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||||
die('사용할 수 없는 기능입니다.');
|
die('사용할 수 없는 기능입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if($is_admin != 'super')
|
||||||
die('최고관리자로 로그인 후 실행해 주세요.');
|
die('최고관리자로 로그인 후 실행해 주세요.');
|
||||||
}
|
|
||||||
|
|
||||||
// browscap cache 파일 체크
|
// browscap cache 파일 체크
|
||||||
if(!is_file(G5_DATA_PATH.'/cache/browscap_cache.php')) {
|
if(!is_file(G5_DATA_PATH.'/cache/browscap_cache.php')) {
|
||||||
@@ -20,20 +18,19 @@ if (!is_file(G5_DATA_PATH . '/cache/browscap_cache.php')) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once G5_PLUGIN_PATH . '/browscap/Browscap.php';
|
include_once(G5_PLUGIN_PATH.'/browscap/Browscap.php');
|
||||||
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH.'/cache');
|
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH.'/cache');
|
||||||
$browscap->doAutoUpdate = false;
|
$browscap->doAutoUpdate = false;
|
||||||
$browscap->cacheFilename = 'browscap_cache.php';
|
$browscap->cacheFilename = 'browscap_cache.php';
|
||||||
|
|
||||||
// 데이터 변환
|
// 데이터 변환
|
||||||
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
|
$rows = preg_replace('#[^0-9]#', '', $_GET['rows']);
|
||||||
if (!$rows) {
|
if(!$rows)
|
||||||
$rows = 100;
|
$rows = 100;
|
||||||
}
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['visit_table']} where vi_agent <> '' and ( vi_browser = '' or vi_os = '' or vi_device = '' ) ";
|
$sql_common = " from {$g5['visit_table']} where vi_agent <> '' and ( vi_browser = '' or vi_os = '' or vi_device = '' ) ";
|
||||||
$sql_order = " order by vi_id desc ";
|
$sql_order = " order by vi_id desc ";
|
||||||
$sql_limit = " limit 0, " . strval($rows) . " ";
|
$sql_limit = " limit 0, $rows ";
|
||||||
|
|
||||||
$sql = " select count(vi_id) as cnt $sql_common ";
|
$sql = " select count(vi_id) as cnt $sql_common ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
@@ -50,19 +47,16 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
|||||||
$info = $browscap->getBrowser($row['vi_agent']);
|
$info = $browscap->getBrowser($row['vi_agent']);
|
||||||
|
|
||||||
$brow = $row['vi_browser'];
|
$brow = $row['vi_browser'];
|
||||||
if (!$brow) {
|
if(!$brow)
|
||||||
$brow = $info->Comment;
|
$brow = $info->Comment;
|
||||||
}
|
|
||||||
|
|
||||||
$os = $row['vi_os'];
|
$os = $row['vi_os'];
|
||||||
if (!$os) {
|
if(!$os)
|
||||||
$os = $info->Platform;
|
$os = $info->Platform;
|
||||||
}
|
|
||||||
|
|
||||||
$device = $row['vi_device'];
|
$device = $row['vi_device'];
|
||||||
if (!$device) {
|
if(!$device)
|
||||||
$device = $info->Device_Type;
|
$device = $info->Device_Type;
|
||||||
}
|
|
||||||
|
|
||||||
$sql2 = " update {$g5['visit_table']}
|
$sql2 = " update {$g5['visit_table']}
|
||||||
set vi_browser = '$brow',
|
set vi_browser = '$brow',
|
||||||
@@ -74,8 +68,7 @@ for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
|||||||
$cnt++;
|
$cnt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($total_count - $cnt) == 0 || $total_count == 0) {
|
if(($total_count - $cnt) == 0 || $total_count == 0)
|
||||||
echo '<div class="check_processing"></div><p>변환완료</p>';
|
echo '<div class="check_processing"></div><p>변환완료</p>';
|
||||||
} else {
|
else
|
||||||
echo '<p>총 '.number_format($total_count).'건 중 '.number_format($cnt).'건 변환완료<br><br>접속로그를 추가로 변환하시려면 아래 업데이트 버튼을 클릭해 주세요.</p><button type="button" id="run_update">업데이트</button>';
|
echo '<p>총 '.number_format($total_count).'건 중 '.number_format($cnt).'건 변환완료<br><br>접속로그를 추가로 변환하시려면 아래 업데이트 버튼을 클릭해 주세요.</p><button type="button" id="run_update">업데이트</button>';
|
||||||
}
|
|
||||||
@@ -2,20 +2,18 @@
|
|||||||
ini_set('memory_limit', '-1');
|
ini_set('memory_limit', '-1');
|
||||||
|
|
||||||
$sub_menu = "100510";
|
$sub_menu = "100510";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
// clean the output buffer
|
// clean the output buffer
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||||
die('사용할 수 없는 기능입니다.');
|
die('사용할 수 없는 기능입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
die('최고관리자만 접근 가능합니다.');
|
die('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
require_once G5_PLUGIN_PATH . '/browscap/Browscap.php';
|
include_once(G5_PLUGIN_PATH.'/browscap/Browscap.php');
|
||||||
|
|
||||||
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH.'/cache');
|
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH.'/cache');
|
||||||
$browscap->updateMethod = 'cURL';
|
$browscap->updateMethod = 'cURL';
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100900';
|
$sub_menu = '100900';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
||||||
}
|
|
||||||
|
|
||||||
@require_once './safe_check.php';
|
@include_once('./safe_check.php');
|
||||||
if(function_exists('social_log_file_delete')){
|
if(function_exists('social_log_file_delete')){
|
||||||
social_log_file_delete();
|
social_log_file_delete();
|
||||||
}
|
}
|
||||||
@@ -14,7 +13,7 @@ if (function_exists('social_log_file_delete')) {
|
|||||||
run_event('adm_cache_file_delete_before');
|
run_event('adm_cache_file_delete_before');
|
||||||
|
|
||||||
$g5['title'] = '캐시파일 일괄삭제';
|
$g5['title'] = '캐시파일 일괄삭제';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_desc02 local_desc">
|
<div class="local_desc02 local_desc">
|
||||||
@@ -45,11 +44,10 @@ if (is_array($files)) {
|
|||||||
|
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
if ($cnt % 10 == 0) {
|
if ($cnt%10==0)
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
run_event('adm_cache_file_delete');
|
run_event('adm_cache_file_delete');
|
||||||
|
|
||||||
@@ -58,4 +56,4 @@ echo '<div class="local_desc01 local_desc"><p><strong>최신글 캐시파일 ' .
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
@@ -1,13 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100910';
|
$sub_menu = '100910';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '캡챠파일 일괄삭제';
|
$g5['title'] = '캡챠파일 일괄삭제';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_desc02 local_desc">
|
<div class="local_desc02 local_desc">
|
||||||
@@ -32,9 +31,7 @@ if (is_array($files)) {
|
|||||||
foreach ($files as $gcaptcha_file) {
|
foreach ($files as $gcaptcha_file) {
|
||||||
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
|
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
|
||||||
|
|
||||||
if ($modification_time > $before_time) {
|
if ($modification_time > $before_time) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$cnt++;
|
$cnt++;
|
||||||
unlink($gcaptcha_file);
|
unlink($gcaptcha_file);
|
||||||
@@ -42,15 +39,14 @@ if (is_array($files)) {
|
|||||||
|
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
if ($cnt % 10 == 0) {
|
if ($cnt%10==0)
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
echo '<li>완료됨</li></ul>'.PHP_EOL;
|
||||||
echo '<div class="local_desc01 local_desc"><p><strong>캡챠파일 '.$cnt.'건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
echo '<div class="local_desc01 local_desc"><p><strong>캡챠파일 '.$cnt.'건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>'.PHP_EOL;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+119
-295
@@ -1,96 +1,64 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100100";
|
$sub_menu = "100100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
// https://github.com/gnuboard/gnuboard5/issues/296 이슈처리
|
|
||||||
$sql = " select * from {$g5['config_table']} limit 1";
|
|
||||||
$config = sql_fetch($sql);
|
|
||||||
|
|
||||||
if (!isset($config['cf_add_script'])) {
|
if (!isset($config['cf_add_script'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_add_script` TEXT NOT NULL AFTER `cf_admin_email_name` ", true);
|
||||||
ADD `cf_add_script` TEXT NOT NULL AFTER `cf_admin_email_name` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['cf_mobile_new_skin'])) {
|
if (!isset($config['cf_mobile_new_skin'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_mobile_new_skin` VARCHAR(255) NOT NULL AFTER `cf_memo_send_point`,
|
ADD `cf_mobile_new_skin` VARCHAR(255) NOT NULL AFTER `cf_memo_send_point`,
|
||||||
ADD `cf_mobile_search_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_new_skin`,
|
ADD `cf_mobile_search_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_new_skin`,
|
||||||
ADD `cf_mobile_connect_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_search_skin`,
|
ADD `cf_mobile_connect_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_search_skin`,
|
||||||
ADD `cf_mobile_member_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_connect_skin` ",
|
ADD `cf_mobile_member_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_connect_skin` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($config['cf_gcaptcha_mp3'])) {
|
if (isset($config['cf_gcaptcha_mp3'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
CHANGE `cf_gcaptcha_mp3` `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' ", true);
|
||||||
CHANGE `cf_gcaptcha_mp3` `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
} else if (!isset($config['cf_captcha_mp3'])) {
|
} else if (!isset($config['cf_captcha_mp3'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ", true);
|
||||||
ADD `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_editor'])) {
|
if(!isset($config['cf_editor'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ", true);
|
||||||
ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_googl_shorturl_apikey'])) {
|
if(!isset($config['cf_googl_shorturl_apikey'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_googl_shorturl_apikey` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ", true);
|
||||||
ADD `cf_googl_shorturl_apikey` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_mobile_pages'])) {
|
if(!isset($config['cf_mobile_pages'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_mobile_pages` INT(11) NOT NULL DEFAULT '0' AFTER `cf_write_pages` ", true);
|
||||||
ADD `cf_mobile_pages` INT(11) NOT NULL DEFAULT '0' AFTER `cf_write_pages` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
sql_query(" UPDATE `{$g5['config_table']}` SET cf_mobile_pages = '5' ", true);
|
sql_query(" UPDATE `{$g5['config_table']}` SET cf_mobile_pages = '5' ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_facebook_appid'])) {
|
if(!isset($config['cf_facebook_appid'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_facebook_appid` VARCHAR(255) NOT NULL AFTER `cf_googl_shorturl_apikey`,
|
ADD `cf_facebook_appid` VARCHAR(255) NOT NULL AFTER `cf_googl_shorturl_apikey`,
|
||||||
ADD `cf_facebook_secret` VARCHAR(255) NOT NULL AFTER `cf_facebook_appid`,
|
ADD `cf_facebook_secret` VARCHAR(255) NOT NULL AFTER `cf_facebook_appid`,
|
||||||
ADD `cf_twitter_key` VARCHAR(255) NOT NULL AFTER `cf_facebook_secret`,
|
ADD `cf_twitter_key` VARCHAR(255) NOT NULL AFTER `cf_facebook_secret`,
|
||||||
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key` ",
|
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// uniqid 테이블이 없을 경우 생성
|
// uniqid 테이블이 없을 경우 생성
|
||||||
if(!sql_query(" DESC {$g5['uniqid_table']} ", false)) {
|
if(!sql_query(" DESC {$g5['uniqid_table']} ", false)) {
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['uniqid_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['uniqid_table']}` (
|
|
||||||
`uq_id` bigint(20) unsigned NOT NULL,
|
`uq_id` bigint(20) unsigned NOT NULL,
|
||||||
`uq_ip` varchar(255) NOT NULL,
|
`uq_ip` varchar(255) NOT NULL,
|
||||||
PRIMARY KEY (`uq_id`)
|
PRIMARY KEY (`uq_id`)
|
||||||
) ",
|
) ", false);
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!sql_query(" SELECT uq_ip from {$g5['uniqid_table']} limit 1 ", false)) {
|
if(!sql_query(" SELECT uq_ip from {$g5['uniqid_table']} limit 1 ", false)) {
|
||||||
@@ -99,8 +67,7 @@ if (!sql_query(" SELECT uq_ip from {$g5['uniqid_table']} limit 1 ", false)) {
|
|||||||
|
|
||||||
// 임시저장 테이블이 없을 경우 생성
|
// 임시저장 테이블이 없을 경우 생성
|
||||||
if(!sql_query(" DESC {$g5['autosave_table']} ", false)) {
|
if(!sql_query(" DESC {$g5['autosave_table']} ", false)) {
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['autosave_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['autosave_table']}` (
|
|
||||||
`as_id` int(11) NOT NULL AUTO_INCREMENT,
|
`as_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`mb_id` varchar(20) NOT NULL,
|
`mb_id` varchar(20) NOT NULL,
|
||||||
`as_uid` bigint(20) unsigned NOT NULL,
|
`as_uid` bigint(20) unsigned NOT NULL,
|
||||||
@@ -110,47 +77,32 @@ if (!sql_query(" DESC {$g5['autosave_table']} ", false)) {
|
|||||||
PRIMARY KEY (`as_id`),
|
PRIMARY KEY (`as_id`),
|
||||||
UNIQUE KEY `as_uid` (`as_uid`),
|
UNIQUE KEY `as_uid` (`as_uid`),
|
||||||
KEY `mb_id` (`mb_id`)
|
KEY `mb_id` (`mb_id`)
|
||||||
) ",
|
) ", false);
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_admin_email'])) {
|
if(!isset($config['cf_admin_email'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_admin_email` VARCHAR(255) NOT NULL AFTER `cf_admin` ", true);
|
||||||
ADD `cf_admin_email` VARCHAR(255) NOT NULL AFTER `cf_admin` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_admin_email_name'])) {
|
if(!isset($config['cf_admin_email_name'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_admin_email_name` VARCHAR(255) NOT NULL AFTER `cf_admin_email` ", true);
|
||||||
ADD `cf_admin_email_name` VARCHAR(255) NOT NULL AFTER `cf_admin_email` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_cert_use'])) {
|
if(!isset($config['cf_cert_use'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_editor`,
|
ADD `cf_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_editor`,
|
||||||
ADD `cf_cert_ipin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_use`,
|
ADD `cf_cert_ipin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_use`,
|
||||||
ADD `cf_cert_hp` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_ipin`,
|
ADD `cf_cert_hp` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_ipin`,
|
||||||
ADD `cf_cert_kcb_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`,
|
ADD `cf_cert_kcb_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`,
|
||||||
ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd`,
|
ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd`,
|
||||||
ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ",
|
ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ", true);
|
||||||
true
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
);
|
CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ", true);
|
||||||
sql_query(
|
|
||||||
" ALTER TABLE `{$g5['member_table']}`
|
|
||||||
CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
sql_query(" update {$g5['member_table']} set mb_certify = 'hp' where mb_certify = '1' ");
|
sql_query(" update {$g5['member_table']} set mb_certify = 'hp' where mb_certify = '1' ");
|
||||||
sql_query(" update {$g5['member_table']} set mb_certify = '' where mb_certify = '0' ");
|
sql_query(" update {$g5['member_table']} set mb_certify = '' where mb_certify = '0' ");
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['cert_history_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['cert_history_table']}` (
|
|
||||||
`cr_id` int(11) NOT NULL auto_increment,
|
`cr_id` int(11) NOT NULL auto_increment,
|
||||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||||
`cr_company` varchar(255) NOT NULL DEFAULT '',
|
`cr_company` varchar(255) NOT NULL DEFAULT '',
|
||||||
@@ -160,131 +112,89 @@ if (!isset($config['cf_cert_use'])) {
|
|||||||
`cr_time` time NOT NULL DEFAULT '00:00:00',
|
`cr_time` time NOT NULL DEFAULT '00:00:00',
|
||||||
PRIMARY KEY (`cr_id`),
|
PRIMARY KEY (`cr_id`),
|
||||||
KEY `mb_id` (`mb_id`)
|
KEY `mb_id` (`mb_id`)
|
||||||
)",
|
)", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_analytics'])) {
|
if(!isset($config['cf_analytics'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_analytics` TEXT NOT NULL AFTER `cf_intercept_ip` ", true);
|
||||||
ADD `cf_analytics` TEXT NOT NULL AFTER `cf_intercept_ip` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_add_meta'])) {
|
if(!isset($config['cf_add_meta'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_add_meta` TEXT NOT NULL AFTER `cf_analytics` ", true);
|
||||||
ADD `cf_add_meta` TEXT NOT NULL AFTER `cf_analytics` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['cf_syndi_token'])) {
|
if (!isset($config['cf_syndi_token'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_syndi_token` VARCHAR(255) NOT NULL AFTER `cf_add_meta` ", true);
|
||||||
ADD `cf_syndi_token` VARCHAR(255) NOT NULL AFTER `cf_add_meta` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['cf_syndi_except'])) {
|
if (!isset($config['cf_syndi_except'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_syndi_except` TEXT NOT NULL AFTER `cf_syndi_token` ", true);
|
||||||
ADD `cf_syndi_except` TEXT NOT NULL AFTER `cf_syndi_token` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_sms_use'])) {
|
if(!isset($config['cf_sms_use'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_sms_use` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_limit`,
|
ADD `cf_sms_use` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_limit`,
|
||||||
ADD `cf_icode_id` varchar(255) NOT NULL DEFAULT '' AFTER `cf_sms_use`,
|
ADD `cf_icode_id` varchar(255) NOT NULL DEFAULT '' AFTER `cf_sms_use`,
|
||||||
ADD `cf_icode_pw` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_id`,
|
ADD `cf_icode_pw` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_id`,
|
||||||
ADD `cf_icode_server_ip` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_pw`,
|
ADD `cf_icode_server_ip` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_pw`,
|
||||||
ADD `cf_icode_server_port` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_server_ip` ",
|
ADD `cf_icode_server_port` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_server_ip` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_mobile_page_rows'])) {
|
if(!isset($config['cf_mobile_page_rows'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_mobile_page_rows` int(11) NOT NULL DEFAULT '0' AFTER `cf_page_rows` ", true);
|
||||||
ADD `cf_mobile_page_rows` int(11) NOT NULL DEFAULT '0' AFTER `cf_page_rows` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_cert_req'])) {
|
if(!isset($config['cf_cert_req'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_cert_req` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_cert_limit` ", true);
|
||||||
ADD `cf_cert_req` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_cert_limit` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_faq_skin'])) {
|
if(!isset($config['cf_faq_skin'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_connect_skin`,
|
ADD `cf_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_connect_skin`,
|
||||||
ADD `cf_mobile_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_mobile_connect_skin` ",
|
ADD `cf_mobile_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_mobile_connect_skin` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// LG유플러스 본인확인 필드 추가
|
// LG유플러스 본인확인 필드 추가
|
||||||
if(!isset($config['cf_lg_mid'])) {
|
if(!isset($config['cf_lg_mid'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_lg_mid` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcp_cd`,
|
ADD `cf_lg_mid` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcp_cd`,
|
||||||
ADD `cf_lg_mert_key` varchar(255) NOT NULL DEFAULT '' AFTER `cf_lg_mid` ",
|
ADD `cf_lg_mert_key` varchar(255) NOT NULL DEFAULT '' AFTER `cf_lg_mid` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($config['cf_optimize_date'])) {
|
if(!isset($config['cf_optimize_date'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_optimize_date` date NOT NULL default '0000-00-00' AFTER `cf_popular_del` ", true);
|
||||||
ADD `cf_optimize_date` date NOT NULL default '0000-00-00' AFTER `cf_popular_del` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 카카오톡링크 api 키
|
// 카카오톡링크 api 키
|
||||||
if(!isset($config['cf_kakao_js_apikey'])) {
|
if(!isset($config['cf_kakao_js_apikey'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_kakao_js_apikey` varchar(255) NOT NULL DEFAULT '' AFTER `cf_googl_shorturl_apikey` ", true);
|
||||||
ADD `cf_kakao_js_apikey` varchar(255) NOT NULL DEFAULT '' AFTER `cf_googl_shorturl_apikey` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SMS 전송유형 필드 추가
|
// SMS 전송유형 필드 추가
|
||||||
if(!isset($config['cf_sms_type'])) {
|
if(!isset($config['cf_sms_type'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_sms_type` varchar(10) NOT NULL DEFAULT '' AFTER `cf_sms_use` ", true);
|
||||||
ADD `cf_sms_type` varchar(10) NOT NULL DEFAULT '' AFTER `cf_sms_use` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 접속자 정보 필드 추가
|
// 접속자 정보 필드 추가
|
||||||
if(!sql_query(" select vi_browser from {$g5['visit_table']} limit 1 ")) {
|
if(!sql_query(" select vi_browser from {$g5['visit_table']} limit 1 ")) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['visit_table']}`
|
||||||
" ALTER TABLE `{$g5['visit_table']}`
|
|
||||||
ADD `vi_browser` varchar(255) NOT NULL DEFAULT '' AFTER `vi_agent`,
|
ADD `vi_browser` varchar(255) NOT NULL DEFAULT '' AFTER `vi_agent`,
|
||||||
ADD `vi_os` varchar(255) NOT NULL DEFAULT '' AFTER `vi_browser`,
|
ADD `vi_os` varchar(255) NOT NULL DEFAULT '' AFTER `vi_browser`,
|
||||||
ADD `vi_device` varchar(255) NOT NULL DEFAULT '' AFTER `vi_os` ",
|
ADD `vi_device` varchar(255) NOT NULL DEFAULT '' AFTER `vi_os` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//소셜 로그인 관련 필드 및 구글 리챕챠 필드 추가
|
//소셜 로그인 관련 필드 및 구글 리챕챠 필드 추가
|
||||||
if(!isset($config['cf_social_login_use'])) {
|
if(!isset($config['cf_social_login_use'])) {
|
||||||
sql_query(
|
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||||
"ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_social_login_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_googl_shorturl_apikey`,
|
ADD `cf_social_login_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_googl_shorturl_apikey`,
|
||||||
ADD `cf_google_clientid` varchar(100) NOT NULL DEFAULT '' AFTER `cf_twitter_secret`,
|
ADD `cf_google_clientid` varchar(100) NOT NULL DEFAULT '' AFTER `cf_twitter_secret`,
|
||||||
ADD `cf_google_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_google_clientid`,
|
ADD `cf_google_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_google_clientid`,
|
||||||
@@ -297,31 +207,23 @@ if (!isset($config['cf_social_login_use'])) {
|
|||||||
ADD `cf_captcha` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_js_apikey`,
|
ADD `cf_captcha` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_js_apikey`,
|
||||||
ADD `cf_recaptcha_site_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_captcha`,
|
ADD `cf_recaptcha_site_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_captcha`,
|
||||||
ADD `cf_recaptcha_secret_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_recaptcha_site_key`
|
ADD `cf_recaptcha_secret_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_recaptcha_site_key`
|
||||||
",
|
", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//소셜 로그인 관련 필드 카카오 클라이언트 시크릿 추가
|
//소셜 로그인 관련 필드 카카오 클라이언트 시크릿 추가
|
||||||
if(!isset($config['cf_kakao_client_secret'])) {
|
if(!isset($config['cf_kakao_client_secret'])) {
|
||||||
sql_query(
|
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||||
"ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_kakao_client_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_rest_key`
|
ADD `cf_kakao_client_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_rest_key`
|
||||||
",
|
", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 회원 이미지 관련 필드 추가
|
// 회원 이미지 관련 필드 추가
|
||||||
if(!isset($config['cf_member_img_size'])) {
|
if(!isset($config['cf_member_img_size'])) {
|
||||||
sql_query(
|
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||||
"ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD `cf_member_img_size` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_icon_height`,
|
ADD `cf_member_img_size` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_icon_height`,
|
||||||
ADD `cf_member_img_width` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_size`,
|
ADD `cf_member_img_width` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_size`,
|
||||||
ADD `cf_member_img_height` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_width`
|
ADD `cf_member_img_height` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_width`
|
||||||
",
|
", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
$sql = " update {$g5['config_table']} set cf_member_img_size = 50000, cf_member_img_width = 60, cf_member_img_height = 60 ";
|
$sql = " update {$g5['config_table']} set cf_member_img_size = 50000, cf_member_img_width = 60, cf_member_img_height = 60 ";
|
||||||
sql_query($sql, false);
|
sql_query($sql, false);
|
||||||
@@ -333,8 +235,7 @@ if (!isset($config['cf_member_img_size'])) {
|
|||||||
|
|
||||||
// 소셜 로그인 관리 테이블 없을 경우 생성
|
// 소셜 로그인 관리 테이블 없을 경우 생성
|
||||||
if(!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
if(!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['social_profile_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['social_profile_table']}` (
|
|
||||||
`mp_no` int(11) NOT NULL AUTO_INCREMENT,
|
`mp_no` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||||
`provider` varchar(50) NOT NULL DEFAULT '',
|
`provider` varchar(50) NOT NULL DEFAULT '',
|
||||||
@@ -349,36 +250,25 @@ if (!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
|||||||
UNIQUE KEY `mp_no` (`mp_no`),
|
UNIQUE KEY `mp_no` (`mp_no`),
|
||||||
KEY `mb_id` (`mb_id`),
|
KEY `mb_id` (`mb_id`),
|
||||||
KEY `provider` (`provider`)
|
KEY `provider` (`provider`)
|
||||||
) ",
|
) ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 짧은 URL 주소를 사용 여부 필드 추가
|
// 짧은 URL 주소를 사용 여부 필드 추가
|
||||||
if (!isset($config['cf_bbs_rewrite'])) {
|
if (!isset($config['cf_bbs_rewrite'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
" ALTER TABLE `{$g5['config_table']}`
|
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ", true);
|
||||||
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 읽지 않은 메모 수 칼럼 추가
|
// 읽지 않은 메모 수 칼럼 추가
|
||||||
if(!isset($member['mb_memo_cnt'])) {
|
if(!isset($member['mb_memo_cnt'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
" ALTER TABLE `{$g5['member_table']}`
|
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`", true);
|
||||||
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 스크랩 읽은 수 추가
|
// 스크랩 읽은 수 추가
|
||||||
if(!isset($member['mb_scrap_cnt'])) {
|
if(!isset($member['mb_scrap_cnt'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
" ALTER TABLE `{$g5['member_table']}`
|
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`", true);
|
||||||
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 아이코드 토큰키 추가
|
// 아이코드 토큰키 추가
|
||||||
@@ -387,37 +277,12 @@ if (!isset($config['cf_icode_token_key'])) {
|
|||||||
ADD COLUMN `cf_icode_token_key` VARCHAR(100) NOT NULL DEFAULT '' AFTER `cf_icode_server_port`; ";
|
ADD COLUMN `cf_icode_token_key` VARCHAR(100) NOT NULL DEFAULT '' AFTER `cf_icode_server_port`; ";
|
||||||
sql_query($sql, false);
|
sql_query($sql, false);
|
||||||
}
|
}
|
||||||
// 아이디/비밀번호 찾기에 본인확인 사용 여부 필드 추가
|
|
||||||
if (!isset($config['cf_cert_find'])) {
|
if(!$config['cf_faq_skin']) $config['cf_faq_skin'] = "basic";
|
||||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
if(!$config['cf_mobile_faq_skin']) $config['cf_mobile_faq_skin'] = "basic";
|
||||||
ADD COLUMN `cf_cert_find` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_cert_use`; ";
|
|
||||||
sql_query($sql, false);
|
|
||||||
}
|
|
||||||
// 간편인증 필드 추가
|
|
||||||
if (!isset($config['cf_cert_simple'])) {
|
|
||||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD COLUMN `cf_cert_simple` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`; ";
|
|
||||||
sql_query($sql, false);
|
|
||||||
}
|
|
||||||
if (!isset($config['cf_cert_kg_cd'])) {
|
|
||||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD COLUMN `cf_cert_kg_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_simple`; ";
|
|
||||||
sql_query($sql, false);
|
|
||||||
}
|
|
||||||
if (!isset($config['cf_cert_kg_mid'])) {
|
|
||||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD COLUMN `cf_cert_kg_mid` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kg_cd`; ";
|
|
||||||
sql_query($sql, false);
|
|
||||||
}
|
|
||||||
if (!$config['cf_faq_skin']) {
|
|
||||||
$config['cf_faq_skin'] = "basic";
|
|
||||||
}
|
|
||||||
if (!$config['cf_mobile_faq_skin']) {
|
|
||||||
$config['cf_mobile_faq_skin'] = "basic";
|
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '환경설정';
|
$g5['title'] = '환경설정';
|
||||||
require_once './admin.head.php';
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
$pg_anchor = '<ul class="anchor">
|
$pg_anchor = '<ul class="anchor">
|
||||||
<li><a href="#anc_cf_basic">기본환경</a></li>
|
<li><a href="#anc_cf_basic">기본환경</a></li>
|
||||||
@@ -436,12 +301,8 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
</ul>';
|
</ul>';
|
||||||
|
|
||||||
|
|
||||||
if (!$config['cf_icode_server_ip']) {
|
if (!$config['cf_icode_server_ip']) $config['cf_icode_server_ip'] = '211.172.232.124';
|
||||||
$config['cf_icode_server_ip'] = '211.172.232.124';
|
if (!$config['cf_icode_server_port']) $config['cf_icode_server_port'] = '7295';
|
||||||
}
|
|
||||||
if (!$config['cf_icode_server_port']) {
|
|
||||||
$config['cf_icode_server_port'] = '7295';
|
|
||||||
}
|
|
||||||
|
|
||||||
$userinfo = array('payment'=>'');
|
$userinfo = array('payment'=>'');
|
||||||
if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||||
@@ -479,9 +340,6 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?php echo help('관리자가 보내고 받는 용도로 사용하는 메일 주소를 입력합니다. (회원가입, 인증메일, 테스트, 회원메일발송 등에서 사용)') ?>
|
<?php echo help('관리자가 보내고 받는 용도로 사용하는 메일 주소를 입력합니다. (회원가입, 인증메일, 테스트, 회원메일발송 등에서 사용)') ?>
|
||||||
<input type="text" name="cf_admin_email" value="<?php echo get_sanitize_input($config['cf_admin_email']); ?>" id="cf_admin_email" required class="required email frm_input" size="40">
|
<input type="text" name="cf_admin_email" value="<?php echo get_sanitize_input($config['cf_admin_email']); ?>" id="cf_admin_email" required class="required email frm_input" size="40">
|
||||||
<?php if (function_exists('domain_mail_host') && $config['cf_admin_email'] && stripos($config['cf_admin_email'], domain_mail_host()) === false) { ?>
|
|
||||||
<?php echo help('외부메일설정이나 기타 설정을 하지 않았다면, 도메인과 다른 헤더로 여겨 스팸이나 차단될 가능성이 있습니다.<br>name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.') ?>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -621,9 +479,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<?php
|
<?php
|
||||||
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
||||||
for ($i=0; $i<count($arr); $i++) {
|
for ($i=0; $i<count($arr); $i++) {
|
||||||
if ($i == 0) {
|
if ($i == 0) echo "<option value=\"\">사용안함</option>";
|
||||||
echo "<option value=\"\">사용안함</option>";
|
|
||||||
}
|
|
||||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -649,9 +505,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<?php
|
<?php
|
||||||
$arr = get_skin_dir('mp3', str_replace(array('recaptcha_inv', 'recaptcha'), 'kcaptcha', G5_CAPTCHA_PATH));
|
$arr = get_skin_dir('mp3', str_replace(array('recaptcha_inv', 'recaptcha'), 'kcaptcha', G5_CAPTCHA_PATH));
|
||||||
for ($i=0; $i<count($arr); $i++) {
|
for ($i=0; $i<count($arr); $i++) {
|
||||||
if ($i == 0) {
|
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||||
echo "<option value=\"\">선택</option>";
|
|
||||||
}
|
|
||||||
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_captcha_mp3'], $arr[$i]).">".$arr[$i]."</option>\n";
|
echo "<option value=\"".$arr[$i]."\"".get_selected($config['cf_captcha_mp3'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -700,23 +554,21 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
|
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리틱스<br>관리자 페이지에서는 이 코드를 사용하지 않습니다.'); ?>
|
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리틱스'); ?>
|
||||||
<textarea name="cf_analytics" id="cf_analytics"><?php echo get_text($config['cf_analytics']); ?></textarea>
|
<textarea name="cf_analytics" id="cf_analytics"><?php echo get_text($config['cf_analytics']); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="cf_add_meta">추가 메타태그</label></th>
|
<th scope="row"><label for="cf_add_meta">추가 메타태그</label></th>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?php echo help('추가로 사용하실 meta 태그를 입력합니다.<br>관리자 페이지에서는 이 코드를 사용하지 않습니다.'); ?>
|
<?php echo help('추가로 사용하실 meta 태그를 입력합니다.'); ?>
|
||||||
<textarea name="cf_add_meta" id="cf_add_meta"><?php echo get_text($config['cf_add_meta']); ?></textarea>
|
<textarea name="cf_add_meta" id="cf_add_meta"><?php echo get_text($config['cf_add_meta']); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="cf_syndi_token">네이버 신디케이션 연동키</label></th>
|
<th scope="row"><label for="cf_syndi_token">네이버 신디케이션 연동키</label></th>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?php if (!function_exists('curl_init')) {
|
<?php if (!function_exists('curl_init')) echo help('<b>경고) curl이 지원되지 않아 네이버 신디케이션을 사용할수 없습니다.</b>'); ?>
|
||||||
echo help('<b>경고) curl이 지원되지 않아 네이버 신디케이션을 사용할수 없습니다.</b>');
|
|
||||||
} ?>
|
|
||||||
<?php echo help('네이버 신디케이션 연동키(token)을 입력하면 네이버 신디케이션을 사용할 수 있습니다.<br>연동키는 <a href="http://webmastertool.naver.com/" target="_blank"><u>네이버 웹마스터도구</u></a> -> 네이버 신디케이션에서 발급할 수 있습니다.') ?>
|
<?php echo help('네이버 신디케이션 연동키(token)을 입력하면 네이버 신디케이션을 사용할 수 있습니다.<br>연동키는 <a href="http://webmastertool.naver.com/" target="_blank"><u>네이버 웹마스터도구</u></a> -> 네이버 신디케이션에서 발급할 수 있습니다.') ?>
|
||||||
<input type="text" name="cf_syndi_token" value="<?php echo isset($config['cf_syndi_token']) ? get_sanitize_input($config['cf_syndi_token']) : ''; ?>" id="cf_syndi_token" class="frm_input" size="70">
|
<input type="text" name="cf_syndi_token" value="<?php echo isset($config['cf_syndi_token']) ? get_sanitize_input($config['cf_syndi_token']) : ''; ?>" id="cf_syndi_token" class="frm_input" size="70">
|
||||||
</td>
|
</td>
|
||||||
@@ -987,19 +839,11 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_find">회원정보찾기</label></th>
|
<th scope="row" class="cf_cert_service"><label for="cf_cert_ipin">아이핀 본인확인</label></th>
|
||||||
<td class="cf_cert_service">
|
<td class="cf_cert_service">
|
||||||
<?php echo help('휴대폰/아이핀 본인확인을 이용하시다가 간편인증을 이용하시는 경우, 기존 회원은 아이디/비밀번호 찾기에 사용할 수 없을 수 있습니다.') ?>
|
<select name="cf_cert_ipin" id="cf_cert_ipin">
|
||||||
<input type="checkbox" name="cf_cert_find" id="cf_cert_find" value="1" <?php if (isset($config['cf_cert_find']) && $config['cf_cert_find'] == 1) { echo "checked"; } ?>><label for="cf_cert_find"> 아이디/비밀번호 찾기에 사용하기</label>
|
<?php echo option_selected("", $config['cf_cert_ipin'], "사용안함"); ?>
|
||||||
</td>
|
<?php echo option_selected("kcb", $config['cf_cert_ipin'], "코리아크레딧뷰로(KCB) 아이핀"); ?>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_simple">통합인증(간편인증)</label></th>
|
|
||||||
<td class="cf_cert_service">
|
|
||||||
<?php echo help('KG이니시스의 통합인증(간편인증+전자서명) 서비스에서 전자서명을 제외한 간편인증 서비스 입니다. <a href="https://www.inicis.com/all-auth-service" target="_blank"><u>KG이니시스 통합인증 안내</u></a>') ?>
|
|
||||||
<select name="cf_cert_simple" id="cf_cert_simple">
|
|
||||||
<?php echo option_selected("", $config['cf_cert_simple'], "사용안함"); ?>
|
|
||||||
<?php echo option_selected("inicis", $config['cf_cert_simple'], "KG이니시스 통합인증(간편인증)"); ?>
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -1010,37 +854,16 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<?php echo option_selected("", $config['cf_cert_hp'], "사용안함"); ?>
|
<?php echo option_selected("", $config['cf_cert_hp'], "사용안함"); ?>
|
||||||
<?php echo option_selected("kcb", $config['cf_cert_hp'], "코리아크레딧뷰로(KCB) 휴대폰 본인확인"); ?>
|
<?php echo option_selected("kcb", $config['cf_cert_hp'], "코리아크레딧뷰로(KCB) 휴대폰 본인확인"); ?>
|
||||||
<?php echo option_selected("kcp", $config['cf_cert_hp'], "NHN KCP 휴대폰 본인확인"); ?>
|
<?php echo option_selected("kcp", $config['cf_cert_hp'], "NHN KCP 휴대폰 본인확인"); ?>
|
||||||
|
<?php echo option_selected("lg", $config['cf_cert_hp'], "LG유플러스 휴대폰 본인확인"); ?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_ipin">아이핀 본인확인</label></th>
|
|
||||||
<td class="cf_cert_service">
|
|
||||||
<select name="cf_cert_ipin" id="cf_cert_ipin">
|
|
||||||
<?php echo option_selected("", $config['cf_cert_ipin'], "사용안함"); ?>
|
|
||||||
<?php echo option_selected("kcb", $config['cf_cert_ipin'], "코리아크레딧뷰로(KCB) 아이핀"); ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kg_cd">KG이니시스 간편인증 MID</label></th>
|
|
||||||
<td class="cf_cert_service">
|
|
||||||
<span class="sitecode">SRA</span>
|
|
||||||
<input type="text" name="cf_cert_kg_mid" value="<?php echo get_sanitize_input($config['cf_cert_kg_mid']); ?>" id="cf_cert_kg_mid" class="frm_input" size="10" minlength="7" maxlength="7">
|
|
||||||
<a href="http://sir.kr/main/service/inicis_cert_form.php" target="_blank" class="btn_frmline">KG이니시스 통합인증(간편인증) 신청페이지</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kg_cd">KG이니시스 간편인증 API KEY</label></th>
|
|
||||||
<td class="cf_cert_service">
|
|
||||||
<input type="text" name="cf_cert_kg_cd" value="<?php echo get_sanitize_input($config['cf_cert_kg_cd']); ?>" id="cf_cert_kg_cd" class="frm_input" size="40" minlength="32" maxlength="32">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kcb_cd">코리아크레딧뷰로<br>KCB 회원사ID</label></th>
|
<th scope="row" class="cf_cert_service"><label for="cf_cert_kcb_cd">코리아크레딧뷰로<br>KCB 회원사ID</label></th>
|
||||||
<td class="cf_cert_service">
|
<td class="cf_cert_service">
|
||||||
<?php echo help('KCB 회원사ID를 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, KCB와 계약체결 후 회원사ID를 발급 받으실 수 있습니다.<br>이용하시려는 서비스에 대한 계약을 아이핀, 휴대폰 본인확인 각각 체결해주셔야 합니다.<br>아이핀 본인확인 테스트의 경우에는 KCB 회원사ID가 필요 없으나,<br>휴대폰 본인확인 테스트의 경우 KCB 에서 따로 발급 받으셔야 합니다.') ?>
|
<?php echo help('KCB 회원사ID를 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, KCB와 계약체결 후 회원사ID를 발급 받으실 수 있습니다.<br>이용하시려는 서비스에 대한 계약을 아이핀, 휴대폰 본인확인 각각 체결해주셔야 합니다.<br>아이핀 본인확인 테스트의 경우에는 KCB 회원사ID가 필요 없으나,<br>휴대폰 본인확인 테스트의 경우 KCB 에서 따로 발급 받으셔야 합니다.') ?>
|
||||||
<input type="text" name="cf_cert_kcb_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcb_cd']); ?>" id="cf_cert_kcb_cd" class="frm_input" size="20">
|
<input type="text" name="cf_cert_kcb_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcb_cd']); ?>" id="cf_cert_kcb_cd" class="frm_input" size="20"> <a href="http://sir.kr/main/service/b_ipin.php" target="_blank" class="btn_frmline">KCB 아이핀 서비스 신청페이지</a>
|
||||||
|
<a href="http://sir.kr/main/service/b_cert.php" target="_blank" class="btn_frmline">KCB 휴대폰 본인확인 서비스 신청페이지</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -1051,10 +874,25 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<input type="text" name="cf_cert_kcp_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcp_cd']); ?>" id="cf_cert_kcp_cd" class="frm_input" size="3"> <a href="http://sir.kr/main/service/p_cert.php" target="_blank" class="btn_frmline">NHN KCP 휴대폰 본인확인 서비스 신청페이지</a>
|
<input type="text" name="cf_cert_kcp_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcp_cd']); ?>" id="cf_cert_kcp_cd" class="frm_input" size="3"> <a href="http://sir.kr/main/service/p_cert.php" target="_blank" class="btn_frmline">NHN KCP 휴대폰 본인확인 서비스 신청페이지</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" class="cf_cert_service"><label for="cf_lg_mid">LG유플러스 상점아이디</label></th>
|
||||||
|
<td class="cf_cert_service">
|
||||||
|
<?php echo help('LG유플러스 상점아이디 중 si_를 제외한 나머지 아이디만 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, 본인확인 서비스 신청페이지에서 서비스 신청 후 상점아이디를 발급 받으실 수 있습니다.<br><strong>LG유플러스 휴대폰본인확인은 ActiveX 설치가 필요하므로 Internet Explorer 에서만 사용할 수 있습니다.</strong>') ?>
|
||||||
|
<span class="sitecode">si_</span>
|
||||||
|
<input type="text" name="cf_lg_mid" value="<?php echo get_sanitize_input($config['cf_lg_mid']); ?>" id="cf_lg_mid" class="frm_input" size="20"> <a href="http://sir.kr/main/service/lg_cert.php" target="_blank" class="btn_frmline">LG유플러스 본인확인 서비스 신청페이지</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row" class="cf_cert_service"><label for="cf_lg_mert_key">LG유플러스 MERT KEY</label></th>
|
||||||
|
<td class="cf_cert_service">
|
||||||
|
<?php echo help('LG유플러스 상점MertKey는 상점관리자 -> 계약정보 -> 상점정보관리에서 확인하실 수 있습니다.') ?>
|
||||||
|
<input type="text" name="cf_lg_mert_key" value="<?php echo get_sanitize_input($config['cf_lg_mert_key']); ?>" id="cf_lg_mert_key" class="frm_input" size="40">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_limit">본인확인 이용제한</label></th>
|
<th scope="row" class="cf_cert_service"><label for="cf_cert_limit">본인확인 이용제한</label></th>
|
||||||
<td class="cf_cert_service">
|
<td class="cf_cert_service">
|
||||||
<?php echo help('1일 단위 본인인증을 시도할 수 있는 최대횟수를 지정합니다. (0으로 설정 시 무한으로 인증시도 가능)<br>아이핀/휴대폰/간편인증에서 개별 적용됩니다.)'); ?>
|
<?php echo help('하루동안 아이핀과 휴대폰 본인확인 인증 이용회수를 제한할 수 있습니다.<br>회수제한은 실서비스에서 아이핀과 휴대폰 본인확인 인증에 개별 적용됩니다.<br>0 으로 설정하시면 회수제한이 적용되지 않습니다.'); ?>
|
||||||
<input type="text" name="cf_cert_limit" value="<?php echo (int) $config['cf_cert_limit']; ?>" id="cf_cert_limit" class="frm_input" size="3"> 회
|
<input type="text" name="cf_cert_limit" value="<?php echo (int) $config['cf_cert_limit']; ?>" id="cf_cert_limit" class="frm_input" size="3"> 회
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -1071,7 +909,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once '_rewrite_config_form.php';
|
include_once('_rewrite_config_form.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section id="anc_cf_mail">
|
<section id="anc_cf_mail">
|
||||||
@@ -1537,9 +1375,8 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
<?php
|
<?php
|
||||||
if (!$config['cf_cert_use']) {
|
if(!$config['cf_cert_use'])
|
||||||
echo '$(".cf_cert_service").addClass("cf_cert_hide");';
|
echo '$(".cf_cert_service").addClass("cf_cert_hide");';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
$("#cf_cert_use").change(function(){
|
$("#cf_cert_use").change(function(){
|
||||||
switch($(this).val()) {
|
switch($(this).val()) {
|
||||||
@@ -1551,7 +1388,6 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#cf_captcha").on("change", function(){
|
$("#cf_captcha").on("change", function(){
|
||||||
if ($(this).val() == 'recaptcha' || $(this).val() == 'recaptcha_inv') {
|
if ($(this).val() == 'recaptcha' || $(this).val() == 'recaptcha_inv') {
|
||||||
$("[class^='kcaptcha_']").hide();
|
$("[class^='kcaptcha_']").hide();
|
||||||
@@ -1574,9 +1410,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
url: "./theme_config_load.php",
|
url: "./theme_config_load.php",
|
||||||
cache: false,
|
cache: false,
|
||||||
async: false,
|
async: false,
|
||||||
data: {
|
data: { type: type },
|
||||||
type: type
|
|
||||||
},
|
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if(data.error) {
|
if(data.error) {
|
||||||
@@ -1599,7 +1433,8 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function fconfigform_submit(f) {
|
function fconfigform_submit(f)
|
||||||
|
{
|
||||||
var current_user_ip = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
var current_user_ip = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
||||||
var cf_intercept_ip_val = f.cf_intercept_ip.value;
|
var cf_intercept_ip_val = f.cf_intercept_ip.value;
|
||||||
|
|
||||||
@@ -1632,18 +1467,16 @@ if ($config['cf_cert_use']) {
|
|||||||
if($config['cf_cert_ipin'] == 'kcb' || $config['cf_cert_hp'] == 'kcb') {
|
if($config['cf_cert_ipin'] == 'kcb' || $config['cf_cert_hp'] == 'kcb') {
|
||||||
// 실행모듈
|
// 실행모듈
|
||||||
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
$exe = G5_OKNAME_PATH.'/bin/okname';
|
$exe = G5_OKNAME_PATH.'/bin/okname';
|
||||||
} else {
|
else
|
||||||
$exe = G5_OKNAME_PATH.'/bin/okname_x64';
|
$exe = G5_OKNAME_PATH.'/bin/okname_x64';
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
$exe = G5_OKNAME_PATH.'/bin/okname.exe';
|
$exe = G5_OKNAME_PATH.'/bin/okname.exe';
|
||||||
} else {
|
else
|
||||||
$exe = G5_OKNAME_PATH.'/bin/oknamex64.exe';
|
$exe = G5_OKNAME_PATH.'/bin/oknamex64.exe';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
echo module_exec_check($exe, 'okname');
|
echo module_exec_check($exe, 'okname');
|
||||||
|
|
||||||
@@ -1655,11 +1488,10 @@ if ($config['cf_cert_use']) {
|
|||||||
// kcp일 때
|
// kcp일 때
|
||||||
if($config['cf_cert_hp'] == 'kcp') {
|
if($config['cf_cert_hp'] == 'kcp') {
|
||||||
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli';
|
$exe = G5_KCPCERT_PATH . '/bin/ct_cli';
|
||||||
} else {
|
else
|
||||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_x64';
|
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_x64';
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_exe.exe';
|
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_exe.exe';
|
||||||
}
|
}
|
||||||
@@ -1672,6 +1504,7 @@ if ($config['cf_cert_use']) {
|
|||||||
$log_path = G5_LGXPAY_PATH.'/lgdacom/log';
|
$log_path = G5_LGXPAY_PATH.'/lgdacom/log';
|
||||||
|
|
||||||
if(!is_dir($log_path)) {
|
if(!is_dir($log_path)) {
|
||||||
|
|
||||||
if( is_writable(G5_LGXPAY_PATH.'/lgdacom/') ){
|
if( is_writable(G5_LGXPAY_PATH.'/lgdacom/') ){
|
||||||
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
|
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
|
||||||
@mkdir($log_path, G5_DIR_PERMISSION);
|
@mkdir($log_path, G5_DIR_PERMISSION);
|
||||||
@@ -1697,13 +1530,4 @@ if ($config['cf_cert_use']) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stripos($config['cf_image_extension'], "webp") !== false) {
|
include_once ('./admin.tail.php');
|
||||||
if (!function_exists("imagewebp")) {
|
|
||||||
echo '<script>' . PHP_EOL;
|
|
||||||
echo 'alert("이 서버는 webp 이미지를 지원하고 있지 않습니다.\n이미지 업로드 확장자에서 webp 확장자를 제거해 주십시오.\n제거하지 않으면 이미지와 관련된 오류가 발생할 수 있습니다.");' . PHP_EOL;
|
|
||||||
echo 'document.getElementById("cf_image_extension").focus();' . PHP_EOL;
|
|
||||||
echo '</script>' . PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once './admin.tail.php';
|
|
||||||
+10
-18
@@ -1,14 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100100";
|
$sub_menu = "100100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$cf_title = isset($_POST['cf_title']) ? strip_tags(clean_xss_attributes($_POST['cf_title'])) : '';
|
$cf_title = isset($_POST['cf_title']) ? strip_tags(clean_xss_attributes($_POST['cf_title'])) : '';
|
||||||
$cf_admin = isset($_POST['cf_admin']) ? clean_xss_tags($_POST['cf_admin'], 1, 1) : '';
|
$cf_admin = isset($_POST['cf_admin']) ? clean_xss_tags($_POST['cf_admin'], 1, 1) : '';
|
||||||
@@ -16,15 +15,14 @@ $posts = array();
|
|||||||
|
|
||||||
$mb = get_member($cf_admin);
|
$mb = get_member($cf_admin);
|
||||||
|
|
||||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||||
alert('최고관리자 회원아이디가 존재하지 않습니다.');
|
alert('최고관리자 회원아이디가 존재하지 않습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$cf_social_servicelist = !empty($_POST['cf_social_servicelist']) ? implode(',', $_POST['cf_social_servicelist']) : '';
|
$cf_social_servicelist = !empty($_POST['cf_social_servicelist']) ? implode(',', $_POST['cf_social_servicelist']) : '';
|
||||||
|
|
||||||
$check_keys = array('cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret', 'cf_cert_kg_cd', 'cf_cert_kg_mid');
|
$check_keys = array('cf_lg_mid', 'cf_lg_mert_key', 'cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret');
|
||||||
|
|
||||||
foreach( $check_keys as $key ){
|
foreach( $check_keys as $key ){
|
||||||
if ( isset($_POST[$key]) && $_POST[$key] ){
|
if ( isset($_POST[$key]) && $_POST[$key] ){
|
||||||
@@ -35,12 +33,12 @@ foreach ($check_keys as $key) {
|
|||||||
$posts['cf_icode_server_port'] = $_POST['cf_icode_server_port'] = isset($_POST['cf_icode_server_port']) ? preg_replace('/[^0-9]/', '', $_POST['cf_icode_server_port']) : '7295';
|
$posts['cf_icode_server_port'] = $_POST['cf_icode_server_port'] = isset($_POST['cf_icode_server_port']) ? preg_replace('/[^0-9]/', '', $_POST['cf_icode_server_port']) : '7295';
|
||||||
|
|
||||||
if(isset($_POST['cf_intercept_ip']) && $_POST['cf_intercept_ip']){
|
if(isset($_POST['cf_intercept_ip']) && $_POST['cf_intercept_ip']){
|
||||||
|
|
||||||
$pattern = explode("\n", trim($_POST['cf_intercept_ip']));
|
$pattern = explode("\n", trim($_POST['cf_intercept_ip']));
|
||||||
for ($i=0; $i<count($pattern); $i++) {
|
for ($i=0; $i<count($pattern); $i++) {
|
||||||
$pattern[$i] = trim($pattern[$i]);
|
$pattern[$i] = trim($pattern[$i]);
|
||||||
if (empty($pattern[$i])) {
|
if (empty($pattern[$i]))
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
$pattern[$i] = str_replace(".", "\.", $pattern[$i]);
|
$pattern[$i] = str_replace(".", "\.", $pattern[$i]);
|
||||||
$pattern[$i] = str_replace("+", "[0-9\.]+", $pattern[$i]);
|
$pattern[$i] = str_replace("+", "[0-9\.]+", $pattern[$i]);
|
||||||
@@ -101,10 +99,8 @@ $check_keys = array(
|
|||||||
'cf_social_login_use' => 'int',
|
'cf_social_login_use' => 'int',
|
||||||
'cf_cert_req' => 'int',
|
'cf_cert_req' => 'int',
|
||||||
'cf_cert_use' => 'int',
|
'cf_cert_use' => 'int',
|
||||||
'cf_cert_find' => 'int',
|
|
||||||
'cf_cert_ipin' => 'char',
|
'cf_cert_ipin' => 'char',
|
||||||
'cf_cert_hp' => 'char',
|
'cf_cert_hp' => 'char',
|
||||||
'cf_cert_simple' => 'char',
|
|
||||||
'cf_admin_email' => 'char',
|
'cf_admin_email' => 'char',
|
||||||
'cf_admin_email_name' => 'char',
|
'cf_admin_email_name' => 'char',
|
||||||
'cf_add_script' => 'text',
|
'cf_add_script' => 'text',
|
||||||
@@ -175,14 +171,12 @@ foreach ($check_keys as $k => $v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 본인확인을 사용할 경우 아이핀, 휴대폰인증 중 하나는 선택되어야 함
|
// 본인확인을 사용할 경우 아이핀, 휴대폰인증 중 하나는 선택되어야 함
|
||||||
if ($_POST['cf_cert_use'] && !$_POST['cf_cert_ipin'] && !$_POST['cf_cert_hp'] && !$_POST['cf_cert_simple']) {
|
if($_POST['cf_cert_use'] && !$_POST['cf_cert_ipin'] && !$_POST['cf_cert_hp'])
|
||||||
alert('본인확인을 위해 아이핀, 휴대폰 본인확인, KG이니시스 간편인증 서비스 중 하나 이상 선택해 주십시오.');
|
alert('본인확인을 위해 아이핀 또는 휴대폰 본인학인 서비스를 하나이상 선택해 주십시오');
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_POST['cf_cert_use']) {
|
if(!$_POST['cf_cert_use']) {
|
||||||
$posts[$key] = $_POST['cf_cert_ipin'] = '';
|
$posts[$key] = $_POST['cf_cert_ipin'] = '';
|
||||||
$posts[$key] = $_POST['cf_cert_hp'] = '';
|
$posts[$key] = $_POST['cf_cert_hp'] = '';
|
||||||
$posts[$key] = $_POST['cf_cert_simple'] = '';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " update {$g5['config_table']}
|
$sql = " update {$g5['config_table']}
|
||||||
@@ -280,14 +274,12 @@ $sql = " update {$g5['config_table']}
|
|||||||
cf_captcha_mp3 = '{$_POST['cf_captcha_mp3']}',
|
cf_captcha_mp3 = '{$_POST['cf_captcha_mp3']}',
|
||||||
cf_editor = '{$_POST['cf_editor']}',
|
cf_editor = '{$_POST['cf_editor']}',
|
||||||
cf_cert_use = '{$_POST['cf_cert_use']}',
|
cf_cert_use = '{$_POST['cf_cert_use']}',
|
||||||
cf_cert_find = '{$_POST['cf_cert_find']}',
|
|
||||||
cf_cert_ipin = '{$_POST['cf_cert_ipin']}',
|
cf_cert_ipin = '{$_POST['cf_cert_ipin']}',
|
||||||
cf_cert_hp = '{$_POST['cf_cert_hp']}',
|
cf_cert_hp = '{$_POST['cf_cert_hp']}',
|
||||||
cf_cert_simple = '{$_POST['cf_cert_simple']}',
|
|
||||||
cf_cert_kg_cd = '{$_POST['cf_cert_kg_cd']}',
|
|
||||||
cf_cert_kg_mid = '" . trim($_POST['cf_cert_kg_mid']) . "',
|
|
||||||
cf_cert_kcb_cd = '{$_POST['cf_cert_kcb_cd']}',
|
cf_cert_kcb_cd = '{$_POST['cf_cert_kcb_cd']}',
|
||||||
cf_cert_kcp_cd = '{$_POST['cf_cert_kcp_cd']}',
|
cf_cert_kcp_cd = '{$_POST['cf_cert_kcp_cd']}',
|
||||||
|
cf_lg_mid = '{$_POST['cf_lg_mid']}',
|
||||||
|
cf_lg_mert_key = '{$_POST['cf_lg_mert_key']}',
|
||||||
cf_cert_limit = '{$_POST['cf_cert_limit']}',
|
cf_cert_limit = '{$_POST['cf_cert_limit']}',
|
||||||
cf_cert_req = '{$_POST['cf_cert_req']}',
|
cf_cert_req = '{$_POST['cf_cert_req']}',
|
||||||
cf_sms_use = '{$_POST['cf_sms_use']}',
|
cf_sms_use = '{$_POST['cf_sms_use']}',
|
||||||
|
|||||||
+27
-39
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300600';
|
$sub_menu = '300600';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
|
|
||||||
@@ -16,31 +16,22 @@ if (!sql_query(" select co_include_head from {$g5['content_table']} limit 1 ", f
|
|||||||
|
|
||||||
// html purifier 사용여부 필드
|
// html purifier 사용여부 필드
|
||||||
if(!sql_query(" select co_tag_filter_use from {$g5['content_table']} limit 1 ", false)) {
|
if(!sql_query(" select co_tag_filter_use from {$g5['content_table']} limit 1 ", false)) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||||
" ALTER TABLE `{$g5['content_table']}`
|
ADD `co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `co_content` ", true);
|
||||||
ADD `co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `co_content` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
sql_query(" update {$g5['content_table']} set co_tag_filter_use = '1' ");
|
sql_query(" update {$g5['content_table']} set co_tag_filter_use = '1' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 모바일 내용 추가
|
// 모바일 내용 추가
|
||||||
if(!sql_query(" select co_mobile_content from {$g5['content_table']} limit 1", false)) {
|
if(!sql_query(" select co_mobile_content from {$g5['content_table']} limit 1", false)) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||||
" ALTER TABLE `{$g5['content_table']}`
|
ADD `co_mobile_content` longtext NOT NULL AFTER `co_content` ", true);
|
||||||
ADD `co_mobile_content` longtext NOT NULL AFTER `co_content` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 스킨 설정 추가
|
// 스킨 설정 추가
|
||||||
if(!sql_query(" select co_skin from {$g5['content_table']} limit 1 ", false)) {
|
if(!sql_query(" select co_skin from {$g5['content_table']} limit 1 ", false)) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||||
" ALTER TABLE `{$g5['content_table']}`
|
|
||||||
ADD `co_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_mobile_content`,
|
ADD `co_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_mobile_content`,
|
||||||
ADD `co_mobile_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_skin` ",
|
ADD `co_mobile_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_skin` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
sql_query(" update {$g5['content_table']} set co_skin = 'basic', co_mobile_skin = 'basic' ");
|
sql_query(" update {$g5['content_table']} set co_skin = 'basic', co_mobile_skin = 'basic' ");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,19 +39,18 @@ $html_title = "내용";
|
|||||||
$g5['title'] = $html_title.' 관리';
|
$g5['title'] = $html_title.' 관리';
|
||||||
$readonly = '';
|
$readonly = '';
|
||||||
|
|
||||||
if ($w == "u") {
|
if ($w == "u")
|
||||||
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$readonly = " readonly";
|
$readonly = " readonly";
|
||||||
|
|
||||||
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
||||||
$co = sql_fetch($sql);
|
$co = sql_fetch($sql);
|
||||||
if (!$co['co_id']) {
|
if (!$co['co_id'])
|
||||||
alert('등록된 자료가 없습니다.');
|
alert('등록된 자료가 없습니다.');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if (function_exists('check_case_exist_title')) check_case_exist_title($co, G5_CONTENT_DIR, false);
|
{
|
||||||
|
|
||||||
} else {
|
|
||||||
$html_title .= ' 입력';
|
$html_title .= ' 입력';
|
||||||
$co = array(
|
$co = array(
|
||||||
'co_id' => '',
|
'co_id' => '',
|
||||||
@@ -76,7 +66,7 @@ if ($w == "u") {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" >
|
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" >
|
||||||
@@ -140,14 +130,14 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("설정값이 없으면 기본 상단 파일을 사용합니다."); ?>
|
<?php echo help("설정값이 없으면 기본 상단 파일을 사용합니다."); ?>
|
||||||
<input type="text" name="co_include_head" value="<?php echo get_sanitize_input($co['co_include_head']); ?>" id="co_include_head" class="frm_input" size="60">
|
<input type="text" name="co_include_head" value="<?php echo $co['co_include_head']; ?>" id="co_include_head" class="frm_input" size="60">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
|
<th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo help("설정값이 없으면 기본 하단 파일을 사용합니다."); ?>
|
<?php echo help("설정값이 없으면 기본 하단 파일을 사용합니다."); ?>
|
||||||
<input type="text" name="co_include_tail" value="<?php echo get_sanitize_input($co['co_include_tail']); ?>" id="co_include_tail" class="frm_input" size="60">
|
<input type="text" name="co_include_tail" value="<?php echo $co['co_include_tail']; ?>" id="co_include_tail" class="frm_input" size="60">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="admin_captcha_box" style="display:none;">
|
<tr id="admin_captcha_box" style="display:none;">
|
||||||
@@ -156,7 +146,7 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
<?php
|
<?php
|
||||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||||
|
|
||||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
$captcha_html = captcha_html();
|
$captcha_html = captcha_html();
|
||||||
$captcha_js = chk_captcha_js();
|
$captcha_js = chk_captcha_js();
|
||||||
echo $captcha_html;
|
echo $captcha_html;
|
||||||
@@ -175,11 +165,10 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
$himg_str = '';
|
$himg_str = '';
|
||||||
if (file_exists($himg)) {
|
if (file_exists($himg)) {
|
||||||
$size = @getimagesize($himg);
|
$size = @getimagesize($himg);
|
||||||
if ($size[0] && $size[0] > 750) {
|
if($size[0] && $size[0] > 750)
|
||||||
$width = 750;
|
$width = 750;
|
||||||
} else {
|
else
|
||||||
$width = $size[0];
|
$width = $size[0];
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="checkbox" name="co_himg_del" value="1" id="co_himg_del"> <label for="co_himg_del">삭제</label>';
|
echo '<input type="checkbox" name="co_himg_del" value="1" id="co_himg_del"> <label for="co_himg_del">삭제</label>';
|
||||||
$himg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_h" width="'.$width.'" alt="">';
|
$himg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_h" width="'.$width.'" alt="">';
|
||||||
@@ -201,11 +190,10 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
$timg_str = '';
|
$timg_str = '';
|
||||||
if (file_exists($timg)) {
|
if (file_exists($timg)) {
|
||||||
$size = @getimagesize($timg);
|
$size = @getimagesize($timg);
|
||||||
if ($size[0] && $size[0] > 750) {
|
if($size[0] && $size[0] > 750)
|
||||||
$width = 750;
|
$width = 750;
|
||||||
} else {
|
else
|
||||||
$width = $size[0];
|
$width = $size[0];
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="checkbox" name="co_timg_del" value="1" id="co_timg_del"> <label for="co_timg_del">삭제</label>';
|
echo '<input type="checkbox" name="co_timg_del" value="1" id="co_timg_del"> <label for="co_timg_del">삭제</label>';
|
||||||
$timg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_t" width="'.$width.'" alt="">';
|
$timg_str = '<img src="'.G5_DATA_URL.'/content/'.$co['co_id'].'_t" width="'.$width.'" alt="">';
|
||||||
@@ -239,13 +227,12 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: g5_admin_url+"/ajax.use_captcha.php",
|
url: g5_admin_url+"/ajax.use_captcha.php",
|
||||||
data: {
|
data: { admin_use_captcha: "1" },
|
||||||
admin_use_captcha: "1"
|
|
||||||
},
|
|
||||||
cache: false,
|
cache: false,
|
||||||
async: false,
|
async: false,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {}
|
success: function(data) {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,7 +267,8 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function frmcontentform_check(f) {
|
function frmcontentform_check(f)
|
||||||
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
|
|
||||||
@@ -307,4 +295,4 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+31
-31
@@ -1,25 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300600';
|
$sub_menu = '300600';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($w == "u" || $w == "d") {
|
if ($w == "u" || $w == "d")
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
if ($w == 'd') {
|
if ($w == 'd')
|
||||||
auth_check_menu($auth, $sub_menu, "d");
|
auth_check_menu($auth, $sub_menu, "d");
|
||||||
} else {
|
else
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$co_row = array('co_id'=>'', 'co_include_head'=>'', 'co_include_tail'=>'');
|
$co_row = array('co_id'=>'', 'co_include_head'=>'', 'co_include_tail'=>'');
|
||||||
|
|
||||||
if ($w == "" || $w == "u") {
|
if ($w == "" || $w == "u")
|
||||||
if (isset($_REQUEST['co_id']) && preg_match("/[^a-z0-9_]/i", $_REQUEST['co_id'])) {
|
{
|
||||||
alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
if(isset($_REQUEST['co_id']) && preg_match("/[^a-z0-9_]/i", $_REQUEST['co_id'])) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
||||||
$co_row = sql_fetch($sql);
|
$co_row = sql_fetch($sql);
|
||||||
@@ -40,7 +37,7 @@ $co_mobile_skin = isset($_POST['co_mobile_skin']) ? clean_xss_tags($_POST['co_mo
|
|||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||||
if ((( isset($co_row['co_include_head']) && $co_row['co_include_head'] !== $co_include_head ) || ( isset($co_row['co_include_tail']) && $co_row['co_include_tail'] !== $co_include_tail )) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
if ((( isset($co_row['co_include_head']) && $co_row['co_include_head'] !== $co_include_head ) || ( isset($co_row['co_include_tail']) && $co_row['co_include_tail'] !== $co_include_tail )) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
||||||
include_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
@@ -50,16 +47,13 @@ if (((isset($co_row['co_include_head']) && $co_row['co_include_head'] !== $co_in
|
|||||||
@mkdir(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
|
@mkdir(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
|
||||||
@chmod(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
|
@chmod(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
|
||||||
|
|
||||||
if ($co_himg_del) {
|
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
||||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_h");
|
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
||||||
}
|
|
||||||
if ($co_timg_del) {
|
|
||||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_t");
|
|
||||||
}
|
|
||||||
|
|
||||||
$error_msg = '';
|
$error_msg = '';
|
||||||
|
|
||||||
if( $co_include_head ){
|
if( $co_include_head ){
|
||||||
|
|
||||||
$file_ext = pathinfo($co_include_head, PATHINFO_EXTENSION);
|
$file_ext = pathinfo($co_include_head, PATHINFO_EXTENSION);
|
||||||
|
|
||||||
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $co_include_head) ) {
|
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $co_include_head) ) {
|
||||||
@@ -68,6 +62,7 @@ if ($co_include_head) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( $co_include_tail ){
|
if( $co_include_tail ){
|
||||||
|
|
||||||
$file_ext = pathinfo($co_include_tail, PATHINFO_EXTENSION);
|
$file_ext = pathinfo($co_include_tail, PATHINFO_EXTENSION);
|
||||||
|
|
||||||
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $co_include_tail) ) {
|
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $co_include_tail) ) {
|
||||||
@@ -103,45 +98,48 @@ $sql_common = " co_include_head = '$co_include_head',
|
|||||||
co_skin = '$co_skin',
|
co_skin = '$co_skin',
|
||||||
co_mobile_skin = '$co_mobile_skin' ";
|
co_mobile_skin = '$co_mobile_skin' ";
|
||||||
|
|
||||||
if ($w == "") {
|
if ($w == "")
|
||||||
|
{
|
||||||
$row = $co_row;
|
$row = $co_row;
|
||||||
if (isset($row['co_id']) && $row['co_id']) {
|
if (isset($row['co_id']) && $row['co_id'])
|
||||||
alert("이미 같은 ID로 등록된 내용이 있습니다.");
|
alert("이미 같은 ID로 등록된 내용이 있습니다.");
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " insert {$g5['content_table']}
|
$sql = " insert {$g5['content_table']}
|
||||||
set co_id = '$co_id',
|
set co_id = '$co_id',
|
||||||
$sql_common ";
|
$sql_common ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_content_created', $co_id);
|
}
|
||||||
} elseif ($w == "u") {
|
else if ($w == "u")
|
||||||
|
{
|
||||||
$sql = " update {$g5['content_table']}
|
$sql = " update {$g5['content_table']}
|
||||||
set $sql_common
|
set $sql_common
|
||||||
where co_id = '$co_id' ";
|
where co_id = '$co_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_content_updated', $co_id);
|
}
|
||||||
} elseif ($w == "d") {
|
else if ($w == "d")
|
||||||
|
{
|
||||||
@unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
@unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
||||||
@unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
@unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
||||||
|
|
||||||
$sql = " delete from {$g5['content_table']} where co_id = '$co_id' ";
|
$sql = " delete from {$g5['content_table']} where co_id = '$co_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_content_deleted', $co_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists('get_admin_captcha_by')) {
|
if(function_exists('get_admin_captcha_by'))
|
||||||
get_admin_captcha_by('remove');
|
get_admin_captcha_by('remove');
|
||||||
}
|
|
||||||
|
|
||||||
g5_delete_cache_by_prefix('content-'.$co_id.'-');
|
g5_delete_cache_by_prefix('content-'.$co_id.'-');
|
||||||
|
|
||||||
if ($w == "" || $w == "u") {
|
if ($w == "" || $w == "u")
|
||||||
if ($_FILES['co_himg']['name']) {
|
{
|
||||||
|
if ($_FILES['co_himg']['name'])
|
||||||
|
{
|
||||||
$dest_path = G5_DATA_PATH."/content/".$co_id."_h";
|
$dest_path = G5_DATA_PATH."/content/".$co_id."_h";
|
||||||
@move_uploaded_file($_FILES['co_himg']['tmp_name'], $dest_path);
|
@move_uploaded_file($_FILES['co_himg']['tmp_name'], $dest_path);
|
||||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||||
}
|
}
|
||||||
if ($_FILES['co_timg']['name']) {
|
if ($_FILES['co_timg']['name'])
|
||||||
|
{
|
||||||
$dest_path = G5_DATA_PATH."/content/".$co_id."_t";
|
$dest_path = G5_DATA_PATH."/content/".$co_id."_t";
|
||||||
@move_uploaded_file($_FILES['co_timg']['tmp_name'], $dest_path);
|
@move_uploaded_file($_FILES['co_timg']['tmp_name'], $dest_path);
|
||||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||||
@@ -152,6 +150,8 @@ if ($w == "" || $w == "u") {
|
|||||||
} else {
|
} else {
|
||||||
goto_url("./contentform.php?w=u&co_id=$co_id");
|
goto_url("./contentform.php?w=u&co_id=$co_id");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
goto_url("./contentlist.php");
|
goto_url("./contentlist.php");
|
||||||
}
|
}
|
||||||
+6
-11
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300600';
|
$sub_menu = '300600';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
auth_check_menu($auth, $sub_menu, "r");
|
||||||
|
|
||||||
@@ -12,8 +12,7 @@ if (!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
|||||||
if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) {
|
if(sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) {
|
||||||
sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false);
|
sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false);
|
||||||
} else {
|
} else {
|
||||||
$query_cp = sql_query(
|
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` (
|
|
||||||
`co_id` varchar(20) NOT NULL DEFAULT '',
|
`co_id` varchar(20) NOT NULL DEFAULT '',
|
||||||
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
||||||
@@ -22,9 +21,7 @@ if (!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
|||||||
`co_include_head` varchar(255) NOT NULL,
|
`co_include_head` varchar(255) NOT NULL,
|
||||||
`co_include_tail` varchar(255) NOT NULL,
|
`co_include_tail` varchar(255) NOT NULL,
|
||||||
PRIMARY KEY (`co_id`)
|
PRIMARY KEY (`co_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
// 내용관리 생성
|
// 내용관리 생성
|
||||||
sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '<p align=center><b>회사소개에 대한 내용을 입력하십시오.</b></p>' ", false );
|
sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '<p align=center><b>회사소개에 대한 내용을 입력하십시오.</b></p>' ", false );
|
||||||
@@ -34,7 +31,7 @@ if (!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = '내용관리';
|
$g5['title'] = '내용관리';
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
$sql_common = " from {$g5['content_table']} ";
|
$sql_common = " from {$g5['content_table']} ";
|
||||||
|
|
||||||
@@ -45,9 +42,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1;
|
|
||||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_page_rows']} ";
|
$sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_page_rows']} ";
|
||||||
@@ -99,4 +94,4 @@ $result = sql_query($sql);
|
|||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+45
-388
@@ -144,7 +144,6 @@ box-shadow: 2px 0 2px rgba(150,150,150,0.1);}
|
|||||||
.btn_submit{background:#ff4081;color:#fff}
|
.btn_submit{background:#ff4081;color:#fff}
|
||||||
a.btn_submit{background:#ff4081;color:#fff}
|
a.btn_submit{background:#ff4081;color:#fff}
|
||||||
|
|
||||||
|
|
||||||
.btn_confirm .btn_submit {padding:0 15px;border:0;height:30px;color:#fff}
|
.btn_confirm .btn_submit {padding:0 15px;border:0;height:30px;color:#fff}
|
||||||
.btn_frmline {display:inline-block;padding:0 7px;height:24px;border:0;background:#444;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:middle;line-height:2em} /* 우편번호검색버튼 등 */
|
.btn_frmline {display:inline-block;padding:0 7px;height:24px;border:0;background:#444;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:middle;line-height:2em} /* 우편번호검색버튼 등 */
|
||||||
.btn_frmline:focus, .btn_frmline:hover, .btn_frmline:active {text-decoration:none}
|
.btn_frmline:focus, .btn_frmline:hover, .btn_frmline:active {text-decoration:none}
|
||||||
@@ -178,14 +177,12 @@ a.btn_submit{background:#ff4081;color:#fff}
|
|||||||
|
|
||||||
.btn_add01 {text-align:right}
|
.btn_add01 {text-align:right}
|
||||||
.btn_add01 a, .btn_add01 button {padding:10px;border:1px solid #ccc;background:#f0f0f0;text-decoration:none;cursor:pointer}
|
.btn_add01 a, .btn_add01 button {padding:10px;border:1px solid #ccc;background:#f0f0f0;text-decoration:none;cursor:pointer}
|
||||||
.btn_add01 a {display:inline-block;vertical-align:middle}
|
.btn_add01 a {display:inline-block;vertical-align:middle}btn_confirm
|
||||||
.btn_add01 button {margin:0}
|
.btn_add01 button {margin:0}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.td_mng a.btn, .td_mng a{display:inline-block;height:26px;line-height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
|
.td_mng a.btn, .td_mng a{display:inline-block;height:26px;line-height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
|
||||||
.td_mng button, .td_mng button.btn{height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
|
.td_mng button, .td_mng button.btn{height:26px;border:0;border-radius:3px;padding:0 8px;margin:1px;font-weight:normal}
|
||||||
|
|
||||||
.btn{height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
|
.btn{height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
|
||||||
a.btn{display:inline-block;height:30px;line-height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
|
a.btn{display:inline-block;height:30px;line-height:30px;border:0;border-radius:5px;padding:0 10px;font-weight:bold;font-size:1.09em;vertical-align:middle}
|
||||||
.btn_submit{background:#ff4081;color:#fff}
|
.btn_submit{background:#ff4081;color:#fff}
|
||||||
@@ -200,15 +197,17 @@ a.btn_submit{background:#ff4081;color:#fff}
|
|||||||
.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;border:0;border-radius:5px;padding:0 10px}
|
.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;border:0;border-radius:5px;padding:0 10px}
|
||||||
a.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;line-height:33px;border-radius:5px;padding:0 10px;text-decoration:none !important}
|
a.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;line-height:33px;border-radius:5px;padding:0 10px;text-decoration:none !important}
|
||||||
.btn_ov01{display:inline-block;line-height:30px;height:30px;font-size:0.92em;vertical-align:top}
|
.btn_ov01{display:inline-block;line-height:30px;height:30px;font-size:0.92em;vertical-align:top}
|
||||||
.btn_ov01:after{display:block;visibility:hidden;clear :both;content:""}
|
|
||||||
.btn_ov01 .ov_txt{float:left;background:#9eacc6;color:#fff;border-radius:5px 0 0 5px;padding:0 5px}
|
.btn_ov01 .ov_txt{float:left;background:#9eacc6;color:#fff;border-radius:5px 0 0 5px;padding:0 5px}
|
||||||
.btn_ov01 .ov_num{float:left;background:#ededed;color:#666;border-radius:0 5px 5px 0;padding:0 5px}
|
.btn_ov01 .ov_num{float:left;background:#ededed;color:#666;border-radius:0 5px 5px 0;padding:0 5px}
|
||||||
a.btn_ov02,a.ov_listall{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#565e8c;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px }
|
a.btn_ov02,a.ov_listall{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#565e8c;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px }
|
||||||
a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
|
a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
|
||||||
|
|
||||||
|
.local_ov01.local_ov [data-tooltip-text]:hover {position:relative}
|
||||||
|
.local_ov01.local_ov [data-tooltip-text]:hover:after{line-height:20px;background-color:#000;background-color:rgba(0,0,0,0.8);-webkit-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-moz-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;color:#FFF;font-size:11px;content:attr(data-tooltip-text);white-space: pre;margin-bottom:10px;top:130%;left:0;padding:7px 12px;position:absolute;max-width:500px;word-wrap:break-word;z-index:9999}
|
||||||
|
|
||||||
/*form*/
|
/*form*/
|
||||||
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
||||||
.frm_input{padding:0 5px;height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
.frm_input{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||||
.frm_input_full{width:100%}
|
.frm_input_full{width:100%}
|
||||||
.required{background:url('../img/wrest.gif') top right no-repeat #fff !important}
|
.required{background:url('../img/wrest.gif') top right no-repeat #fff !important}
|
||||||
select{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
select{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||||
@@ -218,7 +217,7 @@ legend {position:absolute;width:0;height:0;font-size:0;line-height:0;text-indent
|
|||||||
|
|
||||||
/* 외부서비스 사이트코드 */
|
/* 외부서비스 사이트코드 */
|
||||||
.sitecode {display:inline-block;font:bold 15px 'Verdana';vertical-align:middle}
|
.sitecode {display:inline-block;font:bold 15px 'Verdana';vertical-align:middle}
|
||||||
.sitecode.title {width:80px}
|
|
||||||
|
|
||||||
.readonly {}
|
.readonly {}
|
||||||
|
|
||||||
@@ -249,7 +248,6 @@ legend {position:absolute;width:0;height:0;font-size:0;line-height:0;text-indent
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#sort_mb {width:800px}
|
#sort_mb {width:800px}
|
||||||
|
|
||||||
#sort_sodr {width:600px}
|
#sort_sodr {width:600px}
|
||||||
@@ -266,14 +264,15 @@ border-bottom: 5px solid black;}
|
|||||||
/* 페이지 내 검색 */
|
/* 페이지 내 검색 */
|
||||||
.local_sch{}
|
.local_sch{}
|
||||||
.local_sch:after, .local_sch div:after{display:block;visibility:hidden;clear:both;content:""}
|
.local_sch:after, .local_sch div:after{display:block;visibility:hidden;clear:both;content:""}
|
||||||
.local_sch .btn_sch{width:30px;height:30px;padding:0;float:left;border:1px solid #dcdcdc;border-left:0;background:url(../img/sch_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden}
|
.local_sch .btn_sch{width:30px;height:30px;border:1px solid #dcdcdc;border-left:0;padding:0;float:left;background:url(../img/sch_btn.png) no-repeat 50% 50%;text-indent:-999px;overflow:hidden}
|
||||||
.local_sch .btn_sch2{width:35px;height:35px;padding:0;border:1px solid #dcdcdc;background:url(../img/sch_btn.png) no-repeat 50% 50% #eee;text-indent:-999px;overflow:hidden}
|
.local_sch .btn_sch2{width:35px;height:35px;border:1px solid #dcdcdc;padding:0;background:url(../img/sch_btn.png) no-repeat 50% 50% #eee;text-indent:-999px;overflow:hidden}
|
||||||
|
|
||||||
.local_sch .sch_input{height:30px;border:1px solid #dcdcdc;border-right:0;padding:0 5px;float:left;}
|
.local_sch .sch_input{height:30px;border:1px solid #dcdcdc;border-right:0;padding:0 5px;float:left;}
|
||||||
.local_sch select{height:30px;margin-right:3px;border:1px solid #dcdcdc}
|
.local_sch select{height:30px;margin-right:3px;border:1px solid #dcdcdc}
|
||||||
.local_sch01{margin: 10px 0;}
|
.local_sch01{margin: 10px 0;}
|
||||||
.local_sch02{}
|
.local_sch02{}
|
||||||
.local_sch01 .frm_input{height:30px;border:1px solid #dcdcdc;padding:0 5px;}
|
.local_sch01 .frm_input{height:30px;border:1px solid #dcdcdc;padding:0 5px;}
|
||||||
.local_sch01 .btn_submit{width:30px;height:30px;border:1px solid #dcdcdc;padding:0;background:url(../img/sch_btn.png) no-repeat 50% 50% #eee;text-indent:-999px;overflow:hidden}
|
.local_sch01 .btn_submit{width:30px;height:30px;padding:0;background:url(../img/sch_btn.png) no-repeat 50% 50% #eee;border:1px solid #dcdcdc;text-indent:-999px;overflow:hidden}
|
||||||
.local_sch03{padding:5px 15px;background:#e9ebf9;margin:10px 0}
|
.local_sch03{padding:5px 15px;background:#e9ebf9;margin:10px 0}
|
||||||
.local_sch div{margin:5px 0;}
|
.local_sch div{margin:5px 0;}
|
||||||
.local_sch03 strong{display:inline-block;width:70px;}
|
.local_sch03 strong{display:inline-block;width:70px;}
|
||||||
@@ -307,8 +306,7 @@ border-bottom: 5px solid black;}
|
|||||||
.local_ov {min-width:960px}
|
.local_ov {min-width:960px}
|
||||||
|
|
||||||
.local_ov01 {position:relative;margin: 10px 0;}
|
.local_ov01 {position:relative;margin: 10px 0;}
|
||||||
.local_ov01 .ov_a{display:inline-block;line-height:30px;height:30px;font-size:0.92em;background:#ff4081;color:#fff;vertical-align:top;border-radius:5px;padding:0 7px}
|
.local_ov01 .ov_a {display:inline-block;margin:0 0 0 5px;padding:0 0 0 10px;border-left:1px solid #ccc;color:#ff3061}
|
||||||
.local_ov01 .ov_a:hover{background:#ff1464}
|
|
||||||
|
|
||||||
|
|
||||||
/* 테이블 */
|
/* 테이블 */
|
||||||
@@ -420,10 +418,6 @@ tfoot th {}
|
|||||||
.visit_del_bt{margin:5px 0;border-top:1px solid #eee;padding:5px 0}
|
.visit_del_bt{margin:5px 0;border-top:1px solid #eee;padding:5px 0}
|
||||||
.visit_del_bt .btn_submit{border:0;height:35px;padding: 0 5px;border-radius:3px}
|
.visit_del_bt .btn_submit{border:0;height:35px;padding: 0 5px;border-radius:3px}
|
||||||
|
|
||||||
/*접속자로그삭제*/
|
|
||||||
.visit_del_bt{margin:5px 0;border-top:1px solid #eee;padding:5px 0}
|
|
||||||
.visit_del_bt .btn_submit{border:0;height:35px;padding: 0 5px;border-radius:3px}
|
|
||||||
|
|
||||||
/* 공통 */
|
/* 공통 */
|
||||||
.td_addr {text-align:left !important}
|
.td_addr {text-align:left !important}
|
||||||
.td_alignc {text-align:center}
|
.td_alignc {text-align:center}
|
||||||
@@ -447,7 +441,6 @@ tfoot th {}
|
|||||||
.td_delino {width:130px}
|
.td_delino {width:130px}
|
||||||
.td_device {width:70px;text-align:center}
|
.td_device {width:70px;text-align:center}
|
||||||
.td_etc {width:80px;text-align:center}
|
.td_etc {width:80px;text-align:center}
|
||||||
.td_use {width:80px;text-align:center}
|
|
||||||
.td_extra label {display:inline-block;width:100px}
|
.td_extra label {display:inline-block;width:100px}
|
||||||
.td_extra input {margin-right:5px;width:130px}
|
.td_extra input {margin-right:5px;width:130px}
|
||||||
.td_grid {width:60px;text-align:center}
|
.td_grid {width:60px;text-align:center}
|
||||||
@@ -555,44 +548,6 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
|||||||
.session_del strong{color:#ff0000}
|
.session_del strong{color:#ff0000}
|
||||||
.session_del p{line-height:1.7em;padding:10px 15px ;background:#f7ecea;border:2px solid #ffb6c1}
|
.session_del p{line-height:1.7em;padding:10px 15px ;background:#f7ecea;border:2px solid #ffb6c1}
|
||||||
|
|
||||||
/* ########## 쇼핑몰 사용시 적용 ########## */
|
|
||||||
.sidx {padding:20px 0 30px;zoom:1}
|
|
||||||
.sidx:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
|
|
||||||
.sidx_anchor {position:absolute;margin:0;padding:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
|
||||||
|
|
||||||
/* idx 쇼핑몰 */
|
|
||||||
#anc_sidx_ord {float:left;width:66%}
|
|
||||||
#sidx_graph {position:relative}
|
|
||||||
#sidx_graph_price {position:absolute;top:10px;left:20px;margin:0;padding:0;width:12%;list-style:none}
|
|
||||||
#sidx_graph_price li {position:relative;padding:0 10% 0 0;height:48px;font-family:tahoma;text-align:right}
|
|
||||||
#sidx_graph_price li span {position:absolute;top:7px;right:-10%;width:10px;height:1px;background:#e9e9e9}
|
|
||||||
#sidx_graph_area {position:absolute;top:0;left:15%;margin:0;padding:0;width:85%;height:260px;border:1px solid #e9e9e9;list-style:none}
|
|
||||||
#sidx_graph_area li {position:relative;float:left;padding:0 1% 0 0;width:14%;height:100%}
|
|
||||||
#sidx_graph_area .graph {position:absolute;bottom:0;width:40%;height:0}
|
|
||||||
#sidx_graph_area .order {background:#8562ca;left:7%}
|
|
||||||
#sidx_graph_area .cancel {background:#62c5ca;right:7%}
|
|
||||||
#sidx_graph_area #price_tooltip {display:none;position:absolute;top:-18px;left:0;background-color:#fff;border:1px solid gray}
|
|
||||||
#sidx_graph_area #price_tooltip div {white-space:nowrap}
|
|
||||||
#sidx_graph_date {position:absolute;top:275px;left:15%;margin:0;padding:0;width:85%;border:1px solid #fff;list-style:none}
|
|
||||||
#sidx_graph_date li {position:relative;float:left;width:14%;font-family:tahoma;text-align:center}
|
|
||||||
#sidx_graph_date li span {position:absolute;top:-16px;right:0;width:1px;height:10px;background:#e9e9e9}
|
|
||||||
#sidx_graph_legend {position:absolute;top:-25px;left:15%}
|
|
||||||
#sidx_graph_legend span {display:inline-block;width:13px;height:13px;vertical-align:middle}
|
|
||||||
#sidx_graph_legend #legend_order {background:#8562ca}
|
|
||||||
#sidx_graph_legend #legend_cancel {margin:0 0 0 10px;background:#62c5ca}
|
|
||||||
|
|
||||||
#sidx_graph_area .bg0{background:#fff }
|
|
||||||
#sidx_graph_area .bg1{background:#eff3f9 }
|
|
||||||
|
|
||||||
|
|
||||||
#anc_sidx_settle {margin:0 0 30px;padding:30px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
|
||||||
#anc_sidx_settle table {text-align:center}
|
|
||||||
|
|
||||||
#sidx_stat {float:right;width:32%}
|
|
||||||
#sidx_stat h2 {padding:0 20px 0 0}
|
|
||||||
#sidx_stat .tbl_wrap {padding:0 20px 0 0}
|
|
||||||
|
|
||||||
/* idx 1:1문의/상품문의/사용후기 */
|
/* idx 1:1문의/상품문의/사용후기 */
|
||||||
.sidx_cs {}
|
.sidx_cs {}
|
||||||
.sidx_cs section {float:left;margin:0 2% 0 0;width:32%}
|
.sidx_cs section {float:left;margin:0 2% 0 0;width:32%}
|
||||||
@@ -613,279 +568,19 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
|||||||
|
|
||||||
.sidx_cs #anc_sidx_ps .ps_link {display:block;margin:5px 0}
|
.sidx_cs #anc_sidx_ps .ps_link {display:block;margin:5px 0}
|
||||||
|
|
||||||
/* 쇼핑몰 설정 */
|
/* SMS문자전송 */
|
||||||
#anc_scf_payment textarea {height:50px}
|
#sms_send {padding-bottom:100px;zoom:1}
|
||||||
.get_shop_skin,.shop_etc,.shop_pc_index,.shop_mobile_index{background: #9eacc6;color: #fff;height: 30px;border: 0;border-radius: 5px;padding: 0 10px;font-weight: bold;font-size: 1.09em;
|
#sms_send:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
vertical-align: middle;}
|
|
||||||
|
|
||||||
a.scf_pgreg {display:inline-block;margin:5px 0 0;padding:5px 10px;background:#226C8B;color:#fff;font-weight:normal;text-decoration:none}
|
#sms_frm {float:left;width:650px}
|
||||||
a.kcp_btn {display:inline-block;margin:5px 0 0;padding:5px 10px;background:#226C8B;color:#fff;font-weight:normal;text-decoration:none}
|
#sms_frm table {margin:0 0 30px}
|
||||||
a.lg_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#ED008C;color:#fff;font-weight:normal;text-decoration:none}
|
#sms_frm textarea {height:70px}
|
||||||
a.kg_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#4A2C7C;color:#fff;font-weight:normal;text-decoration:none}
|
|
||||||
a.kakao_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#FDDC2F;color:#3B1E1E;font-weight:normal;text-decoration:none}
|
|
||||||
a.naver_btn {display:inline-block;margin:5px 0 0;padding:5px 10px;background:#00C73C;color:#fff;font-weight:normal;text-decoration:none}
|
|
||||||
a.nicepay_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#0057bf;color:#fff;font-weight:normal;text-decoration:none}
|
|
||||||
|
|
||||||
.scf_cardtest {margin:5px 0 0}
|
#sms_sm {position:relative;float:left;width:229px;height:418px;background:url('../shop_admin/img/mobilebg.jpg') no-repeat}
|
||||||
.scf_cardtest_btn {margin-left:5px;vertical-align:middle}
|
#sms_sm_text {position:absolute;top:75px;left:27px;width:180px;color:#fff;font-size:2em;word-break:break-all}
|
||||||
#scf_cardtest_tip {margin:10px 0 0;padding:10px;border:3px solid #ddd}
|
#sms_sm p {position:absolute;bottom:-70px;left:0;font-size:0.95em;letter-spacing:-0.1em}
|
||||||
#scf_cardtest_tip strong {display:inline-block;margin:0 0 5px}
|
|
||||||
#scf_cardtest_tip dl {margin:0 0 15px;padding:0;zoom:1}
|
|
||||||
#scf_cardtest_tip dl:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
#scf_cardtest_tip dt {float:left;width:100px}
|
|
||||||
#scf_cardtest_tip dd {padding:0;overflow:hidden}
|
|
||||||
.scf_cardtest_tip {display:none}
|
|
||||||
.scf_cardtest_hide {display:none}
|
|
||||||
.scf_cardtest_tip_adm_hide {display:none}
|
|
||||||
|
|
||||||
.scf_img {display:none}
|
#sms_send .local_desc01 {min-width:320px}
|
||||||
|
|
||||||
#scf_sms_pre h3 {padding:10px 0}
|
|
||||||
#scf_sms_pre dl {margin:0 0 10px;zoom:1}
|
|
||||||
#scf_sms_pre dl:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
#scf_sms_pre dt {clear:both;float:left;padding:5px 0;width:100px}
|
|
||||||
#scf_sms_pre dd {padding:5px 0;overflow:hidden}
|
|
||||||
#scf_sms {margin:0 20px 30px;padding:20px 0 0;zoom:1}
|
|
||||||
#scf_sms:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.scf_sms_box {float:left;margin:0 8px 0 9px;width:163px;text-align:center}
|
|
||||||
.scf_sms_box h4 {margin:0 0 5px}
|
|
||||||
.scf_sms_img {margin:10px 0;width:163px;height:191px;background:url('../shop_admin/img/sms_back.gif') no-repeat 0 0;text-align:center}
|
|
||||||
.scf_sms_img textarea {margin:54px 0 0;width:115px;height:85px;border:0;background:transparent;font-size:0.95em;overflow:hidden}
|
|
||||||
.scf_sms_img span {display:block}
|
|
||||||
.scf_sms_cnt {display:block}
|
|
||||||
|
|
||||||
ul.de_pg_tab{margin:0;padding:0;zoom:1}
|
|
||||||
ul.de_pg_tab:after{display:block;visibility:hidden;clear:both;content:"";}
|
|
||||||
ul.de_pg_tab li{position:relative;display:inline-block;float:left;text-align:center;margin:0;padding:0;width:120px}
|
|
||||||
ul.de_pg_tab li a{margin:0 2px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5;background-color:#f7f7f7;color:#74777b;font-weight:bold;font-size:1.2em;text-decoration:none}
|
|
||||||
ul.de_pg_tab li a:hover{text-decoration:none}
|
|
||||||
ul.de_pg_tab li.tab-current a{background:#2CC185;color:#fff}
|
|
||||||
|
|
||||||
.pg_info_fld{position:relative}
|
|
||||||
.kcp_info_fld th{background-color:#F6FCFF}
|
|
||||||
.lg_info_fld th{background-color:#FFF4FA}
|
|
||||||
.inicis_info_fld th{background-color:#F6F1FF}
|
|
||||||
.kakao_info_fld th{background-color:#FFFCED}
|
|
||||||
.naver_info_fld th{background-color:#F3FFF3}
|
|
||||||
.nicepay_info_fld th{background-color:#d1e6ff}
|
|
||||||
|
|
||||||
/* 주문내역 */
|
|
||||||
#sodr_list td {text-align:center}
|
|
||||||
#sodr_list .td_name {text-align:center !important}
|
|
||||||
|
|
||||||
#orderitemlist {position:relative}
|
|
||||||
#orderitemlist .itemlist {z-index:2;position:absolute;top:0;left:-41px;width:958px;padding:10px;border:1px solid #a2a5a9;background:#f2f5f9}
|
|
||||||
#orderitemlist .itemlist h2{margin:0 0 10px}
|
|
||||||
#orderitemlist td {background:#fff}
|
|
||||||
#orderitemlist #orderitemlist_close {text-align:right}
|
|
||||||
|
|
||||||
#sodr_list .list_escrow {display:block;color:#80bc0d;text-align:center}
|
|
||||||
#sodr_list .list_test {display:block;text-align:center;color:#ff3061}
|
|
||||||
#sodr_list .odrpay {max-width:50px}
|
|
||||||
|
|
||||||
.local_sch03.local_sch [data-tooltip-text]:hover {position:relative}
|
|
||||||
.local_sch03.local_sch [data-tooltip-text]:hover:after{line-height:20px;background-color:#000;background-color:rgba(0,0,0,0.8);-webkit-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-moz-box-shadow:0 0 3px 1px rgba(50,50,50,0.4);box-shadow:0 0 3px 1px rgba(50,50,50,0.4);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;color:#FFF;font-size:11px;content:attr(data-tooltip-text);white-space: pre;margin-bottom:10px;top:130%;left:0;padding:7px 12px;position:absolute;max-width:500px;word-wrap:break-word;z-index:9999}
|
|
||||||
|
|
||||||
/* 주문내역 수정 */
|
|
||||||
.sodr_nonpay {color:#ff6600}
|
|
||||||
strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|
||||||
.sodr_sppay {color:#1f9bff}
|
|
||||||
#anc_sodr_memo textarea {width:100%}
|
|
||||||
#anc_sodr_memo .btn_confirm {margin:10px 0 0}
|
|
||||||
#anc_sodr_orderer #od_addr1, #anc_sodr_orderer #od_addr2, #anc_sodr_orderer #od_addr3 {margin:5px 0 0}
|
|
||||||
#anc_sodr_taker #od_b_addr1, #anc_sodr_taker #od_b_addr2, #anc_sodr_taker #od_b_addr3 {margin:5px 0 0}
|
|
||||||
#anc_sodr_orderer #od_addr_jibeon, #anc_sodr_taker #od_b_addr_jibeon {display:block;margin:5px 0 0}
|
|
||||||
|
|
||||||
#sodr_qty_log {padding:0 20px}
|
|
||||||
#sodr_qty_log h3 {margin:20px 0 10px}
|
|
||||||
#sodr_qty_log div {padding:10px;height:auto !important;height:200px;max-height:200px;border:1px solid #e9e9e9;background:#f5f6fa;line-height:1.8em;overflow-y:scroll}
|
|
||||||
|
|
||||||
#sodr_request_frm h3 {margin:20px 0 0}
|
|
||||||
#sodr_request_item h3 {margin-bottom:10px}
|
|
||||||
#sodr_request_frm #forderrequest {border-top:1px solid #e9e9e9}
|
|
||||||
#sodr_request_log_wrap {padding:10px;height:auto !important;height:200px;max-height:200px;border:1px solid #e9e9e9;background:#f5f6fa;overflow-y:scroll}
|
|
||||||
#sodr_request_log_wrap p {position:relative;padding:5px 0;border-bottom:1px solid #e9e9e9}
|
|
||||||
#sodr_request_log_wrap span {display:inline-block;margin:0 0 0 80px}
|
|
||||||
#sodr_request_log_wrap b {display:inline-block;margin:0 15px 0 0;font-weight:normal}
|
|
||||||
#sodr_request_log_wrap button {position:absolute;top:7px;left:0;margin:0;padding:0;border:0;background:transparent;font-weight:bold}
|
|
||||||
#sodr_request_handle h3 {margin-bottom:10px}
|
|
||||||
|
|
||||||
#anc_sodr_request h3 {margin:20px 0 10px}
|
|
||||||
#sodr_request_list {padding:10px;height:auto !important;height:200px;max-height:200px;border:1px solid #e9e9e9;background:#f5f6fa;overflow-y:scroll}
|
|
||||||
#sodr_request_list p {position:relative;padding:5px 0;border-bottom:1px solid #e9e9e9}
|
|
||||||
|
|
||||||
#anc_sodr_chk .dvr_link {color:#ff3061;text-decoration:underline}
|
|
||||||
.od_test_caution{line-height: 1.7em;padding: 10px 15px;background: #f7ecea;border: 2px solid #ffb6c1;color: #ff0000;font-weight: bold;margin:10px 0 20px}
|
|
||||||
|
|
||||||
/* 주문통합내역 */
|
|
||||||
#sodr_sort {margin:0 20px 20px;padding:0;list-style:none;zoom:1}
|
|
||||||
#sodr_sort:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
#sodr_sort li {float:left;margin:0 10px 0 0}
|
|
||||||
#sodr_sort a {font-size:0.95em;text-decoration:underline;letter-spacing:-0.1em}
|
|
||||||
#sodr_sort a.sort_on {color:#ff3061}
|
|
||||||
|
|
||||||
#sodr_all {margin:0 20px}
|
|
||||||
#sodr_all h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
|
||||||
|
|
||||||
#sodr_all .btn_list {margin:10px 0}
|
|
||||||
|
|
||||||
.sodr_all_list {clear:both;margin:0 0 50px;padding:0;list-style:none}
|
|
||||||
|
|
||||||
.sodr_all_list .sodr_basic {float:left;zoom:1}
|
|
||||||
.sodr_all_list .sodr_basic:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.sodr_all_list .sodr_basic dt {float:left;margin:0 10px 0 0}
|
|
||||||
.sodr_all_list .sodr_basic dd {float:left;margin:0 30px 0 0}
|
|
||||||
.sodr_all_list .sodr_basic strong a {color:#ff3061;text-decoration:underline}
|
|
||||||
|
|
||||||
.sodr_all_list .sodr_person {float:right;zoom:1}
|
|
||||||
.sodr_all_list .sodr_person:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.sodr_all_list .sodr_person dt {float:left;margin:0 0 0 30px}
|
|
||||||
.sodr_all_list .sodr_person dd {float:left;margin:0 0 0 10px}
|
|
||||||
|
|
||||||
.sodr_all_list .sodr_pay {clear:both;margin:0;border-top:1px solid #d1dee2;zoom:1}
|
|
||||||
.sodr_all_list .sodr_pay:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.sodr_all_list .sodr_pay dt {float:left;padding:8px 0;width:15%}
|
|
||||||
.sodr_all_list .sodr_pay dd {float:left;margin:0;padding:8px 0;width:35%}
|
|
||||||
|
|
||||||
#sodr_total table {text-align:center}
|
|
||||||
#sodr_total th {width:125px}
|
|
||||||
|
|
||||||
/* 분류관리 목록 */
|
|
||||||
#sct .sct_name {width:130px}
|
|
||||||
#sct th{padding:5px}
|
|
||||||
|
|
||||||
#sct .sct_name div {position:relative}
|
|
||||||
#sct .sct_name1 {padding-left:25px}
|
|
||||||
#sct .sct_name2 {padding-left:50px}
|
|
||||||
#sct .sct_name3 {padding-left:75px}
|
|
||||||
#sct .sct_name4 {padding-left:100px}
|
|
||||||
#sct .name_lbl {position:absolute;top:0;left:-20px;width:13px;height:13px;background:url('../shop_admin/img/icon_reply.gif') 0 0 no-repeat}
|
|
||||||
.sct_pcskin select,.sct_mskin select{width:37% !important}
|
|
||||||
.sct_pcskin .frm_input,.sct_mskin .frm_input{width:60% !important}
|
|
||||||
|
|
||||||
/* 분류 추가/수정 */
|
|
||||||
.frm_ca_id {display:inline-block;margin:0 10px 0 0;font-weight:bold}
|
|
||||||
|
|
||||||
/* 상품관리 */
|
|
||||||
.sit_odrby {text-align:center}
|
|
||||||
.sit_amt {text-align:right;background-color:#e8fbff !important}
|
|
||||||
.sit_amt2 {text-align:right;border-color:#c3e189 !important;background-color:#f6ffe6 !important}
|
|
||||||
.sit_amt3 {text-align:right;border-color:#f6c8c4 !important;background-color:#ffedeb !important}
|
|
||||||
.sit_camt, .sit_pt, .sit_qty {text-align:right}
|
|
||||||
.frm_sit_title {margin:5px 0 0}
|
|
||||||
#fitemlistupdate .td_sort select{width: 33%;float: left;margin-right: 0.3%;}
|
|
||||||
|
|
||||||
/* 상품입력/수정 */
|
|
||||||
#sit_compact {padding:15px 0;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
|
||||||
|
|
||||||
.sit_w_opt {height:70px !important}
|
|
||||||
.sit_wimg {display:none}
|
|
||||||
.sit_relation_list {width:100%;background:#f6f6f6}
|
|
||||||
.sit_relation_selected {width:100%;background:#fcfff2}
|
|
||||||
#add_span img, #sel_span img {margin:5px 0}
|
|
||||||
|
|
||||||
.sit_option {margin:0 0 10px;padding:10px 10px 0;border:1px solid #e9e9e9;background:#f7f7f7}
|
|
||||||
.sit_option .frm_input {background:#fff !important;color:#000}
|
|
||||||
.sit_option_frm_wrapper {margin:0 0 10px;height:auto !important;height:500px;max-height:500px;border:1px solid #ccc;overflow-y:scroll}
|
|
||||||
.sit_option_frm_wrapper th {padding:5px 0 !important;text-align:center !important;width:auto !important}
|
|
||||||
|
|
||||||
#sit_option_frm .btn_list {margin:0 0 10px}
|
|
||||||
#sit_option_frm fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
|
||||||
#sit_option_frm fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}
|
|
||||||
|
|
||||||
#sit_option_addfrm_btn {position:relative}
|
|
||||||
#sit_option_addfrm_btn button {position:absolute;top:-45px;right:0}
|
|
||||||
|
|
||||||
#sit_option_addfrm .btn_list {margin:0 0 10px}
|
|
||||||
#sit_option_addfrm fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
|
||||||
#sit_option_addfrm fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}
|
|
||||||
|
|
||||||
/* 상품 복사 */
|
|
||||||
#sit_copy {margin:10px;padding:10px;background:#fff}
|
|
||||||
#sit_copy label {display:inline-block;margin:0 10px 0 0;font-weight:bold}
|
|
||||||
|
|
||||||
/* 상품 일괄 등록 */
|
|
||||||
#excelfile_upload {margin:10px ;padding:20px;border:1px solid #e9e9e9;background:#fff}
|
|
||||||
#excelfile_upload label {font-weight:bold}
|
|
||||||
#excelfile_input {margin:0 0 20px;text-align:center}
|
|
||||||
#excelfile_result {margin:0 20px 20px;border-bottom:1px solid #e9e9e9;zoom:1}
|
|
||||||
#excelfile_result:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
#excelfile_result dt {clear:both;float:left;padding:10px 0;width:40%;font-weight:bold}
|
|
||||||
#excelfile_result dd {float:left;margin:0;padding:10px 0;width:60%}
|
|
||||||
#excelfile_result .result_done {color:#5d910b}
|
|
||||||
#excelfile_result .result_fail {color:#ff3061}
|
|
||||||
|
|
||||||
/* 상품옵션재고관리 */
|
|
||||||
.sit_stock_qty_alert {color:#ff1133;font-weight:bold}
|
|
||||||
|
|
||||||
/* 배송일괄처리 */
|
|
||||||
#sdeli_proc_fs {padding:20px 0;border-bottom:1px solid #f7f7f7;text-align:center}
|
|
||||||
|
|
||||||
/* 이벤트 입력/수정 */
|
|
||||||
.frm_ev_id {display:inline-block;margin:0 10px 0 0;font-weight:bold}
|
|
||||||
|
|
||||||
/* 관련 상품, 관련 이벤트 입력/수정 */
|
|
||||||
.srel section ul {margin:0;padding:0 10px;list-style:none;background:#fff}
|
|
||||||
.srel section li {padding:5px 0;border-bottom:1px solid #e9e9e9;zoom:1}
|
|
||||||
.srel section li:after {display:block;visibility:hidden;clear:both;content:''}
|
|
||||||
.srel .srel_list, .srel .srel_sel {height:auto !important;height:200px;max-height:200px;border:1px solid #ced9de;background:#f6f6f6;overflow-y:scroll}
|
|
||||||
.srel .list_item {float:left;width:80%}
|
|
||||||
.srel .list_item img {float:left;margin:0 10px 0 0}
|
|
||||||
.srel .list_item_btn {float:right;margin-top:7px}
|
|
||||||
.srel .srel_sel {border:1px solid #ced9de;background:#fcfff2}
|
|
||||||
.srel .srel_list p, .srel .srel_sel p {padding:10px 0;text-align:center}
|
|
||||||
.srel .compare_left ul {margin:0;list-style:none}
|
|
||||||
.srel .srel_noneimg li {padding:7px 0}
|
|
||||||
.srel .srel_noneimg button {top:0;right:0}
|
|
||||||
.srel .srel_pad {display:block;margin:0 0 10px}
|
|
||||||
.srel .srel_pad:after {display:block;visibility:hidden;clear:both;content:''}
|
|
||||||
.srel .srel_pad button {position:static}
|
|
||||||
|
|
||||||
/* 쿠폰관리 */
|
|
||||||
.scp_new_win .empty_table {padding:30px 0}
|
|
||||||
|
|
||||||
#scp_list_find {margin:10px ;padding:20px;border:1px solid #e9e9e9;background:#fff}
|
|
||||||
#scp_list_find .btn_frmline {line-height:1.5em !important}
|
|
||||||
#scp_list_find label {font-weight:bold}
|
|
||||||
|
|
||||||
.scp_find_code {width:110px;text-align:center}
|
|
||||||
|
|
||||||
/* 매출현황 */
|
|
||||||
#ssale_stats {zoom:1}
|
|
||||||
#ssale_stats:after {display:block;clear:both;visibility:hidden;content:''}
|
|
||||||
#ssale_stats div {float:left;padding:2%;width:46%;border-bottom:1px solid #eee;text-align:center}
|
|
||||||
#ssale_stats h3 {margin:30px 0 0;font-size:1.3em;text-align:center}
|
|
||||||
#ssale_stats form {margin:20px 0 10px;padding:10px 0}
|
|
||||||
#ssale_stats .frm_input {padding:0 10px !important;height:24px !important}
|
|
||||||
|
|
||||||
/* 주문내역출력 (새창) */
|
|
||||||
.new_win .sodr_print_pop_list table {width:100%}
|
|
||||||
|
|
||||||
#sodr_print_pop h2 {padding:15px 0;color:#ff3600;text-align:right}
|
|
||||||
#sodr_print_pop h3 {margin:0 0 10px}
|
|
||||||
|
|
||||||
.sodr_print_pop_list {margin:0 20px 10px;padding:0 0 10px;border-bottom:1px dotted #ddd}
|
|
||||||
.sodr_print_pop_list .sodr_print_pop_same {margin:0 0 10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
|
||||||
.sodr_print_pop_list dl {margin:0 0 15px;padding:0;zoom:1}
|
|
||||||
.sodr_print_pop_list dl:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.sodr_print_pop_list dt {float:left;padding:7px 0 6px;width:100px;border-bottom:1px solid #ddd}
|
|
||||||
.sodr_print_pop_list dd {padding:7px 0 6px;border-bottom:1px solid #ddd;overflow:hidden}
|
|
||||||
|
|
||||||
#sodr_print_pop_total {padding:20px 0;text-align:center}
|
|
||||||
#sodr_print_pop_total span {display:block;margin:0 0 10px;font-size:1.5em}
|
|
||||||
#sodr_print_pop_total strong {color:#ff3600}
|
|
||||||
|
|
||||||
/* 배너관리 */
|
|
||||||
.sbn_img {text-align:center}
|
|
||||||
.sbn_image {display:none;margin:0 0 10px;text-align:left}
|
|
||||||
|
|
||||||
/* 가격비교사이트 */
|
|
||||||
#anc_pricecompare_info li {margin:5px 0 5px -1px}
|
|
||||||
|
|
||||||
.price_engine dt a {font-weight:bold}
|
|
||||||
.price_engine dd {margin:0 0 15px}
|
|
||||||
.price_engine ul{padding: 0 0 0 15px;}
|
|
||||||
.price_engine li {margin:5px 0 5px -1px;list-style:disc }
|
|
||||||
|
|
||||||
/* 새창 기본 스타일 */
|
/* 새창 기본 스타일 */
|
||||||
.new_win {}
|
.new_win {}
|
||||||
@@ -894,8 +589,10 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|||||||
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
|
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
|
||||||
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.new_win_ul li {float:left;margin-left:-1px}
|
.new_win_ul li {float:left;margin-left:-1px}
|
||||||
|
|
||||||
.new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #595959;border-left:1px solid #595959;color:#fff;font-family:dotum;font-weight:bold;text-decoration:none}
|
.new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #595959;border-left:1px solid #595959;color:#fff;font-family:dotum;font-weight:bold;text-decoration:none}
|
||||||
|
|
||||||
|
|
||||||
.new_win_desc {margin:0 }
|
.new_win_desc {margin:0 }
|
||||||
.new_win .anchor {margin:0 0 5px}
|
.new_win .anchor {margin:0 0 5px}
|
||||||
|
|
||||||
@@ -905,13 +602,12 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
|||||||
.new_win .win_btn a {display:inline-block;padding:0 10px;height:30px;background:#4b545e;color:#fff;vertical-align:middle;line-height:2.4em}
|
.new_win .win_btn a {display:inline-block;padding:0 10px;height:30px;background:#4b545e;color:#fff;vertical-align:middle;line-height:2.4em}
|
||||||
.new_win .win_btn a:focus, .new_win .win_btn a:hover {text-decoration:none}
|
.new_win .win_btn a:focus, .new_win .win_btn a:hover {text-decoration:none}
|
||||||
|
|
||||||
|
|
||||||
.new_win .local_sch, .new_win .local_cmd, .new_win .local_desc01, .new_win .local_desc02, .new_win .local_ov {margin:10px}
|
.new_win .local_sch, .new_win .local_cmd, .new_win .local_desc01, .new_win .local_desc02, .new_win .local_ov {margin:10px}
|
||||||
|
|
||||||
.new_win_con{margin: 10px; background:#fff;padding:20px}
|
.new_win_con{margin: 10px; background:#fff;padding:20px}
|
||||||
.new_win_con .table_form table th{width:120px}
|
.new_win_con .table_form table th{width:120px}
|
||||||
|
|
||||||
.new_win .btn_confirm {text-align:center;}
|
|
||||||
|
|
||||||
/* 자바스크립트 alert 대안 */
|
/* 자바스크립트 alert 대안 */
|
||||||
#validation_check {margin:100px auto;width:500px}
|
#validation_check {margin:100px auto;width:500px}
|
||||||
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
||||||
@@ -986,46 +682,30 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
|
|||||||
|
|
||||||
/*부가서비스*/
|
/*부가서비스*/
|
||||||
.lnb_svc{color:#ff3061;font-weight:bold}
|
.lnb_svc{color:#ff3061;font-weight:bold}
|
||||||
.service_wrap{ width:965px;margin:0 0 10px;overflow:hidden}
|
.service_wrap{width:960px; margin:0 20px 10px;overflow:hidden}
|
||||||
.sevice_1{border:1px solid #ebe8e8;width:310px;float:left;border-radius:5px;text-align:center;margin-right:6px;}
|
.sevice_1{border:1px solid #ebe8e8;width:330px;float:left;border-radius:5px;text-align:center;margin-right:6px;}
|
||||||
.sevice_1 .svc_img{padding:30px 0 0;}
|
.sevice_1 .svc_img{padding:30px 0 0;}
|
||||||
.sevice_1 h3{font-size:16px;margin:190px 0 10px;min-height:45px;color:#525252}
|
.sevice_1 h3{font-size:16px;margin:15px 0;color:#525252}
|
||||||
.sevice_1 p{padding:20px;background:#f8f8f8;font-size:12px;text-align:left;color:#898989;line-height:18px}
|
.sevice_1 p{padding:20px;background:#f8f8f8;font-size:12px;text-align:left;color:#898989;line-height:18px}
|
||||||
.sevice_1 ul {width:100%;padding:0; margin:0;border-top:1px solid #ebe8e8;}
|
.sevice_1 ul {width:100%;padding:0; margin:0;border-top:1px solid #ebe8e8;}
|
||||||
.sevice_1 ul li{list-style:none;float:left;border-right:1px solid #ebe8e8;}
|
.sevice_1 ul li{list-style:none;float:left;border-right:1px solid #ebe8e8;width:33%;}
|
||||||
.sevice_1 ul li a{display:inline-block;height:75px;width:100%}
|
.sevice_1 ul li a{display:inline-block;height:76px;width:100%}
|
||||||
.sevice_1 ul li img{padding:8px 0 0;}
|
.sevice_1 ul li img{padding:10px 0 0;}
|
||||||
.sevice_1 ul li.last{border:0}
|
.sevice_1 ul li.last{border:0}
|
||||||
.sevice_1 h4{width:100%;padding:0; margin:0;border-top:1px solid #ebe8e8;}
|
.sevice_1 h4{width:100%;padding:0; margin:0;border-top:1px solid #ebe8e8;}
|
||||||
.sevice_1 h4 a{display:inline-block;height:75px;padding:10px 0 0;width:100%}
|
.sevice_1 h4 a{display:inline-block;height:66px;padding:10px 0 0;width:100%}
|
||||||
|
|
||||||
.svc_card{background:url('../img/service_img1.jpg') no-repeat top center;margin-right:13px;}
|
.sevice_2{border:1px solid #ebe8e8;float:left;width:282px;}
|
||||||
.svc_card ul li{width:33%;}
|
.sevice_2 .svc_a{padding:33px 0 0;}
|
||||||
.svc_phone {background:url('../img/service_img2.jpg') no-repeat top center;margin-right:13px;}
|
.sevice_2 .svc_a h3{font-size:14px;letter-spacing:-1px;color:#525252;margin-bottom:5px;padding:0 20px 0}
|
||||||
.svc_phone ul li{width:50%;}
|
.sevice_2 .svc_a p{color:#898989;line-height:18px;letter-spacing:-1px;padding:5px 20px 0;}
|
||||||
.svc_ipin {background:url('../img/service_img3.jpg') no-repeat top center;}
|
.sevice_2 .svc_btn{text-align:center;position:absolute;bottom:0;left:0;width:282px;}
|
||||||
|
.sevice_2 .svc_btn a{display:inline-block; background:#ff3061;text-align:center;color:#fff;padding:10px 20px;}
|
||||||
.service_2{padding-top:15px;clear:both}
|
.sevice_2 .svc_btn a:hover{text-decoration:none;}
|
||||||
.service_2 h3{font-size:14px;letter-spacing:-1px;color:#525252;margin:0 0 4px}
|
.sevice_2 .svc_sms{overflow:hidden; height:212px;position:relative}
|
||||||
|
.sevice_2 .svc_sms .svc_btn a{display:inline-block; background:#f8f8f8;width:100%;text-align:center;margin:0;padding:10px 0 0 }
|
||||||
.service_2 .svc_a p{color:#898989;line-height:16px;letter-spacing:-1px;}
|
.sevice_2 .svc_design{overflow:hidden;height:210px;position:relative}
|
||||||
|
.sevice_2 .svc_design .svc_btn a{margin:0 0 20px}
|
||||||
.svc_keyword{clear:both ;}
|
|
||||||
.svc_keyword .svc_a{float:left;width:230px;padding:46px 0 0 15px ;height:120px; }
|
|
||||||
|
|
||||||
.service_2 .svc_ri .svc_a{padding:25px 0 0 22px;}
|
|
||||||
|
|
||||||
.service_2 .svc_btn{float:right;}
|
|
||||||
.service_2 .svc_btn a{display:inline-block;width:126px; height:37px;background:#ff3061;color:#fff;line-height:37px;text-align:center;margin:22px 13px 0;}
|
|
||||||
.service_2 .svc_btn a:hover,.service_2 .svc_btn a:focus,.service_2 .svc_btn a:active{text-decoration:none}
|
|
||||||
.svc_keyword{background:#e6f2f4}
|
|
||||||
.svc_keyword .svc_btn{margin:40px 0 0 ;}
|
|
||||||
.svc_keyword .svc_btn a{width:160px;}
|
|
||||||
|
|
||||||
.svc_sms{border:1px solid #ebe8e8;position:relative;height:93px}
|
|
||||||
.svc_sms:after{display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
.svc_sms .svc_btn2{position:absolute;top:0;right:0}
|
|
||||||
.svc_sms .svc_btn2 a{display:inline-block; width:220px; height:91px; background:#fbfbfb; text-align:center; padding:20px 0 0;}
|
|
||||||
|
|
||||||
/* 캡챠 */
|
/* 캡챠 */
|
||||||
#captcha {display:inline-block;position:relative}
|
#captcha {display:inline-block;position:relative}
|
||||||
@@ -1041,7 +721,6 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
|
|||||||
#theme_list{padding:0;margin:0;list-style:none; width: 1000px;position:relative}
|
#theme_list{padding:0;margin:0;list-style:none; width: 1000px;position:relative}
|
||||||
#theme_list:after{display:block;visibility:hidden;clear:both;content:""}
|
#theme_list:after{display:block;visibility:hidden;clear:both;content:""}
|
||||||
#theme_list li{margin:10px 10px 10px 0;float:left}
|
#theme_list li{margin:10px 10px 10px 0;float:left}
|
||||||
|
|
||||||
#theme_list li:after{display:block;visibility:hidden;clear:both;content:""}
|
#theme_list li:after{display:block;visibility:hidden;clear:both;content:""}
|
||||||
#theme_list li .tmli_if{border: 1px solid #d1dee2;width:302px;}
|
#theme_list li .tmli_if{border: 1px solid #d1dee2;width:302px;}
|
||||||
#theme_list li .tmli_if>img{width:300px;height:225px;}
|
#theme_list li .tmli_if>img{width:300px;height:225px;}
|
||||||
@@ -1057,6 +736,7 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
|
|||||||
#theme_list li .theme_pr{float:right;margin-top:5px;padding:0 5px;height:26px;line-height:24px; border: 1px solid #ccc; background: #fafafa; }
|
#theme_list li .theme_pr{float:right;margin-top:5px;padding:0 5px;height:26px;line-height:24px; border: 1px solid #ccc; background: #fafafa; }
|
||||||
#theme_list li .theme_preview{ float: right; margin-top: 5px; padding:0 5px;height:26px; border: 1px solid #ccc; background: #fafafa; margin-right:3px}
|
#theme_list li .theme_preview{ float: right; margin-top: 5px; padding:0 5px;height:26px; border: 1px solid #ccc; background: #fafafa; margin-right:3px}
|
||||||
|
|
||||||
|
|
||||||
#theme_detail{position:fixed;top:50%;height:540px;width:900px;margin-top:-271px;background:#fff;background:#f3f3f3;border:1px solid #000;
|
#theme_detail{position:fixed;top:50%;height:540px;width:900px;margin-top:-271px;background:#fff;background:#f3f3f3;border:1px solid #000;
|
||||||
-webkit-box-shadow: 1px 2px 5px rgba(150,150,150,100.5);
|
-webkit-box-shadow: 1px 2px 5px rgba(150,150,150,100.5);
|
||||||
-moz-box-shadow: 1px 2px 5px rgba(150,150,150,0.5);
|
-moz-box-shadow: 1px 2px 5px rgba(150,150,150,0.5);
|
||||||
@@ -1064,7 +744,7 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
|
|||||||
#theme_detail:after{display:block;visibility:hidden;clear:both;content:""}
|
#theme_detail:after{display:block;visibility:hidden;clear:both;content:""}
|
||||||
#theme_detail h2{font-size:1.25em;background:#fff;padding:0 15px;line-height:40px;border-bottom:1px solid #d8d8d8;margin:0}
|
#theme_detail h2{font-size:1.25em;background:#fff;padding:0 15px;line-height:40px;border-bottom:1px solid #d8d8d8;margin:0}
|
||||||
.theme_dt_img{float:left;padding:20px}
|
.theme_dt_img{float:left;padding:20px}
|
||||||
.theme_dt_img img{border:1px solid #aaa;max-width:600px;max-height:460px}
|
.theme_dt_img img{border:1px solid #aaa;}
|
||||||
.theme_dt_if{float:left;width:235px;padding:20px 0}
|
.theme_dt_if{float:left;width:235px;padding:20px 0}
|
||||||
.theme_dt_if table{width:100%;border-collapse:collapse;margin:15px 0 0 ;font-size:0.92em}
|
.theme_dt_if table{width:100%;border-collapse:collapse;margin:15px 0 0 ;font-size:0.92em}
|
||||||
.theme_dt_if table th{padding:5px;background:#fff;border-bottom:1px solid #f3f3f3;vertical-align:top;color:#3f51b5}
|
.theme_dt_if table th{padding:5px;background:#fff;border-bottom:1px solid #f3f3f3;vertical-align:top;color:#3f51b5}
|
||||||
@@ -1078,6 +758,7 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
|
|||||||
#theme_detail .theme_dt_btn .close_btn:hover{background-color:#eceffc}
|
#theme_detail .theme_dt_btn .close_btn:hover{background-color:#eceffc}
|
||||||
#theme_detail .theme_dt_btn .btn_03{line-height:28px;display:inline-block;vertical-align:top;margin-top:6px;padding:0 6px;border-radius:5px}
|
#theme_detail .theme_dt_btn .btn_03{line-height:28px;display:inline-block;vertical-align:top;margin-top:6px;padding:0 6px;border-radius:5px}
|
||||||
|
|
||||||
|
|
||||||
/*글,댓글현황*/
|
/*글,댓글현황*/
|
||||||
#wr_cont{position:relative;margin:10px 0}
|
#wr_cont{position:relative;margin:10px 0}
|
||||||
#wr_cont input[type="submit"]{background:#ff3061;border:none;color:#fff;padding: 0 5px;height: 24px;}
|
#wr_cont input[type="submit"]{background:#ff3061;border:none;color:#fff;padding: 0 5px;height: 24px;}
|
||||||
@@ -1099,32 +780,8 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
|
|||||||
#processing{margin: 0 auto;padding: 70px 0;border: 1px solid #eee;background: #f9f9f9;text-align:center;}
|
#processing{margin: 0 auto;padding: 70px 0;border: 1px solid #eee;background: #f9f9f9;text-align:center;}
|
||||||
#processing p{font-size:1.2em}
|
#processing p{font-size:1.2em}
|
||||||
.check_processing {width:300px;height:300px;margin:0 auto;background:url(../img/check.png) no-repeat 50% 50% }
|
.check_processing {width:300px;height:300px;margin:0 auto;background:url(../img/check.png) no-repeat 50% 50% }
|
||||||
|
|
||||||
|
|
||||||
#processing button{background:#ff3061;border:none;color:#fff;padding: 15px;width:200px;margin-top:15px;border-radius:5px;font-weight:bold;font-size:1.167em}
|
#processing button{background:#ff3061;border:none;color:#fff;padding: 15px;width:200px;margin-top:15px;border-radius:5px;font-weight:bold;font-size:1.167em}
|
||||||
|
|
||||||
|
|
||||||
/*미완료 주문*/
|
|
||||||
#inorderlist .td_name{text-align:center !important}
|
|
||||||
#anc_sodr_pay .btn_confirm{margin-top:30px}
|
|
||||||
#anc_sodr_pay .btn_confirm .btn_submit{width:300px;height:40px;font-size:14px;}
|
|
||||||
|
|
||||||
/*상품문의 */
|
|
||||||
#itemqalist .qa_href .tit_op{background:url(./../img/op_btn1.gif) no-repeat 50% 50%;display:inline-block;text-indent:-999px;overflow:hidden;width:7px;height:4px;margin-left:5px}
|
|
||||||
#itemqalist .qa_div{background:#d8dfe9;padding:10px;margin:5px 0 0;display:none;}
|
|
||||||
#itemqalist .qa_div strong{color:#415f9d;font-size:0.92em;display:block}
|
|
||||||
#itemqalist .qa_div .qa_q{padding-bottom:10px;margin-bottom:5px;border-bottom:1px dashed #fff;}
|
|
||||||
#itemqalist .qa_href{font-weight:bold;text-decoration:none;display:block;}
|
|
||||||
#itemqalist .td_status{color:#888}
|
|
||||||
#itemqalist .td_status strong{color:#ff4588}
|
|
||||||
|
|
||||||
/*상품후기 */
|
|
||||||
#itemuselist .use_href{font-weight:bold;text-decoration:none;display:block;}
|
|
||||||
#itemuselist .use_href .tit_op{background:url(./../img/op_btn1.gif) no-repeat 50% 50%;display:inline-block;text-indent:-999px;overflow:hidden;width:7px;height:4px;margin-left:5px}
|
|
||||||
#itemuselist .use_div{background:#d8dfe9;padding:10px;margin:5px 0 0;display:none;}
|
|
||||||
#itemuselist .td_select{width:100px}
|
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-device-width : 768px) and (orientation : landscape){
|
@media only screen and (max-device-width : 768px) and (orientation : landscape){
|
||||||
/* Styles */
|
/* Styles */
|
||||||
input[type="text"]{max-width:200px}
|
input[type="text"]{max-width:200px}
|
||||||
|
|||||||
@@ -177,98 +177,6 @@ if( !$row ) {
|
|||||||
$is_check = true;
|
$is_check = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
|
|
||||||
// 임시저장 테이블이 없을 경우 생성
|
|
||||||
if(!sql_query(" DESC {$g5['g5_shop_post_log_table']} ", false)) {
|
|
||||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['g5_shop_post_log_table']}` (
|
|
||||||
`log_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`oid` bigint(20) unsigned NOT NULL,
|
|
||||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
|
||||||
`post_data` text NOT NULL,
|
|
||||||
`ol_code` varchar(255) NOT NULL DEFAULT '',
|
|
||||||
`ol_msg` text NOT NULL,
|
|
||||||
`ol_datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
||||||
`ol_ip` varchar(25) NOT NULL DEFAULT '',
|
|
||||||
PRIMARY KEY (`log_id`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$result = sql_query("describe `{$g5['g5_shop_post_log_table']}`");
|
|
||||||
while ($row = sql_fetch_array($result)){
|
|
||||||
if( isset($row['Field']) && $row['Field'] === 'ol_msg' && $row['Type'] === 'varchar(255)' ){
|
|
||||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` MODIFY ol_msg TEXT NOT NULL;", false);
|
|
||||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` DROP PRIMARY KEY;", false);
|
|
||||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` ADD `log_id` int(11) NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (`log_id`);", false);
|
|
||||||
$is_check = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($default['de_id'])) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
|
||||||
ADD COLUMN `de_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
|
||||||
ADD PRIMARY KEY (`de_id`); ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// auth.au_menu 컬럼 크기 조정
|
|
||||||
$sql = " SHOW COLUMNS FROM `{$g5['auth_table']}` LIKE 'au_menu' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
if (
|
|
||||||
stripos($row['Type'], 'varchar') !== false
|
|
||||||
&& (int) preg_replace('/[^0-9]/', '', $row['Type']) < 50
|
|
||||||
) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['auth_table']}` CHANGE `au_menu` `au_menu` VARCHAR(50) NOT NULL; ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// qa config 테이블 auto id key 추가
|
|
||||||
$row = sql_fetch("select * from `{$g5['qa_config_table']}` limit 1");
|
|
||||||
if (!isset($row['qa_id'])) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['qa_config_table']}` ADD COLUMN `qa_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
|
||||||
ADD PRIMARY KEY (`qa_id`); ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// config 기본 테이블 auto id key 추가
|
|
||||||
if (!isset($config['cf_id'])) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
|
||||||
ADD COLUMN `cf_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
|
||||||
ADD PRIMARY KEY (`cf_id`); ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// login 테이블 auto id key 추가
|
|
||||||
$row = sql_fetch("select * from `{$g5['login_table']}` limit 1");
|
|
||||||
if (!isset($row['lo_id'])) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['login_table']}`
|
|
||||||
ADD COLUMN `lo_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
|
||||||
DROP PRIMARY KEY,
|
|
||||||
ADD PRIMARY KEY (`lo_id`),
|
|
||||||
ADD UNIQUE KEY `lo_ip_unique` (`lo_ip`) ", true);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// visit 테이블 auto id key 로 변경
|
|
||||||
$result = sql_query("describe `{$g5['visit_table']}`");
|
|
||||||
while ($row = sql_fetch_array($result)){
|
|
||||||
if (isset($row['Field']) && $row['Field'] === 'vi_id' && (isset($row['Default']) && $row['Default'] == 0)){
|
|
||||||
sql_query("ALTER TABLE `{$g5['visit_table']}`
|
|
||||||
CHANGE COLUMN `vi_id` `vi_id` INT(11) NOT NULL AUTO_INCREMENT;
|
|
||||||
", false);
|
|
||||||
|
|
||||||
$is_check = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$is_check = run_replace('admin_dbupgrade', $is_check);
|
$is_check = run_replace('admin_dbupgrade', $is_check);
|
||||||
|
|
||||||
$db_upgrade_msg = $is_check ? 'DB 업그레이드가 완료되었습니다.' : '더 이상 업그레이드 할 내용이 없습니다.<br>현재 DB 업그레이드가 완료된 상태입니다.';
|
$db_upgrade_msg = $is_check ? 'DB 업그레이드가 완료되었습니다.' : '더 이상 업그레이드 할 내용이 없습니다.<br>현재 DB 업그레이드가 완료된 상태입니다.';
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ if ($w == "")
|
|||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
$fa_id = sql_insert_id();
|
$fa_id = sql_insert_id();
|
||||||
run_event('admin_faq_item_created', $fa_id, $fm_id);
|
|
||||||
}
|
}
|
||||||
else if ($w == "u")
|
else if ($w == "u")
|
||||||
{
|
{
|
||||||
@@ -38,14 +37,11 @@ else if ($w == "u")
|
|||||||
set $sql_common
|
set $sql_common
|
||||||
where fa_id = '$fa_id' ";
|
where fa_id = '$fa_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_faq_item_updated', $fa_id, $fm_id);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if ($w == "d")
|
else if ($w == "d")
|
||||||
{
|
{
|
||||||
$sql = " delete from {$g5['faq_table']} where fa_id = '$fa_id' ";
|
$sql = " delete from {$g5['faq_table']} where fa_id = '$fa_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_faq_item_deleted', $fa_id, $fm_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == 'd')
|
if ($w == 'd')
|
||||||
|
|||||||
+7
-5
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300700';
|
$sub_menu = '300700';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
auth_check_menu($auth, $sub_menu, "r");
|
||||||
|
|
||||||
@@ -10,9 +10,9 @@ if (isset($_REQUEST['fm_subject'])) {
|
|||||||
$g5['title'] .= ' : '.$fm_subject;
|
$g5['title'] .= ' : '.$fm_subject;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fm_id = isset($fm_id) ? (int) $fm_id : 0;
|
$fm_id = (int) $fm_id;
|
||||||
|
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
||||||
$fm = sql_fetch($sql);
|
$fm = sql_fetch($sql);
|
||||||
@@ -57,7 +57,8 @@ $result = sql_query($sql);
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g5['faq_table']} where fm_id = '{$row['fm_id']}' ");
|
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g5['faq_table']} where fm_id = '{$row['fm_id']}' ");
|
||||||
$cnt = $row1['cnt'];
|
$cnt = $row1['cnt'];
|
||||||
|
|
||||||
@@ -80,6 +81,7 @@ $result = sql_query($sql);
|
|||||||
<a href="./faqformupdate.php?w=d&fm_id=<?php echo $row['fm_id']; ?>&fa_id=<?php echo $row['fa_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only"><?php echo $fa_subject; ?> </span>삭제</a>
|
<a href="./faqformupdate.php?w=d&fm_id=<?php echo $row['fm_id']; ?>&fa_id=<?php echo $row['fa_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only"><?php echo $fa_subject; ?> </span>삭제</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,4 +96,4 @@ $result = sql_query($sql);
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+19
-27
@@ -1,24 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300700';
|
$sub_menu = '300700';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
|
|
||||||
$html_title = 'FAQ';
|
$html_title = 'FAQ';
|
||||||
|
|
||||||
$fm_id = isset($_GET['fm_id']) ? strval(preg_replace('/[^0-9]/', '', $_GET['fm_id'])) : 0;
|
$fm_id = isset($_GET['fm_id']) ? preg_replace('/[^0-9]/', '', $_GET['fm_id']) : 0;
|
||||||
|
|
||||||
if ($w == "u") {
|
if ($w == "u")
|
||||||
|
{
|
||||||
$html_title .= ' 수정';
|
$html_title .= ' 수정';
|
||||||
$readonly = ' readonly';
|
$readonly = ' readonly';
|
||||||
|
|
||||||
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
||||||
$fm = sql_fetch($sql);
|
$fm = sql_fetch($sql);
|
||||||
if (!$fm['fm_id']) {
|
if (!$fm['fm_id']) alert('등록된 자료가 없습니다.');
|
||||||
alert('등록된 자료가 없습니다.');
|
|
||||||
}
|
}
|
||||||
} else {
|
else
|
||||||
|
{
|
||||||
$html_title .= ' 입력';
|
$html_title .= ' 입력';
|
||||||
$fm = array('fm_order'=>'', 'fm_subject'=>'', 'fm_id'=>0, 'fm_head_html'=> '', 'fm_tail_html'=> '', 'fm_mobile_head_html' => '', 'fm_mobile_tail_html' => '');
|
$fm = array('fm_order'=>'', 'fm_subject'=>'', 'fm_id'=>0, 'fm_head_html'=> '', 'fm_tail_html'=> '', 'fm_mobile_head_html' => '', 'fm_mobile_tail_html' => '');
|
||||||
}
|
}
|
||||||
@@ -27,15 +28,12 @@ $g5['title'] = $html_title . ' 관리';
|
|||||||
|
|
||||||
// 모바일 상하단 내용 필드추가
|
// 모바일 상하단 내용 필드추가
|
||||||
if(!sql_query(" select fm_mobile_head_html from {$g5['faq_master_table']} limit 1 ", false)) {
|
if(!sql_query(" select fm_mobile_head_html from {$g5['faq_master_table']} limit 1 ", false)) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['faq_master_table']}`
|
||||||
" ALTER TABLE `{$g5['faq_master_table']}`
|
|
||||||
ADD `fm_mobile_head_html` text NOT NULL AFTER `fm_tail_html`,
|
ADD `fm_mobile_head_html` text NOT NULL AFTER `fm_tail_html`,
|
||||||
ADD `fm_mobile_tail_html` text NOT NULL AFTER `fm_mobile_head_html` ",
|
ADD `fm_mobile_tail_html` text NOT NULL AFTER `fm_mobile_head_html` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="frmfaqmasterform" action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
|
<form name="frmfaqmasterform" action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
|
||||||
@@ -75,16 +73,13 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
<?php
|
<?php
|
||||||
$himg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_h';
|
$himg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_h';
|
||||||
$himg_str = '';
|
$himg_str = '';
|
||||||
$width = 0;
|
|
||||||
if (file_exists($himg)) {
|
if (file_exists($himg)) {
|
||||||
$size = @getimagesize($himg);
|
$size = @getimagesize($himg);
|
||||||
if ($size) {
|
if($size[0] && $size[0] > 750)
|
||||||
if ($size[0] && $size[0] > 750) {
|
|
||||||
$width = 750;
|
$width = 750;
|
||||||
} else {
|
else
|
||||||
$width = $size[0];
|
$width = $size[0];
|
||||||
}
|
|
||||||
}
|
|
||||||
echo '<input type="checkbox" name="fm_himg_del" value="1" id="fm_himg_del"> <label for="fm_himg_del">삭제</label>';
|
echo '<input type="checkbox" name="fm_himg_del" value="1" id="fm_himg_del"> <label for="fm_himg_del">삭제</label>';
|
||||||
$himg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_h" width="'.$width.'" alt="">';
|
$himg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_h" width="'.$width.'" alt="">';
|
||||||
}
|
}
|
||||||
@@ -103,16 +98,12 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
<?php
|
<?php
|
||||||
$timg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_t';
|
$timg = G5_DATA_PATH.'/faq/'.$fm['fm_id'].'_t';
|
||||||
$timg_str = '';
|
$timg_str = '';
|
||||||
$width = 0;
|
|
||||||
if (file_exists($timg)) {
|
if (file_exists($timg)) {
|
||||||
$size = @getimagesize($timg);
|
$size = @getimagesize($timg);
|
||||||
if ($size) {
|
if($size[0] && $size[0] > 750)
|
||||||
if ($size[0] && $size[0] > 750) {
|
|
||||||
$width = 750;
|
$width = 750;
|
||||||
} else {
|
else
|
||||||
$width = $size[0];
|
$width = $size[0];
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '<input type="checkbox" name="fm_timg_del" value="1" id="fm_timg_del"><label for="fm_timg_del">삭제</label>';
|
echo '<input type="checkbox" name="fm_timg_del" value="1" id="fm_timg_del"><label for="fm_timg_del">삭제</label>';
|
||||||
$timg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_t" width="'.$width.'" alt="">';
|
$timg_str = '<img src="'.G5_DATA_URL.'/faq/'.$fm['fm_id'].'_t" width="'.$width.'" alt="">';
|
||||||
@@ -161,7 +152,8 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function frmfaqmasterform_check(f) {
|
function frmfaqmasterform_check(f)
|
||||||
|
{
|
||||||
<?php echo get_editor_js('fm_head_html'); ?>
|
<?php echo get_editor_js('fm_head_html'); ?>
|
||||||
<?php echo get_editor_js('fm_tail_html'); ?>
|
<?php echo get_editor_js('fm_tail_html'); ?>
|
||||||
<?php echo get_editor_js('fm_mobile_head_html'); ?>
|
<?php echo get_editor_js('fm_mobile_head_html'); ?>
|
||||||
@@ -172,4 +164,4 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+18
-24
@@ -1,16 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300700';
|
$sub_menu = '300700';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($w == "u" || $w == "d") {
|
if ($w == "u" || $w == "d")
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
if ($w == 'd') {
|
if ($w == 'd')
|
||||||
auth_check_menu($auth, $sub_menu, "d");
|
auth_check_menu($auth, $sub_menu, "d");
|
||||||
} else {
|
else
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
@@ -27,12 +25,8 @@ $fm_mobile_head_html = isset($_POST['fm_mobile_head_html']) ? $_POST['fm_mobile_
|
|||||||
$fm_mobile_tail_html = isset($_POST['fm_mobile_tail_html']) ? $_POST['fm_mobile_tail_html'] : '';
|
$fm_mobile_tail_html = isset($_POST['fm_mobile_tail_html']) ? $_POST['fm_mobile_tail_html'] : '';
|
||||||
$fm_order = isset($_POST['fm_order']) ? (int) $_POST['fm_order'] : 0;
|
$fm_order = isset($_POST['fm_order']) ? (int) $_POST['fm_order'] : 0;
|
||||||
|
|
||||||
if ($fm_himg_del) {
|
if ($fm_himg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
|
||||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_h");
|
if ($fm_timg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
|
||||||
}
|
|
||||||
if ($fm_timg_del) {
|
|
||||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_t");
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql_common = " set fm_subject = '$fm_subject',
|
$sql_common = " set fm_subject = '$fm_subject',
|
||||||
fm_head_html = '$fm_head_html',
|
fm_head_html = '$fm_head_html',
|
||||||
@@ -41,7 +35,8 @@ $sql_common = " set fm_subject = '$fm_subject',
|
|||||||
fm_mobile_tail_html = '$fm_mobile_tail_html',
|
fm_mobile_tail_html = '$fm_mobile_tail_html',
|
||||||
fm_order = '$fm_order' ";
|
fm_order = '$fm_order' ";
|
||||||
|
|
||||||
if ($w == "") {
|
if ($w == "")
|
||||||
|
{
|
||||||
$sql = " alter table {$g5['faq_master_table']} auto_increment=1 ";
|
$sql = " alter table {$g5['faq_master_table']} auto_increment=1 ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
@@ -49,14 +44,14 @@ if ($w == "") {
|
|||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
$fm_id = sql_insert_id();
|
$fm_id = sql_insert_id();
|
||||||
run_event('admin_faq_master_created', $fm_id);
|
}
|
||||||
|
else if ($w == "u")
|
||||||
} elseif ($w == "u") {
|
{
|
||||||
$sql = " update {$g5['faq_master_table']} $sql_common where fm_id = '$fm_id' ";
|
$sql = " update {$g5['faq_master_table']} $sql_common where fm_id = '$fm_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_faq_master_updated', $fm_id);
|
}
|
||||||
|
else if ($w == "d")
|
||||||
} elseif ($w == "d") {
|
{
|
||||||
@unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
|
@unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
|
||||||
@unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
|
@unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
|
||||||
|
|
||||||
@@ -67,11 +62,10 @@ if ($w == "") {
|
|||||||
// FAQ상세삭제
|
// FAQ상세삭제
|
||||||
$sql = " delete from {$g5['faq_table']} where fm_id = '$fm_id' ";
|
$sql = " delete from {$g5['faq_table']} where fm_id = '$fm_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
run_event('admin_faq_master_deleted', $fm_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == "" || $w == "u") {
|
if ($w == "" || $w == "u")
|
||||||
|
{
|
||||||
if ($_FILES['fm_himg']['name']){
|
if ($_FILES['fm_himg']['name']){
|
||||||
$dest_path = G5_DATA_PATH."/faq/".$fm_id."_h";
|
$dest_path = G5_DATA_PATH."/faq/".$fm_id."_h";
|
||||||
@move_uploaded_file($_FILES['fm_himg']['tmp_name'], $dest_path);
|
@move_uploaded_file($_FILES['fm_himg']['tmp_name'], $dest_path);
|
||||||
@@ -84,6 +78,6 @@ if ($w == "" || $w == "u") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
goto_url("./faqmasterform.php?w=u&fm_id=$fm_id");
|
goto_url("./faqmasterform.php?w=u&fm_id=$fm_id");
|
||||||
} else {
|
|
||||||
goto_url("./faqmasterlist.php");
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
goto_url("./faqmasterlist.php");
|
||||||
+9
-19
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '300700';
|
$sub_menu = '300700';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
auth_check_menu($auth, $sub_menu, "r");
|
||||||
|
|
||||||
@@ -14,17 +14,14 @@ if (!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) {
|
|||||||
if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) {
|
if(sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) {
|
||||||
sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false);
|
sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false);
|
||||||
} else {
|
} else {
|
||||||
$query_cp = sql_query(
|
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` (
|
|
||||||
`fm_id` int(11) NOT NULL AUTO_INCREMENT,
|
`fm_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`fm_subject` varchar(255) NOT NULL DEFAULT '',
|
`fm_subject` varchar(255) NOT NULL DEFAULT '',
|
||||||
`fm_head_html` text NOT NULL,
|
`fm_head_html` text NOT NULL,
|
||||||
`fm_tail_html` text NOT NULL,
|
`fm_tail_html` text NOT NULL,
|
||||||
`fm_order` int(11) NOT NULL DEFAULT '0',
|
`fm_order` int(11) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`fm_id`)
|
PRIMARY KEY (`fm_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
// FAQ Master
|
// FAQ Master
|
||||||
sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false);
|
sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false);
|
||||||
@@ -35,8 +32,7 @@ if (!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) {
|
|||||||
if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) {
|
if(sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) {
|
||||||
sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false);
|
sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false);
|
||||||
} else {
|
} else {
|
||||||
$query_cp = sql_query(
|
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` (
|
|
||||||
`fa_id` int(11) NOT NULL AUTO_INCREMENT,
|
`fa_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`fm_id` int(11) NOT NULL DEFAULT '0',
|
`fm_id` int(11) NOT NULL DEFAULT '0',
|
||||||
`fa_subject` text NOT NULL,
|
`fa_subject` text NOT NULL,
|
||||||
@@ -44,14 +40,12 @@ if (!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) {
|
|||||||
`fa_order` int(11) NOT NULL DEFAULT '0',
|
`fa_order` int(11) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`fa_id`),
|
PRIMARY KEY (`fa_id`),
|
||||||
KEY `fm_id` (`fm_id`)
|
KEY `fm_id` (`fm_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = 'FAQ관리';
|
$g5['title'] = 'FAQ관리';
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
$sql_common = " from {$g5['faq_master_table']} ";
|
$sql_common = " from {$g5['faq_master_table']} ";
|
||||||
|
|
||||||
@@ -62,9 +56,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1;
|
|
||||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = "select * $sql_common order by fm_order, fm_id limit $from_record, {$config['cf_page_rows']} ";
|
$sql = "select * $sql_common order by fm_order, fm_id limit $from_record, {$config['cf_page_rows']} ";
|
||||||
@@ -72,9 +64,7 @@ $result = sql_query($sql);
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
<div class="local_ov01 local_ov">
|
||||||
<?php if ($page > 1) { ?>
|
<?php if ($page > 1) {?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">처음으로</a><?php } ?>
|
||||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">처음으로</a>
|
|
||||||
<?php } ?>
|
|
||||||
<span class="btn_ov01"><span class="ov_txt"> 전체 FAQ </span><span class="ov_num"> <?php echo $total_count; ?>건</span></span>
|
<span class="btn_ov01"><span class="ov_txt"> 전체 FAQ </span><span class="ov_num"> <?php echo $total_count; ?>건</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -134,4 +124,4 @@ $result = sql_query($sql);
|
|||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 3.0 KiB |
+54
-80
@@ -1,34 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100000';
|
$sub_menu = '100000';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
@require_once './safe_check.php';
|
|
||||||
|
|
||||||
|
@include_once('./safe_check.php');
|
||||||
if(function_exists('social_log_file_delete')){
|
if(function_exists('social_log_file_delete')){
|
||||||
//소셜로그인 디버그 파일 24시간 지난것은 삭제
|
social_log_file_delete(86400); //소셜로그인 디버그 파일 24시간 지난것은 삭제
|
||||||
social_log_file_delete(86400);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = '관리자메인';
|
$g5['title'] = '관리자메인';
|
||||||
require_once './admin.head.php';
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
$new_member_rows = 5;
|
$new_member_rows = 5;
|
||||||
$new_point_rows = 5;
|
$new_point_rows = 5;
|
||||||
$new_write_rows = 5;
|
$new_write_rows = 5;
|
||||||
|
|
||||||
$addtional_content_before = run_replace('adm_index_addtional_content_before', '', $is_admin, $auth, $member);
|
|
||||||
if ($addtional_content_before) {
|
|
||||||
echo $addtional_content_before;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|
||||||
$sql_common = " from {$g5['member_table']} ";
|
$sql_common = " from {$g5['member_table']} ";
|
||||||
|
|
||||||
$sql_search = " where (1) ";
|
$sql_search = " where (1) ";
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||||
}
|
|
||||||
|
|
||||||
if (!$sst) {
|
if (!$sst) {
|
||||||
$sst = "mb_datetime";
|
$sst = "mb_datetime";
|
||||||
@@ -37,7 +28,7 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
|
|
||||||
$sql_order = " order by {$sst} {$sod} ";
|
$sql_order = " order by {$sst} {$sod} ";
|
||||||
|
|
||||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row['cnt'];
|
||||||
|
|
||||||
@@ -47,11 +38,11 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
$leave_count = $row['cnt'];
|
$leave_count = $row['cnt'];
|
||||||
|
|
||||||
// 차단회원수
|
// 차단회원수
|
||||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} ";
|
$sql = " select count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$intercept_count = $row['cnt'];
|
$intercept_count = $row['cnt'];
|
||||||
|
|
||||||
$sql = " SELECT * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} ";
|
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$colspan = 12;
|
$colspan = 12;
|
||||||
@@ -82,19 +73,22 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
// 접근가능한 그룹수
|
// 접근가능한 그룹수
|
||||||
$sql2 = " SELECT count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = "";
|
$group = "";
|
||||||
if ($row2['cnt']) {
|
if ($row2['cnt'])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin == 'group') {
|
if ($is_admin == 'group')
|
||||||
|
{
|
||||||
$s_mod = '';
|
$s_mod = '';
|
||||||
$s_del = '';
|
$s_del = '';
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$s_mod = '<a href="./member_form.php?$qstr&w=u&mb_id='.$row['mb_id'].'">수정</a>';
|
$s_mod = '<a href="./member_form.php?$qstr&w=u&mb_id='.$row['mb_id'].'">수정</a>';
|
||||||
$s_del = '<a href="./member_delete.php?'.$qstr.'&w=d&mb_id='.$row['mb_id'].'&url='.$_SERVER['SCRIPT_NAME'].'" onclick="return delete_confirm(this);">삭제</a>';
|
$s_del = '<a href="./member_delete.php?'.$qstr.'&w=d&mb_id='.$row['mb_id'].'&url='.$_SERVER['SCRIPT_NAME'].'" onclick="return delete_confirm(this);">삭제</a>';
|
||||||
}
|
}
|
||||||
@@ -110,9 +104,7 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="td_mbid"><?php echo $mb_id ?></td>
|
<td class="td_mbid"><?php echo $mb_id ?></td>
|
||||||
<td class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
<td class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
||||||
<td class="td_mbname sv_use">
|
<td class="td_mbname sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||||
<div><?php echo $mb_nick ?></div>
|
|
||||||
</td>
|
|
||||||
<td class="td_num"><?php echo $row['mb_level'] ?></td>
|
<td class="td_num"><?php echo $row['mb_level'] ?></td>
|
||||||
<td><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
|
<td><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
|
||||||
<td class="td_boolean"><?php echo $row['mb_mailling']?'예':'아니오'; ?></td>
|
<td class="td_boolean"><?php echo $row['mb_mailling']?'예':'아니오'; ?></td>
|
||||||
@@ -123,9 +115,8 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -134,28 +125,23 @@ if (!auth_check_menu($auth, '200100', 'r', true)) {
|
|||||||
<div class="btn_list03 btn_list">
|
<div class="btn_list03 btn_list">
|
||||||
<a href="./member_list.php">회원 전체보기</a>
|
<a href="./member_list.php">회원 전체보기</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} //endif 최신 회원
|
|
||||||
|
|
||||||
if (!auth_check_menu($auth, '300100', 'r', true)) {
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
|
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
|
||||||
|
|
||||||
if ($gr_id) {
|
if ($gr_id)
|
||||||
$sql_common .= " and b.gr_id = '{$gr_id}' ";
|
$sql_common .= " and b.gr_id = '$gr_id' ";
|
||||||
}
|
|
||||||
if (isset($view) && $view) {
|
if (isset($view) && $view) {
|
||||||
if ($view == 'w') {
|
if ($view == 'w')
|
||||||
$sql_common .= " and a.wr_id = a.wr_parent ";
|
$sql_common .= " and a.wr_id = a.wr_parent ";
|
||||||
} elseif ($view == 'c') {
|
else if ($view == 'c')
|
||||||
$sql_common .= " and a.wr_id <> a.wr_parent ";
|
$sql_common .= " and a.wr_id <> a.wr_parent ";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$sql_order = " order by a.bn_id desc ";
|
$sql_order = " order by a.bn_id desc ";
|
||||||
|
|
||||||
$sql = " SELECT count(*) as cnt {$sql_common} ";
|
$sql = " select count(*) as cnt {$sql_common} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row['cnt'];
|
||||||
|
|
||||||
@@ -179,60 +165,58 @@ if (!auth_check_menu($auth, '300100', 'r', true)) {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$sql = " SELECT a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$tmp_write_table = $g5['write_prefix'] . $row['bo_table'];
|
$tmp_write_table = $g5['write_prefix'] . $row['bo_table'];
|
||||||
|
|
||||||
if ($row['wr_id'] == $row['wr_parent']) {
|
if ($row['wr_id'] == $row['wr_parent']) // 원글
|
||||||
// 원글
|
{
|
||||||
$comment = "";
|
$comment = "";
|
||||||
$comment_link = "";
|
$comment_link = "";
|
||||||
$row2 = sql_fetch(" SELECT * from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '{$row['wr_id']}' ");
|
||||||
|
|
||||||
$name = get_sideview($row2['mb_id'], get_text(cut_str($row2['wr_name'], $config['cf_cut_name'])), $row2['wr_email'], $row2['wr_homepage']);
|
$name = get_sideview($row2['mb_id'], get_text(cut_str($row2['wr_name'], $config['cf_cut_name'])), $row2['wr_email'], $row2['wr_homepage']);
|
||||||
// 당일인 경우 시간으로 표시함
|
// 당일인 경우 시간으로 표시함
|
||||||
$datetime = substr($row2['wr_datetime'],0,10);
|
$datetime = substr($row2['wr_datetime'],0,10);
|
||||||
$datetime2 = $row2['wr_datetime'];
|
$datetime2 = $row2['wr_datetime'];
|
||||||
if ($datetime == G5_TIME_YMD) {
|
if ($datetime == G5_TIME_YMD)
|
||||||
$datetime2 = substr($datetime2,11,5);
|
$datetime2 = substr($datetime2,11,5);
|
||||||
} else {
|
else
|
||||||
$datetime2 = substr($datetime2,5,5);
|
$datetime2 = substr($datetime2,5,5);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
else // 코멘트
|
||||||
// 코멘트
|
{
|
||||||
$comment = '댓글. ';
|
$comment = '댓글. ';
|
||||||
$comment_link = '#c_'.$row['wr_id'];
|
$comment_link = '#c_'.$row['wr_id'];
|
||||||
$row2 = sql_fetch(" SELECT * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
$row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||||
$row3 = sql_fetch(" SELECT mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||||
|
|
||||||
$name = get_sideview($row3['mb_id'], get_text(cut_str($row3['wr_name'], $config['cf_cut_name'])), $row3['wr_email'], $row3['wr_homepage']);
|
$name = get_sideview($row3['mb_id'], get_text(cut_str($row3['wr_name'], $config['cf_cut_name'])), $row3['wr_email'], $row3['wr_homepage']);
|
||||||
// 당일인 경우 시간으로 표시함
|
// 당일인 경우 시간으로 표시함
|
||||||
$datetime = substr($row3['wr_datetime'],0,10);
|
$datetime = substr($row3['wr_datetime'],0,10);
|
||||||
$datetime2 = $row3['wr_datetime'];
|
$datetime2 = $row3['wr_datetime'];
|
||||||
if ($datetime == G5_TIME_YMD) {
|
if ($datetime == G5_TIME_YMD)
|
||||||
$datetime2 = substr($datetime2,11,5);
|
$datetime2 = substr($datetime2,11,5);
|
||||||
} else {
|
else
|
||||||
$datetime2 = substr($datetime2,5,5);
|
$datetime2 = substr($datetime2,5,5);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><a href="<?php echo G5_BBS_URL ?>/new.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo cut_str($row['gr_subject'],10) ?></a></td>
|
<td class="td_category"><a href="<?php echo G5_BBS_URL ?>/new.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo cut_str($row['gr_subject'],10) ?></a></td>
|
||||||
<td class="td_category"><a href="<?php echo get_pretty_url($row['bo_table']) ?>"><?php echo cut_str($row['bo_subject'],20) ?></a></td>
|
<td class="td_category"><a href="<?php echo get_pretty_url($row['bo_table']) ?>"><?php echo cut_str($row['bo_subject'],20) ?></a></td>
|
||||||
<td><a href="<?php echo get_pretty_url($row['bo_table'], $row2['wr_id']); ?><?php echo $comment_link ?>"><?php echo $comment ?><?php echo conv_subject($row2['wr_subject'], 100) ?></a></td>
|
<td><a href="<?php echo get_pretty_url($row['bo_table'], $row2['wr_id']); ?><?php echo $comment_link ?>"><?php echo $comment ?><?php echo conv_subject($row2['wr_subject'], 100) ?></a></td>
|
||||||
<td class="td_mbname">
|
<td class="td_mbname"><div><?php echo $name ?></div></td>
|
||||||
<div><?php echo $name ?></div>
|
|
||||||
</td>
|
|
||||||
<td class="td_datetime"><?php echo $datetime ?></td>
|
<td class="td_datetime"><?php echo $datetime ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -244,19 +228,15 @@ if (!auth_check_menu($auth, '300100', 'r', true)) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} //endif 최근게시물
|
|
||||||
|
|
||||||
if (!auth_check_menu($auth, '200200', 'r', true)) {
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['point_table']} ";
|
$sql_common = " from {$g5['point_table']} ";
|
||||||
$sql_search = " where (1) ";
|
$sql_search = " where (1) ";
|
||||||
$sql_order = " order by po_id desc ";
|
$sql_order = " order by po_id desc ";
|
||||||
|
|
||||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row['cnt'];
|
||||||
|
|
||||||
$sql = " SELECT * {$sql_common} {$sql_search} {$sql_order} limit {$new_point_rows} ";
|
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_point_rows} ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$colspan = 7;
|
$colspan = 7;
|
||||||
@@ -285,16 +265,19 @@ if (!auth_check_menu($auth, '200200', 'r', true)) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
$row2['mb_id'] = '';
|
$row2['mb_id'] = '';
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
if ($row2['mb_id'] != $row['mb_id']) {
|
{
|
||||||
$sql2 = " SELECT mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
if ($row2['mb_id'] != $row['mb_id'])
|
||||||
|
{
|
||||||
|
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
}
|
}
|
||||||
|
|
||||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||||
|
|
||||||
$link1 = $link2 = "";
|
$link1 = $link2 = "";
|
||||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table'])
|
||||||
|
{
|
||||||
$link1 = '<a href="'.get_pretty_url($row['po_rel_table'], $row['po_rel_id']).'" target="_blank">';
|
$link1 = '<a href="'.get_pretty_url($row['po_rel_table'], $row['po_rel_id']).'" target="_blank">';
|
||||||
$link2 = '</a>';
|
$link2 = '</a>';
|
||||||
}
|
}
|
||||||
@@ -303,9 +286,7 @@ if (!auth_check_menu($auth, '200200', 'r', true)) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="td_mbid"><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
<td class="td_mbid"><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
||||||
<td class="td_mbname"><?php echo get_text($row2['mb_name']); ?></td>
|
<td class="td_mbname"><?php echo get_text($row2['mb_name']); ?></td>
|
||||||
<td class="td_name sv_use">
|
<td class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||||
<div><?php echo $mb_nick ?></div>
|
|
||||||
</td>
|
|
||||||
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
||||||
<td><?php echo $link1.$row['po_content'].$link2 ?></td>
|
<td><?php echo $link1.$row['po_content'].$link2 ?></td>
|
||||||
<td class="td_numbig"><?php echo number_format($row['po_point']) ?></td>
|
<td class="td_numbig"><?php echo number_format($row['po_point']) ?></td>
|
||||||
@@ -315,9 +296,8 @@ if (!auth_check_menu($auth, '200200', 'r', true)) {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -329,10 +309,4 @@ if (!auth_check_menu($auth, '200200', 'r', true)) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} //endif
|
include_once ('./admin.tail.php');
|
||||||
|
|
||||||
$addtional_content_after = run_replace('adm_index_addtional_content_after', '', $is_admin, $auth, $member);
|
|
||||||
if ($addtional_content_after) {
|
|
||||||
echo $addtional_content_after;
|
|
||||||
}
|
|
||||||
require_once './admin.tail.php';
|
|
||||||
+2
-4
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '200300';
|
$sub_menu = '200300';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -10,16 +10,14 @@ check_admin_token();
|
|||||||
|
|
||||||
$post_count_chk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
$post_count_chk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||||
|
|
||||||
if (!$post_count_chk) {
|
if(! $post_count_chk)
|
||||||
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
|
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
|
||||||
}
|
|
||||||
|
|
||||||
for($i=0; $i<$post_count_chk; $i++) {
|
for($i=0; $i<$post_count_chk; $i++) {
|
||||||
$ma_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$ma_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|
||||||
$sql = " delete from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
$sql = " delete from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_mail_deleted', $ma_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
goto_url('./mail_list.php');
|
goto_url('./mail_list.php');
|
||||||
+8
-10
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -16,20 +16,17 @@ if ($w == 'u') {
|
|||||||
|
|
||||||
$sql = " select * from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
$sql = " select * from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
||||||
$ma = sql_fetch($sql);
|
$ma = sql_fetch($sql);
|
||||||
if (!$ma['ma_id']) {
|
if (!$ma['ma_id'])
|
||||||
alert('등록된 자료가 없습니다.');
|
alert('등록된 자료가 없습니다.');
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$html_title .= '입력';
|
$html_title .= '입력';
|
||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
$g5['title'] = $html_title;
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_desc">
|
<div class="local_desc"><p>메일 내용에 {이름} , {닉네임} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일을 발송합니다.</p></div>
|
||||||
<p>메일 내용에 {이름} , {닉네임} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일을 발송합니다.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form name="fmailform" id="fmailform" action="./mail_update.php" onsubmit="return fmailform_check(this);" method="post">
|
<form name="fmailform" id="fmailform" action="./mail_update.php" onsubmit="return fmailform_check(this);" method="post">
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||||
@@ -62,7 +59,8 @@ require_once './admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fmailform_check(f) {
|
function fmailform_check(f)
|
||||||
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
|
|
||||||
@@ -85,4 +83,4 @@ require_once './admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+4
-5
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '200300';
|
$sub_menu = '200300';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ $sql = " select * {$sql_common} order by ma_id desc ";
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$g5['title'] = '회원메일발송';
|
$g5['title'] = '회원메일발송';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 7;
|
$colspan = 7;
|
||||||
?>
|
?>
|
||||||
@@ -71,9 +71,8 @@ $colspan = 7;
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if (!$i) {
|
if (!$i)
|
||||||
echo "<tr><td colspan=\"".$colspan."\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
echo "<tr><td colspan=\"".$colspan."\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -102,4 +101,4 @@ $colspan = 7;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -15,18 +15,22 @@ $content = conv_content($se['ma_content'], 1) . "<hr size=0><p><span style='font
|
|||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="ko">
|
<html lang="ko">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title><?php echo G5_VERSION ?> 메일발송 테스트</title>
|
<title><?php echo G5_VERSION ?> 메일발송 테스트</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1><?php echo $subject; ?></h1>
|
<h1><?php echo $subject; ?></h1>
|
||||||
<p><?php echo $content; ?></p>
|
|
||||||
|
<p>
|
||||||
|
<?php echo $content; ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<strong>주의!</strong> 이 화면에 보여지는 디자인은 실제 내용이 발송되었을 때 디자인과 다를 수 있습니다.
|
<strong>주의!</strong> 이 화면에 보여지는 디자인은 실제 내용이 발송되었을 때 디자인과 다를 수 있습니다.
|
||||||
</p>
|
</p>
|
||||||
</body>
|
|
||||||
|
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+10
-22
@@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!$config['cf_email_use']) {
|
if (!$config['cf_email_use'])
|
||||||
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -12,9 +11,8 @@ $ma_id = isset($_GET['ma_id']) ? (int) $_GET['ma_id'] : 0;
|
|||||||
|
|
||||||
$sql = " select * from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
$sql = " select * from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
||||||
$ma = sql_fetch($sql);
|
$ma = sql_fetch($sql);
|
||||||
if (!$ma['ma_id']) {
|
if (!$ma['ma_id'])
|
||||||
alert('보내실 내용을 선택하여 주십시오.');
|
alert('보내실 내용을 선택하여 주십시오.');
|
||||||
}
|
|
||||||
|
|
||||||
// 전체회원수
|
// 전체회원수
|
||||||
$sql = " select COUNT(*) as cnt from {$g5['member_table']} ";
|
$sql = " select COUNT(*) as cnt from {$g5['member_table']} ";
|
||||||
@@ -31,30 +29,20 @@ for ($i = 0; $i < count($last_option); $i++) {
|
|||||||
$option = explode('=', $last_option[$i]);
|
$option = explode('=', $last_option[$i]);
|
||||||
// 동적변수
|
// 동적변수
|
||||||
$var = isset($option[0]) ? $option[0] : '';
|
$var = isset($option[0]) ? $option[0] : '';
|
||||||
if (isset($option[1])) {
|
if( isset($option[1]) ) $$var = $option[1];
|
||||||
$$var = $option[1];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($mb_id1)) {
|
if (!isset($mb_id1)) $mb_id1 = 1;
|
||||||
$mb_id1 = 1;
|
if (!isset($mb_level_from)) $mb_level_from = 1;
|
||||||
}
|
if (!isset($mb_level_to)) $mb_level_to = 10;
|
||||||
if (!isset($mb_level_from)) {
|
if (!isset($mb_mailling)) $mb_mailling = 1;
|
||||||
$mb_level_from = 1;
|
|
||||||
}
|
|
||||||
if (!isset($mb_level_to)) {
|
|
||||||
$mb_level_to = 10;
|
|
||||||
}
|
|
||||||
if (!isset($mb_mailling)) {
|
|
||||||
$mb_mailling = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mb_id1_from = isset($mb_id1_from) ? clean_xss_tags($mb_id1_from, 1, 1, 30) : '';
|
$mb_id1_from = isset($mb_id1_from) ? clean_xss_tags($mb_id1_from, 1, 1, 30) : '';
|
||||||
$mb_id1_to = isset($mb_id1_to) ? clean_xss_tags($mb_id1_to, 1, 1, 30) : '';
|
$mb_id1_to = isset($mb_id1_to) ? clean_xss_tags($mb_id1_to, 1, 1, 30) : '';
|
||||||
$mb_email = isset($mb_email) ? clean_xss_tags($mb_email, 1, 1, 100) : '';
|
$mb_email = isset($mb_email) ? clean_xss_tags($mb_email, 1, 1, 100) : '';
|
||||||
|
|
||||||
$g5['title'] = '회원메일발송';
|
$g5['title'] = '회원메일발송';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
<div class="local_ov01 local_ov">
|
||||||
@@ -136,4 +124,4 @@ require_once './admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+10
-25
@@ -1,38 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
$ma_id = isset($_REQUEST['ma_id']) ? (int) $_REQUEST['ma_id'] : 0;
|
|
||||||
|
|
||||||
$ma_last_option = "";
|
$ma_last_option = "";
|
||||||
|
|
||||||
$sql_common = " from {$g5['member_table']} ";
|
$sql_common = " from {$g5['member_table']} ";
|
||||||
$sql_where = " where (1) ";
|
$sql_where = " where (1) ";
|
||||||
|
|
||||||
$mb_id1 = isset($_POST['mb_id1']) ? (int) $_POST['mb_id1'] : 1;
|
|
||||||
$mb_id1_from = isset($_POST['mb_id1_from']) ? clean_xss_tags($_POST['mb_id1_from'], 1, 1, 30) : '';
|
|
||||||
$mb_id1_to = isset($_POST['mb_id1_to']) ? clean_xss_tags($_POST['mb_id1_to'], 1, 1, 30) : '';
|
|
||||||
$mb_email = isset($_POST['mb_email']) ? clean_xss_tags($_POST['mb_email'], 1, 1, 100) : '';
|
|
||||||
$mb_mailling = isset($_POST['mb_mailling']) ? clean_xss_tags($_POST['mb_mailling'], 1, 1, 100) : '';
|
|
||||||
$mb_level_from = isset($_POST['mb_level_from'])? (int) $_POST['mb_level_from'] : 1;
|
|
||||||
$mb_level_to = isset($_POST['mb_level_to']) ? (int) $_POST['mb_level_to'] : 10;
|
|
||||||
|
|
||||||
// 회원ID ..에서 ..까지
|
// 회원ID ..에서 ..까지
|
||||||
if ($mb_id1 != 1) {
|
if ($mb_id1 != 1)
|
||||||
$sql_where .= " and mb_id between '{$mb_id1_from}' and '{$mb_id1_to}' ";
|
$sql_where .= " and mb_id between '{$mb_id1_from}' and '{$mb_id1_to}' ";
|
||||||
}
|
|
||||||
|
|
||||||
// E-mail에 특정 단어 포함
|
// E-mail에 특정 단어 포함
|
||||||
if ($mb_email != "") {
|
if ($mb_email != "")
|
||||||
$sql_where .= " and mb_email like '%{$mb_email}%' ";
|
$sql_where .= " and mb_email like '%{$mb_email}%' ";
|
||||||
}
|
|
||||||
|
|
||||||
// 메일링
|
// 메일링
|
||||||
if ($mb_mailling != "") {
|
if ($mb_mailling != "")
|
||||||
$sql_where .= " and mb_mailling = '{$mb_mailling}' ";
|
$sql_where .= " and mb_mailling = '{$mb_mailling}' ";
|
||||||
}
|
|
||||||
|
|
||||||
// 권한
|
// 권한
|
||||||
$sql_where .= " and mb_level between '{$mb_level_from}' and '{$mb_level_to}' ";
|
$sql_where .= " and mb_level between '{$mb_level_from}' and '{$mb_level_to}' ";
|
||||||
@@ -48,9 +35,8 @@ if ($gr_id) {
|
|||||||
$comma = ",";
|
$comma = ",";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$group_member) {
|
if (!$group_member)
|
||||||
alert('선택하신 게시판 그룹회원이 한명도 없습니다.');
|
alert('선택하신 게시판 그룹회원이 한명도 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$sql_where .= " and mb_id in ($group_member) ";
|
$sql_where .= " and mb_id in ($group_member) ";
|
||||||
}
|
}
|
||||||
@@ -61,9 +47,8 @@ $sql_where .= " and mb_leave_date = '' and mb_intercept_date = '' ";
|
|||||||
$sql = " select COUNT(*) as cnt {$sql_common} {$sql_where} ";
|
$sql = " select COUNT(*) as cnt {$sql_common} {$sql_where} ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$cnt = $row['cnt'];
|
$cnt = $row['cnt'];
|
||||||
if ($cnt == 0) {
|
if ($cnt == 0)
|
||||||
alert('선택하신 내용으로는 해당되는 회원자료가 없습니다.');
|
alert('선택하신 내용으로는 해당되는 회원자료가 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
// 마지막 옵션을 저장합니다.
|
// 마지막 옵션을 저장합니다.
|
||||||
$ma_last_option .= "mb_id1={$mb_id1}";
|
$ma_last_option .= "mb_id1={$mb_id1}";
|
||||||
@@ -78,12 +63,12 @@ $ma_last_option .= "||gr_id={$gr_id}";
|
|||||||
sql_query(" update {$g5['mail_table']} set ma_last_option = '{$ma_last_option}' where ma_id = '{$ma_id}' ");
|
sql_query(" update {$g5['mail_table']} set ma_last_option = '{$ma_last_option}' where ma_id = '{$ma_id}' ");
|
||||||
|
|
||||||
$g5['title'] = "메일발송 대상 회원";
|
$g5['title'] = "메일발송 대상 회원";
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fmailselectlist" id="fmailselectlist" method="post" action="./mail_select_update.php">
|
<form name="fmailselectlist" id="fmailselectlist" method="post" action="./mail_select_update.php">
|
||||||
<input type="hidden" name="token" value="">
|
<input type="hidden" name="token" value="">
|
||||||
<input type="hidden" name="ma_id" value="<?php echo get_text($ma_id); ?>">
|
<input type="hidden" name="ma_id" value="<?php echo $ma_id ?>">
|
||||||
|
|
||||||
<div class="tbl_head01 tbl_wrap">
|
<div class="tbl_head01 tbl_wrap">
|
||||||
<table>
|
<table>
|
||||||
@@ -121,7 +106,7 @@ require_once './admin.head.php';
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<textarea name="ma_list" style="display:none"><?php echo html_purifier($ma_list); ?></textarea>
|
<textarea name="ma_list" style="display:none"><?php echo $ma_list?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn_confirm01 btn_confirm">
|
<div class="btn_confirm01 btn_confirm">
|
||||||
@@ -132,4 +117,4 @@ require_once './admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+17
-18
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -10,8 +10,8 @@ check_demo();
|
|||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
$countgap = 10; // 몇건씩 보낼지 설정
|
$countgap = 10; // 몇건씩 보낼지 설정
|
||||||
$maxscreen = 500; // 몇건씩 화면에 보여줄건지?
|
$maxscreen = 500; // 몇건씩 화면에 보여줄건지?
|
||||||
@@ -25,7 +25,7 @@ echo "</span>";
|
|||||||
<span id="cont"></span>
|
<span id="cont"></span>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
|
|
||||||
flush();
|
flush();
|
||||||
ob_flush();
|
ob_flush();
|
||||||
@@ -43,23 +43,25 @@ $ma = sql_fetch($sql);
|
|||||||
$subject = $ma['ma_subject'];
|
$subject = $ma['ma_subject'];
|
||||||
|
|
||||||
$cnt = 0;
|
$cnt = 0;
|
||||||
for ($i = 0; $i < count($member_list); $i++) {
|
for ($i=0; $i<count($member_list); $i++)
|
||||||
|
{
|
||||||
list($to_email, $mb_id, $name, $nick, $datetime) = explode("||", trim($member_list[$i]));
|
list($to_email, $mb_id, $name, $nick, $datetime) = explode("||", trim($member_list[$i]));
|
||||||
|
|
||||||
$sw = preg_match("/[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*@[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*/", $to_email);
|
$sw = preg_match("/[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*@[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*/", $to_email);
|
||||||
// 올바른 메일 주소만
|
// 올바른 메일 주소만
|
||||||
if ($sw == true) {
|
if ($sw == true)
|
||||||
|
{
|
||||||
$cnt++;
|
$cnt++;
|
||||||
|
|
||||||
$mb_md5 = md5($mb_id.$to_email.$datetime);
|
$mb_md5 = md5($mb_id.$to_email.$datetime);
|
||||||
|
|
||||||
$content = $ma['ma_content'];
|
$content = $ma['ma_content'];
|
||||||
$content = preg_replace("/{이름}/", $name, (string)$content);
|
$content = preg_replace("/{이름}/", $name, $content);
|
||||||
$content = preg_replace("/{닉네임}/", $nick, (string)$content);
|
$content = preg_replace("/{닉네임}/", $nick, $content);
|
||||||
$content = preg_replace("/{회원아이디}/", $mb_id, (string)$content);
|
$content = preg_replace("/{회원아이디}/", $mb_id, $content);
|
||||||
$content = preg_replace("/{이메일}/", $to_email, (string)$content);
|
$content = preg_replace("/{이메일}/", $to_email, $content);
|
||||||
|
|
||||||
$content = $content . "<hr size=0><p><span style='font-size:9pt; font-family:굴림'>▶ 더 이상 정보 수신을 원치 않으시면 [<a href='" . G5_BBS_URL . "/email_stop.php?mb_id={$mb_id}&mb_md5={$mb_md5}' target='_blank'>수신거부</a>] 해 주십시오.</span></p>";
|
$content = $content . "<hr size=0><p><span style='font-size:9pt; font-familye:굴림'>▶ 더 이상 정보 수신을 원치 않으시면 [<a href='".G5_BBS_URL."/email_stop.php?mb_id={$mb_id}&mb_md5={$mb_md5}' target='_blank'>수신거부</a>] 해 주십시오.</span></p>";
|
||||||
|
|
||||||
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $to_email, $subject, $content, 1);
|
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $to_email, $subject, $content, 1);
|
||||||
|
|
||||||
@@ -69,18 +71,15 @@ for ($i = 0; $i < count($member_list); $i++) {
|
|||||||
ob_flush();
|
ob_flush();
|
||||||
ob_end_flush();
|
ob_end_flush();
|
||||||
usleep($sleepsec);
|
usleep($sleepsec);
|
||||||
if ($cnt % $countgap == 0) {
|
if ($cnt % $countgap == 0)
|
||||||
|
{
|
||||||
echo "<script> document.all.cont.innerHTML += '<br>'; document.body.scrollTop += 1000; </script>\n";
|
echo "<script> document.all.cont.innerHTML += '<br>'; document.body.scrollTop += 1000; </script>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 화면을 지운다... 부하를 줄임
|
// 화면을 지운다... 부하를 줄임
|
||||||
if ($cnt % $maxscreen == 0) {
|
if ($cnt % $maxscreen == 0)
|
||||||
echo "<script> document.all.cont.innerHTML = ''; document.body.scrollTop += 1000; </script>\n";
|
echo "<script> document.all.cont.innerHTML = ''; document.body.scrollTop += 1000; </script>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<script>
|
<script> document.all.cont.innerHTML += "<br><br>총 <?php echo number_format($cnt) ?>건 발송<br><br><font color=crimson><b>[끝]</b></font>"; document.body.scrollTop += 1000; </script>
|
||||||
document.all.cont.innerHTML += "<br><br>총 <?php echo number_format($cnt) ?>건 발송<br><br><font color=crimson><b>[끝]</b></font>";
|
|
||||||
document.body.scrollTop += 1000;
|
|
||||||
</script>
|
|
||||||
+7
-8
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if (!$config['cf_email_use']) {
|
if (!$config['cf_email_use'])
|
||||||
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -26,10 +25,10 @@ $ma = sql_fetch($sql);
|
|||||||
$subject = $ma['ma_subject'];
|
$subject = $ma['ma_subject'];
|
||||||
|
|
||||||
$content = $ma['ma_content'];
|
$content = $ma['ma_content'];
|
||||||
$content = preg_replace("/{이름}/", $name, (string)$content);
|
$content = preg_replace("/{이름}/", $name, $content);
|
||||||
$content = preg_replace("/{닉네임}/", $nick, (string)$content);
|
$content = preg_replace("/{닉네임}/", $nick, $content);
|
||||||
$content = preg_replace("/{회원아이디}/", $mb_id, (string)$content);
|
$content = preg_replace("/{회원아이디}/", $mb_id, $content);
|
||||||
$content = preg_replace("/{이메일}/", $email, (string)$content);
|
$content = preg_replace("/{이메일}/", $email, $content);
|
||||||
|
|
||||||
$mb_md5 = md5($member['mb_id'].$member['mb_email'].$member['mb_datetime']);
|
$mb_md5 = md5($member['mb_id'].$member['mb_email'].$member['mb_datetime']);
|
||||||
|
|
||||||
|
|||||||
+10
-13
@@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200300";
|
$sub_menu = "200300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($w == 'u' || $w == 'd') {
|
if ($w == 'u' || $w == 'd')
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -14,18 +13,17 @@ $ma_id = isset($_POST['ma_id']) ? (int) $_POST['ma_id'] : 0;
|
|||||||
$ma_subject = isset($_POST['ma_subject']) ? strip_tags(clean_xss_attributes($_POST['ma_subject'])) : '';
|
$ma_subject = isset($_POST['ma_subject']) ? strip_tags(clean_xss_attributes($_POST['ma_subject'])) : '';
|
||||||
$ma_content = isset($_POST['ma_content']) ? $_POST['ma_content'] : '';
|
$ma_content = isset($_POST['ma_content']) ? $_POST['ma_content'] : '';
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '')
|
||||||
|
{
|
||||||
$sql = " insert {$g5['mail_table']}
|
$sql = " insert {$g5['mail_table']}
|
||||||
set ma_subject = '{$ma_subject}',
|
set ma_subject = '{$ma_subject}',
|
||||||
ma_content = '{$ma_content}',
|
ma_content = '{$ma_content}',
|
||||||
ma_time = '".G5_TIME_YMDHIS."',
|
ma_time = '".G5_TIME_YMDHIS."',
|
||||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
}
|
||||||
$ma_id = sql_insert_id();
|
else if ($w == 'u')
|
||||||
run_event('admin_mail_created', $ma_id);
|
{
|
||||||
|
|
||||||
} elseif ($w == 'u') {
|
|
||||||
$sql = " update {$g5['mail_table']}
|
$sql = " update {$g5['mail_table']}
|
||||||
set ma_subject = '{$ma_subject}',
|
set ma_subject = '{$ma_subject}',
|
||||||
ma_content = '{$ma_content}',
|
ma_content = '{$ma_content}',
|
||||||
@@ -33,12 +31,11 @@ if ($w == '') {
|
|||||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
|
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
|
||||||
where ma_id = '{$ma_id}' ";
|
where ma_id = '{$ma_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_mail_updated', $ma_id);
|
}
|
||||||
|
else if ($w == 'd')
|
||||||
} elseif ($w == 'd') {
|
{
|
||||||
$sql = " delete from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
$sql = " delete from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_mail_deleted', $ma_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
goto_url('./mail_list.php');
|
goto_url('./mail_list.php');
|
||||||
+8
-10
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once "./_common.php";
|
include_once("./_common.php");
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -8,23 +8,21 @@ auth_check_menu($auth, $sub_menu, "d");
|
|||||||
|
|
||||||
$mb = isset($_POST['mb_id']) ? get_member($_POST['mb_id']) : array();
|
$mb = isset($_POST['mb_id']) ? get_member($_POST['mb_id']) : array();
|
||||||
|
|
||||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||||
alert("회원자료가 존재하지 않습니다.");
|
alert("회원자료가 존재하지 않습니다.");
|
||||||
} elseif ($member['mb_id'] == $mb['mb_id']) {
|
else if ($member['mb_id'] == $mb['mb_id'])
|
||||||
alert("로그인 중인 관리자는 삭제 할 수 없습니다.");
|
alert("로그인 중인 관리자는 삭제 할 수 없습니다.");
|
||||||
} elseif (is_admin($mb['mb_id']) == "super") {
|
else if (is_admin($mb['mb_id']) == "super")
|
||||||
alert("최고 관리자는 삭제할 수 없습니다.");
|
alert("최고 관리자는 삭제할 수 없습니다.");
|
||||||
} elseif ($mb['mb_level'] >= $member['mb_level']) {
|
else if ($mb['mb_level'] >= $member['mb_level'])
|
||||||
alert("자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.");
|
alert("자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.");
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
// 회원자료 삭제
|
// 회원자료 삭제
|
||||||
member_delete($mb['mb_id']);
|
member_delete($mb['mb_id']);
|
||||||
|
|
||||||
if (isset($url)) {
|
if ($url)
|
||||||
goto_url("{$url}?$qstr&w=u&mb_id=" . $mb['mb_id']);
|
goto_url("{$url}?$qstr&w=u&mb_id=$mb_id");
|
||||||
} else {
|
else
|
||||||
goto_url("./member_list.php?$qstr");
|
goto_url("./member_list.php?$qstr");
|
||||||
}
|
|
||||||
+31
-139
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -40,12 +40,11 @@ $mb = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$sound_only = '';
|
$sound_only = '';
|
||||||
$required_mb_id = '';
|
|
||||||
$required_mb_id_class = '';
|
$required_mb_id_class = '';
|
||||||
$required_mb_password = '';
|
$required_mb_password = '';
|
||||||
$html_title = '';
|
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '')
|
||||||
|
{
|
||||||
$required_mb_id = 'required';
|
$required_mb_id = 'required';
|
||||||
$required_mb_id_class = 'required alnum_';
|
$required_mb_id_class = 'required alnum_';
|
||||||
$required_mb_password = 'required';
|
$required_mb_password = 'required';
|
||||||
@@ -55,15 +54,15 @@ if ($w == '') {
|
|||||||
$mb['mb_open'] = 1;
|
$mb['mb_open'] = 1;
|
||||||
$mb['mb_level'] = $config['cf_register_level'];
|
$mb['mb_level'] = $config['cf_register_level'];
|
||||||
$html_title = '추가';
|
$html_title = '추가';
|
||||||
} elseif ($w == 'u') {
|
}
|
||||||
|
else if ($w == 'u')
|
||||||
|
{
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
if (!$mb['mb_id']) {
|
if (!$mb['mb_id'])
|
||||||
alert('존재하지 않는 회원자료입니다.');
|
alert('존재하지 않는 회원자료입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level']) {
|
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level'])
|
||||||
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$required_mb_id = 'readonly';
|
$required_mb_id = 'readonly';
|
||||||
$html_title = '수정';
|
$html_title = '수정';
|
||||||
@@ -91,16 +90,12 @@ if ($w == '') {
|
|||||||
$mb['mb_8'] = get_text($mb['mb_8']);
|
$mb['mb_8'] = get_text($mb['mb_8']);
|
||||||
$mb['mb_9'] = get_text($mb['mb_9']);
|
$mb['mb_9'] = get_text($mb['mb_9']);
|
||||||
$mb['mb_10'] = get_text($mb['mb_10']);
|
$mb['mb_10'] = get_text($mb['mb_10']);
|
||||||
} else {
|
|
||||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||||
|
|
||||||
// 본인확인방법
|
// 본인확인방법
|
||||||
switch($mb['mb_certify']) {
|
switch($mb['mb_certify']) {
|
||||||
case 'simple':
|
|
||||||
$mb_certify_case = '간편인증';
|
|
||||||
$mb_certify_val = 'simple';
|
|
||||||
break;
|
|
||||||
case 'hp':
|
case 'hp':
|
||||||
$mb_certify_case = '휴대폰';
|
$mb_certify_case = '휴대폰';
|
||||||
$mb_certify_val = 'hp';
|
$mb_certify_val = 'hp';
|
||||||
@@ -174,41 +169,10 @@ if (!isset($mb['mb_email_certify2'])) {
|
|||||||
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_email_certify2` varchar(255) NOT NULL DEFAULT '' AFTER `mb_email_certify` ", false);
|
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_email_certify2` varchar(255) NOT NULL DEFAULT '' AFTER `mb_email_certify` ", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 본인인증 내역 테이블 정보가 dbconfig에 없으면 소셜 테이블 정의
|
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
|
||||||
if (!isset($g5['member_cert_history'])) {
|
else $g5['title'] .= "";
|
||||||
$g5['member_cert_history_table'] = G5_TABLE_PREFIX . 'member_cert_history';
|
|
||||||
}
|
|
||||||
// 멤버 본인인증 정보 변경 내역 테이블 없을 경우 생성
|
|
||||||
if (isset($g5['member_cert_history_table']) && !sql_query(" DESC {$g5['member_cert_history_table']} ", false)) {
|
|
||||||
sql_query(
|
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['member_cert_history_table']}` (
|
|
||||||
`ch_id` int(11) NOT NULL auto_increment,
|
|
||||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
|
||||||
`ch_name` varchar(255) NOT NULL DEFAULT '',
|
|
||||||
`ch_hp` varchar(255) NOT NULL DEFAULT '',
|
|
||||||
`ch_birth` varchar(255) NOT NULL DEFAULT '',
|
|
||||||
`ch_type` varchar(20) NOT NULL DEFAULT '',
|
|
||||||
`ch_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
||||||
PRIMARY KEY (`ch_id`),
|
|
||||||
KEY `mb_id` (`mb_id`)
|
|
||||||
) ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$mb_cert_history = '';
|
|
||||||
if (isset($mb_id) && $mb_id) {
|
|
||||||
$sql = "select * from {$g5['member_cert_history_table']} where mb_id = '{$mb_id}' order by ch_id asc";
|
|
||||||
$mb_cert_history = sql_query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($mb['mb_intercept_date']) {
|
|
||||||
$g5['title'] = "차단된 ";
|
|
||||||
} else {
|
|
||||||
$g5['title'] .= "";
|
|
||||||
}
|
|
||||||
$g5['title'] .= '회원 '.$html_title;
|
$g5['title'] .= '회원 '.$html_title;
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
// add_javascript('js 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_javascript('js 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||||
@@ -240,19 +204,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<?php if ($w=='u'){ ?><a href="./boardgroupmember_form.php?mb_id=<?php echo $mb['mb_id'] ?>" class="btn_frmline">접근가능그룹보기</a><?php } ?>
|
<?php if ($w=='u'){ ?><a href="./boardgroupmember_form.php?mb_id=<?php echo $mb['mb_id'] ?>" class="btn_frmline">접근가능그룹보기</a><?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row"><label for="mb_password">비밀번호<?php echo $sound_only ?></label></th>
|
<th scope="row"><label for="mb_password">비밀번호<?php echo $sound_only ?></label></th>
|
||||||
<td>
|
<td><input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?> class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20"></td>
|
||||||
<div>
|
|
||||||
<input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?> class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20">
|
|
||||||
</div>
|
|
||||||
<div id="mb_password_captcha_wrap" style="display:none">
|
|
||||||
<?php
|
|
||||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
|
||||||
$captcha_html = captcha_html();
|
|
||||||
$captcha_js = chk_captcha_js();
|
|
||||||
echo $captcha_html;
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_name">이름(실명)<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="mb_name">이름(실명)<strong class="sound_only">필수</strong></label></th>
|
||||||
@@ -281,12 +233,10 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row">본인확인방법</th>
|
<th scope="row">본인확인방법</th>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<input type="radio" name="mb_certify_case" value="simple" id="mb_certify_sa" <?php if ($mb['mb_certify'] == 'simple') { echo 'checked="checked"'; } ?>>
|
<input type="radio" name="mb_certify_case" value="ipin" id="mb_certify_ipin" <?php if($mb['mb_certify'] == 'ipin') echo 'checked="checked"'; ?>>
|
||||||
<label for="mb_certify_sa">간편인증</label>
|
|
||||||
<input type="radio" name="mb_certify_case" value="hp" id="mb_certify_hp" <?php if ($mb['mb_certify'] == 'hp') { echo 'checked="checked"'; } ?>>
|
|
||||||
<label for="mb_certify_hp">휴대폰</label>
|
|
||||||
<input type="radio" name="mb_certify_case" value="ipin" id="mb_certify_ipin" <?php if ($mb['mb_certify'] == 'ipin') { echo 'checked="checked"'; } ?>>
|
|
||||||
<label for="mb_certify_ipin">아이핀</label>
|
<label for="mb_certify_ipin">아이핀</label>
|
||||||
|
<input type="radio" name="mb_certify_case" value="hp" id="mb_certify_hp" <?php if($mb['mb_certify'] == 'hp') echo 'checked="checked"'; ?>>
|
||||||
|
<label for="mb_certify_hp">휴대폰</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -294,7 +244,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<td>
|
<td>
|
||||||
<input type="radio" name="mb_certify" value="1" id="mb_certify_yes" <?php echo $mb_certify_yes; ?>>
|
<input type="radio" name="mb_certify" value="1" id="mb_certify_yes" <?php echo $mb_certify_yes; ?>>
|
||||||
<label for="mb_certify_yes">예</label>
|
<label for="mb_certify_yes">예</label>
|
||||||
<input type="radio" name="mb_certify" value="0" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
|
<input type="radio" name="mb_certify" value="" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
|
||||||
<label for="mb_certify_no">아니오</label>
|
<label for="mb_certify_no">아니오</label>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row">성인인증</th>
|
<th scope="row">성인인증</th>
|
||||||
@@ -380,49 +330,15 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_signature">서명</label></th>
|
<th scope="row"><label for="mb_signature">서명</label></th>
|
||||||
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo html_purifier($mb['mb_signature']); ?></textarea></td>
|
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo $mb['mb_signature'] ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
||||||
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo html_purifier($mb['mb_profile']); ?></textarea></td>
|
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo $mb['mb_profile'] ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_memo">메모</label></th>
|
<th scope="row"><label for="mb_memo">메모</label></th>
|
||||||
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo html_purifier($mb['mb_memo']); ?></textarea></td>
|
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo $mb['mb_memo'] ?></textarea></td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="mb_cert_history">본인인증 내역</label></th>
|
|
||||||
<td colspan="3">
|
|
||||||
<?php
|
|
||||||
$cnt = 0;
|
|
||||||
while ($row = sql_fetch_array($mb_cert_history)) {
|
|
||||||
$cnt++;
|
|
||||||
$cert_type = '';
|
|
||||||
switch ($row['ch_type']) {
|
|
||||||
case 'simple':
|
|
||||||
$cert_type = '간편인증';
|
|
||||||
break;
|
|
||||||
case 'hp':
|
|
||||||
$cert_type = '휴대폰';
|
|
||||||
break;
|
|
||||||
case 'ipin':
|
|
||||||
$cert_type = '아이핀';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<div>
|
|
||||||
[<?php echo $row['ch_datetime']; ?>]
|
|
||||||
<?php echo $row['mb_id']; ?> /
|
|
||||||
<?php echo $row['ch_name']; ?> /
|
|
||||||
<?php echo $row['ch_hp']; ?> /
|
|
||||||
<?php echo $cert_type; ?>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($cnt == 0) { ?>
|
|
||||||
본인인증 내역이 없습니다.
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php if ($w == 'u') { ?>
|
<?php if ($w == 'u') { ?>
|
||||||
@@ -463,13 +379,16 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<th scope="row"><label for="mb_leave_date">탈퇴일자</label></th>
|
<th scope="row"><label for="mb_leave_date">탈퇴일자</label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="mb_leave_date" value="<?php echo $mb['mb_leave_date'] ?>" id="mb_leave_date" class="frm_input" maxlength="8">
|
<input type="text" name="mb_leave_date" value="<?php echo $mb['mb_leave_date'] ?>" id="mb_leave_date" class="frm_input" maxlength="8">
|
||||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today" onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) { this.form.mb_leave_date.value=this.value; } else { this.form.mb_leave_date.value=this.form.mb_leave_date.defaultValue; }">
|
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today" onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) {
|
||||||
|
this.form.mb_leave_date.value=this.value; } else { this.form.mb_leave_date.value=this.form.mb_leave_date.defaultValue; }">
|
||||||
<label for="mb_leave_date_set_today">탈퇴일을 오늘로 지정</label>
|
<label for="mb_leave_date_set_today">탈퇴일을 오늘로 지정</label>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row">접근차단일자</th>
|
<th scope="row">접근차단일자</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="mb_intercept_date" value="<?php echo $mb['mb_intercept_date'] ?>" id="mb_intercept_date" class="frm_input" maxlength="8">
|
<input type="text" name="mb_intercept_date" value="<?php echo $mb['mb_intercept_date'] ?>" id="mb_intercept_date" class="frm_input" maxlength="8">
|
||||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_intercept_date_set_today" onclick="if (this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else { this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_intercept_date_set_today" onclick="if
|
||||||
|
(this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else {
|
||||||
|
this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||||
<label for="mb_intercept_date_set_today">접근차단일을 오늘로 지정</label>
|
<label for="mb_intercept_date_set_today">접근차단일을 오늘로 지정</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -478,6 +397,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
//소셜계정이 있다면
|
//소셜계정이 있다면
|
||||||
if(function_exists('social_login_link_account') && $mb['mb_id'] ){
|
if(function_exists('social_login_link_account') && $mb['mb_id'] ){
|
||||||
if( $my_social_accounts = social_login_link_account($mb['mb_id'], false, 'get_data') ){ ?>
|
if( $my_social_accounts = social_login_link_account($mb['mb_id'], false, 'get_data') ){ ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>소셜계정목록</th>
|
<th>소셜계정목록</th>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
@@ -485,9 +405,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<li class="social_login_container">
|
<li class="social_login_container">
|
||||||
<h4>연결된 소셜 계정 목록</h4>
|
<h4>연결된 소셜 계정 목록</h4>
|
||||||
<?php foreach($my_social_accounts as $account){ //반복문
|
<?php foreach($my_social_accounts as $account){ //반복문
|
||||||
if (empty($account)) {
|
if( empty($account) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$provider = strtolower($account['provider']);
|
$provider = strtolower($account['provider']);
|
||||||
$provider_name = social_get_provider_service_name($provider);
|
$provider_name = social_get_provider_service_name($provider);
|
||||||
@@ -583,7 +501,8 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fmember_submit(f) {
|
function fmember_submit(f)
|
||||||
|
{
|
||||||
if (!f.mb_icon.value.match(/\.(gif|jpe?g|png)$/i) && f.mb_icon.value) {
|
if (!f.mb_icon.value.match(/\.(gif|jpe?g|png)$/i) && f.mb_icon.value) {
|
||||||
alert('아이콘은 이미지 파일만 가능합니다.');
|
alert('아이콘은 이미지 파일만 가능합니다.');
|
||||||
return false;
|
return false;
|
||||||
@@ -594,37 +513,10 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( jQuery("#mb_password").val() ){
|
|
||||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
jQuery(function($){
|
|
||||||
$("#captcha_key").prop('required', false).removeAttr("required").removeClass("required");
|
|
||||||
|
|
||||||
$("#mb_password").on("keyup", function(e) {
|
|
||||||
var $warp = $("#mb_password_captcha_wrap"),
|
|
||||||
tooptipid = "mp_captcha_tooltip",
|
|
||||||
$span_text = $("<span>", {id:tooptipid, style:"font-size:0.95em;letter-spacing:-0.1em"}).html("비밀번호를 수정할 경우 캡챠를 입력해야 합니다."),
|
|
||||||
$parent = $(this).parent(),
|
|
||||||
is_invisible_recaptcha = $("#captcha").hasClass("invisible_recaptcha");
|
|
||||||
|
|
||||||
if($(this).val()){
|
|
||||||
$warp.show();
|
|
||||||
if(! is_invisible_recaptcha) {
|
|
||||||
$warp.css("margin-top","1em");
|
|
||||||
if(! $("#"+tooptipid).length){ $parent.append($span_text) }
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$warp.hide();
|
|
||||||
if($("#"+tooptipid).length && ! is_invisible_recaptcha){ $parent.find("#"+tooptipid).remove(); }
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
run_event('admin_member_form_after', $mb, $w);
|
run_event('admin_member_form_after', $mb, $w);
|
||||||
|
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+30
-70
@@ -1,45 +1,33 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once "./_common.php";
|
include_once("./_common.php");
|
||||||
require_once G5_LIB_PATH . "/register.lib.php";
|
include_once(G5_LIB_PATH."/register.lib.php");
|
||||||
require_once G5_LIB_PATH . '/thumbnail.lib.php';
|
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||||
|
|
||||||
if ($w == 'u') {
|
if ($w == 'u')
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
|
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
|
||||||
$mb_password = isset($_POST['mb_password']) ? trim($_POST['mb_password']) : '';
|
|
||||||
$mb_certify_case = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify_case']) : '';
|
$mb_certify_case = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify_case']) : '';
|
||||||
$mb_certify = isset($_POST['mb_certify']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify']) : '';
|
$mb_certify = isset($_POST['mb_certify']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify']) : '';
|
||||||
$mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : '';
|
$mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : '';
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 )
|
|
||||||
if ($mb_password && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
|
||||||
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
|
||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 휴대폰번호 체크
|
// 휴대폰번호 체크
|
||||||
$mb_hp = hyphen_hp_number($_POST['mb_hp']);
|
$mb_hp = hyphen_hp_number($_POST['mb_hp']);
|
||||||
if($mb_hp) {
|
if($mb_hp) {
|
||||||
$result = exist_mb_hp($mb_hp, $mb_id);
|
$result = exist_mb_hp($mb_hp, $mb_id);
|
||||||
if ($result) {
|
if ($result)
|
||||||
alert($result);
|
alert($result);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 인증정보처리
|
// 인증정보처리
|
||||||
if($mb_certify_case && $mb_certify) {
|
if($mb_certify_case && $mb_certify) {
|
||||||
$mb_certify = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', (string)$_POST['mb_certify_case']) : '';
|
$mb_certify = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify_case']) : '';
|
||||||
$mb_adult = isset($_POST['mb_adult']) ? preg_replace('/[^0-9a-z_]/i', '', (string)$_POST['mb_adult']) : '';
|
$mb_adult = isset($_POST['mb_adult']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_adult']) : '';
|
||||||
} else {
|
} else {
|
||||||
$mb_certify = '';
|
$mb_certify = '';
|
||||||
$mb_adult = 0;
|
$mb_adult = 0;
|
||||||
@@ -51,9 +39,7 @@ $mb_zip2 = substr($mb_zip, 3);
|
|||||||
$mb_email = isset($_POST['mb_email']) ? get_email_address(trim($_POST['mb_email'])) : '';
|
$mb_email = isset($_POST['mb_email']) ? get_email_address(trim($_POST['mb_email'])) : '';
|
||||||
$mb_nick = isset($_POST['mb_nick']) ? trim(strip_tags($_POST['mb_nick'])) : '';
|
$mb_nick = isset($_POST['mb_nick']) ? trim(strip_tags($_POST['mb_nick'])) : '';
|
||||||
|
|
||||||
if ($msg = valid_mb_nick($mb_nick)) {
|
if ($msg = valid_mb_nick($mb_nick)) alert($msg, "", true, true);
|
||||||
alert($msg, "", true, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$posts = array();
|
$posts = array();
|
||||||
$check_keys = array(
|
$check_keys = array(
|
||||||
@@ -79,12 +65,8 @@ for ($i = 1; $i <= 10; $i++) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach( $check_keys as $key ){
|
foreach( $check_keys as $key ){
|
||||||
if( in_array($key, array('mb_signature', 'mb_profile')) ){
|
|
||||||
$posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1, 0, 0) : '';
|
|
||||||
} else {
|
|
||||||
$posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : '';
|
$posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : '';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$mb_memo = isset($_POST['mb_memo']) ? $_POST['mb_memo'] : '';
|
$mb_memo = isset($_POST['mb_memo']) ? $_POST['mb_memo'] : '';
|
||||||
|
|
||||||
@@ -122,76 +104,63 @@ $sql_common = " mb_name = '{$posts['mb_name']}',
|
|||||||
mb_9 = '{$posts['mb_9']}',
|
mb_9 = '{$posts['mb_9']}',
|
||||||
mb_10 = '{$posts['mb_10']}' ";
|
mb_10 = '{$posts['mb_10']}' ";
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '')
|
||||||
|
{
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
if (isset($mb['mb_id']) && $mb['mb_id']) {
|
if (isset($mb['mb_id']) && $mb['mb_id'])
|
||||||
alert('이미 존재하는 회원아이디입니다.\\nID : '.$mb['mb_id'].'\\n이름 : '.$mb['mb_name'].'\\n닉네임 : '.$mb['mb_nick'].'\\n메일 : '.$mb['mb_email']);
|
alert('이미 존재하는 회원아이디입니다.\\nID : '.$mb['mb_id'].'\\n이름 : '.$mb['mb_name'].'\\n닉네임 : '.$mb['mb_nick'].'\\n메일 : '.$mb['mb_email']);
|
||||||
}
|
|
||||||
|
|
||||||
// 닉네임중복체크
|
// 닉네임중복체크
|
||||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' ";
|
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
if (isset($row['mb_id']) && $row['mb_id'])
|
||||||
alert('이미 존재하는 닉네임입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
alert('이미 존재하는 닉네임입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
||||||
}
|
|
||||||
|
|
||||||
// 이메일중복체크
|
// 이메일중복체크
|
||||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' ";
|
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
if (isset($row['mb_id']) && $row['mb_id'])
|
||||||
alert('이미 존재하는 이메일입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
alert('이미 존재하는 이메일입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
||||||
}
|
|
||||||
|
|
||||||
sql_query(" insert into {$g5['member_table']} set mb_id = '{$mb_id}', mb_password = '".get_encrypt_string($mb_password)."', mb_datetime = '".G5_TIME_YMDHIS."', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '".G5_TIME_YMDHIS."', {$sql_common} ");
|
sql_query(" insert into {$g5['member_table']} set mb_id = '{$mb_id}', mb_password = '".get_encrypt_string($mb_password)."', mb_datetime = '".G5_TIME_YMDHIS."', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '".G5_TIME_YMDHIS."', {$sql_common} ");
|
||||||
} elseif ($w == 'u') {
|
}
|
||||||
|
else if ($w == 'u')
|
||||||
|
{
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||||
alert('존재하지 않는 회원자료입니다.');
|
alert('존재하지 않는 회원자료입니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level']) {
|
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level'])
|
||||||
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin !== 'super' && is_admin($mb['mb_id']) === 'super' ) {
|
if ($is_admin !== 'super' && is_admin($mb['mb_id']) === 'super' ) {
|
||||||
alert('최고관리자의 비밀번호를 수정할수 없습니다.');
|
alert('최고관리자의 비밀번호를 수정할수 없습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mb_id === $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level']) {
|
if ($mb_id === $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level'])
|
||||||
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
|
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if ($posts['mb_leave_date'] || $posts['mb_intercept_date']){
|
|
||||||
if ($member['mb_id'] === $mb['mb_id'] || is_admin($mb['mb_id']) === 'super'){
|
|
||||||
alert('해당 관리자의 탈퇴 일자 또는 접근 차단 일자를 수정할 수 없습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 닉네임중복체크
|
// 닉네임중복체크
|
||||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' and mb_id <> '$mb_id' ";
|
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' and mb_id <> '$mb_id' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
if (isset($row['mb_id']) && $row['mb_id'])
|
||||||
alert('이미 존재하는 닉네임입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
alert('이미 존재하는 닉네임입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
||||||
}
|
|
||||||
|
|
||||||
// 이메일중복체크
|
// 이메일중복체크
|
||||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' and mb_id <> '$mb_id' ";
|
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' and mb_id <> '$mb_id' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
if (isset($row['mb_id']) && $row['mb_id'])
|
||||||
alert('이미 존재하는 이메일입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
alert('이미 존재하는 이메일입니다.\\nID : '.$row['mb_id'].'\\n이름 : '.$row['mb_name'].'\\n닉네임 : '.$row['mb_nick'].'\\n메일 : '.$row['mb_email']);
|
||||||
}
|
|
||||||
|
|
||||||
if ($mb_password) {
|
if ($mb_password)
|
||||||
$sql_password = " , mb_password = '".get_encrypt_string($mb_password)."' ";
|
$sql_password = " , mb_password = '".get_encrypt_string($mb_password)."' ";
|
||||||
} else {
|
else
|
||||||
$sql_password = "";
|
$sql_password = "";
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($passive_certify) && $passive_certify) {
|
if (isset($passive_certify) && $passive_certify)
|
||||||
$sql_certify = " , mb_email_certify = '".G5_TIME_YMDHIS."' ";
|
$sql_certify = " , mb_email_certify = '".G5_TIME_YMDHIS."' ";
|
||||||
} else {
|
else
|
||||||
$sql_certify = "";
|
$sql_certify = "";
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " update {$g5['member_table']}
|
$sql = " update {$g5['member_table']}
|
||||||
set {$sql_common}
|
set {$sql_common}
|
||||||
@@ -199,18 +168,18 @@ if ($w == '') {
|
|||||||
{$sql_certify}
|
{$sql_certify}
|
||||||
where mb_id = '{$mb_id}' ";
|
where mb_id = '{$mb_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
} else {
|
|
||||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||||
|
|
||||||
if( $w == '' || $w == 'u' ){
|
if( $w == '' || $w == 'u' ){
|
||||||
|
|
||||||
$mb_dir = substr($mb_id,0,2);
|
$mb_dir = substr($mb_id,0,2);
|
||||||
$mb_icon_img = get_mb_icon_name($mb_id).'.gif';
|
$mb_icon_img = get_mb_icon_name($mb_id).'.gif';
|
||||||
|
|
||||||
// 회원 아이콘 삭제
|
// 회원 아이콘 삭제
|
||||||
if (isset($del_mb_icon) && $del_mb_icon) {
|
if (isset($del_mb_icon) && $del_mb_icon)
|
||||||
@unlink(G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_icon_img);
|
@unlink(G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_icon_img);
|
||||||
}
|
|
||||||
|
|
||||||
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
||||||
|
|
||||||
@@ -232,7 +201,6 @@ if ($w == '' || $w == 'u') {
|
|||||||
|
|
||||||
if (file_exists($dest_path)) {
|
if (file_exists($dest_path)) {
|
||||||
$size = @getimagesize($dest_path);
|
$size = @getimagesize($dest_path);
|
||||||
if ($size) {
|
|
||||||
if ($size[0] > $config['cf_member_icon_width'] || $size[1] > $config['cf_member_icon_height']) {
|
if ($size[0] > $config['cf_member_icon_width'] || $size[1] > $config['cf_member_icon_height']) {
|
||||||
$thumb = null;
|
$thumb = null;
|
||||||
if($size[2] === 2 || $size[2] === 3) {
|
if($size[2] === 2 || $size[2] === 3) {
|
||||||
@@ -251,7 +219,6 @@ if ($w == '' || $w == 'u') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$mb_img_dir = G5_DATA_PATH.'/member_image/';
|
$mb_img_dir = G5_DATA_PATH.'/member_image/';
|
||||||
if( !is_dir($mb_img_dir) ){
|
if( !is_dir($mb_img_dir) ){
|
||||||
@@ -261,9 +228,8 @@ if ($w == '' || $w == 'u') {
|
|||||||
$mb_img_dir .= substr($mb_id,0,2);
|
$mb_img_dir .= substr($mb_id,0,2);
|
||||||
|
|
||||||
// 회원 이미지 삭제
|
// 회원 이미지 삭제
|
||||||
if (isset($del_mb_img) && $del_mb_img) {
|
if (isset($del_mb_img) && $del_mb_img)
|
||||||
@unlink($mb_img_dir.'/'.$mb_icon_img);
|
@unlink($mb_img_dir.'/'.$mb_icon_img);
|
||||||
}
|
|
||||||
|
|
||||||
// 아이콘 업로드
|
// 아이콘 업로드
|
||||||
if (isset($_FILES['mb_img']) && is_uploaded_file($_FILES['mb_img']['tmp_name'])) {
|
if (isset($_FILES['mb_img']) && is_uploaded_file($_FILES['mb_img']['tmp_name'])) {
|
||||||
@@ -282,7 +248,6 @@ if ($w == '' || $w == 'u') {
|
|||||||
|
|
||||||
if (file_exists($dest_path)) {
|
if (file_exists($dest_path)) {
|
||||||
$size = @getimagesize($dest_path);
|
$size = @getimagesize($dest_path);
|
||||||
if ($size) {
|
|
||||||
if ($size[0] > $config['cf_member_img_width'] || $size[1] > $config['cf_member_img_height']) {
|
if ($size[0] > $config['cf_member_img_width'] || $size[1] > $config['cf_member_img_height']) {
|
||||||
$thumb = null;
|
$thumb = null;
|
||||||
if($size[2] === 2 || $size[2] === 3) {
|
if($size[2] === 2 || $size[2] === 3) {
|
||||||
@@ -302,11 +267,6 @@ if ($w == '' || $w == 'u') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (function_exists('get_admin_captcha_by')) {
|
|
||||||
get_admin_captcha_by('remove');
|
|
||||||
}
|
|
||||||
|
|
||||||
run_event('admin_member_form_update', $w, $mb_id);
|
run_event('admin_member_form_update', $w, $mb_id);
|
||||||
|
|
||||||
|
|||||||
+20
-36
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -27,9 +27,8 @@ if ($stx) {
|
|||||||
$sql_search .= " ) ";
|
$sql_search .= " ) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||||
}
|
|
||||||
|
|
||||||
if (!$sst) {
|
if (!$sst) {
|
||||||
$sst = "mb_datetime";
|
$sst = "mb_datetime";
|
||||||
@@ -44,9 +43,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
// 탈퇴회원수
|
// 탈퇴회원수
|
||||||
@@ -62,7 +59,7 @@ $intercept_count = $row['cnt'];
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = '회원관리';
|
$g5['title'] = '회원관리';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
@@ -153,9 +150,8 @@ $colspan = 16;
|
|||||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
$group = '';
|
$group = '';
|
||||||
if ($row2['cnt']) {
|
if ($row2['cnt'])
|
||||||
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
$group = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">'.$row2['cnt'].'</a>';
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_admin == 'group') {
|
if ($is_admin == 'group') {
|
||||||
$s_mod = '';
|
$s_mod = '';
|
||||||
@@ -176,14 +172,14 @@ $colspan = 16;
|
|||||||
if ($row['mb_leave_date']) {
|
if ($row['mb_leave_date']) {
|
||||||
$mb_id = $mb_id;
|
$mb_id = $mb_id;
|
||||||
$leave_msg = '<span class="mb_leave_msg">탈퇴함</span>';
|
$leave_msg = '<span class="mb_leave_msg">탈퇴함</span>';
|
||||||
} elseif ($row['mb_intercept_date']) {
|
}
|
||||||
|
else if ($row['mb_intercept_date']) {
|
||||||
$mb_id = $mb_id;
|
$mb_id = $mb_id;
|
||||||
$intercept_msg = '<span class="mb_intercept_msg">차단됨</span>';
|
$intercept_msg = '<span class="mb_intercept_msg">차단됨</span>';
|
||||||
$intercept_title = '차단해제';
|
$intercept_title = '차단해제';
|
||||||
}
|
}
|
||||||
if ($intercept_title == '') {
|
if ($intercept_title == '')
|
||||||
$intercept_title = '차단하기';
|
$intercept_title = '차단하기';
|
||||||
}
|
|
||||||
|
|
||||||
$address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2'], $row['mb_addr3'], $row['mb_addr_jibeon']) : '';
|
$address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2'], $row['mb_addr3'], $row['mb_addr_jibeon']) : '';
|
||||||
|
|
||||||
@@ -198,10 +194,6 @@ $colspan = 16;
|
|||||||
$mb_certify_case = '아이핀';
|
$mb_certify_case = '아이핀';
|
||||||
$mb_certify_val = '';
|
$mb_certify_val = '';
|
||||||
break;
|
break;
|
||||||
case 'simple':
|
|
||||||
$mb_certify_case = '간편인증';
|
|
||||||
$mb_certify_val = '';
|
|
||||||
break;
|
|
||||||
case 'admin':
|
case 'admin':
|
||||||
$mb_certify_case = '관리자';
|
$mb_certify_case = '관리자';
|
||||||
$mb_certify_val = 'admin';
|
$mb_certify_val = 'admin';
|
||||||
@@ -225,11 +217,10 @@ $colspan = 16;
|
|||||||
//소셜계정이 있다면
|
//소셜계정이 있다면
|
||||||
if(function_exists('social_login_link_account')){
|
if(function_exists('social_login_link_account')){
|
||||||
if( $my_social_accounts = social_login_link_account($row['mb_id'], false, 'get_data') ){
|
if( $my_social_accounts = social_login_link_account($row['mb_id'], false, 'get_data') ){
|
||||||
|
|
||||||
echo '<div class="member_social_provider sns-wrap-over sns-wrap-32">';
|
echo '<div class="member_social_provider sns-wrap-over sns-wrap-32">';
|
||||||
foreach( (array) $my_social_accounts as $account){ //반복문
|
foreach( (array) $my_social_accounts as $account){ //반복문
|
||||||
if (empty($account) || empty($account['provider'])) {
|
if( empty($account) || empty($account['provider']) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$provider = strtolower($account['provider']);
|
$provider = strtolower($account['provider']);
|
||||||
$provider_name = social_get_provider_service_name($provider);
|
$provider_name = social_get_provider_service_name($provider);
|
||||||
@@ -245,12 +236,10 @@ $colspan = 16;
|
|||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td headers="mb_list_cert" rowspan="2" class="td_mbcert">
|
<td headers="mb_list_cert" rowspan="2" class="td_mbcert">
|
||||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="simple" id="mb_certify_sa_<?php echo $i; ?>" <?php echo $row['mb_certify'] == 'simple' ? 'checked' : ''; ?>>
|
|
||||||
<label for="mb_certify_sa_<?php echo $i; ?>">간편인증</label><br>
|
|
||||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify'] == 'hp' ? 'checked' : ''; ?>>
|
|
||||||
<label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label><br>
|
|
||||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify']=='ipin'?'checked':''; ?>>
|
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify']=='ipin'?'checked':''; ?>>
|
||||||
<label for="mb_certify_ipin_<?php echo $i; ?>">아이핀</label>
|
<label for="mb_certify_ipin_<?php echo $i; ?>">아이핀</label><br>
|
||||||
|
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify']=='hp'?'checked':''; ?>>
|
||||||
|
<label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label>
|
||||||
</td>
|
</td>
|
||||||
<td headers="mb_list_mailc"><?php echo preg_match('/[1-9]/', $row['mb_email_certify'])?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
<td headers="mb_list_mailc"><?php echo preg_match('/[1-9]/', $row['mb_email_certify'])?'<span class="txt_true">Yes</span>':'<span class="txt_false">No</span>'; ?></td>
|
||||||
<td headers="mb_list_open">
|
<td headers="mb_list_open">
|
||||||
@@ -263,11 +252,8 @@ $colspan = 16;
|
|||||||
</td>
|
</td>
|
||||||
<td headers="mb_list_auth" class="td_mbstat">
|
<td headers="mb_list_auth" class="td_mbstat">
|
||||||
<?php
|
<?php
|
||||||
if ($leave_msg || $intercept_msg) {
|
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
|
||||||
echo $leave_msg . ' ' . $intercept_msg;
|
else echo "정상";
|
||||||
} else {
|
|
||||||
echo "정상";
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td headers="mb_list_mobile" class="td_tel"><?php echo get_text($row['mb_hp']); ?></td>
|
<td headers="mb_list_mobile" class="td_tel"><?php echo get_text($row['mb_hp']); ?></td>
|
||||||
@@ -277,9 +263,7 @@ $colspan = 16;
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="<?php echo $bg; ?>">
|
<tr class="<?php echo $bg; ?>">
|
||||||
<td headers="mb_list_name" class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
<td headers="mb_list_name" class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
||||||
<td headers="mb_list_nick" class="td_name sv_use">
|
<td headers="mb_list_nick" class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||||
<div><?php echo $mb_nick ?></div>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td headers="mb_list_sms">
|
<td headers="mb_list_sms">
|
||||||
<label for="mb_sms_<?php echo $i; ?>" class="sound_only">SMS수신</label>
|
<label for="mb_sms_<?php echo $i; ?>" class="sound_only">SMS수신</label>
|
||||||
@@ -306,9 +290,8 @@ $colspan = 16;
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo "<tr><td colspan=\"".$colspan."\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
echo "<tr><td colspan=\"".$colspan."\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -329,7 +312,8 @@ $colspan = 16;
|
|||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr.'&page='); ?>
|
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?'.$qstr.'&page='); ?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fmemberlist_submit(f) {
|
function fmemberlist_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -346,4 +330,4 @@ $colspan = 16;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once "./_common.php";
|
include_once("./_common.php");
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -9,7 +9,8 @@ auth_check_menu($auth, $sub_menu, "d");
|
|||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$msg = "";
|
$msg = "";
|
||||||
for ($i = 0; $i < count($chk); $i++) {
|
for ($i=0; $i<count($chk); $i++)
|
||||||
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
|
|
||||||
@@ -29,8 +30,7 @@ for ($i = 0; $i < count($chk); $i++) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($msg) {
|
if ($msg)
|
||||||
echo "<script type='text/javascript'> alert('$msg'); </script>";
|
echo "<script type='text/javascript'> alert('$msg'); </script>";
|
||||||
}
|
|
||||||
|
|
||||||
goto_url("./member_list.php?$qstr");
|
goto_url("./member_list.php?$qstr");
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200100";
|
$sub_menu = "200100";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -16,7 +16,9 @@ $mb_datas = array();
|
|||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
||||||
if ($_POST['act_button'] == "선택수정") {
|
if ($_POST['act_button'] == "선택수정") {
|
||||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
|
||||||
|
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||||
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|
||||||
@@ -36,11 +38,10 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
} else if ($member['mb_id'] == $mb['mb_id']) {
|
} else if ($member['mb_id'] == $mb['mb_id']) {
|
||||||
$msg .= $mb['mb_id'].' : 로그인 중인 관리자는 수정 할 수 없습니다.\\n';
|
$msg .= $mb['mb_id'].' : 로그인 중인 관리자는 수정 할 수 없습니다.\\n';
|
||||||
} else {
|
} else {
|
||||||
if ($post_mb_certify) {
|
if($post_mb_certify)
|
||||||
$mb_adult = isset($_POST['mb_adult'][$k]) ? (int) $_POST['mb_adult'][$k] : 0;
|
$mb_adult = isset($_POST['mb_adult'][$k]) ? (int) $_POST['mb_adult'][$k] : 0;
|
||||||
} else {
|
else
|
||||||
$mb_adult = 0;
|
$mb_adult = 0;
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " update {$g5['member_table']}
|
$sql = " update {$g5['member_table']}
|
||||||
set mb_level = '".$post_mb_level."',
|
set mb_level = '".$post_mb_level."',
|
||||||
@@ -54,8 +55,11 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ($_POST['act_button'] == "선택삭제") {
|
} else if ($_POST['act_button'] == "선택삭제") {
|
||||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
|
||||||
|
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||||
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|
||||||
@@ -76,10 +80,9 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($msg) {
|
if ($msg)
|
||||||
//echo '<script> alert("'.$msg.'"); </script>';
|
//echo '<script> alert("'.$msg.'"); </script>';
|
||||||
alert($msg);
|
alert($msg);
|
||||||
}
|
|
||||||
|
|
||||||
run_event('admin_member_list_update', $_POST['act_button'], $mb_datas);
|
run_event('admin_member_list_update', $_POST['act_button'], $mb_datas);
|
||||||
|
|
||||||
|
|||||||
+11
-13
@@ -1,24 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100290";
|
$sub_menu = "100290";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert_close('최고관리자만 접근 가능합니다.');
|
alert_close('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '메뉴 추가';
|
$g5['title'] = '메뉴 추가';
|
||||||
require_once G5_PATH . '/head.sub.php';
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
$new = isset($_GET['new']) ? clean_xss_tags($_GET['new'], 1, 1) : '';
|
$new = isset($_GET['new']) ? clean_xss_tags($_GET['new'], 1, 1) : '';
|
||||||
$code = isset($_GET['code']) ? (string)preg_replace('/[^0-9a-zA-Z]/', '', $_GET['code']) : '';
|
$code = isset($_GET['code']) ? preg_replace('/[^0-9a-zA-Z]/', '', $_GET['code']) : '';
|
||||||
|
|
||||||
// 코드
|
// 코드
|
||||||
if($new == 'new' || !$code) {
|
if($new == 'new' || !$code) {
|
||||||
$code = (int)base_convert(substr($code, 0, 2), 36, 10);
|
$code = base_convert(substr($code,0, 2), 36, 10);
|
||||||
$code += 36;
|
$code += 36;
|
||||||
$code = base_convert((string)$code, 10, 36);
|
$code = base_convert($code, 10, 36);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="menu_frm" class="new_win">
|
<div id="menu_frm" class="new_win">
|
||||||
@@ -80,9 +78,8 @@ if ($new == 'new' || !$code) {
|
|||||||
var dfd = new $.Deferred();
|
var dfd = new $.Deferred();
|
||||||
|
|
||||||
$("#menu_result").empty().load(
|
$("#menu_result").empty().load(
|
||||||
"./menu_form_search.php", {
|
"./menu_form_search.php",
|
||||||
type: type
|
{ type : type },
|
||||||
},
|
|
||||||
function(){
|
function(){
|
||||||
dfd.resolve('Finished');
|
dfd.resolve('Finished');
|
||||||
}
|
}
|
||||||
@@ -117,7 +114,8 @@ if ($new == 'new' || !$code) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function add_menu_list(name, link, code) {
|
function add_menu_list(name, link, code)
|
||||||
|
{
|
||||||
var $menulist = $("#menulist", opener.document);
|
var $menulist = $("#menulist", opener.document);
|
||||||
var ms = new Date().getTime();
|
var ms = new Date().getTime();
|
||||||
var sub_menu_class;
|
var sub_menu_class;
|
||||||
@@ -196,4 +194,4 @@ if ($new == 'new' || !$code) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_PATH . '/tail.sub.php';
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
die('최고관리자만 접근 가능합니다.');
|
die('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
$type = isset($_REQUEST['type']) ? preg_replace('/[^0-9a-z_]/i', '', $_REQUEST['type']) : '';
|
$type = isset($_REQUEST['type']) ? preg_replace('/[^0-9a-z_]/i', '', $_REQUEST['type']) : '';
|
||||||
|
|
||||||
@@ -33,6 +32,7 @@ if ($sql) {
|
|||||||
|
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
if($i == 0) {
|
if($i == 0) {
|
||||||
|
|
||||||
$bbs_subject_title = ($type == 'board') ? '게시판제목' : '제목';
|
$bbs_subject_title = ($type == 'board') ? '게시판제목' : '제목';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -96,6 +96,7 @@ if ($sql) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
<table>
|
<table>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
|||||||
+16
-17
@@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100290";
|
$sub_menu = "100290";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
// 메뉴테이블 생성
|
// 메뉴테이블 생성
|
||||||
if( !isset($g5['menu_table']) ){
|
if( !isset($g5['menu_table']) ){
|
||||||
@@ -12,8 +11,7 @@ if (!isset($g5['menu_table'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) {
|
if(!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) {
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['menu_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['menu_table']}` (
|
|
||||||
`me_id` int(11) NOT NULL AUTO_INCREMENT,
|
`me_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`me_code` varchar(255) NOT NULL DEFAULT '',
|
`me_code` varchar(255) NOT NULL DEFAULT '',
|
||||||
`me_name` varchar(255) NOT NULL DEFAULT '',
|
`me_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
@@ -23,16 +21,14 @@ if (!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) {
|
|||||||
`me_use` tinyint(4) NOT NULL DEFAULT '0',
|
`me_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`me_mobile_use` tinyint(4) NOT NULL DEFAULT '0',
|
`me_mobile_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`me_id`)
|
PRIMARY KEY (`me_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " select * from {$g5['menu_table']} order by me_id ";
|
$sql = " select * from {$g5['menu_table']} order by me_id ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
$g5['title'] = "메뉴설정";
|
$g5['title'] = "메뉴설정";
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 7;
|
$colspan = 7;
|
||||||
$sub_menu_info = '';
|
$sub_menu_info = '';
|
||||||
@@ -63,7 +59,8 @@ $sub_menu_info = '';
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
|
{
|
||||||
$bg = 'bg'.($i%2);
|
$bg = 'bg'.($i%2);
|
||||||
$sub_menu_class = '';
|
$sub_menu_class = '';
|
||||||
if(strlen($row['me_code']) == 4) {
|
if(strlen($row['me_code']) == 4) {
|
||||||
@@ -121,9 +118,8 @@ $sub_menu_info = '';
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i==0)
|
||||||
echo '<tr id="empty_menu_list"><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr id="empty_menu_list"><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -144,7 +140,7 @@ $sub_menu_info = '';
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("click", ".btn_del_menu", function() {
|
$(document).on("click", ".btn_del_menu", function() {
|
||||||
if (!confirm("메뉴를 삭제하시겠습니까?\n메뉴 삭제후 메뉴설정의 확인 버튼을 눌러 메뉴를 저장해 주세요."))
|
if(!confirm("메뉴를 삭제하시겠습니까?"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var $tr = $(this).closest("tr");
|
var $tr = $(this).closest("tr");
|
||||||
@@ -167,7 +163,8 @@ $sub_menu_info = '';
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function add_menu() {
|
function add_menu()
|
||||||
|
{
|
||||||
var max_code = base_convert(0, 10, 36);
|
var max_code = base_convert(0, 10, 36);
|
||||||
$("#menulist tr.menu_list").each(function() {
|
$("#menulist tr.menu_list").each(function() {
|
||||||
var me_code = $(this).find("input[name='code[]']").val().substr(0, 2);
|
var me_code = $(this).find("input[name='code[]']").val().substr(0, 2);
|
||||||
@@ -180,7 +177,8 @@ $sub_menu_info = '';
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_submenu(code) {
|
function add_submenu(code)
|
||||||
|
{
|
||||||
var url = "./menu_form.php?code="+code;
|
var url = "./menu_form.php?code="+code;
|
||||||
window.open(url, "add_menu", "left=100,top=100,width=550,height=650,scrollbars=yes,resizable=yes");
|
window.open(url, "add_menu", "left=100,top=100,width=550,height=650,scrollbars=yes,resizable=yes");
|
||||||
return false;
|
return false;
|
||||||
@@ -197,7 +195,8 @@ $sub_menu_info = '';
|
|||||||
.toString(tobase | 0);
|
.toString(tobase | 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function fmenulist_submit(f) {
|
function fmenulist_submit(f)
|
||||||
|
{
|
||||||
|
|
||||||
var me_links = document.getElementsByName('me_link[]');
|
var me_links = document.getElementsByName('me_link[]');
|
||||||
var reg = /^javascript/;
|
var reg = /^javascript/;
|
||||||
@@ -217,4 +216,4 @@ $sub_menu_info = '';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
+10
-12
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100290";
|
$sub_menu = "100290";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
if ($is_admin != 'super') {
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
@@ -16,9 +15,10 @@ sql_query($sql);
|
|||||||
|
|
||||||
$group_code = null;
|
$group_code = null;
|
||||||
$primary_code = null;
|
$primary_code = null;
|
||||||
$count = isset($_POST['code']) ? count($_POST['code']) : 0;
|
$count = count($_POST['code']);
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i=0; $i<$count; $i++)
|
||||||
|
{
|
||||||
$_POST = array_map_deep('trim', $_POST);
|
$_POST = array_map_deep('trim', $_POST);
|
||||||
|
|
||||||
if(preg_match('/^javascript/i', preg_replace('/[ ]{1,}|[\t]/', '', $_POST['me_link'][$i]))){
|
if(preg_match('/^javascript/i', preg_replace('/[ ]{1,}|[\t]/', '', $_POST['me_link'][$i]))){
|
||||||
@@ -26,15 +26,13 @@ for ($i = 0; $i < $count; $i++) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$_POST['me_link'][$i] = is_array($_POST['me_link']) ? clean_xss_tags(clean_xss_attributes(preg_replace('/[ ]{2,}|[\t]/', '', $_POST['me_link'][$i]), 1)) : '';
|
$_POST['me_link'][$i] = is_array($_POST['me_link']) ? clean_xss_tags(clean_xss_attributes(preg_replace('/[ ]{2,}|[\t]/', '', $_POST['me_link'][$i]), 1)) : '';
|
||||||
$_POST['me_link'][$i] = html_purifier($_POST['me_link'][$i]);
|
|
||||||
|
|
||||||
$code = is_array($_POST['code']) ? strip_tags($_POST['code'][$i]) : '';
|
$code = is_array($_POST['code']) ? strip_tags($_POST['code'][$i]) : '';
|
||||||
$me_name = is_array($_POST['me_name']) ? strip_tags($_POST['me_name'][$i]) : '';
|
$me_name = is_array($_POST['me_name']) ? strip_tags($_POST['me_name'][$i]) : '';
|
||||||
$me_link = (preg_match('/^javascript/i', $_POST['me_link'][$i]) || preg_match('/script:/i', $_POST['me_link'][$i])) ? G5_URL : strip_tags(clean_xss_attributes($_POST['me_link'][$i]));
|
$me_link = (preg_match('/^javascript/i', $_POST['me_link'][$i]) || preg_match('/script:/i', $_POST['me_link'][$i])) ? G5_URL : strip_tags(clean_xss_attributes($_POST['me_link'][$i]));
|
||||||
|
|
||||||
if (!$code || !$me_name || !$me_link) {
|
if(!$code || !$me_name || !$me_link)
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
$sub_code = '';
|
$sub_code = '';
|
||||||
if($group_code == $code) {
|
if($group_code == $code) {
|
||||||
@@ -43,9 +41,9 @@ for ($i = 0; $i < $count; $i++) {
|
|||||||
where SUBSTRING(me_code,1,2) = '$primary_code' ";
|
where SUBSTRING(me_code,1,2) = '$primary_code' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
$sub_code = (int)base_convert($row['max_me_code'], 36, 10);
|
$sub_code = base_convert($row['max_me_code'], 36, 10);
|
||||||
$sub_code += 36;
|
$sub_code += 36;
|
||||||
$sub_code = base_convert((string)$sub_code, 10, 36);
|
$sub_code = base_convert($sub_code, 10, 36);
|
||||||
|
|
||||||
$me_code = $primary_code.$sub_code;
|
$me_code = $primary_code.$sub_code;
|
||||||
} else {
|
} else {
|
||||||
@@ -54,9 +52,9 @@ for ($i = 0; $i < $count; $i++) {
|
|||||||
where LENGTH(me_code) = '2' ";
|
where LENGTH(me_code) = '2' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
$me_code = (int)base_convert($row['max_me_code'], 36, 10);
|
$me_code = base_convert($row['max_me_code'], 36, 10);
|
||||||
$me_code += 36;
|
$me_code += 36;
|
||||||
$me_code = base_convert((string)$me_code, 10, 36);
|
$me_code = base_convert($me_code, 10, 36);
|
||||||
|
|
||||||
$group_code = $code;
|
$group_code = $code;
|
||||||
$primary_code = $me_code;
|
$primary_code = $me_code;
|
||||||
|
|||||||
+12
-29
@@ -1,33 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100310';
|
$sub_menu = '100310';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
|
|
||||||
$nw_id = isset($_REQUEST['nw_id']) ? (string)preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
$nw_id = isset($_REQUEST['nw_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||||
$nw = array(
|
$nw = array(
|
||||||
'nw_begin_time'=>'',
|
'nw_begin_time'=>'',
|
||||||
'nw_end_time'=>'',
|
'nw_end_time'=>'',
|
||||||
'nw_subject'=>'',
|
'nw_subject'=>'',
|
||||||
'nw_content'=>'',
|
'nw_content'=>'',
|
||||||
'nw_division' => '',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$html_title = "팝업레이어";
|
$html_title = "팝업레이어";
|
||||||
|
if ($w == "u")
|
||||||
// 팝업레이어 테이블에 쇼핑몰, 커뮤니티 인지 구분하는 여부 필드 추가
|
{
|
||||||
$sql = " ALTER TABLE `{$g5['new_win_table']}` ADD `nw_division` VARCHAR(10) NOT NULL DEFAULT 'both' ";
|
|
||||||
sql_query($sql, false);
|
|
||||||
|
|
||||||
if ($w == "u") {
|
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$sql = " select * from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
$sql = " select * from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
||||||
$nw = sql_fetch($sql);
|
$nw = sql_fetch($sql);
|
||||||
if (!(isset($nw['nw_id']) && $nw['nw_id'])) {
|
if (! (isset($nw['nw_id']) && $nw['nw_id'])) alert("등록된 자료가 없습니다.");
|
||||||
alert("등록된 자료가 없습니다.");
|
|
||||||
}
|
}
|
||||||
} else {
|
else
|
||||||
|
{
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
$nw['nw_device'] = 'both';
|
$nw['nw_device'] = 'both';
|
||||||
$nw['nw_disable_hours'] = 24;
|
$nw['nw_disable_hours'] = 24;
|
||||||
@@ -39,7 +34,7 @@ if ($w == "u") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
$g5['title'] = $html_title;
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="frmnewwin" action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" method="post">
|
<form name="frmnewwin" action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" method="post">
|
||||||
@@ -59,19 +54,6 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="nw_division">구분</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("커뮤니티에 표시될 것인지 쇼핑몰에 표시될 것인지를 설정합니다."); ?>
|
|
||||||
<select name="nw_division" id="nw_division">
|
|
||||||
<option value="comm" <?php echo get_selected($nw['nw_division'], 'comm'); ?>>커뮤니티</option>
|
|
||||||
<?php if (defined('G5_USE_SHOP') && G5_USE_SHOP) { ?>
|
|
||||||
<option value="both" <?php echo get_selected($nw['nw_division'], 'both', true); ?>>커뮤니티와 쇼핑몰</option>
|
|
||||||
<option value="shop" <?php echo get_selected($nw['nw_division'], 'shop'); ?>>쇼핑몰</option>
|
|
||||||
<?php } ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="nw_device">접속기기</label></th>
|
<th scope="row"><label for="nw_device">접속기기</label></th>
|
||||||
<td>
|
<td>
|
||||||
@@ -151,7 +133,8 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function frmnewwin_check(f) {
|
function frmnewwin_check(f)
|
||||||
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
|
|
||||||
@@ -169,4 +152,4 @@ require_once G5_ADMIN_PATH . '/admin.head.php';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+19
-17
@@ -1,18 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100310';
|
$sub_menu = '100310';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
$nw_id = isset($_REQUEST['nw_id']) ? (string)preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
$nw_id = isset($_REQUEST['nw_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||||
|
|
||||||
if ($w == "u" || $w == "d") {
|
if ($w == "u" || $w == "d")
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
if ($w == 'd') {
|
if ($w == 'd')
|
||||||
auth_check_menu($auth, $sub_menu, "d");
|
auth_check_menu($auth, $sub_menu, "d");
|
||||||
} else {
|
else
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
auth_check_menu($auth, $sub_menu, "w");
|
||||||
}
|
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
@@ -21,7 +19,6 @@ $posts = array();
|
|||||||
|
|
||||||
$check_keys = array(
|
$check_keys = array(
|
||||||
'nw_device'=>'str',
|
'nw_device'=>'str',
|
||||||
'nw_division' => 'str',
|
|
||||||
'nw_begin_time'=>'str',
|
'nw_begin_time'=>'str',
|
||||||
'nw_end_time'=>'str',
|
'nw_end_time'=>'str',
|
||||||
'nw_disable_hours'=>'int',
|
'nw_disable_hours'=>'int',
|
||||||
@@ -44,7 +41,6 @@ foreach ($check_keys as $key => $val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql_common = " nw_device = '{$posts['nw_device']}',
|
$sql_common = " nw_device = '{$posts['nw_device']}',
|
||||||
nw_division = '{$posts['nw_division']}',
|
|
||||||
nw_begin_time = '{$posts['nw_begin_time']}',
|
nw_begin_time = '{$posts['nw_begin_time']}',
|
||||||
nw_end_time = '{$posts['nw_end_time']}',
|
nw_end_time = '{$posts['nw_end_time']}',
|
||||||
nw_disable_hours = '{$posts['nw_disable_hours']}',
|
nw_disable_hours = '{$posts['nw_disable_hours']}',
|
||||||
@@ -56,23 +52,29 @@ $sql_common = " nw_device = '{$posts['nw_device']}',
|
|||||||
nw_content = '{$posts['nw_content']}',
|
nw_content = '{$posts['nw_content']}',
|
||||||
nw_content_html = '{$posts['nw_content_html']}' ";
|
nw_content_html = '{$posts['nw_content_html']}' ";
|
||||||
|
|
||||||
if ($w == "") {
|
if($w == "")
|
||||||
|
{
|
||||||
$sql = " insert {$g5['new_win_table']} set $sql_common ";
|
$sql = " insert {$g5['new_win_table']} set $sql_common ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
$nw_id = sql_insert_id();
|
$nw_id = sql_insert_id();
|
||||||
run_event('admin_newwin_created', $nw_id);
|
}
|
||||||
} elseif ($w == "u") {
|
else if ($w == "u")
|
||||||
|
{
|
||||||
$sql = " update {$g5['new_win_table']} set $sql_common where nw_id = '$nw_id' ";
|
$sql = " update {$g5['new_win_table']} set $sql_common where nw_id = '$nw_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_newwin_updated', $nw_id);
|
}
|
||||||
} elseif ($w == "d") {
|
else if ($w == "d")
|
||||||
|
{
|
||||||
$sql = " delete from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
$sql = " delete from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
run_event('admin_newwin_deleted', $nw_id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == "d") {
|
if ($w == "d")
|
||||||
|
{
|
||||||
goto_url('./newwinlist.php');
|
goto_url('./newwinlist.php');
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
goto_url("./newwinform.php?w=u&nw_id=$nw_id");
|
goto_url("./newwinform.php?w=u&nw_id=$nw_id");
|
||||||
}
|
}
|
||||||
+5
-9
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '100310';
|
$sub_menu = '100310';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
auth_check_menu($auth, $sub_menu, "r");
|
||||||
|
|
||||||
@@ -12,10 +12,8 @@ if (!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) {
|
|||||||
if(sql_query(" DESCRIBE {$g5['g5_shop_new_win_table']} ", false)) {
|
if(sql_query(" DESCRIBE {$g5['g5_shop_new_win_table']} ", false)) {
|
||||||
sql_query(" ALTER TABLE {$g5['g5_shop_new_win_table']} RENAME TO `{$g5['new_win_table']}` ;", false);
|
sql_query(" ALTER TABLE {$g5['g5_shop_new_win_table']} RENAME TO `{$g5['new_win_table']}` ;", false);
|
||||||
} else {
|
} else {
|
||||||
$query_cp = sql_query(
|
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` (
|
|
||||||
`nw_id` int(11) NOT NULL AUTO_INCREMENT,
|
`nw_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`nw_division` varchar(10) NOT NULL DEFAULT 'both',
|
|
||||||
`nw_device` varchar(10) NOT NULL DEFAULT 'both',
|
`nw_device` varchar(10) NOT NULL DEFAULT 'both',
|
||||||
`nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`nw_begin_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`nw_end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
@@ -28,14 +26,12 @@ if (!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) {
|
|||||||
`nw_content` text NOT NULL,
|
`nw_content` text NOT NULL,
|
||||||
`nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
|
`nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`nw_id`)
|
PRIMARY KEY (`nw_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$g5['title'] = '팝업레이어 관리';
|
$g5['title'] = '팝업레이어 관리';
|
||||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||||
|
|
||||||
$sql_common = " from {$g5['new_win_table']} ";
|
$sql_common = " from {$g5['new_win_table']} ";
|
||||||
|
|
||||||
@@ -118,4 +114,4 @@ $result = sql_query($sql);
|
|||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "100500";
|
$sub_menu = "100500";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
|
|||||||
+23
-28
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200200";
|
$sub_menu = "200200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
$sql_common = " from {$g5['point_table']} po";
|
$sql_common = " from {$g5['point_table']} ";
|
||||||
|
|
||||||
$sql_search = " where (1) ";
|
$sql_search = " where (1) ";
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ if ($stx) {
|
|||||||
$sql_search .= " and ( ";
|
$sql_search .= " and ( ";
|
||||||
switch ($sfl) {
|
switch ($sfl) {
|
||||||
case 'mb_id' :
|
case 'mb_id' :
|
||||||
$sql_search .= " (po.{$sfl} = '{$stx}') ";
|
$sql_search .= " ({$sfl} = '{$stx}') ";
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
$sql_search .= " ({$sfl} like '%{$stx}%') ";
|
$sql_search .= " ({$sfl} like '%{$stx}%') ";
|
||||||
@@ -36,14 +36,11 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select po.*, mb.mb_name, mb.mb_nick, mb.mb_email, mb.mb_homepage, mb.mb_point
|
$sql = " select *
|
||||||
{$sql_common}
|
{$sql_common}
|
||||||
LEFT JOIN {$g5['member_table']} mb ON po.mb_id = mb.mb_id
|
|
||||||
{$sql_search}
|
{$sql_search}
|
||||||
{$sql_order}
|
{$sql_order}
|
||||||
limit {$from_record}, {$rows} ";
|
limit {$from_record}, {$rows} ";
|
||||||
@@ -52,12 +49,11 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$mb = array();
|
$mb = array();
|
||||||
if ($sfl == 'mb_id' && $stx) {
|
if ($sfl == 'mb_id' && $stx)
|
||||||
$mb = get_member($stx);
|
$mb = get_member($stx);
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '포인트관리';
|
$g5['title'] = '포인트관리';
|
||||||
require_once './admin.head.php';
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 9;
|
$colspan = 9;
|
||||||
|
|
||||||
@@ -66,11 +62,10 @@ if ($config['cf_point_term'] > 0) {
|
|||||||
$po_expire_term = $config['cf_point_term'];
|
$po_expire_term = $config['cf_point_term'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr($sfl, "mb_id")) {
|
if (strstr($sfl, "mb_id"))
|
||||||
$mb_id = $stx;
|
$mb_id = $stx;
|
||||||
} else {
|
else
|
||||||
$mb_id = "";
|
$mb_id = "";
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
<div class="local_ov01 local_ov">
|
||||||
@@ -127,7 +122,12 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
if ($i==0 || ($row2['mb_id'] != $row['mb_id'])) {
|
||||||
|
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
|
$row2 = sql_fetch($sql2);
|
||||||
|
}
|
||||||
|
|
||||||
|
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||||
|
|
||||||
$link1 = $link2 = '';
|
$link1 = $link2 = '';
|
||||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
||||||
@@ -136,9 +136,8 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$expr = '';
|
$expr = '';
|
||||||
if ($row['po_expired'] == 1) {
|
if($row['po_expired'] == 1)
|
||||||
$expr = ' txt_expired';
|
$expr = ' txt_expired';
|
||||||
}
|
|
||||||
|
|
||||||
$bg = 'bg'.($i%2);
|
$bg = 'bg'.($i%2);
|
||||||
?>
|
?>
|
||||||
@@ -151,19 +150,15 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_left"><a href="?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
<td class="td_left"><a href="?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
||||||
<td class="td_left"><?php echo get_text($row['mb_name']); ?></td>
|
<td class="td_left"><?php echo get_text($row2['mb_name']); ?></td>
|
||||||
<td class="td_left sv_use">
|
<td class="td_left sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||||
<div><?php echo $mb_nick ?></div>
|
|
||||||
</td>
|
|
||||||
<td class="td_left"><?php echo $link1 ?><?php echo $row['po_content'] ?><?php echo $link2 ?></td>
|
<td class="td_left"><?php echo $link1 ?><?php echo $row['po_content'] ?><?php echo $link2 ?></td>
|
||||||
<td class="td_num td_pt"><?php echo number_format($row['po_point']) ?></td>
|
<td class="td_num td_pt"><?php echo number_format($row['po_point']) ?></td>
|
||||||
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
||||||
<td class="td_datetime2<?php echo $expr; ?>">
|
<td class="td_datetime2<?php echo $expr; ?>">
|
||||||
<?php if ($row['po_expired'] == 1) { ?>
|
<?php if ($row['po_expired'] == 1) { ?>
|
||||||
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
||||||
<?php } else {
|
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date']; ?>
|
||||||
echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date'];
|
|
||||||
} ?>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="td_num td_pt"><?php echo number_format($row['po_mb_point']) ?></td>
|
<td class="td_num td_pt"><?php echo number_format($row['po_mb_point']) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -171,9 +166,8 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -236,7 +230,8 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fpointlist_submit(f) {
|
function fpointlist_submit(f)
|
||||||
|
{
|
||||||
if (!is_checked("chk[]")) {
|
if (!is_checked("chk[]")) {
|
||||||
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
|
||||||
return false;
|
return false;
|
||||||
@@ -253,4 +248,4 @@ if (strstr($sfl, "mb_id")) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = '200200';
|
$sub_menu = '200200';
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -9,11 +9,11 @@ auth_check_menu($auth, $sub_menu, 'd');
|
|||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||||
if (!$count) {
|
if(!$count)
|
||||||
alert($_POST['act_button'].' 하실 항목을 하나 이상 체크하세요.');
|
alert($_POST['act_button'].' 하실 항목을 하나 이상 체크하세요.');
|
||||||
}
|
|
||||||
|
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i=0; $i<$count; $i++)
|
||||||
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
$po_id = (int) $_POST['po_id'][$k];
|
$po_id = (int) $_POST['po_id'][$k];
|
||||||
@@ -23,19 +23,17 @@ for ($i = 0; $i < $count; $i++) {
|
|||||||
$sql = " select * from {$g5['point_table']} where po_id = '{$po_id}' ";
|
$sql = " select * from {$g5['point_table']} where po_id = '{$po_id}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
if (!$row['po_id']) {
|
if(!$row['po_id'])
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
if($row['po_point'] < 0) {
|
if($row['po_point'] < 0) {
|
||||||
$mb_id = $row['mb_id'];
|
$mb_id = $row['mb_id'];
|
||||||
$po_point = abs($row['po_point']);
|
$po_point = abs($row['po_point']);
|
||||||
|
|
||||||
if ($row['po_rel_table'] == '@expire') {
|
if($row['po_rel_table'] == '@expire')
|
||||||
delete_expire_point($mb_id, $po_point);
|
delete_expire_point($mb_id, $po_point);
|
||||||
} else {
|
else
|
||||||
delete_use_point($mb_id, $po_point);
|
delete_use_point($mb_id, $po_point);
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if($row['po_use_point'] > 0) {
|
if($row['po_use_point'] > 0) {
|
||||||
insert_use_point($row['mb_id'], $row['po_use_point'], $row['po_id']);
|
insert_use_point($row['mb_id'], $row['po_use_point'], $row['po_id']);
|
||||||
|
|||||||
@@ -1,25 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200200";
|
$sub_menu = "200200";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
$mb_id = isset($_POST['mb_id']) ? strip_tags(clean_xss_attributes($_POST['mb_id'])) : '';
|
$mb_id = isset($_POST['mb_id']) ? strip_tags(clean_xss_attributes($_POST['mb_id'])) : '';
|
||||||
$po_point = isset($_POST['po_point']) ? (int)strip_tags(clean_xss_attributes($_POST['po_point'])) : 0;
|
$po_point = isset($_POST['po_point']) ? strip_tags(clean_xss_attributes($_POST['po_point'])) : 0;
|
||||||
$po_content = isset($_POST['po_content']) ? strip_tags(clean_xss_attributes($_POST['po_content'])) : '';
|
$po_content = isset($_POST['po_content']) ? strip_tags(clean_xss_attributes($_POST['po_content'])) : '';
|
||||||
$expire = isset($_POST['po_expire_term']) ? preg_replace('/[^0-9]/', '', $_POST['po_expire_term']) : '';
|
$expire = isset($_POST['po_expire_term']) ? preg_replace('/[^0-9]/', '', $_POST['po_expire_term']) : '';
|
||||||
|
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
|
|
||||||
if (!$mb['mb_id']) {
|
if (!$mb['mb_id'])
|
||||||
alert('존재하는 회원아이디가 아닙니다.', './point_list.php?'.$qstr);
|
alert('존재하는 회원아이디가 아닙니다.', './point_list.php?'.$qstr);
|
||||||
}
|
|
||||||
|
|
||||||
if (($po_point < 0) && ($po_point * (-1) > $mb['mb_point'])) {
|
if (($po_point < 0) && ($po_point * (-1) > $mb['mb_point']))
|
||||||
alert('포인트를 깎는 경우 현재 포인트보다 작으면 안됩니다.', './point_list.php?'.$qstr);
|
alert('포인트를 깎는 경우 현재 포인트보다 작으면 안됩니다.', './point_list.php?'.$qstr);
|
||||||
}
|
|
||||||
|
|
||||||
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member['mb_id'].'-'.uniqid(''), $expire);
|
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member['mb_id'].'-'.uniqid(''), $expire);
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200900";
|
$sub_menu = "200900";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -10,9 +10,8 @@ check_admin_token();
|
|||||||
|
|
||||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||||
|
|
||||||
if (!$count) {
|
if(!$count)
|
||||||
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
|
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
|
||||||
}
|
|
||||||
|
|
||||||
for($i=0; $i<$count; $i++) {
|
for($i=0; $i<$count; $i++) {
|
||||||
$po_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
$po_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||||
|
|||||||
+8
-18
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200900";
|
$sub_menu = "200900";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -13,22 +13,17 @@ $po = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
$html_title = '투표';
|
$html_title = '투표';
|
||||||
if ($w == '') {
|
if ($w == '')
|
||||||
$html_title .= ' 생성';
|
$html_title .= ' 생성';
|
||||||
} elseif ($w == 'u') {
|
else if ($w == 'u') {
|
||||||
$html_title .= ' 수정';
|
$html_title .= ' 수정';
|
||||||
$sql = " select * from {$g5['poll_table']} where po_id = '{$po_id}' ";
|
$sql = " select * from {$g5['poll_table']} where po_id = '{$po_id}' ";
|
||||||
$po = sql_fetch($sql);
|
$po = sql_fetch($sql);
|
||||||
} else {
|
} else
|
||||||
alert('w 값이 제대로 넘어오지 않았습니다.');
|
alert('w 값이 제대로 넘어오지 않았습니다.');
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($po['po_use'])) {
|
|
||||||
sql_query(" alter table `{$g5['poll_table']}` add `po_use` tinyint not null default '0' after `mb_ids` ", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
$g5['title'] = $html_title;
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fpoll" id="fpoll" action="./poll_form_update.php" method="post" enctype="multipart/form-data">
|
<form name="fpoll" id="fpoll" action="./poll_form_update.php" method="post" enctype="multipart/form-data">
|
||||||
@@ -54,7 +49,6 @@ require_once './admin.head.php';
|
|||||||
<?php
|
<?php
|
||||||
for ($i=1; $i<=9; $i++) {
|
for ($i=1; $i<=9; $i++) {
|
||||||
$required = '';
|
$required = '';
|
||||||
$sound_only = '';
|
|
||||||
if ($i==1 || $i==2) {
|
if ($i==1 || $i==2) {
|
||||||
$required = 'required';
|
$required = 'required';
|
||||||
$sound_only = '<strong class="sound_only">필수</strong>';
|
$sound_only = '<strong class="sound_only">필수</strong>';
|
||||||
@@ -98,21 +92,17 @@ require_once './admin.head.php';
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php if ($w == 'u') { ?>
|
<?php if ($w == 'u') { ?>
|
||||||
<tr>
|
|
||||||
<th scope="row">투표사용</th>
|
|
||||||
<td><input type="checkbox" name="po_use" id="po_use" value="1" <?php if ($po['po_use']) { echo 'checked="checked"'; } ?>> <label for="po_use">사용</label></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">투표등록일</th>
|
<th scope="row">투표등록일</th>
|
||||||
<td><?php echo $po['po_date']; ?></td>
|
<td><?php echo $po['po_date']; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="po_ips">투표참가 IP</label></th>
|
<th scope="row"><label for="po_ips">투표참가 IP</label></th>
|
||||||
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['po_ips'])); ?></textarea></td>
|
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['po_ips']) ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_ids">투표참가 회원</label></th>
|
<th scope="row"><label for="mb_ids">투표참가 회원</label></th>
|
||||||
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['mb_ids'])); ?></textarea></td>
|
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['mb_ids']) ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -128,4 +118,4 @@ require_once './admin.head.php';
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+16
-18
@@ -1,11 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200900";
|
$sub_menu = "200900";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
$w = $_POST['w'];
|
$w = $_POST['w'];
|
||||||
if ($w == 'u' || $w == 'd') {
|
if ($w == 'u' || $w == 'd')
|
||||||
check_demo();
|
check_demo();
|
||||||
}
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'w');
|
auth_check_menu($auth, $sub_menu, 'w');
|
||||||
|
|
||||||
@@ -38,25 +37,24 @@ $check_keys = array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
foreach( $_POST as $key=>$value ){
|
foreach( $_POST as $key=>$value ){
|
||||||
if (empty($value)) {
|
if( empty($value) ) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( in_array($key, $check_keys) ) {
|
if( in_array($key, $check_keys) ) {
|
||||||
$_POST[$key] = strip_tags(clean_xss_attributes($value));
|
$_POST[$key] = strip_tags(clean_xss_attributes($value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$po_id = isset($_POST['po_id']) ? $_POST['po_id'] : '';
|
if ($w == '')
|
||||||
|
{
|
||||||
if ($w == '') {
|
|
||||||
$sql = " insert {$g5['poll_table']}
|
$sql = " insert {$g5['poll_table']}
|
||||||
( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date, po_use )
|
( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date )
|
||||||
values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '" . G5_TIME_YMD . "', 1 ) ";
|
values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '".G5_TIME_YMD."' ) ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
$po_id = sql_insert_id();
|
$po_id = sql_insert_id();
|
||||||
} elseif ($w == 'u') {
|
}
|
||||||
|
else if ($w == 'u')
|
||||||
|
{
|
||||||
$sql = " update {$g5['poll_table']}
|
$sql = " update {$g5['poll_table']}
|
||||||
set po_subject = '{$_POST['po_subject']}',
|
set po_subject = '{$_POST['po_subject']}',
|
||||||
po_poll1 = '{$_POST['po_poll1']}',
|
po_poll1 = '{$_POST['po_poll1']}',
|
||||||
@@ -79,11 +77,12 @@ if ($w == '') {
|
|||||||
po_cnt9 = '{$_POST['po_cnt9']}',
|
po_cnt9 = '{$_POST['po_cnt9']}',
|
||||||
po_etc = '{$_POST['po_etc']}',
|
po_etc = '{$_POST['po_etc']}',
|
||||||
po_level = '{$_POST['po_level']}',
|
po_level = '{$_POST['po_level']}',
|
||||||
po_point = '{$_POST['po_point']}',
|
po_point = '{$_POST['po_point']}'
|
||||||
po_use = '{$_POST['po_use']}'
|
|
||||||
where po_id = '{$_POST['po_id']}' ";
|
where po_id = '{$_POST['po_id']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
} elseif ($w == 'd') {
|
}
|
||||||
|
else if ($w == 'd')
|
||||||
|
{
|
||||||
$sql = " delete from {$g5['poll_table']} where po_id = '{$_POST['po_id']}' ";
|
$sql = " delete from {$g5['poll_table']} where po_id = '{$_POST['po_id']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
@@ -97,8 +96,7 @@ if ($w == '') {
|
|||||||
$row = sql_fetch(" select max(po_id) as max_po_id from {$g5['poll_table']} ");
|
$row = sql_fetch(" select max(po_id) as max_po_id from {$g5['poll_table']} ");
|
||||||
sql_query(" update {$g5['config_table']} set cf_max_po_id = '{$row['max_po_id']}' ");
|
sql_query(" update {$g5['config_table']} set cf_max_po_id = '{$row['max_po_id']}' ");
|
||||||
|
|
||||||
if ($w == 'd') {
|
if ($w == 'd')
|
||||||
goto_url('./poll_list.php?'.$qstr);
|
goto_url('./poll_list.php?'.$qstr);
|
||||||
} else {
|
else
|
||||||
goto_url('./poll_form.php?w=u&po_id='.$po_id.'&'.$qstr);
|
goto_url('./poll_form.php?w=u&po_id='.$po_id.'&'.$qstr);
|
||||||
}
|
|
||||||
+6
-12
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "200900";
|
$sub_menu = "200900";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -32,9 +32,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
}
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
@@ -47,9 +45,9 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = '투표관리';
|
$g5['title'] = '투표관리';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 8;
|
$colspan = 7;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
<div class="local_ov01 local_ov">
|
||||||
@@ -92,7 +90,6 @@ $colspan = 8;
|
|||||||
<th scope="col">투표권한</th>
|
<th scope="col">투표권한</th>
|
||||||
<th scope="col">투표수</th>
|
<th scope="col">투표수</th>
|
||||||
<th scope="col">기타의견</th>
|
<th scope="col">기타의견</th>
|
||||||
<th scope="col">사용</th>
|
|
||||||
<th scope="col">관리</th>
|
<th scope="col">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -102,7 +99,6 @@ $colspan = 8;
|
|||||||
$sql2 = " select sum(po_cnt1+po_cnt2+po_cnt3+po_cnt4+po_cnt5+po_cnt6+po_cnt7+po_cnt8+po_cnt9) as sum_po_cnt from {$g5['poll_table']} where po_id = '{$row['po_id']}' ";
|
$sql2 = " select sum(po_cnt1+po_cnt2+po_cnt3+po_cnt4+po_cnt5+po_cnt6+po_cnt7+po_cnt8+po_cnt9) as sum_po_cnt from {$g5['poll_table']} where po_id = '{$row['po_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
|
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
|
||||||
$po_use = ($row['po_use']) ? "사용" : "미사용";
|
|
||||||
|
|
||||||
$s_mod = '<a href="./poll_form.php?'.$qstr.'&w=u&po_id='.$row['po_id'].'" class="btn btn_03">수정</a>';
|
$s_mod = '<a href="./poll_form.php?'.$qstr.'&w=u&po_id='.$row['po_id'].'" class="btn btn_03">수정</a>';
|
||||||
|
|
||||||
@@ -119,16 +115,14 @@ $colspan = 8;
|
|||||||
<td class="td_num"><?php echo $row['po_level'] ?></td>
|
<td class="td_num"><?php echo $row['po_level'] ?></td>
|
||||||
<td class="td_num"><?php echo $row2['sum_po_cnt'] ?></td>
|
<td class="td_num"><?php echo $row2['sum_po_cnt'] ?></td>
|
||||||
<td class="td_etc"><?php echo $po_etc ?></td>
|
<td class="td_etc"><?php echo $po_etc ?></td>
|
||||||
<td class="td_use"><?php echo $po_use ?></td>
|
|
||||||
<td class="td_mng td_mng_s"><?php echo $s_mod ?></td>
|
<td class="td_mng td_mng_s"><?php echo $s_mod ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i==0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -160,4 +154,4 @@ $colspan = 8;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300300";
|
$sub_menu = "300300";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
@@ -47,9 +47,7 @@ $total_count = $row['cnt'];
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1;
|
|
||||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
@@ -62,7 +60,7 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = '인기검색어관리';
|
$g5['title'] = '인기검색어관리';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
|
|
||||||
$colspan = 4;
|
$colspan = 4;
|
||||||
?>
|
?>
|
||||||
@@ -115,9 +113,11 @@ $colspan = 4;
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
|
||||||
$word = get_text($row['pp_word']);
|
$word = get_text($row['pp_word']);
|
||||||
$bg = 'bg'.($i%2);
|
$bg = 'bg'.($i%2);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr class="<?php echo $bg; ?>">
|
<tr class="<?php echo $bg; ?>">
|
||||||
<td class="td_chk">
|
<td class="td_chk">
|
||||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $word ?></label>
|
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $word ?></label>
|
||||||
@@ -127,12 +127,12 @@ $colspan = 4;
|
|||||||
<td><?php echo $row['pp_date'] ?></td>
|
<td><?php echo $row['pp_date'] ?></td>
|
||||||
<td><?php echo $row['pp_ip'] ?></td>
|
<td><?php echo $row['pp_ip'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -167,4 +167,4 @@ $colspan = 4;
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+13
-23
@@ -1,18 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300400";
|
$sub_menu = "300400";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
$fr_date = isset($_REQUEST['fr_date']) ? $_REQUEST['fr_date'] : '';
|
$fr_date = isset($_REQUEST['fr_date']) ? $_REQUEST['fr_date'] : '';
|
||||||
$to_date = isset($_REQUEST['to_date']) ? $_REQUEST['to_date'] : '';
|
$to_date = isset($_REQUEST['to_date']) ? $_REQUEST['to_date'] : '';
|
||||||
|
|
||||||
if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date)) {
|
if (empty($fr_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date) ) $fr_date = G5_TIME_YMD;
|
||||||
$fr_date = G5_TIME_YMD;
|
if (empty($to_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date) ) $to_date = G5_TIME_YMD;
|
||||||
}
|
|
||||||
if (empty($to_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date)) {
|
|
||||||
$to_date = G5_TIME_YMD;
|
|
||||||
}
|
|
||||||
|
|
||||||
$qstr = "fr_date={$fr_date}&to_date={$to_date}";
|
$qstr = "fr_date={$fr_date}&to_date={$to_date}";
|
||||||
|
|
||||||
@@ -27,9 +23,7 @@ $total_count = sql_num_rows($result);
|
|||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
$rows = $config['cf_page_rows'];
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||||
if ($page < 1) {
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
$page = 1;
|
|
||||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||||
|
|
||||||
$sql = " select pp_word, count(*) as cnt {$sql_common} {$sql_search} {$sql_group} {$sql_order} limit {$from_record}, {$rows} ";
|
$sql = " select pp_word, count(*) as cnt {$sql_common} {$sql_search} {$sql_group} {$sql_order} limit {$from_record}, {$rows} ";
|
||||||
@@ -38,22 +32,15 @@ $result = sql_query($sql);
|
|||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
||||||
|
|
||||||
$g5['title'] = '인기검색어순위';
|
$g5['title'] = '인기검색어순위';
|
||||||
require_once './admin.head.php';
|
include_once('./admin.head.php');
|
||||||
require_once G5_PLUGIN_PATH . '/jquery-ui/datepicker.php';
|
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||||
|
|
||||||
$colspan = 3;
|
$colspan = 3;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#fr_date, #to_date").datepicker({
|
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
|
||||||
changeMonth: true,
|
|
||||||
changeYear: true,
|
|
||||||
dateFormat: "yy-mm-dd",
|
|
||||||
showButtonPanel: true,
|
|
||||||
yearRange: "c-99:c+99",
|
|
||||||
maxDate: "+0d"
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -95,20 +82,23 @@ $colspan = 3;
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
|
||||||
$word = get_text($row['pp_word']);
|
$word = get_text($row['pp_word']);
|
||||||
$rank = ($i + 1 + ($rows * ($page - 1)));
|
$rank = ($i + 1 + ($rows * ($page - 1)));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?php echo $rank ?></td>
|
<td class="td_num"><?php echo $rank ?></td>
|
||||||
<td class="td_left"><?php echo $word ?></td>
|
<td class="td_left"><?php echo $word ?></td>
|
||||||
<td class="td_num"><?php echo $row['cnt'] ?></td>
|
<td class="td_num"><?php echo $row['cnt'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0) {
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -119,4 +109,4 @@ $colspan = 3;
|
|||||||
<?php
|
<?php
|
||||||
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page=");
|
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page=");
|
||||||
|
|
||||||
require_once './admin.tail.php';
|
include_once('./admin.tail.php');
|
||||||
+25
-38
@@ -1,18 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300500";
|
$sub_menu = "300500";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
require_once G5_EDITOR_LIB;
|
include_once(G5_EDITOR_LIB);
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, 'r');
|
auth_check_menu($auth, $sub_menu, 'r');
|
||||||
|
|
||||||
$g5['title'] = '1:1문의 설정';
|
$g5['title'] = '1:1문의 설정';
|
||||||
require_once './admin.head.php';
|
include_once ('./admin.head.php');
|
||||||
|
|
||||||
// DB 테이블 생성
|
// DB 테이블 생성
|
||||||
if(!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
if(!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
||||||
sql_query(
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['qa_config_table']}` (
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['qa_config_table']}` (
|
|
||||||
`qa_id` int(11) NOT NULL auto_increment,
|
|
||||||
`qa_title` varchar(255) NOT NULL DEFAULT'',
|
`qa_title` varchar(255) NOT NULL DEFAULT'',
|
||||||
`qa_category` varchar(255) NOT NULL DEFAULT'',
|
`qa_category` varchar(255) NOT NULL DEFAULT'',
|
||||||
`qa_skin` varchar(255) NOT NULL DEFAULT '',
|
`qa_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
@@ -47,13 +45,9 @@ if (!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
|||||||
`qa_2` varchar(255) NOT NULL DEFAULT '',
|
`qa_2` varchar(255) NOT NULL DEFAULT '',
|
||||||
`qa_3` varchar(255) NOT NULL DEFAULT '',
|
`qa_3` varchar(255) NOT NULL DEFAULT '',
|
||||||
`qa_4` varchar(255) NOT NULL DEFAULT '',
|
`qa_4` varchar(255) NOT NULL DEFAULT '',
|
||||||
`qa_5` varchar(255) NOT NULL DEFAULT '',
|
`qa_5` varchar(255) NOT NULL DEFAULT ''
|
||||||
PRIMARY KEY (`qa_id`)
|
)", true);
|
||||||
)",
|
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['qa_content_table']}` (
|
||||||
true
|
|
||||||
);
|
|
||||||
sql_query(
|
|
||||||
" CREATE TABLE IF NOT EXISTS `{$g5['qa_content_table']}` (
|
|
||||||
`qa_id` int(11) NOT NULL AUTO_INCREMENT,
|
`qa_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`qa_num` int(11) NOT NULL DEFAULT '0',
|
`qa_num` int(11) NOT NULL DEFAULT '0',
|
||||||
`qa_parent` int(11) NOT NULL DEFAULT '0',
|
`qa_parent` int(11) NOT NULL DEFAULT '0',
|
||||||
@@ -83,9 +77,7 @@ if (!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
|||||||
`qa_5` varchar(255) NOT NULL DEFAULT '',
|
`qa_5` varchar(255) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (`qa_id`),
|
PRIMARY KEY (`qa_id`),
|
||||||
KEY `qa_num_parent` (`qa_num`,`qa_parent`)
|
KEY `qa_num_parent` (`qa_num`,`qa_parent`)
|
||||||
)",
|
)", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " SHOW COLUMNS FROM `{$g5['qa_content_table']}` LIKE 'qa_content' ";
|
$sql = " SHOW COLUMNS FROM `{$g5['qa_content_table']}` LIKE 'qa_content' ";
|
||||||
@@ -108,25 +100,19 @@ if (empty($qaconfig)) {
|
|||||||
|
|
||||||
// 관리자 이메일필드 추가
|
// 관리자 이메일필드 추가
|
||||||
if(!isset($qaconfig['qa_admin_email'])) {
|
if(!isset($qaconfig['qa_admin_email'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['qa_config_table']}`
|
||||||
" ALTER TABLE `{$g5['qa_config_table']}`
|
ADD `qa_admin_email` varchar(255) NOT NULL DEFAULT '' AFTER `qa_admin_hp` ", true);
|
||||||
ADD `qa_admin_email` varchar(255) NOT NULL DEFAULT '' AFTER `qa_admin_hp` ",
|
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 상단 하단 설정 필드 추가
|
// 상단 하단 설정 필드 추가
|
||||||
if(!isset($qaconfig['qa_include_head'])) {
|
if(!isset($qaconfig['qa_include_head'])) {
|
||||||
sql_query(
|
sql_query(" ALTER TABLE `{$g5['qa_config_table']}`
|
||||||
" ALTER TABLE `{$g5['qa_config_table']}`
|
|
||||||
ADD `qa_include_head` varchar(255) NOT NULL DEFAULT '' AFTER `qa_insert_content`,
|
ADD `qa_include_head` varchar(255) NOT NULL DEFAULT '' AFTER `qa_insert_content`,
|
||||||
ADD `qa_include_tail` varchar(255) NOT NULL DEFAULT '' AFTER `qa_include_head`,
|
ADD `qa_include_tail` varchar(255) NOT NULL DEFAULT '' AFTER `qa_include_head`,
|
||||||
ADD `qa_content_head` text NOT NULL AFTER `qa_include_tail`,
|
ADD `qa_content_head` text NOT NULL AFTER `qa_include_tail`,
|
||||||
ADD `qa_content_tail` text NOT NULL AFTER `qa_content_head`,
|
ADD `qa_content_tail` text NOT NULL AFTER `qa_content_head`,
|
||||||
ADD `qa_mobile_content_head` text NOT NULL AFTER `qa_content_tail`,
|
ADD `qa_mobile_content_head` text NOT NULL AFTER `qa_content_tail`,
|
||||||
ADD `qa_mobile_content_tail` text NOT NULL AFTER `qa_mobile_content_head` ",
|
ADD `qa_mobile_content_tail` text NOT NULL AFTER `qa_mobile_content_head` ", true);
|
||||||
true
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -268,13 +254,13 @@ if (!isset($qaconfig['qa_include_head'])) {
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_include_head">상단 파일 경로</label></th>
|
<th scope="row"><label for="qa_include_head">상단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="qa_include_head" value="<?php echo get_sanitize_input($qaconfig['qa_include_head']); ?>" id="qa_include_head" class="frm_input" size="50">
|
<input type="text" name="qa_include_head" value="<?php echo $qaconfig['qa_include_head'] ?>" id="qa_include_head" class="frm_input" size="50">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_include_tail">하단 파일 경로</label></th>
|
<th scope="row"><label for="qa_include_tail">하단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" name="qa_include_tail" value="<?php echo get_sanitize_input($qaconfig['qa_include_tail']); ?>" id="qa_include_tail" class="frm_input" size="50">
|
<input type="text" name="qa_include_tail" value="<?php echo $qaconfig['qa_include_tail'] ?>" id="qa_include_tail" class="frm_input" size="50">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="admin_captcha_box" style="display:none;">
|
<tr id="admin_captcha_box" style="display:none;">
|
||||||
@@ -283,7 +269,7 @@ if (!isset($qaconfig['qa_include_head'])) {
|
|||||||
<?php
|
<?php
|
||||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||||
|
|
||||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
$captcha_html = captcha_html();
|
$captcha_html = captcha_html();
|
||||||
$captcha_js = chk_captcha_js();
|
$captcha_js = chk_captcha_js();
|
||||||
echo $captcha_html;
|
echo $captcha_html;
|
||||||
@@ -346,25 +332,25 @@ if (!isset($qaconfig['qa_include_head'])) {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var captcha_chk = false,
|
|
||||||
qa_include_head = jQuery.trim(jQuery("#qa_include_head").val()),
|
var captcha_chk = false;
|
||||||
qa_include_tail = jQuery.trim(jQuery("#qa_include_tail").val());
|
|
||||||
|
|
||||||
function use_captcha_check(){
|
function use_captcha_check(){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: g5_admin_url+"/ajax.use_captcha.php",
|
url: g5_admin_url+"/ajax.use_captcha.php",
|
||||||
data: {
|
data: { admin_use_captcha: "1" },
|
||||||
admin_use_captcha: "1"
|
|
||||||
},
|
|
||||||
cache: false,
|
cache: false,
|
||||||
async: false,
|
async: false,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data) {}
|
success: function(data) {
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function frm_check_file(){
|
function frm_check_file(){
|
||||||
|
var qa_include_head = "<?php echo $qaconfig['qa_include_head']; ?>";
|
||||||
|
var qa_include_tail = "<?php echo $qaconfig['qa_include_tail']; ?>";
|
||||||
var head = jQuery.trim(jQuery("#qa_include_head").val());
|
var head = jQuery.trim(jQuery("#qa_include_head").val());
|
||||||
var tail = jQuery.trim(jQuery("#qa_include_tail").val());
|
var tail = jQuery.trim(jQuery("#qa_include_tail").val());
|
||||||
|
|
||||||
@@ -393,7 +379,8 @@ if (!isset($qaconfig['qa_include_head'])) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function fqaconfigform_submit(f) {
|
function fqaconfigform_submit(f)
|
||||||
|
{
|
||||||
<?php echo get_editor_js("qa_content_head"); ?>
|
<?php echo get_editor_js("qa_content_head"); ?>
|
||||||
<?php echo get_editor_js("qa_content_tail"); ?>
|
<?php echo get_editor_js("qa_content_tail"); ?>
|
||||||
<?php echo get_editor_js("qa_mobile_content_head"); ?>
|
<?php echo get_editor_js("qa_mobile_content_head"); ?>
|
||||||
@@ -409,4 +396,4 @@ if (!isset($qaconfig['qa_include_head'])) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once './admin.tail.php';
|
include_once ('./admin.tail.php');
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$sub_menu = "300500";
|
$sub_menu = "300500";
|
||||||
require_once './_common.php';
|
include_once('./_common.php');
|
||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
@@ -18,12 +18,12 @@ foreach ($check_keys as $key) {
|
|||||||
$$key = $_POST[$key] = isset($_POST[$key]) ? strip_tags(clean_xss_attributes($_POST[$key])) : '';
|
$$key = $_POST[$key] = isset($_POST[$key]) ? strip_tags(clean_xss_attributes($_POST[$key])) : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$qa_include_head = isset($qa_include_head) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_head, 0, 255)) : '';
|
$qa_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_head, 0, 255));
|
||||||
$qa_include_tail = isset($qa_include_tail) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_tail, 0, 255)) : '';
|
$qa_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_tail, 0, 255));
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||||
if ($board && ($qaconfig['qa_include_head'] !== $qa_include_head || $qaconfig['qa_include_tail'] !== $qa_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
if ($board && ($qaconfig['qa_include_head'] !== $qa_include_head || $qaconfig['qa_include_tail'] !== $qa_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
||||||
include_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
@@ -67,7 +67,7 @@ $dst_char = array('&', '〓');
|
|||||||
$qa_category = str_replace($src_char, $dst_char, $_POST['qa_category']);
|
$qa_category = str_replace($src_char, $dst_char, $_POST['qa_category']);
|
||||||
|
|
||||||
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
||||||
$qa_category = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", (string)$qa_category);
|
$qa_category = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", $qa_category);
|
||||||
|
|
||||||
$sql = " update {$g5['qa_config_table']}
|
$sql = " update {$g5['qa_config_table']}
|
||||||
set qa_title = '{$_POST['qa_title']}',
|
set qa_title = '{$_POST['qa_title']}',
|
||||||
@@ -108,11 +108,8 @@ $sql = " update {$g5['qa_config_table']}
|
|||||||
qa_5 = '{$_POST['qa_5']}' ";
|
qa_5 = '{$_POST['qa_5']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
run_event('admin_qa_config_updated');
|
if(function_exists('get_admin_captcha_by'))
|
||||||
|
|
||||||
if (function_exists('get_admin_captcha_by')) {
|
|
||||||
get_admin_captcha_by('remove');
|
get_admin_captcha_by('remove');
|
||||||
}
|
|
||||||
|
|
||||||
if($error_msg){
|
if($error_msg){
|
||||||
alert($error_msg, './qa_config.php');
|
alert($error_msg, './qa_config.php');
|
||||||
|
|||||||
+4
-9
@@ -1,19 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) {
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||||
exit; // 개별 페이지 접근 불가
|
|
||||||
}
|
|
||||||
|
|
||||||
function social_log_file_delete($second = 0)
|
function social_log_file_delete($second=0){
|
||||||
{
|
|
||||||
$files = glob(G5_DATA_PATH.'/tmp/social_*');
|
$files = glob(G5_DATA_PATH.'/tmp/social_*');
|
||||||
if (is_array($files)) {
|
if (is_array($files)) {
|
||||||
$before_time = $second ? G5_SERVER_TIME - $second : 0;
|
$before_time = $second ? G5_SERVER_TIME - $second : 0;
|
||||||
foreach ($files as $social_log_file) {
|
foreach ($files as $social_log_file) {
|
||||||
$modification_time = filemtime($social_log_file); // 파일접근시간
|
$modification_time = filemtime($log_file); // 파일접근시간
|
||||||
|
|
||||||
if ($before_time && $modification_time > $before_time) {
|
if ($before_time && $modification_time > $before_time) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
unlink($social_log_file);
|
unlink($social_log_file);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ if (isset($_POST['email'])) {
|
|||||||
echo '해당 주소로 테스트 메일이 도착했는지 확인해 주십시오.<br>';
|
echo '해당 주소로 테스트 메일이 도착했는지 확인해 주십시오.<br>';
|
||||||
echo '만약, 테스트 메일이 오지 않는다면 더 다양한 계정의 메일 주소로 메일을 보내 보십시오.<br>';
|
echo '만약, 테스트 메일이 오지 않는다면 더 다양한 계정의 메일 주소로 메일을 보내 보십시오.<br>';
|
||||||
echo '그래도 메일이 하나도 도착하지 않는다면 메일 서버(sendmail server)의 오류일 가능성이 높으니, 웹 서버관리자에게 문의하여 주십시오.<br>';
|
echo '그래도 메일이 하나도 도착하지 않는다면 메일 서버(sendmail server)의 오류일 가능성이 높으니, 웹 서버관리자에게 문의하여 주십시오.<br>';
|
||||||
echo '도메인을 소유하고 있을시 SPF, DKIM 설정이 필요할수 있습니다.<br>';
|
|
||||||
echo '</p></div>';
|
echo '</p></div>';
|
||||||
echo '</section>';
|
echo '</section>';
|
||||||
}
|
}
|
||||||
@@ -54,10 +53,6 @@ if (isset($_POST['email'])) {
|
|||||||
<p>
|
<p>
|
||||||
메일서버가 정상적으로 동작 중인지 확인할 수 있습니다.<br>
|
메일서버가 정상적으로 동작 중인지 확인할 수 있습니다.<br>
|
||||||
아래 입력칸에 테스트 메일을 발송하실 메일 주소를 입력하시면, [메일검사] 라는 제목으로 테스트 메일을 발송합니다.<br>
|
아래 입력칸에 테스트 메일을 발송하실 메일 주소를 입력하시면, [메일검사] 라는 제목으로 테스트 메일을 발송합니다.<br>
|
||||||
보내는 메일주소 : <?php echo get_sanitize_input($config['cf_admin_email']); ?><br>
|
|
||||||
<?php if (function_exists('domain_mail_host') && $config['cf_admin_email'] && stripos($config['cf_admin_email'], domain_mail_host()) === false) { ?>
|
|
||||||
<?php echo '외부메일설정이나 기타 설정을 하지 않았다면, 도메인과 다른 헤더로 여겨 스팸이나 차단될 가능성이 있습니다.<br>기본환경설정에서 관리자 메일 주소를 name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.'; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<form name="fsendmailtest" method="post">
|
<form name="fsendmailtest" method="post">
|
||||||
|
|||||||
+18
-18
@@ -9,36 +9,36 @@ include_once('./admin.head.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="local_desc02 local_desc">
|
<div class="local_desc02 local_desc">
|
||||||
<p>아래의 서비스들은 영카트에서 이미 지원하는 기능으로 별도의 개발이 필요 없으며 서비스 신청후 바로 사용 할수 있습니다.</p>
|
<p>아래의 서비스들은 그누보드에서 이미 지원하는 기능으로 별도의 개발이 필요 없으며 서비스 신청후 바로 사용 할수 있습니다.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="service_wrap">
|
<div class="service_wrap">
|
||||||
<div class="sevice_1 svc_card">
|
<div class="sevice_1">
|
||||||
<h3>신용카드 전자결제 서비스<br><span>(계좌이체, 가상계좌 결제 포함)</span></h3>
|
<img src="<?php echo G5_ADMIN_URL ?>/img/service_img1.jpg" alt="휴대폰 본인확인 서비스" class="svc_img">
|
||||||
|
<h3>휴대폰 본인확인 서비스</h3>
|
||||||
|
<p>정보통신망법 23조 2항(주민등록번호의 사용제한)에 따라 기존 주민등록번호 기반의 인증서비스 이용이 불가합니다. 주민등록번호 대체수단으로 최소한의 정보(생년월일, 휴대폰번호, 성별)를 입력받아 본인임을 확인하는 인증수단 입니다</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://sir.kr/main/service/p_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_01.jpg" alt="KCP 신용카드 전자결제 신청하기"></a></li>
|
<li><a href="http://sir.kr/main/service/p_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_01.jpg" alt="KCP 휴대폰 본인확인 신청하기"></a></li>
|
||||||
<li><a href="http://sir.kr/main/service/lg_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg?v2" alt="토스페이먼츠 전자결제 신청하기"></a></li>
|
<li><a href="http://sir.kr/main/service/lg_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_02.jpg" alt="LG유플러스 휴대폰대체인증 신청하기"></a></li>
|
||||||
<li class="last"><a href="http://sir.kr/main/service/inicis_pg.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_06.jpg" alt="KG 이니시스 전자결제 신청하기"></a></li>
|
<li class="last"><a href="http://sir.kr/main/service/b_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_03.jpg" alt="OKname 휴대폰 본인확인 신청하기"></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="sevice_1">
|
||||||
|
<img src="<?php echo G5_ADMIN_URL ?>/img/service_img2.jpg" alt="아이핀 본인확인 서비스" class="svc_img">
|
||||||
|
<h3>아이핀 본인확인 서비스</h3>
|
||||||
|
<p>정부가 주관하는 주민등록번호 대체 수단으로 본인의 개인정보를 아이핀 사이트에 한번만 발급해 놓고, 이후부터는 아이디와 패스워드 만으로
|
||||||
|
본인임을 확인하는 인증수단 입니다.</p>
|
||||||
|
|
||||||
<div class="sevice_1 svc_phone">
|
<h4><a href="http://sir.kr/main/service/b_ipin.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_04.jpg" alt="OKname 아이핀 본인확인 신청하기"></a></h4>
|
||||||
<h3>본인확인 서비스</h3>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li><a href="http://sir.kr/main/service/p_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_01.jpg" alt="KCP 신청하기"></a></li>
|
|
||||||
<li><a href="http://sir.kr/main/service/inicis_cert.php" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_06.jpg" alt="KG이니시스 신청하기"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="sevice_2">
|
||||||
<div class="service_2">
|
<div class="svc_sms">
|
||||||
<div class="svc_ri svc_sms">
|
|
||||||
<div class="svc_a">
|
<div class="svc_a">
|
||||||
<h3>SMS 문자 서비스</h3>
|
<h3>SMS 문자 서비스</h3>
|
||||||
<p>주문이나 배송시에 상점운영자 또는 고객에게 휴대폰으로 단문메세지 (최대 한글 40자, 영문 80자)를 발송합니다.</p>
|
<p>사이트 관리자 또는 회원이 다른 회원의 <br>휴대폰으로 단문메세지(최대 한글 40자, 영문 80자)를 발송할 수 있습니다.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="svc_btn2"><a href="http://icodekorea.com/res/join_company_fix_a.php?sellid=sir2" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_05.jpg" alt="아이코드 SMS 서비스 신청하기"></a></div>
|
<div class="svc_btn"><a href="http://icodekorea.com/res/join_company_fix_a.php?sellid=sir2" target="_blank"><img src="<?php echo G5_ADMIN_URL ?>/img/svc_btn_05.jpg" alt="아이코드 SMS 서비스 신청하기"></a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
define('G5_IS_ADMIN', true);
|
|
||||||
define('G5_IS_SHOP_ADMIN_PAGE', true);
|
|
||||||
include_once ('../../common.php');
|
|
||||||
|
|
||||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
|
||||||
die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');
|
|
||||||
|
|
||||||
include_once(G5_ADMIN_PATH.'/admin.lib.php');
|
|
||||||
include_once('./admin.shop.lib.php');
|
|
||||||
|
|
||||||
run_event('admin_common');
|
|
||||||
|
|
||||||
check_order_inicis_tmps();
|
|
||||||
@@ -1,236 +0,0 @@
|
|||||||
<?php
|
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
|
||||||
|
|
||||||
// 상품옵션별재고 또는 상품재고에 더하기
|
|
||||||
function add_io_stock($it_id, $ct_qty, $io_id="", $io_type=0)
|
|
||||||
{
|
|
||||||
global $g5;
|
|
||||||
|
|
||||||
if($io_id) {
|
|
||||||
$sql = " update {$g5['g5_shop_item_option_table']}
|
|
||||||
set io_stock_qty = io_stock_qty + '{$ct_qty}'
|
|
||||||
where it_id = '{$it_id}'
|
|
||||||
and io_id = '{$io_id}'
|
|
||||||
and io_type = '{$io_type}' ";
|
|
||||||
} else {
|
|
||||||
$sql = " update {$g5['g5_shop_item_table']}
|
|
||||||
set it_stock_qty = it_stock_qty + '{$ct_qty}'
|
|
||||||
where it_id = '{$it_id}' ";
|
|
||||||
}
|
|
||||||
return sql_query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 상품옵션별재고 또는 상품재고에서 빼기
|
|
||||||
function subtract_io_stock($it_id, $ct_qty, $io_id="", $io_type=0)
|
|
||||||
{
|
|
||||||
global $g5;
|
|
||||||
|
|
||||||
if($io_id) {
|
|
||||||
$sql = " update {$g5['g5_shop_item_option_table']}
|
|
||||||
set io_stock_qty = io_stock_qty - '{$ct_qty}'
|
|
||||||
where it_id = '{$it_id}'
|
|
||||||
and io_id = '{$io_id}'
|
|
||||||
and io_type = '{$io_type}' ";
|
|
||||||
} else {
|
|
||||||
$sql = " update {$g5['g5_shop_item_table']}
|
|
||||||
set it_stock_qty = it_stock_qty - '{$ct_qty}'
|
|
||||||
where it_id = '{$it_id}' ";
|
|
||||||
}
|
|
||||||
return sql_query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 주문과 장바구니의 상태를 변경한다.
|
|
||||||
function change_status($od_id, $current_status, $change_status)
|
|
||||||
{
|
|
||||||
global $g5;
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_order_table']} set od_status = '{$change_status}' where od_id = '{$od_id}' and od_status = '{$current_status}' ";
|
|
||||||
sql_query($sql, true);
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_cart_table']} set ct_status = '{$change_status}' where od_id = '{$od_id}' and ct_status = '{$current_status}' ";
|
|
||||||
sql_query($sql, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 주문서에 입금시 update
|
|
||||||
function order_update_receipt($od_id)
|
|
||||||
{
|
|
||||||
global $g5;
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_order_table']} set od_receipt_price = od_misu, od_misu = 0, od_receipt_time = '".G5_TIME_YMDHIS."' where od_id = '$od_id' and od_status = '입금' ";
|
|
||||||
return sql_query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// 주문서에 배송시 update
|
|
||||||
function order_update_delivery($od_id, $mb_id, $change_status, $delivery)
|
|
||||||
{
|
|
||||||
global $g5;
|
|
||||||
|
|
||||||
if($change_status != '배송')
|
|
||||||
return;
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_order_table']} set od_delivery_company = '".sql_real_escape_string($delivery['delivery_company'])."', od_invoice = '".sql_real_escape_string($delivery['invoice'])."', od_invoice_time = '".sql_real_escape_string($delivery['invoice_time'])."' where od_id = '$od_id' and od_status = '준비' ";
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
|
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
|
||||||
{
|
|
||||||
// 재고를 사용하지 않았다면
|
|
||||||
$stock_use = $row['ct_stock_use'];
|
|
||||||
|
|
||||||
if(!$row['ct_stock_use'])
|
|
||||||
{
|
|
||||||
// 재고에서 뺀다.
|
|
||||||
subtract_io_stock($row['it_id'], $row['ct_qty'], $row['io_id'], $row['io_type']);
|
|
||||||
$stock_use = 1;
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_cart_table']} set ct_stock_use = '$stock_use' where ct_id = '{$row['ct_id']}' ";
|
|
||||||
sql_query($sql);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 처리내용 SMS
|
|
||||||
function conv_sms_contents($od_id, $contents)
|
|
||||||
{
|
|
||||||
global $g5, $config, $default;
|
|
||||||
|
|
||||||
$sms_contents = '';
|
|
||||||
|
|
||||||
if ($od_id && $config['cf_sms_use'] == 'icode')
|
|
||||||
{
|
|
||||||
$sql = " select od_id, od_name, od_invoice, od_receipt_price, od_delivery_company
|
|
||||||
from {$g5['g5_shop_order_table']} where od_id = '$od_id' ";
|
|
||||||
$od = sql_fetch($sql);
|
|
||||||
|
|
||||||
$sms_contents = $contents;
|
|
||||||
$sms_contents = str_replace("{이름}", $od['od_name'], $sms_contents);
|
|
||||||
$sms_contents = str_replace("{입금액}", number_format($od['od_receipt_price']), $sms_contents);
|
|
||||||
$sms_contents = str_replace("{택배회사}", $od['od_delivery_company'], $sms_contents);
|
|
||||||
$sms_contents = str_replace("{운송장번호}", $od['od_invoice'], $sms_contents);
|
|
||||||
$sms_contents = str_replace("{주문번호}", $od['od_id'], $sms_contents);
|
|
||||||
$sms_contents = str_replace("{회사명}", $default['de_admin_company_name'], $sms_contents);
|
|
||||||
}
|
|
||||||
|
|
||||||
return stripslashes($sms_contents);
|
|
||||||
}
|
|
||||||
|
|
||||||
function pg_setting_check($is_print=false){
|
|
||||||
global $g5, $config, $default, $member;
|
|
||||||
|
|
||||||
$msg = '';
|
|
||||||
$pg_msg = '';
|
|
||||||
|
|
||||||
if( $default['de_card_test'] ){
|
|
||||||
if( $default['de_pg_service'] === 'kcp' && $default['de_kcp_mid'] && $default['de_kcp_site_key'] ){
|
|
||||||
$pg_msg = 'NHN KCP';
|
|
||||||
} else if ( $default['de_pg_service'] === 'lg' && $config['cf_lg_mid'] && $config['cf_lg_mert_key'] ){
|
|
||||||
$pg_msg = 'LG유플러스';
|
|
||||||
} else if ( $default['de_pg_service'] === 'inicis' && $default['de_inicis_mid'] && $default['de_inicis_sign_key'] ){
|
|
||||||
$pg_msg = 'KG이니시스';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp') ){
|
|
||||||
if(!extension_loaded('soap') || !class_exists('SOAPClient')) {
|
|
||||||
$msg .= '<script>'.PHP_EOL;
|
|
||||||
$msg .= 'alert("PHP SOAP 확장모듈이 설치되어 있지 않습니다.\n모바일 쇼핑몰 결제 때 사용되오니 SOAP 확장 모듈을 설치하여 주십시오.\nNHN_KCP (네이버페이) 모바일결제가 되지 않습니다.");'.PHP_EOL;
|
|
||||||
$msg .= '</script>'.PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $pg_msg ){
|
|
||||||
$pg_test_conf_link = G5_ADMIN_URL.'/shop_admin/configform.php#de_card_test1';
|
|
||||||
$msg .= '<div class="admin_pg_notice od_test_caution">(주의!) '.$pg_msg.' 결제의 결제 설정이 현재 테스트결제 로 되어 있습니다.<br>테스트결제시 실제 결제가 되지 않으므로, 쇼핑몰 운영중이면 반드시 실결제로 설정하여 운영하셔야 합니다.<br>아래 링크를 클릭하여 실결제로 설정하여 운영해 주세요.<br><a href="'.$pg_test_conf_link.'" class="pg_test_conf_link">'.$pg_test_conf_link.'</a></div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $is_print ){
|
|
||||||
echo $msg;
|
|
||||||
} else{
|
|
||||||
return $msg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function is_cancel_shop_pg_order($od){
|
|
||||||
|
|
||||||
$is_od_pg_cancel = false;
|
|
||||||
|
|
||||||
if (($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '간편결제' || $od['od_settle_case'] == 'KAKAOPAY') || ($od['od_pg'] == 'inicis' && is_inicis_order_pay($od['od_settle_case']))) {
|
|
||||||
$is_od_pg_cancel = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($od['od_pg'] === 'nicepay' && in_array($od['od_settle_case'], array('계좌이체', '휴대폰'))) {
|
|
||||||
$is_od_pg_cancel = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $is_od_pg_cancel;
|
|
||||||
}
|
|
||||||
|
|
||||||
function check_order_inicis_tmps(){
|
|
||||||
global $g5, $config, $default, $member;
|
|
||||||
|
|
||||||
$admin_cookie_time = get_cookie('admin_visit_time');
|
|
||||||
|
|
||||||
if( ! $admin_cookie_time ){
|
|
||||||
|
|
||||||
if( $default['de_pg_service'] === 'inicis' && empty($default['de_card_test']) ){
|
|
||||||
$sql = " select * from {$g5['g5_shop_inicis_log_table']} where P_TID <> '' and P_TYPE in ('CARD', 'ISP', 'BANK') and P_MID <> '' and P_STATUS = '00' and is_mail_send = 0 and substr(P_AUTH_DT, 1, 14) < '".date('YmdHis', strtotime('-3 minutes', G5_SERVER_TIME))."' ";
|
|
||||||
|
|
||||||
$result = sql_query($sql, false);
|
|
||||||
|
|
||||||
if( !$result ){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$mail_msg = '';
|
|
||||||
|
|
||||||
for($i=0;$row=sql_fetch_array($result);$i++){
|
|
||||||
|
|
||||||
$oid = $row['oid'];
|
|
||||||
$p_tid = $row['P_TID'];
|
|
||||||
$p_mid = strtolower($tmps['P_MID']);
|
|
||||||
|
|
||||||
if( in_array($p_mid, array('iniescrow0', 'inipaytest')) ) continue;
|
|
||||||
|
|
||||||
$sql = "update {$g5['g5_shop_inicis_log_table']} set is_mail_send = 1 where oid = '".$oid."' and P_TID = '".$p_tid."' ";
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
$sql = " select od_id from {$g5['g5_shop_order_table']} where od_id = '$oid' and od_tno = '$p_tid' ";
|
|
||||||
$tmp = sql_fetch($sql);
|
|
||||||
|
|
||||||
if( $tmp['od_id'] ) continue;
|
|
||||||
|
|
||||||
$sql = " select pp_id from {$g5['g5_shop_personalpay_table']} where pp_id = '$oid' and pp_tno = '$p_tid' ";
|
|
||||||
$tmp = sql_fetch($sql);
|
|
||||||
|
|
||||||
if( $tmp['pp_id'] ) continue;
|
|
||||||
|
|
||||||
$mail_msg .= '<a href="'.G5_ADMIN_URL.'/shop_admin/inorderform.php?od_id='.$oid.'" target="_blank" >미완료 발생 주문번호 : '.$oid.'</a><br><br>';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $mail_msg ){
|
|
||||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
|
||||||
|
|
||||||
$mails = array_unique(array($member['mb_email'], $config['cf_admin_email']));
|
|
||||||
|
|
||||||
foreach($mails as $mail_address){
|
|
||||||
if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $mail_address)) continue;
|
|
||||||
|
|
||||||
mailer($member['mb_nick'], $member['mb_email'], $mail_address, $config['cf_title'].' 사이트 미완료 주문 알림', '이니시스를 통해 결제한 주문건 중에서 미완료 주문이 발생했습니다.<br><br>발생된 원인으로는 장바구니 금액와 실결제 금액이 맞지 않는 경우, 네트워크 오류, 프로그램 오류, 알수 없는 오류 등이 있습니다.<br><br>아래 내용과 실제 주문내역, 이니시스 상점 관리자 에서 결제된 내용을 확인하여 조치를 취해 주세요.<br><br>'.$mail_msg, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $default['de_pg_service'] == 'lg' && function_exists('check_log_folder') ){
|
|
||||||
check_log_folder(G5_LGXPAY_PATH.'/lgdacom/log');
|
|
||||||
}
|
|
||||||
|
|
||||||
set_cookie('admin_visit_time', G5_SERVER_TIME, 3600); //1시간 간격으로 체크
|
|
||||||
}
|
|
||||||
} //end function check_order_inicis_tmps;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
$ca_id = isset($_POST['ca_id']) ? trim($_POST['ca_id']) : '';
|
|
||||||
if (preg_match("/[^0-9a-z]/i", $ca_id)) {
|
|
||||||
die("{\"error\":\"분류코드는 영문자 숫자 만 입력 가능합니다.\"}");
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$ca_id}' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
if (isset($row['ca_name']) && $row['ca_name']) {
|
|
||||||
$ca_name = addslashes($row['ca_name']);
|
|
||||||
die("{\"error\":\"이미 등록된 분류코드 입니다.\\n\\n분류명 : {$ca_name}\"}");
|
|
||||||
}
|
|
||||||
|
|
||||||
die("{\"error\":\"\"}"); // 정상;
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
$it_id = isset($_POST['it_id']) ? trim($_POST['it_id']) : '';
|
|
||||||
if (preg_match("/[^\w\-]/", $it_id)) { // \w : 0-9 A-Z a-z _
|
|
||||||
die("{\"error\":\"상품코드는 영문자 숫자 _ - 만 입력 가능합니다.\"}");
|
|
||||||
}
|
|
||||||
|
|
||||||
$row = get_shop_item($it_id, true);
|
|
||||||
if (isset($row['it_name']) && $row['it_name']) {
|
|
||||||
$it_name = addslashes($row['it_name']);
|
|
||||||
die("{\"error\":\"이미 등록된 상품코드 입니다.\\n\\n상품명 : {$it_name}\"}");
|
|
||||||
}
|
|
||||||
|
|
||||||
die("{\"error\":\"\"}"); // 정상;
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '400400';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
|
||||||
|
|
||||||
$od_id = isset($_POST['od_id']) ? safe_replace_regex($_POST['od_id'], 'od_id') : 0;
|
|
||||||
|
|
||||||
$sql = " select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' ";
|
|
||||||
$od = sql_fetch($sql);
|
|
||||||
|
|
||||||
if(! ($od['od_id'] && $od['od_id']))
|
|
||||||
die('<div>주문정보가 존재하지 않습니다.</div>');
|
|
||||||
|
|
||||||
// 상품목록
|
|
||||||
$sql = " select it_id,
|
|
||||||
it_name,
|
|
||||||
cp_price,
|
|
||||||
ct_notax,
|
|
||||||
ct_send_cost,
|
|
||||||
it_sc_type
|
|
||||||
from {$g5['g5_shop_cart_table']}
|
|
||||||
where od_id = '$od_id'
|
|
||||||
group by it_id
|
|
||||||
order by ct_id ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<section id="cart_list">
|
|
||||||
<h2 class="h2_frm">주문상품 목록</h2>
|
|
||||||
|
|
||||||
<div class="tbl_head01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption>주문 상품 목록</caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col">상품명</th>
|
|
||||||
<th scope="col">옵션항목</th>
|
|
||||||
<th scope="col">상태</th>
|
|
||||||
<th scope="col">수량</th>
|
|
||||||
<th scope="col">판매가</th>
|
|
||||||
<th scope="col">소계</th>
|
|
||||||
<th scope="col">쿠폰</th>
|
|
||||||
<th scope="col">포인트</th>
|
|
||||||
<th scope="col">배송비</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
|
||||||
// 상품이미지
|
|
||||||
$image = get_it_image($row['it_id'], 50, 50);
|
|
||||||
|
|
||||||
// 상품의 옵션정보
|
|
||||||
$sql = " select ct_id, it_id, ct_price, ct_qty, ct_option, ct_status, cp_price, ct_send_cost, io_type, io_price
|
|
||||||
from {$g5['g5_shop_cart_table']}
|
|
||||||
where od_id = '$od_id'
|
|
||||||
and it_id = '{$row['it_id']}'
|
|
||||||
order by io_type asc, ct_id asc ";
|
|
||||||
$res = sql_query($sql);
|
|
||||||
$rowspan = sql_num_rows($res);
|
|
||||||
|
|
||||||
// 배송비
|
|
||||||
switch($row['ct_send_cost'])
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
$ct_send_cost = '착불';
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
$ct_send_cost = '무료';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$ct_send_cost = '선불';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 조건부무료
|
|
||||||
if($row['it_sc_type'] == 2) {
|
|
||||||
|
|
||||||
// 합계금액 계산
|
|
||||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
|
||||||
SUM(ct_qty) as qty
|
|
||||||
from {$g5['g5_shop_cart_table']}
|
|
||||||
where it_id = '{$row['it_id']}'
|
|
||||||
and od_id = '$od_id' ";
|
|
||||||
$sum = sql_fetch($sql);
|
|
||||||
|
|
||||||
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $od_id);
|
|
||||||
|
|
||||||
if($sendcost == 0)
|
|
||||||
$ct_send_cost = '무료';
|
|
||||||
|
|
||||||
$save_it_id = $row['it_id'];
|
|
||||||
}
|
|
||||||
|
|
||||||
for($k=0; $opt=sql_fetch_array($res); $k++) {
|
|
||||||
if($opt['io_type'])
|
|
||||||
$opt_price = $opt['io_price'];
|
|
||||||
else
|
|
||||||
$opt_price = $opt['ct_price'] + $opt['io_price'];
|
|
||||||
|
|
||||||
// 소계
|
|
||||||
$opt['ct_point'] = isset($opt['ct_point']) ? (int) $opt['ct_point'] : 0;
|
|
||||||
$ct_price['stotal'] = $opt_price * $opt['ct_qty'];
|
|
||||||
$ct_point['stotal'] = $opt['ct_point'] * $opt['ct_qty'];
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<?php if($k == 0) { ?>
|
|
||||||
<td class="td_itname" rowspan="<?php echo $rowspan; ?>">
|
|
||||||
<a href="./itemform.php?w=u&it_id=<?php echo $row['it_id']; ?>"><?php echo $image; ?> <?php echo stripslashes($row['it_name']); ?></a>
|
|
||||||
<?php if($od['od_tax_flag'] && $row['ct_notax']) echo '[비과세상품]'; ?>
|
|
||||||
</td>
|
|
||||||
<?php } ?>
|
|
||||||
<td class="td_itopt_tl">
|
|
||||||
<?php echo $opt['ct_option']; ?>
|
|
||||||
</td>
|
|
||||||
<td class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
|
||||||
<td class="td_cntsmall"><?php echo $opt['ct_qty']; ?></td>
|
|
||||||
<td class="td_num"><?php echo number_format($opt_price); ?></td>
|
|
||||||
<td class="td_num"><?php echo number_format($ct_price['stotal']); ?></td>
|
|
||||||
<td class="td_num"><?php echo number_format($opt['cp_price']); ?></td>
|
|
||||||
<td class="td_num"><?php echo number_format($ct_point['stotal']); ?></td>
|
|
||||||
<td class="td_sendcost_by"><?php echo $ct_send_cost; ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
$type = isset($_REQUEST['type']) ? clean_xss_tags($_REQUEST['type'], 1, 1) : '';
|
|
||||||
|
|
||||||
if($type === 'mobile') {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $dir, $match))
|
|
||||||
$skin_dir = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$skin_dir = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
|
||||||
} else {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $dir, $match))
|
|
||||||
$skin_dir = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$skin_dir = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$dir;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo get_list_skin_options("^list.[0-9]+\.skin\.php", $skin_dir, $sval);
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '500500';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
|
||||||
|
|
||||||
$bn_id = isset($_REQUEST['bn_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['bn_id']) : 0;
|
|
||||||
$bn = array(
|
|
||||||
'bn_id'=>0,
|
|
||||||
'bn_alt'=>'',
|
|
||||||
'bn_device'=>'',
|
|
||||||
'bn_position'=>'',
|
|
||||||
'bn_border'=>'',
|
|
||||||
'bn_new_win'=>'',
|
|
||||||
'bn_order'=>''
|
|
||||||
);
|
|
||||||
|
|
||||||
$html_title = '배너';
|
|
||||||
$g5['title'] = $html_title.'관리';
|
|
||||||
|
|
||||||
if ($w=="u")
|
|
||||||
{
|
|
||||||
$html_title .= ' 수정';
|
|
||||||
$sql = " select * from {$g5['g5_shop_banner_table']} where bn_id = '$bn_id' ";
|
|
||||||
$bn = sql_fetch($sql);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$html_title .= ' 입력';
|
|
||||||
$bn['bn_url'] = "http://";
|
|
||||||
$bn['bn_begin_time'] = date("Y-m-d 00:00:00", time());
|
|
||||||
$bn['bn_end_time'] = date("Y-m-d 00:00:00", time()+(60*60*24*31));
|
|
||||||
}
|
|
||||||
|
|
||||||
// 접속기기 필드 추가
|
|
||||||
if(!sql_query(" select bn_device from {$g5['g5_shop_banner_table']} limit 0, 1 ")) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_banner_table']}`
|
|
||||||
ADD `bn_device` varchar(10) not null default '' AFTER `bn_url` ", true);
|
|
||||||
sql_query(" update {$g5['g5_shop_banner_table']} set bn_device = 'pc' ", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<form name="fbanner" action="./bannerformupdate.php" method="post" enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
|
||||||
<input type="hidden" name="bn_id" value="<?php echo $bn_id; ?>">
|
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption><?php echo $g5['title']; ?></caption>
|
|
||||||
<colgroup>
|
|
||||||
<col class="grid_4">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">이미지</th>
|
|
||||||
<td>
|
|
||||||
<input type="file" name="bn_bimg">
|
|
||||||
<?php
|
|
||||||
$bimg_str = "";
|
|
||||||
$bimg = G5_DATA_PATH."/banner/{$bn['bn_id']}";
|
|
||||||
if (file_exists($bimg) && $bn['bn_id']) {
|
|
||||||
$size = @getimagesize($bimg);
|
|
||||||
if($size[0] && $size[0] > 750)
|
|
||||||
$width = 750;
|
|
||||||
else
|
|
||||||
$width = $size[0];
|
|
||||||
|
|
||||||
echo '<input type="checkbox" name="bn_bimg_del" value="1" id="bn_bimg_del"> <label for="bn_bimg_del">삭제</label>';
|
|
||||||
$bimg_str = '<img src="'.G5_DATA_URL.'/banner/'.$bn['bn_id'].'" width="'.$width.'">';
|
|
||||||
}
|
|
||||||
if ($bimg_str) {
|
|
||||||
echo '<div class="banner_or_img">';
|
|
||||||
echo $bimg_str;
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_alt">이미지 설명</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("img 태그의 alt, title 에 해당되는 내용입니다.\n배너에 마우스를 오버하면 이미지의 설명이 나옵니다."); ?>
|
|
||||||
<input type="text" name="bn_alt" value="<?php echo get_text($bn['bn_alt']); ?>" id="bn_alt" class="frm_input" size="80">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_url">링크</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너클릭시 이동하는 주소입니다."); ?>
|
|
||||||
<input type="text" name="bn_url" size="80" value="<?php echo get_sanitize_input($bn['bn_url']); ?>" id="bn_url" class="frm_input">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_device">접속기기</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help('배너를 표시할 접속기기를 선택합니다.'); ?>
|
|
||||||
<select name="bn_device" id="bn_device">
|
|
||||||
<option value="both"<?php echo get_selected($bn['bn_device'], 'both', true); ?>>PC와 모바일</option>
|
|
||||||
<option value="pc"<?php echo get_selected($bn['bn_device'], 'pc'); ?>>PC</option>
|
|
||||||
<option value="mobile"<?php echo get_selected($bn['bn_device'], 'mobile'); ?>>모바일</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_position">출력위치</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다."); ?>
|
|
||||||
<select name="bn_position" id="bn_position">
|
|
||||||
<option value="왼쪽" <?php echo get_selected($bn['bn_position'], '왼쪽'); ?>>왼쪽</option>
|
|
||||||
<option value="메인" <?php echo get_selected($bn['bn_position'], '메인'); ?>>메인</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_border">테두리</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너이미지에 테두리를 넣을지를 설정합니다.", 50); ?>
|
|
||||||
<select name="bn_border" id="bn_border">
|
|
||||||
<option value="0" <?php echo get_selected($bn['bn_border'], 0); ?>>사용안함</option>
|
|
||||||
<option value="1" <?php echo get_selected($bn['bn_border'], 1); ?>>사용</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_new_win">새창</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너클릭시 새창을 띄울지를 설정합니다.", 50); ?>
|
|
||||||
<select name="bn_new_win" id="bn_new_win">
|
|
||||||
<option value="0" <?php echo get_selected($bn['bn_new_win'], 0); ?>>사용안함</option>
|
|
||||||
<option value="1" <?php echo get_selected($bn['bn_new_win'], 1); ?>>사용</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_begin_time">시작일시</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너 게시 시작일시를 설정합니다."); ?>
|
|
||||||
<input type="text" name="bn_begin_time" value="<?php echo $bn['bn_begin_time']; ?>" id="bn_begin_time" class="frm_input" size="21" maxlength="19">
|
|
||||||
<input type="checkbox" name="bn_begin_chk" value="<?php echo date("Y-m-d 00:00:00", time()); ?>" id="bn_begin_chk" onclick="if (this.checked == true) this.form.bn_begin_time.value=this.form.bn_begin_chk.value; else this.form.bn_begin_time.value = this.form.bn_begin_time.defaultValue;">
|
|
||||||
<label for="bn_begin_chk">오늘</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_end_time">종료일시</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너 게시 종료일시를 설정합니다."); ?>
|
|
||||||
<input type="text" name="bn_end_time" value="<?php echo $bn['bn_end_time']; ?>" id="bn_end_time" class="frm_input" size=21 maxlength=19>
|
|
||||||
<input type="checkbox" name="bn_end_chk" value="<?php echo date("Y-m-d 23:59:59", time()+60*60*24*31); ?>" id="bn_end_chk" onclick="if (this.checked == true) this.form.bn_end_time.value=this.form.bn_end_chk.value; else this.form.bn_end_time.value = this.form.bn_end_time.defaultValue;">
|
|
||||||
<label for="bn_end_chk">오늘+31일</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="bn_order">출력 순서</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("배너를 출력할 때 순서를 정합니다. 숫자가 작을수록 먼저 출력됩니다."); ?>
|
|
||||||
<?php echo order_select("bn_order", $bn['bn_order']); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="btn_fixed_top">
|
|
||||||
<a href="./bannerlist.php" class="btn_02 btn">목록</a>
|
|
||||||
<input type="submit" value="확인" class="btn_submit btn" accesskey="s">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
|
||||||
@@ -1,102 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '500500';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
check_demo();
|
|
||||||
|
|
||||||
$w = isset($_REQUEST['w']) ? $_REQUEST['w'] : '';
|
|
||||||
|
|
||||||
if ($w == 'd')
|
|
||||||
auth_check_menu($auth, $sub_menu, "d");
|
|
||||||
else
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
|
||||||
|
|
||||||
check_admin_token();
|
|
||||||
|
|
||||||
@mkdir(G5_DATA_PATH."/banner", G5_DIR_PERMISSION);
|
|
||||||
@chmod(G5_DATA_PATH."/banner", G5_DIR_PERMISSION);
|
|
||||||
|
|
||||||
$bn_bimg = isset($_FILES['bn_bimg']['tmp_name']) ? $_FILES['bn_bimg']['tmp_name'] : '';
|
|
||||||
$bn_bimg_name = isset($_FILES['bn_bimg']['name']) ? $_FILES['bn_bimg']['name'] : '';
|
|
||||||
$bn_id = isset($_REQUEST['bn_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['bn_id']) : 0;
|
|
||||||
$bn_bimg_del = (isset($_POST['bn_bimg_del']) && $_POST['bn_bimg_del']) ? preg_replace('/[^0-9]/', '', $_POST['bn_id']) : 0;
|
|
||||||
$bn_url = isset($_POST['bn_url']) ? strip_tags(clean_xss_attributes($bn_url)) : '';
|
|
||||||
$bn_alt = isset($_POST['bn_alt']) ? strip_tags(clean_xss_attributes($bn_alt)) : '';
|
|
||||||
$bn_device = isset($_POST['bn_device']) ? clean_xss_tags($_POST['bn_device'], 1, 1) : '';
|
|
||||||
$bn_position = isset($_POST['bn_position']) ? clean_xss_tags($_POST['bn_position'], 1, 1) : '';
|
|
||||||
$bn_border = isset($_POST['bn_border']) ? (int) $_POST['bn_border'] : 0;
|
|
||||||
$bn_new_win = isset($_POST['bn_new_win']) ? (int) $_POST['bn_new_win'] : 0;
|
|
||||||
$bn_begin_time = isset($_POST['bn_begin_time']) ? clean_xss_tags($_POST['bn_begin_time'], 1, 1) : '';
|
|
||||||
$bn_end_time = isset($_POST['bn_end_time']) ? clean_xss_tags($_POST['bn_end_time'], 1, 1) : '';
|
|
||||||
$bn_order = isset($_POST['bn_order']) ? (int) $_POST['bn_order'] : 0;
|
|
||||||
|
|
||||||
if ($bn_bimg_del) @unlink(G5_DATA_PATH."/banner/$bn_id");
|
|
||||||
|
|
||||||
//파일이 이미지인지 체크합니다.
|
|
||||||
if( $bn_bimg || $bn_bimg_name ){
|
|
||||||
|
|
||||||
if( !preg_match('/\.(gif|jpe?g|bmp|png)$/i', $bn_bimg_name) ){
|
|
||||||
alert("이미지 파일만 업로드 할수 있습니다.");
|
|
||||||
}
|
|
||||||
|
|
||||||
$timg = @getimagesize($bn_bimg);
|
|
||||||
if ($timg['2'] < 1 || $timg['2'] > 16){
|
|
||||||
alert("이미지 파일만 업로드 할수 있습니다.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($w=="")
|
|
||||||
{
|
|
||||||
if (!$bn_bimg_name) alert('배너 이미지를 업로드 하세요.');
|
|
||||||
|
|
||||||
sql_query(" alter table {$g5['g5_shop_banner_table']} auto_increment=1 ");
|
|
||||||
|
|
||||||
$sql = " insert into {$g5['g5_shop_banner_table']}
|
|
||||||
set bn_alt = '$bn_alt',
|
|
||||||
bn_url = '$bn_url',
|
|
||||||
bn_device = '$bn_device',
|
|
||||||
bn_position = '$bn_position',
|
|
||||||
bn_border = '$bn_border',
|
|
||||||
bn_new_win = '$bn_new_win',
|
|
||||||
bn_begin_time = '$bn_begin_time',
|
|
||||||
bn_end_time = '$bn_end_time',
|
|
||||||
bn_time = '".G5_TIME_YMDHIS."',
|
|
||||||
bn_hit = '0',
|
|
||||||
bn_order = '$bn_order' ";
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
$bn_id = sql_insert_id();
|
|
||||||
}
|
|
||||||
else if ($w=="u")
|
|
||||||
{
|
|
||||||
$sql = " update {$g5['g5_shop_banner_table']}
|
|
||||||
set bn_alt = '$bn_alt',
|
|
||||||
bn_url = '$bn_url',
|
|
||||||
bn_device = '$bn_device',
|
|
||||||
bn_position = '$bn_position',
|
|
||||||
bn_border = '$bn_border',
|
|
||||||
bn_new_win = '$bn_new_win',
|
|
||||||
bn_begin_time = '$bn_begin_time',
|
|
||||||
bn_end_time = '$bn_end_time',
|
|
||||||
bn_time = '".G5_TIME_YMDHIS."',
|
|
||||||
bn_order = '$bn_order'
|
|
||||||
where bn_id = '$bn_id' ";
|
|
||||||
sql_query($sql);
|
|
||||||
}
|
|
||||||
else if ($w=="d")
|
|
||||||
{
|
|
||||||
@unlink(G5_DATA_PATH."/banner/$bn_id");
|
|
||||||
|
|
||||||
$sql = " delete from {$g5['g5_shop_banner_table']} where bn_id = $bn_id ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ($w == "" || $w == "u")
|
|
||||||
{
|
|
||||||
if ($_FILES['bn_bimg']['name']) upload_file($_FILES['bn_bimg']['tmp_name'], $bn_id, G5_DATA_PATH."/banner");
|
|
||||||
|
|
||||||
goto_url("./bannerform.php?w=u&bn_id=$bn_id");
|
|
||||||
} else {
|
|
||||||
goto_url("./bannerlist.php");
|
|
||||||
}
|
|
||||||
@@ -1,187 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '500500';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
|
||||||
|
|
||||||
$bn_position = (isset($_GET['bn_position']) && in_array($_GET['bn_position'], array('메인', '왼쪽'))) ? $_GET['bn_position'] : '';
|
|
||||||
$bn_device = (isset($_GET['bn_device']) && in_array($_GET['bn_device'], array('pc', 'mobile'))) ? $_GET['bn_device'] : 'both';
|
|
||||||
$bn_time = (isset($_GET['bn_time']) && in_array($_GET['bn_time'], array('ing', 'end'))) ? $_GET['bn_time'] : '';
|
|
||||||
|
|
||||||
$where = ' where ';
|
|
||||||
$sql_search = '';
|
|
||||||
|
|
||||||
if ( $bn_position ){
|
|
||||||
$sql_search .= " $where bn_position = '$bn_position' ";
|
|
||||||
$where = ' and ';
|
|
||||||
$qstr .= "&bn_position=$bn_position";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $bn_device && $bn_device !== 'both' ){
|
|
||||||
$sql_search .= " $where bn_device = '$bn_device' ";
|
|
||||||
$where = ' and ';
|
|
||||||
$qstr .= "&bn_device=$bn_device";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $bn_time ){
|
|
||||||
$sql_search .= ($bn_time === 'ing') ? " $where '".G5_TIME_YMDHIS."' between bn_begin_time and bn_end_time " : " $where bn_end_time < '".G5_TIME_YMDHIS."' ";
|
|
||||||
$where = ' and ';
|
|
||||||
$qstr .= "&bn_time=$bn_time";
|
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = '배너관리';
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['g5_shop_banner_table']} ";
|
|
||||||
$sql_common .= $sql_search;
|
|
||||||
|
|
||||||
// 테이블의 전체 레코드수만 얻음
|
|
||||||
$sql = " select count(*) as cnt " . $sql_common;
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
$total_count = $row['cnt'];
|
|
||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
|
||||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
|
||||||
<span class="btn_ov01"><span class="ov_txt"> <?php echo ($sql_search) ? '검색' : '등록'; ?>된 배너 </span><span class="ov_num"> <?php echo $total_count; ?>개</span></span>
|
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
|
||||||
|
|
||||||
<label for="bn_position" class="sound_only">검색</label>
|
|
||||||
<select name="bn_position" id="bn_position">
|
|
||||||
<option value=""<?php echo get_selected($bn_position, '', true); ?>>위치 전체</option>
|
|
||||||
<option value="메인"<?php echo get_selected($bn_position, '메인', true); ?>>메인</option>
|
|
||||||
<option value="왼쪽"<?php echo get_selected($bn_position, '왼쪽', true); ?>>왼쪽</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select name="bn_device" id="bn_device">
|
|
||||||
<option value="both"<?php echo get_selected($bn_device, 'both', true); ?>>PC와 모바일</option>
|
|
||||||
<option value="pc"<?php echo get_selected($bn_device, 'pc'); ?>>PC</option>
|
|
||||||
<option value="mobile"<?php echo get_selected($bn_device, 'mobile'); ?>>모바일</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select name="bn_time" id="bn_time">
|
|
||||||
<option value=""<?php echo get_selected($bn_time, '', true); ?>>배너 시간 전체</option>
|
|
||||||
<option value="ing"<?php echo get_selected($bn_time, 'ing'); ?>>진행중인 배너</option>
|
|
||||||
<option value="end"<?php echo get_selected($bn_time, 'end'); ?>>종료된 배너</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<input type="submit" value="검색" class="btn_submit">
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="btn_fixed_top">
|
|
||||||
<a href="./bannerform.php" class="btn_01 btn">배너추가</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="tbl_head01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" rowspan="2" id="th_id">ID</th>
|
|
||||||
<th scope="col" id="th_dvc">접속기기</th>
|
|
||||||
<th scope="col" id="th_loc">위치</th>
|
|
||||||
<th scope="col" id="th_st">시작일시</th>
|
|
||||||
<th scope="col" id="th_end">종료일시</th>
|
|
||||||
<th scope="col" id="th_odr">출력순서</th>
|
|
||||||
<th scope="col" id="th_hit">조회</th>
|
|
||||||
<th scope="col" id="th_mng">관리</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" colspan="7" id="th_img">이미지</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
$sql = " select * from {$g5['g5_shop_banner_table']} $sql_search
|
|
||||||
order by bn_order, bn_id desc
|
|
||||||
limit $from_record, $rows ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|
||||||
// 테두리 있는지
|
|
||||||
$bn_border = $row['bn_border'];
|
|
||||||
// 새창 띄우기인지
|
|
||||||
$bn_new_win = ($row['bn_new_win']) ? 'target="_blank"' : '';
|
|
||||||
|
|
||||||
$bimg = G5_DATA_PATH.'/banner/'.$row['bn_id'];
|
|
||||||
if(file_exists($bimg)) {
|
|
||||||
$size = @getimagesize($bimg);
|
|
||||||
if($size[0] && $size[0] > 800)
|
|
||||||
$width = 800;
|
|
||||||
else
|
|
||||||
$width = $size[0];
|
|
||||||
|
|
||||||
$bn_img = "";
|
|
||||||
|
|
||||||
$bn_img .= '<img src="'.G5_DATA_URL.'/banner/'.$row['bn_id'].'?'.preg_replace('/[^0-9]/i', '', $row['bn_time']).'" width="'.$width.'" alt="'.get_text($row['bn_alt']).'">';
|
|
||||||
}
|
|
||||||
|
|
||||||
switch($row['bn_device']) {
|
|
||||||
case 'pc':
|
|
||||||
$bn_device = 'PC';
|
|
||||||
break;
|
|
||||||
case 'mobile':
|
|
||||||
$bn_device = '모바일';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$bn_device = 'PC와 모바일';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$bn_begin_time = substr($row['bn_begin_time'], 2, 14);
|
|
||||||
$bn_end_time = substr($row['bn_end_time'], 2, 14);
|
|
||||||
|
|
||||||
$bg = 'bg'.($i%2);
|
|
||||||
?>
|
|
||||||
|
|
||||||
<tr class="<?php echo $bg; ?>">
|
|
||||||
<td headers="th_id" rowspan="2" class="td_num"><?php echo $row['bn_id']; ?></td>
|
|
||||||
<td headers="th_dvc"><?php echo $bn_device; ?></td>
|
|
||||||
<td headers="th_loc"><?php echo $row['bn_position']; ?></td>
|
|
||||||
<td headers="th_st" class="td_datetime"><?php echo $bn_begin_time; ?></td>
|
|
||||||
<td headers="th_end" class="td_datetime"><?php echo $bn_end_time; ?></td>
|
|
||||||
<td headers="th_odr" class="td_num"><?php echo $row['bn_order']; ?></td>
|
|
||||||
<td headers="th_hit" class="td_num"><?php echo $row['bn_hit']; ?></td>
|
|
||||||
<td headers="th_mng" class="td_mng td_mns_m">
|
|
||||||
<a href="./bannerform.php?w=u&bn_id=<?php echo $row['bn_id']; ?>" class="btn btn_03">수정</a>
|
|
||||||
<a href="./bannerformupdate.php?w=d&bn_id=<?php echo $row['bn_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02">삭제</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="<?php echo $bg; ?>">
|
|
||||||
<td headers="th_img" colspan="7" class="td_img_view sbn_img">
|
|
||||||
<div class="sbn_image"><?php echo $bn_img; ?></div>
|
|
||||||
<button type="button" class="sbn_img_view btn_frmline">이미지확인</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
if ($i == 0) {
|
|
||||||
echo '<tr><td colspan="8" class="empty_table">자료가 없습니다.</td></tr>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
jQuery(function($) {
|
|
||||||
$(".sbn_img_view").on("click", function() {
|
|
||||||
$(this).closest(".td_img_view").find(".sbn_image").slideToggle();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
|
||||||
@@ -1,639 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '400200';
|
|
||||||
include_once('./_common.php');
|
|
||||||
include_once(G5_EDITOR_LIB);
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
|
||||||
|
|
||||||
$ca_id = isset($_GET['ca_id']) ? preg_replace('/[^0-9a-z]/i', '', $_GET['ca_id']) : '';
|
|
||||||
$ca = array(
|
|
||||||
'ca_skin_dir'=>'',
|
|
||||||
'ca_mobile_skin_dir'=>'',
|
|
||||||
'ca_name'=>'',
|
|
||||||
'ca_order'=>'',
|
|
||||||
'ca_mb_id'=>'',
|
|
||||||
'ca_cert_use'=>0,
|
|
||||||
'ca_adult_use'=>0,
|
|
||||||
'ca_sell_email'=>'',
|
|
||||||
'ca_nocoupon'=>0,
|
|
||||||
'ca_include_head'=>'',
|
|
||||||
'ca_include_tail'=>'',
|
|
||||||
'ca_head_html'=>'',
|
|
||||||
'ca_tail_html'=>'',
|
|
||||||
'ca_mobile_head_html'=>'',
|
|
||||||
'ca_mobile_tail_html'=>'',
|
|
||||||
);
|
|
||||||
|
|
||||||
for($i=0;$i<=10;$i++){
|
|
||||||
$ca['ca_'.$i.'_subj'] = '';
|
|
||||||
$ca['ca_'.$i] = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$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']}
|
|
||||||
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
|
|
||||||
$subid = base_convert((string)$row['max_subid'], 36, 10);
|
|
||||||
$subid += 36;
|
|
||||||
if ($subid >= 36 * 36)
|
|
||||||
{
|
|
||||||
//alert("분류를 더 이상 추가할 수 없습니다.");
|
|
||||||
// 빈상태로
|
|
||||||
$subid = " ";
|
|
||||||
}
|
|
||||||
$subid = base_convert($subid, 10, 36);
|
|
||||||
$subid = substr("00" . $subid, -2);
|
|
||||||
$subid = $ca_id . $subid;
|
|
||||||
|
|
||||||
$sublen = strlen($subid);
|
|
||||||
|
|
||||||
if ($ca_id) // 2단계이상 분류
|
|
||||||
{
|
|
||||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
|
||||||
$ca = sql_fetch($sql);
|
|
||||||
$html_title = $ca['ca_name'] . " 하위분류추가";
|
|
||||||
$ca['ca_name'] = "";
|
|
||||||
}
|
|
||||||
else // 1단계 분류
|
|
||||||
{
|
|
||||||
$html_title = "1단계분류추가";
|
|
||||||
$ca['ca_use'] = 1;
|
|
||||||
$ca['ca_explan_html'] = 1;
|
|
||||||
$ca['ca_img_width'] = $default['de_simg_width'];
|
|
||||||
$ca['ca_img_height'] = $default['de_simg_height'];
|
|
||||||
$ca['ca_mobile_img_width'] = $default['de_simg_width'];
|
|
||||||
$ca['ca_mobile_img_height'] = $default['de_simg_height'];
|
|
||||||
$ca['ca_list_mod'] = 3;
|
|
||||||
$ca['ca_list_row'] = 5;
|
|
||||||
$ca['ca_mobile_list_mod'] = 3;
|
|
||||||
$ca['ca_mobile_list_row'] = 5;
|
|
||||||
$ca['ca_stock_qty'] = 99999;
|
|
||||||
}
|
|
||||||
$ca['ca_skin'] = "list.10.skin.php";
|
|
||||||
$ca['ca_mobile_skin'] = "list.10.skin.php";
|
|
||||||
}
|
|
||||||
else if ($w == "u")
|
|
||||||
{
|
|
||||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
|
||||||
$ca = sql_fetch($sql);
|
|
||||||
if (! (isset($ca['ca_id']) && $ca['ca_id']))
|
|
||||||
alert("자료가 없습니다.");
|
|
||||||
|
|
||||||
$html_title = $ca['ca_name'] . " 수정";
|
|
||||||
$ca['ca_name'] = get_text($ca['ca_name']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$g5['title'] = $html_title;
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|
||||||
|
|
||||||
$pg_anchor ='<ul class="anchor">
|
|
||||||
<li><a href="#anc_scatefrm_basic">필수입력</a></li>
|
|
||||||
<li><a href="#anc_scatefrm_optional">선택입력</a></li>
|
|
||||||
<li><a href="#anc_scatefrm_extra">여분필드</a></li>';
|
|
||||||
if ($w == 'u') $pg_anchor .= '<li><a href="#frm_etc">기타설정</a></li>';
|
|
||||||
$pg_anchor .= '</ul>';
|
|
||||||
|
|
||||||
// 쿠폰 적용 불가 설정 필드 추가
|
|
||||||
if(!sql_query(" select ca_nocoupon from {$g5['g5_shop_category_table']} limit 1 ", false)) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}`
|
|
||||||
ADD `ca_nocoupon` tinyint(4) NOT NULL DEFAULT '0' AFTER `ca_adult_use` ", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 스킨 디렉토리 필드 추가
|
|
||||||
if(!sql_query(" select ca_skin_dir from {$g5['g5_shop_category_table']} limit 1 ", false)) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}`
|
|
||||||
ADD `ca_skin_dir` varchar(255) NOT NULL DEFAULT '' AFTER `ca_name`,
|
|
||||||
ADD `ca_mobile_skin_dir` varchar(255) NOT NULL DEFAULT '' AFTER `ca_skin_dir` ", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 분류 출력순서 필드 추가
|
|
||||||
if(!sql_query(" select ca_order from {$g5['g5_shop_category_table']} limit 1 ", false)) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}`
|
|
||||||
ADD `ca_order` int(11) NOT NULL DEFAULT '0' AFTER `ca_name` ", true);
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}` ADD INDEX(`ca_order`) ", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 모바일 상품 출력줄수 필드 추가
|
|
||||||
if(!sql_query(" select ca_mobile_list_row from {$g5['g5_shop_category_table']} limit 1 ", false)) {
|
|
||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_category_table']}`
|
|
||||||
ADD `ca_mobile_list_row` int(11) NOT NULL DEFAULT '0' AFTER `ca_mobile_list_mod` ", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 스킨 Path
|
|
||||||
if(!$ca['ca_skin_dir'])
|
|
||||||
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
|
||||||
else {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $ca['ca_skin_dir'], $match))
|
|
||||||
$g5_shop_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_skin_dir'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$ca['ca_mobile_skin_dir'])
|
|
||||||
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
|
||||||
else {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $ca['ca_mobile_skin_dir'], $match))
|
|
||||||
$g5_mshop_skin_path = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$ca['ca_mobile_skin_dir'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
|
||||||
|
|
||||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
|
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
|
||||||
<input type="hidden" name="ca_explan_html" value="<?php echo $ca['ca_explan_html']; ?>">
|
|
||||||
|
|
||||||
<section id="anc_scatefrm_basic">
|
|
||||||
<h2 class="h2_frm">필수입력</h2>
|
|
||||||
<?php echo $pg_anchor; ?>
|
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption>분류 추가 필수입력</caption>
|
|
||||||
<colgroup>
|
|
||||||
<col class="grid_4">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_id">분류코드</label></th>
|
|
||||||
<td>
|
|
||||||
<?php if ($w == "") { ?>
|
|
||||||
<?php echo help("자동으로 보여지는 분류코드를 사용하시길 권해드리지만 직접 입력한 값으로도 사용할 수 있습니다.\n분류코드는 나중에 수정이 되지 않으므로 신중하게 결정하여 사용하십시오.\n\n분류코드는 2자리씩 10자리를 사용하여 5단계를 표현할 수 있습니다.\n0~z까지 입력이 가능하며 한 분류당 최대 1296가지를 표현할 수 있습니다.\n그러므로 총 3656158440062976가지의 분류를 사용할 수 있습니다."); ?>
|
|
||||||
<input type="text" name="ca_id" value="<?php echo $subid; ?>" id="ca_id" required class="required frm_input" size="<?php echo $sublen; ?>" maxlength="<?php echo $sublen; ?>">
|
|
||||||
<?php } else { ?>
|
|
||||||
<input type="hidden" name="ca_id" value="<?php echo $ca['ca_id']; ?>">
|
|
||||||
<span class="frm_ca_id"><?php echo $ca['ca_id']; ?></span>
|
|
||||||
<a href="<?php echo shop_category_url($ca_id); ?>" class="btn_frmline">미리보기</a>
|
|
||||||
<a href="./categoryform.php?ca_id=<?php echo $ca_id; ?>&<?php echo $qstr; ?>" class="btn_frmline">하위분류 추가</a>
|
|
||||||
<a href="./itemlist.php?sca=<?php echo $ca['ca_id']; ?>" class="btn_frmline">상품리스트</a>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_name">분류명</label></th>
|
|
||||||
<td><input type="text" name="ca_name" value="<?php echo $ca['ca_name']; ?>" id="ca_name" size="38" required class="required frm_input"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_order">출력순서</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("숫자가 작을 수록 상위에 출력됩니다. 음수 입력도 가능하며 입력 가능 범위는 -2147483648 부터 2147483647 까지입니다.\n<b>입력하지 않으면 자동으로 출력됩니다.</b>"); ?>
|
|
||||||
<input type="text" name="ca_order" value="<?php echo $ca['ca_order']; ?>" id="ca_order" class="frm_input" size="12">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><?php if ($is_admin == 'super') { ?><label for="ca_mb_id"><?php } ?>관리 회원아이디<?php if ($is_admin == 'super') { ?></label><?php } ?></th>
|
|
||||||
<td>
|
|
||||||
<?php if ($is_admin == 'super') { ?>
|
|
||||||
<input type="text" name="ca_mb_id" value="<?php echo get_sanitize_input($ca['ca_mb_id']); ?>" id="ca_mb_id" class="frm_input" maxlength="20">
|
|
||||||
<?php } else { ?>
|
|
||||||
<input type="hidden" name="ca_mb_id" value="<?php echo get_sanitize_input($ca['ca_mb_id']); ?>">
|
|
||||||
<?php echo $ca['ca_mb_id']; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_skin_dir">PC용 스킨명</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo get_skin_select('shop', 'ca_skin_dir', 'ca_skin_dir', $ca['ca_skin_dir']); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_skin_dir">모바일용 스킨명</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo get_mobile_skin_select('shop', 'ca_mobile_skin_dir', 'ca_mobile_skin_dir', $ca['ca_mobile_skin_dir']); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">본인확인 체크</th>
|
|
||||||
<td>
|
|
||||||
<input type="radio" name="ca_cert_use" value="1" id="ca_cert_use_yes" <?php if($ca['ca_cert_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_cert_use_yes">사용함</label>
|
|
||||||
<input type="radio" name="ca_cert_use" value="0" id="ca_cert_use_no" <?php if(!$ca['ca_cert_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_cert_use_no">사용안함</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">성인인증 체크</th>
|
|
||||||
<td>
|
|
||||||
<input type="radio" name="ca_adult_use" value="1" id="ca_adult_use_yes" <?php if($ca['ca_adult_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_adult_use_yes">사용함</label>
|
|
||||||
<input type="radio" name="ca_adult_use" value="0" id="ca_adult_use_no" <?php if(!$ca['ca_adult_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_adult_use_no">사용안함</label>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_shop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
|
||||||
<select id="ca_skin" name="ca_skin" required class="required">
|
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $ca['ca_skin']); ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_img_width">출력이미지 폭</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("쇼핑몰환경설정 > 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
|
|
||||||
<input type="text" name="ca_img_width" value="<?php echo $ca['ca_img_width']; ?>" id="ca_img_width" required class="required frm_input" size="5" > 픽셀
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_img_height">출력이미지 높이</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("쇼핑몰환경설정 > 이미지(소) 높이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
|
|
||||||
<input type="text" name="ca_img_height" value="<?php echo $ca['ca_img_height']; ?>" id="ca_img_height" required class="required frm_input" size="5" > 픽셀
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_list_mod">1줄당 이미지 수</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("한 줄에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 한 줄에 하나의 상품만 출력할 수도 있습니다."); ?>
|
|
||||||
<input type="text" name="ca_list_mod" size="3" value="<?php echo $ca['ca_list_mod']; ?>" id="ca_list_mod" required class="required frm_input"> 개
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_list_row">이미지 줄 수</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("한 페이지에 출력할 이미지 줄 수를 설정합니다.\n한 페이지에서 표시하는 상품수는 (1줄당 이미지 수 x 줄 수) 입니다."); ?>
|
|
||||||
<input type="text" name="ca_list_row" value='<?php echo $ca['ca_list_row']; ?>' id="ca_list_row" required class="required frm_input" size="3"> 줄
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_skin">모바일 출력스킨</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help('기본으로 제공하는 스킨은 '.str_replace(G5_PATH.'/', '', $g5_mshop_skin_path).'/list.*.skin.php 입니다.'); ?>
|
|
||||||
<select id="ca_mobile_skin" name="ca_mobile_skin" required class="required">
|
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $ca['ca_mobile_skin']); ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_img_width">모바일 출력이미지 폭</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("쇼핑몰환경설정 > 이미지(소) 넓이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 폭입니다."); ?>
|
|
||||||
<input type="text" name="ca_mobile_img_width" value="<?php echo $ca['ca_mobile_img_width']; ?>" id="ca_mobile_img_width" required class="required frm_input" size="5" > 픽셀
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_img_height">모바일 출력이미지 높이</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("쇼핑몰환경설정 > 이미지(소) 높이가 기본값으로 설정됩니다.\n".G5_SHOP_URL."/list.php에서 출력되는 이미지의 높이입니다."); ?>
|
|
||||||
<input type="text" name="ca_mobile_img_height" value="<?php echo $ca['ca_mobile_img_height']; ?>" id="ca_mobile_img_height" required class="required frm_input" size="5" > 픽셀
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_list_mod">모바일 1줄당 이미지 수</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("한 줄에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 한 줄에 하나의 상품만 출력할 수도 있습니다."); ?>
|
|
||||||
<input type="text" name="ca_mobile_list_mod" value='<?php echo $ca['ca_mobile_list_mod']; ?>' id="ca_mobile_list_mod" required class="required frm_input" size="3"> 개
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_mobile_list_row">모바일 이미지 줄 수</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("한 페이지에 출력할 이미지 줄 수를 설정합니다.\n한 페이지에서 표시하는 상품수는 (1줄당 이미지 수 x 줄 수) 입니다."); ?>
|
|
||||||
<input type="text" name="ca_mobile_list_row" value='<?php echo $ca['ca_mobile_list_row']; ?>' id="ca_mobile_list_row" required class="required frm_input" size="3"> 줄
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_stock_qty">재고수량</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품의 기본재고 수량을 설정합니다.\n재고를 사용하지 않는다면 숫자를 크게 입력하여 주십시오. 예) 999999"); ?>
|
|
||||||
<input type="text" name="ca_stock_qty" size="10" value="<?php echo $ca['ca_stock_qty']; ?>" id="ca_stock_qty" class="frm_input"> 개
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_sell_email">판매자 E-mail</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("운영자와 판매자가 다른 경우에 사용합니다.\n이 분류에 속한 상품을 등록할 경우에 기본값으로 입력됩니다."); ?>
|
|
||||||
<input type="text" name="ca_sell_email" size="40" value="<?php echo get_sanitize_input($ca['ca_sell_email']); ?>" id="ca_sell_email" class="frm_input">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_use">판매가능</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("재고가 없거나 일시적으로 판매를 중단하시려면 체크 해제하십시오.\n체크 해제하시면 상품 출력을 하지 않으며, 주문도 받지 않습니다."); ?>
|
|
||||||
<input type="checkbox" name="ca_use" <?php echo ($ca['ca_use']) ? "checked" : ""; ?> value="1" id="ca_use">
|
|
||||||
예
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_nocoupon">쿠폰적용안함</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("설정에 체크하시면 쿠폰생성 때 분류 검색 결과에 노출되지 않습니다."); ?>
|
|
||||||
<input type="checkbox" name="ca_nocoupon" <?php echo ($ca['ca_nocoupon']) ? "checked" : ""; ?> value="1" id="ca_nocoupon">
|
|
||||||
예
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<button type="button" class="shop_category btn_02 btn">테마설정 가져오기</button>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<section id="anc_scatefrm_optional">
|
|
||||||
<h2 class="h2_frm">선택 입력</h2>
|
|
||||||
<?php echo $pg_anchor; ?>
|
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption>분류 추가 선택입력</caption>
|
|
||||||
<colgroup>
|
|
||||||
<col class="grid_4">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_include_head">상단파일경로</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("입력하지 않으면 기본 상단 파일을 사용합니다.<br>상단 내용과 달리 PHP 코드를 사용할 수 있습니다."); ?>
|
|
||||||
<input type="text" name="ca_include_head" value="<?php echo $ca['ca_include_head']; ?>" id="ca_include_head" class="frm_input" size="60">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="ca_include_tail">하단 파일 경로</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("입력하지 않으면 기본 하단 파일을 사용합니다.<br>하단 내용과 달리 PHP 코드를 사용할 수 있습니다."); ?>
|
|
||||||
<input type="text" name="ca_include_tail" value="<?php echo $ca['ca_include_tail']; ?>" id="ca_include_tail" class="frm_input" size="60">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="admin_captcha_box" style="display:none;">
|
|
||||||
<th scope="row">자동등록방지</th>
|
|
||||||
<td>
|
|
||||||
<?php
|
|
||||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
|
||||||
|
|
||||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
|
||||||
$captcha_html = captcha_html();
|
|
||||||
$captcha_js = chk_captcha_js();
|
|
||||||
echo $captcha_html;
|
|
||||||
?>
|
|
||||||
<script>
|
|
||||||
jQuery("#captcha_key").removeAttr("required").removeClass("required");
|
|
||||||
</script>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">상단내용</th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품리스트 페이지 상단에 출력하는 HTML 내용입니다."); ?>
|
|
||||||
<?php echo editor_html('ca_head_html', get_text(html_purifier($ca['ca_head_html']), 0)); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">하단내용</th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품리스트 페이지 하단에 출력하는 HTML 내용입니다."); ?>
|
|
||||||
<?php echo editor_html('ca_tail_html', get_text(html_purifier($ca['ca_tail_html']), 0)); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">모바일 상단내용</th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품리스트 페이지 상단에 출력하는 HTML 내용입니다."); ?>
|
|
||||||
<?php echo editor_html('ca_mobile_head_html', get_text(html_purifier($ca['ca_mobile_head_html']), 0)); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">모바일 하단내용</th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("상품리스트 페이지 하단에 출력하는 HTML 내용입니다."); ?>
|
|
||||||
<?php echo editor_html('ca_mobile_tail_html', get_text(html_purifier($ca['ca_mobile_tail_html']), 0)); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<section id="anc_scatefrm_extra">
|
|
||||||
<h2>여분필드 설정</h2>
|
|
||||||
<?php echo $pg_anchor ?>
|
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<colgroup>
|
|
||||||
<col class="grid_3">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<?php for ($i=1; $i<=10; $i++) { ?>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">여분필드<?php echo $i ?></th>
|
|
||||||
<td class="td_extra">
|
|
||||||
<label for="ca_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
|
||||||
<input type="text" name="ca_<?php echo $i ?>_subj" id="ca_<?php echo $i ?>_subj" value="<?php echo get_text($ca['ca_'.$i.'_subj']) ?>" class="frm_input">
|
|
||||||
<label for="ca_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
|
||||||
<input type="text" name="ca_<?php echo $i ?>" value="<?php echo get_text($ca['ca_'.$i]) ?>" id="ca_<?php echo $i ?>" class="frm_input">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<?php if ($w == "u") { ?>
|
|
||||||
<section id="frm_etc">
|
|
||||||
<h2 class="h2_frm">기타설정</h2>
|
|
||||||
<?php echo $pg_anchor; ?>
|
|
||||||
|
|
||||||
<div class="tbl_frm01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption>분류 추가 기타설정</caption>
|
|
||||||
<colgroup>
|
|
||||||
<col class="grid_4">
|
|
||||||
<col>
|
|
||||||
</colgroup>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">하위분류</th>
|
|
||||||
<td>
|
|
||||||
<?php echo help("이 분류의 코드가 10 이라면 10 으로 시작하는 하위분류의 설정값을 이 분류와 동일하게 설정합니다.\n<strong>이 작업은 실행 후 복구할 수 없습니다.</strong>"); ?>
|
|
||||||
<label for="sub_category">이 분류의 하위분류 설정을, 이 분류와 동일하게 일괄수정</label>
|
|
||||||
<input type="checkbox" name="sub_category" value="1" id="sub_category" onclick="if (this.checked) if (confirm('이 분류에 속한 하위 분류의 속성을 똑같이 변경합니다.\n\n이 작업은 되돌릴 방법이 없습니다.\n\n그래도 변경하시겠습니까?')) return ; this.checked = false;">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<div class="btn_fixed_top">
|
|
||||||
<input type="submit" value="확인" class="btn_submit btn" accesskey="s">
|
|
||||||
<a href="./categorylist.php?<?php echo $qstr; ?>" class="btn_02 btn">목록</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
<?php if ($w == 'u') { ?>
|
|
||||||
$(".banner_or_img").addClass("sit_wimg");
|
|
||||||
$(function() {
|
|
||||||
$(".sit_wimg_view").bind("click", function() {
|
|
||||||
var sit_wimg_id = $(this).attr("id").split("_");
|
|
||||||
var $img_display = $("#"+sit_wimg_id[1]);
|
|
||||||
|
|
||||||
$img_display.toggle();
|
|
||||||
|
|
||||||
if($img_display.is(":visible")) {
|
|
||||||
$(this).text($(this).text().replace("확인", "닫기"));
|
|
||||||
} else {
|
|
||||||
$(this).text($(this).text().replace("닫기", "확인"));
|
|
||||||
}
|
|
||||||
|
|
||||||
var $img = $("#"+sit_wimg_id[1]).children("img");
|
|
||||||
var width = $img.width();
|
|
||||||
var height = $img.height();
|
|
||||||
if(width > 700) {
|
|
||||||
var img_width = 700;
|
|
||||||
var img_height = Math.round((img_width * height) / width);
|
|
||||||
|
|
||||||
$img.width(img_width).height(img_height);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$(".sit_wimg_close").bind("click", function() {
|
|
||||||
var $img_display = $(this).parents(".banner_or_img");
|
|
||||||
var id = $img_display.attr("id");
|
|
||||||
$img_display.toggle();
|
|
||||||
var $button = $("#ca_"+id+"_view");
|
|
||||||
$button.text($button.text().replace("닫기", "확인"));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
function fcategoryformcheck(f)
|
|
||||||
{
|
|
||||||
if (f.w.value == "") {
|
|
||||||
var error = "";
|
|
||||||
$.ajax({
|
|
||||||
url: "./ajax.ca_id.php",
|
|
||||||
type: "POST",
|
|
||||||
data: {
|
|
||||||
"ca_id": f.ca_id.value
|
|
||||||
},
|
|
||||||
dataType: "json",
|
|
||||||
async: false,
|
|
||||||
cache: false,
|
|
||||||
success: function(data, textStatus) {
|
|
||||||
error = data.error;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (error) {
|
|
||||||
alert(error);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<?php echo get_editor_js('ca_head_html'); ?>
|
|
||||||
<?php echo get_editor_js('ca_tail_html'); ?>
|
|
||||||
<?php echo get_editor_js('ca_mobile_head_html'); ?>
|
|
||||||
<?php echo get_editor_js('ca_mobile_tail_html'); ?>
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
var captcha_chk = false;
|
|
||||||
|
|
||||||
function use_captcha_check(){
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: g5_admin_url+"/ajax.use_captcha.php",
|
|
||||||
data: { admin_use_captcha: "1" },
|
|
||||||
cache: false,
|
|
||||||
async: false,
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function frm_check_file(){
|
|
||||||
var ca_include_head = "<?php echo $ca['ca_include_head']; ?>";
|
|
||||||
var ca_include_tail = "<?php echo $ca['ca_include_tail']; ?>";
|
|
||||||
var head = jQuery.trim(jQuery("#ca_include_head").val());
|
|
||||||
var tail = jQuery.trim(jQuery("#ca_include_tail").val());
|
|
||||||
|
|
||||||
if(ca_include_head !== head || ca_include_tail !== tail){
|
|
||||||
// 캡챠를 사용합니다.
|
|
||||||
jQuery("#admin_captcha_box").show();
|
|
||||||
captcha_chk = true;
|
|
||||||
|
|
||||||
use_captcha_check();
|
|
||||||
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
jQuery("#admin_captcha_box").hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
jQuery(function($){
|
|
||||||
if( window.self !== window.top ){ // frame 또는 iframe을 사용할 경우 체크
|
|
||||||
$("#ca_include_head, #ca_include_tail").on("change paste keyup", function(e) {
|
|
||||||
frm_check_file();
|
|
||||||
});
|
|
||||||
|
|
||||||
use_captcha_check();
|
|
||||||
}
|
|
||||||
|
|
||||||
$(".shop_category").on("click", function() {
|
|
||||||
if(!confirm("현재 테마의 스킨, 이미지 사이즈 등의 설정을 적용하시겠습니까?"))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
$.ajax({
|
|
||||||
type: "POST",
|
|
||||||
url: "../theme_config_load.php",
|
|
||||||
cache: false,
|
|
||||||
async: false,
|
|
||||||
data: { type: 'shop_category' },
|
|
||||||
dataType: "json",
|
|
||||||
success: function(data) {
|
|
||||||
if(data.error) {
|
|
||||||
alert(data.error);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$.each(data, function(key, val) {
|
|
||||||
if(key == "error")
|
|
||||||
return true;
|
|
||||||
|
|
||||||
$("#"+key).val(val);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
/*document.fcategoryform.ca_name.focus(); 포커스 해제*/
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
|
||||||
@@ -1,259 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '400200';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
|
||||||
|
|
||||||
$ca_include_head = isset($_POST['ca_include_head']) ? trim($_POST['ca_include_head']) : '';
|
|
||||||
$ca_include_tail = isset($_POST['ca_include_tail']) ? trim($_POST['ca_include_tail']) : '';
|
|
||||||
$ca_id = isset($_REQUEST['ca_id']) ? preg_replace('/[^0-9a-z]/i', '', $_REQUEST['ca_id']) : '';
|
|
||||||
|
|
||||||
if( ! $ca_id ){
|
|
||||||
alert('', G5_SHOP_URL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($file = $ca_include_head) {
|
|
||||||
$file_ext = pathinfo($file, PATHINFO_EXTENSION);
|
|
||||||
|
|
||||||
if (! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || !preg_match("/\.(php|htm[l]?)$/i", $file)) {
|
|
||||||
alert("상단 파일 경로가 php, html 파일이 아닙니다.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($file = $ca_include_tail) {
|
|
||||||
$file_ext = pathinfo($file, PATHINFO_EXTENSION);
|
|
||||||
|
|
||||||
if (! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || !preg_match("/\.(php|htm[l]?)$/i", $file)) {
|
|
||||||
alert("하단 파일 경로가 php, html 파일이 아닙니다.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $ca_id ){
|
|
||||||
$sql = " select * from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
|
||||||
$ca = sql_fetch($sql);
|
|
||||||
|
|
||||||
if ($ca && ($ca['ca_include_head'] !== $ca_include_head || $ca['ca_include_tail'] !== $ca_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
|
||||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
|
||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$check_str_keys = array(
|
|
||||||
'ca_order'=>'int',
|
|
||||||
'ca_img_width'=>'int',
|
|
||||||
'ca_img_height'=>'int',
|
|
||||||
'ca_name'=>'str',
|
|
||||||
'ca_mb_id'=>'str',
|
|
||||||
'ca_nocoupon'=>'str',
|
|
||||||
'ca_mobile_skin_dir'=>'str',
|
|
||||||
'ca_skin'=>'str',
|
|
||||||
'ca_mobile_skin'=>'str',
|
|
||||||
'ca_list_mod'=>'int',
|
|
||||||
'ca_list_row'=>'int',
|
|
||||||
'ca_mobile_img_width'=>'int',
|
|
||||||
'ca_mobile_img_height'=>'int',
|
|
||||||
'ca_mobile_list_mod'=>'int',
|
|
||||||
'ca_mobile_list_row'=>'int',
|
|
||||||
'ca_sell_email'=>'str',
|
|
||||||
'ca_use'=>'int',
|
|
||||||
'ca_stock_qty'=>'int',
|
|
||||||
'ca_explan_html'=>'int',
|
|
||||||
'ca_cert_use'=>'int',
|
|
||||||
'ca_adult_use'=>'int',
|
|
||||||
'ca_skin_dir'=>'str'
|
|
||||||
);
|
|
||||||
|
|
||||||
for($i=0;$i<=10;$i++){
|
|
||||||
$check_str_keys['ca_'.$i.'_subj'] = 'str';
|
|
||||||
$check_str_keys['ca_'.$i] = 'str';
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach( $check_str_keys as $key=>$val ){
|
|
||||||
if( $val === 'int' ){
|
|
||||||
$value = isset($_POST[$key]) ? (int) $_POST[$key] : 0;
|
|
||||||
} else {
|
|
||||||
$value = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : '';
|
|
||||||
}
|
|
||||||
$$key = $_POST[$key] = $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
$ca_head_html = isset($_POST['ca_head_html']) ? $_POST['ca_head_html'] : '';
|
|
||||||
$ca_tail_html = isset($_POST['ca_tail_html']) ? $_POST['ca_tail_html'] : '';
|
|
||||||
$ca_mobile_head_html = isset($_POST['ca_mobile_head_html']) ? $_POST['ca_mobile_head_html'] : '';
|
|
||||||
$ca_mobile_tail_html = isset($_POST['ca_mobile_tail_html']) ? $_POST['ca_mobile_tail_html'] : '';
|
|
||||||
|
|
||||||
if(!is_include_path_check($ca_include_head, 1)) {
|
|
||||||
alert('상단 파일 경로에 포함시킬수 없는 문자열이 있습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!is_include_path_check($ca_include_tail, 1)) {
|
|
||||||
alert('하단 파일 경로에 포함시킬수 없는 문자열이 있습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$check_keys = array('ca_skin_dir', 'ca_mobile_skin_dir', 'ca_skin', 'ca_mobile_skin');
|
|
||||||
|
|
||||||
foreach( $check_keys as $key ){
|
|
||||||
if( isset($$key) && preg_match('#\.+(\/|\\\)#', $$key) ){
|
|
||||||
alert('스킨명 또는 경로에 포함시킬수 없는 문자열이 있습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( function_exists('filter_input_include_path') ){
|
|
||||||
$ca_include_head = filter_input_include_path($ca_include_head);
|
|
||||||
$ca_include_tail = filter_input_include_path($ca_include_tail);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($w == "u" || $w == "d")
|
|
||||||
check_demo();
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "d");
|
|
||||||
|
|
||||||
check_admin_token();
|
|
||||||
|
|
||||||
if ($w == 'd' && $is_admin != 'super')
|
|
||||||
alert("최고관리자만 분류를 삭제할 수 있습니다.");
|
|
||||||
|
|
||||||
if ($w == "" || $w == "u")
|
|
||||||
{
|
|
||||||
if ($ca_mb_id)
|
|
||||||
{
|
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id = '$ca_mb_id' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
if (!$row['mb_id'])
|
|
||||||
alert("\'$ca_mb_id\' 은(는) 존재하는 회원아이디가 아닙니다.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( $ca_skin && ! is_include_path_check($ca_skin) ){
|
|
||||||
alert('오류 : 데이터폴더가 포함된 path 를 포함할수 없습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql_common = " ca_order = '$ca_order',
|
|
||||||
ca_skin_dir = '$ca_skin_dir',
|
|
||||||
ca_mobile_skin_dir = '$ca_mobile_skin_dir',
|
|
||||||
ca_skin = '$ca_skin',
|
|
||||||
ca_mobile_skin = '$ca_mobile_skin',
|
|
||||||
ca_img_width = '$ca_img_width',
|
|
||||||
ca_img_height = '$ca_img_height',
|
|
||||||
ca_list_mod = '$ca_list_mod',
|
|
||||||
ca_list_row = '$ca_list_row',
|
|
||||||
ca_mobile_img_width = '$ca_mobile_img_width',
|
|
||||||
ca_mobile_img_height = '$ca_mobile_img_height',
|
|
||||||
ca_mobile_list_mod = '$ca_mobile_list_mod',
|
|
||||||
ca_mobile_list_row = '$ca_mobile_list_row',
|
|
||||||
ca_sell_email = '$ca_sell_email',
|
|
||||||
ca_use = '$ca_use',
|
|
||||||
ca_stock_qty = '$ca_stock_qty',
|
|
||||||
ca_explan_html = '$ca_explan_html',
|
|
||||||
ca_head_html = '$ca_head_html',
|
|
||||||
ca_tail_html = '$ca_tail_html',
|
|
||||||
ca_mobile_head_html = '$ca_mobile_head_html',
|
|
||||||
ca_mobile_tail_html = '$ca_mobile_tail_html',
|
|
||||||
ca_include_head = '$ca_include_head',
|
|
||||||
ca_include_tail = '$ca_include_tail',
|
|
||||||
ca_mb_id = '$ca_mb_id',
|
|
||||||
ca_cert_use = '$ca_cert_use',
|
|
||||||
ca_adult_use = '$ca_adult_use',
|
|
||||||
ca_nocoupon = '$ca_nocoupon',
|
|
||||||
ca_1_subj = '$ca_1_subj',
|
|
||||||
ca_2_subj = '$ca_2_subj',
|
|
||||||
ca_3_subj = '$ca_3_subj',
|
|
||||||
ca_4_subj = '$ca_4_subj',
|
|
||||||
ca_5_subj = '$ca_5_subj',
|
|
||||||
ca_6_subj = '$ca_6_subj',
|
|
||||||
ca_7_subj = '$ca_7_subj',
|
|
||||||
ca_8_subj = '$ca_8_subj',
|
|
||||||
ca_9_subj = '$ca_9_subj',
|
|
||||||
ca_10_subj = '$ca_10_subj',
|
|
||||||
ca_1 = '$ca_1',
|
|
||||||
ca_2 = '$ca_2',
|
|
||||||
ca_3 = '$ca_3',
|
|
||||||
ca_4 = '$ca_4',
|
|
||||||
ca_5 = '$ca_5',
|
|
||||||
ca_6 = '$ca_6',
|
|
||||||
ca_7 = '$ca_7',
|
|
||||||
ca_8 = '$ca_8',
|
|
||||||
ca_9 = '$ca_9',
|
|
||||||
ca_10 = '$ca_10' ";
|
|
||||||
|
|
||||||
|
|
||||||
if ($w == "")
|
|
||||||
{
|
|
||||||
if (!trim($ca_id))
|
|
||||||
alert("분류 코드가 없으므로 분류를 추가하실 수 없습니다.");
|
|
||||||
|
|
||||||
// 소문자로 변환
|
|
||||||
$ca_id = strtolower($ca_id);
|
|
||||||
|
|
||||||
$sql = " insert {$g5['g5_shop_category_table']}
|
|
||||||
set ca_id = '$ca_id',
|
|
||||||
ca_name = '$ca_name',
|
|
||||||
$sql_common ";
|
|
||||||
sql_query($sql);
|
|
||||||
run_event('shop_admin_category_created', $ca_id);
|
|
||||||
}
|
|
||||||
else if ($w == "u")
|
|
||||||
{
|
|
||||||
$sql = " update {$g5['g5_shop_category_table']}
|
|
||||||
set ca_name = '$ca_name',
|
|
||||||
$sql_common
|
|
||||||
where ca_id = '$ca_id' ";
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
// 하위분류를 똑같은 설정으로 반영
|
|
||||||
if (isset($_POST['sub_category']) && $_POST['sub_category']) {
|
|
||||||
$len = strlen($ca_id);
|
|
||||||
$sql = " update {$g5['g5_shop_category_table']}
|
|
||||||
set $sql_common
|
|
||||||
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
|
|
||||||
if ($is_admin != 'super')
|
|
||||||
$sql .= " and ca_mb_id = '{$member['mb_id']}' ";
|
|
||||||
sql_query($sql);
|
|
||||||
}
|
|
||||||
run_event('shop_admin_category_updated', $ca_id);
|
|
||||||
}
|
|
||||||
else if ($w == "d")
|
|
||||||
{
|
|
||||||
// 분류의 길이
|
|
||||||
$len = strlen($ca_id);
|
|
||||||
|
|
||||||
$sql = " select COUNT(*) as cnt from {$g5['g5_shop_category_table']}
|
|
||||||
where SUBSTRING(ca_id,1,$len) = '$ca_id'
|
|
||||||
and ca_id <> '$ca_id' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
if ($row['cnt'] > 0)
|
|
||||||
alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오.");
|
|
||||||
|
|
||||||
$str = $comma = "";
|
|
||||||
$sql = " select it_id from {$g5['g5_shop_item_table']} where ca_id = '$ca_id' ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
$i=0;
|
|
||||||
while ($row = sql_fetch_array($result))
|
|
||||||
{
|
|
||||||
$i++;
|
|
||||||
if ($i % 10 == 0) $str .= "\\n";
|
|
||||||
$str .= "$comma{$row['it_id']}";
|
|
||||||
$comma = " , ";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($str)
|
|
||||||
alert("이 분류와 관련된 상품이 총 {$i} 건 존재하므로 상품을 삭제한 후 분류를 삭제하여 주십시오.\\n\\n$str");
|
|
||||||
|
|
||||||
// 분류 삭제
|
|
||||||
$sql = " delete from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
|
||||||
sql_query($sql);
|
|
||||||
run_event('shop_admin_category_deleted', $ca_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(function_exists('get_admin_captcha_by'))
|
|
||||||
get_admin_captcha_by('remove');
|
|
||||||
|
|
||||||
if ($w == "" || $w == "u")
|
|
||||||
{
|
|
||||||
goto_url("./categoryform.php?w=u&ca_id=$ca_id&$qstr");
|
|
||||||
} else {
|
|
||||||
goto_url("./categorylist.php?$qstr");
|
|
||||||
}
|
|
||||||
@@ -1,290 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '400200';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "r");
|
|
||||||
|
|
||||||
$g5['title'] = '분류관리';
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|
||||||
|
|
||||||
$where = " where ";
|
|
||||||
$sql_search = "";
|
|
||||||
|
|
||||||
$sfl = in_array($sfl, array('ca_name', 'ca_id', 'ca_mb_id')) ? $sfl : '';
|
|
||||||
|
|
||||||
if ($stx != "") {
|
|
||||||
if ($sfl != "") {
|
|
||||||
$sql_search .= " $where $sfl like '%$stx%' ";
|
|
||||||
$where = " and ";
|
|
||||||
}
|
|
||||||
if (isset($save_stx) && $save_stx && ($save_stx != $stx))
|
|
||||||
$page = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql_common = " from {$g5['g5_shop_category_table']} ";
|
|
||||||
if ($is_admin != 'super')
|
|
||||||
$sql_search .= " $where ca_mb_id = '{$member['mb_id']}' ";
|
|
||||||
$sql_common .= $sql_search;
|
|
||||||
|
|
||||||
|
|
||||||
// 테이블의 전체 레코드수만 얻음
|
|
||||||
$sql = " select count(*) as cnt " . $sql_common;
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
$total_count = $row['cnt'];
|
|
||||||
|
|
||||||
$rows = $config['cf_page_rows'];
|
|
||||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
|
||||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
|
||||||
|
|
||||||
if (!$sst)
|
|
||||||
{
|
|
||||||
$sst = "ca_id";
|
|
||||||
$sod = "asc";
|
|
||||||
}
|
|
||||||
$sql_order = "order by $sst $sod";
|
|
||||||
|
|
||||||
// 출력할 레코드를 얻음
|
|
||||||
$sql = " select *
|
|
||||||
$sql_common
|
|
||||||
$sql_order
|
|
||||||
limit $from_record, $rows ";
|
|
||||||
$result = sql_query($sql);
|
|
||||||
|
|
||||||
$listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'" class="ov_listall">전체목록</a>';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="local_ov01 local_ov">
|
|
||||||
<?php echo $listall; ?>
|
|
||||||
<span class="btn_ov01"><span class="ov_txt">생성된 분류 수</span><span class="ov_num"> <?php echo number_format($total_count); ?>개</span></span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form name="flist" class="local_sch01 local_sch">
|
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
|
||||||
<input type="hidden" name="save_stx" value="<?php echo $stx; ?>">
|
|
||||||
|
|
||||||
<label for="sfl" class="sound_only">검색대상</label>
|
|
||||||
<select name="sfl" id="sfl">
|
|
||||||
<option value="ca_name"<?php echo get_selected($sfl, "ca_name", true); ?>>분류명</option>
|
|
||||||
<option value="ca_id"<?php echo get_selected($sfl, "ca_id", true); ?>>분류코드</option>
|
|
||||||
<option value="ca_mb_id"<?php echo get_selected($sfl, "ca_mb_id", true); ?>>회원아이디</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
|
||||||
<input type="text" name="stx" value="<?php echo $stx; ?>" id="stx" required class="required frm_input">
|
|
||||||
<input type="submit" value="검색" class="btn_submit">
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<form name="fcategorylist" method="post" action="./categorylistupdate.php" autocomplete="off">
|
|
||||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
|
||||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
|
||||||
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
|
|
||||||
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
|
|
||||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
|
||||||
|
|
||||||
<div id="sct" class="tbl_head01 tbl_wrap">
|
|
||||||
<table>
|
|
||||||
<caption><?php echo $g5['title']; ?> 목록</caption>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" rowspan="2"><?php echo subject_sort_link("ca_id"); ?>분류코드</a></th>
|
|
||||||
<th scope="col" id="sct_cate"><?php echo subject_sort_link("ca_name"); ?>분류명</a></th>
|
|
||||||
<th scope="col" id="sct_amount">상품수</th>
|
|
||||||
<th scope="col" id="sct_hpcert">본인인증</th>
|
|
||||||
<th scope="col" id="sct_imgw">이미지 폭</th>
|
|
||||||
<th scope="col" id="sct_imgcol">1행이미지수</th>
|
|
||||||
<th scope="col" id="sct_mobileimg">모바일<br>1행이미지수</th>
|
|
||||||
<th scope="col" id="sct_pcskin">PC스킨지정</th>
|
|
||||||
<th scope="col" rowspan="2">관리</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="col" id="sct_admin"><?php echo subject_sort_link("ca_mb_id"); ?>관리회원아이디</a></th>
|
|
||||||
<th scope="col" id="sct_sell"><?php echo subject_sort_link("ca_use"); ?>판매가능</a></th>
|
|
||||||
<th scope="col" id="sct_adultcert">성인인증</th>
|
|
||||||
<th scope="col" id="sct_imgh">이미지 높이</th>
|
|
||||||
<th scope="col" id="sct_imgrow">이미지 행수</th>
|
|
||||||
<th scope="col" id="sct_mobilerow">모바일<br>이미지 행수</th>
|
|
||||||
<th scope="col" id="sct_mskin">모바일스킨지정</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
$s_add = $s_vie = $s_upd = $s_del = '';
|
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
|
||||||
{
|
|
||||||
$level = strlen($row['ca_id']) / 2 - 1;
|
|
||||||
$p_ca_name = '';
|
|
||||||
|
|
||||||
if ($level > 0) {
|
|
||||||
$class = 'class="name_lbl"'; // 2단 이상 분류의 label 에 스타일 부여 - 지운아빠 2013-04-02
|
|
||||||
// 상위단계의 분류명
|
|
||||||
$p_ca_id = substr($row['ca_id'], 0, $level*2);
|
|
||||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$p_ca_id' ";
|
|
||||||
$temp = sql_fetch($sql);
|
|
||||||
$p_ca_name = $temp['ca_name'].'의하위';
|
|
||||||
} else {
|
|
||||||
$class = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$s_level = '<div><label for="ca_name_'.$i.'" '.$class.'><span class="sound_only">'.$p_ca_name.''.($level+1).'단 분류</span></label></div>';
|
|
||||||
$s_level_input_size = 25 - $level *2; // 하위 분류일 수록 입력칸 넓이 작아짐 - 지운아빠 2013-04-02
|
|
||||||
|
|
||||||
if ($level+2 < 6) $s_add = '<a href="./categoryform.php?ca_id='.$row['ca_id'].'&'.$qstr.'" class="btn btn_03">추가</a> '; // 분류는 5단계까지만 가능
|
|
||||||
else $s_add = '';
|
|
||||||
$s_upd = '<a href="./categoryform.php?w=u&ca_id='.$row['ca_id'].'&'.$qstr.'" class="btn btn_02"><span class="sound_only">'.get_text($row['ca_name']).' </span>수정</a> ';
|
|
||||||
|
|
||||||
if ($is_admin == 'super')
|
|
||||||
$s_del = '<a href="./categoryformupdate.php?w=d&ca_id='.$row['ca_id'].'&'.$qstr.'" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only">'.get_text($row['ca_name']).' </span>삭제</a> ';
|
|
||||||
|
|
||||||
// 해당 분류에 속한 상품의 수
|
|
||||||
$sql1 = " select COUNT(*) as cnt from {$g5['g5_shop_item_table']}
|
|
||||||
where ca_id = '{$row['ca_id']}'
|
|
||||||
or ca_id2 = '{$row['ca_id']}'
|
|
||||||
or ca_id3 = '{$row['ca_id']}' ";
|
|
||||||
$row1 = sql_fetch($sql1);
|
|
||||||
|
|
||||||
// 스킨 Path
|
|
||||||
if(!$row['ca_skin_dir'])
|
|
||||||
$g5_shop_skin_path = G5_SHOP_SKIN_PATH;
|
|
||||||
else {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $row['ca_skin_dir'], $match))
|
|
||||||
$g5_shop_skin_path = G5_THEME_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$g5_shop_skin_path = G5_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_skin_dir'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$row['ca_mobile_skin_dir'])
|
|
||||||
$g5_mshop_skin_path = G5_MSHOP_SKIN_PATH;
|
|
||||||
else {
|
|
||||||
if(preg_match('#^theme/(.+)$#', $row['ca_mobile_skin_dir'], $match))
|
|
||||||
$g5_mshop_skin_path = G5_THEME_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$match[1];
|
|
||||||
else
|
|
||||||
$g5_mshop_skin_path = G5_MOBILE_PATH.'/'.G5_SKIN_DIR.'/shop/'.$row['ca_mobile_skin_dir'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$bg = 'bg'.($i%2);
|
|
||||||
?>
|
|
||||||
<tr class="<?php echo $bg; ?>">
|
|
||||||
<td class="td_code" rowspan="2">
|
|
||||||
<input type="hidden" name="ca_id[<?php echo $i; ?>]" value="<?php echo $row['ca_id']; ?>">
|
|
||||||
<a href="<?php echo shop_category_url($row['ca_id']); ?>"><?php echo $row['ca_id']; ?></a>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_cate" class="sct_name<?php echo $level; ?>"><?php echo $s_level; ?> <input type="text" name="ca_name[<?php echo $i; ?>]" value="<?php echo get_text($row['ca_name']); ?>" id="ca_name_<?php echo $i; ?>" required class="tbl_input full_input required"></td>
|
|
||||||
<td headers="sct_amount" class="td_amount"><a href="./itemlist.php?sca=<?php echo $row['ca_id']; ?>"><?php echo $row1['cnt']; ?></a></td>
|
|
||||||
<td headers="sct_hpcert" class="td_possible">
|
|
||||||
<input type="checkbox" name="ca_cert_use[<?php echo $i; ?>]" value="1" id="ca_cert_use_yes<?php echo $i; ?>" <?php if($row['ca_cert_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_cert_use_yes<?php echo $i; ?>">사용</label>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_imgw">
|
|
||||||
<label for="ca_out_width<?php echo $i; ?>" class="sound_only">출력이미지 폭</label>
|
|
||||||
<input type="text" name="ca_img_width[<?php echo $i; ?>]" value="<?php echo get_text($row['ca_img_width']); ?>" id="ca_out_width<?php echo $i; ?>" required class="required tbl_input" size="3" > <span class="sound_only">픽셀</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td headers="sct_imgcol">
|
|
||||||
<label for="ca_lineimg_num<?php echo $i; ?>" class="sound_only">1줄당 이미지 수</label>
|
|
||||||
<input type="text" name="ca_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_list_mod']; ?>" id="ca_lineimg_num<?php echo $i; ?>" required class="required tbl_input"> <span class="sound_only">개</span>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_mobileimg">
|
|
||||||
<label for="ca_mobileimg_num<?php echo $i; ?>" class="sound_only">모바일 1줄당 이미지 수</label>
|
|
||||||
<input type="text" name="ca_mobile_list_mod[<?php echo $i; ?>]" size="3" value="<?php echo $row['ca_mobile_list_mod']; ?>" id="ca_mobileimg_num<?php echo $i; ?>" required class="required tbl_input"> <span class="sound_only">개</span>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_pcskin" class="sct_pcskin">
|
|
||||||
<label for="ca_skin_dir<?php echo $i; ?>" class="sound_only">PC스킨폴더</label>
|
|
||||||
<?php echo get_skin_select('shop', 'ca_skin_dir'.$i, 'ca_skin_dir['.$i.']', $row['ca_skin_dir'], 'class="skin_dir"'); ?>
|
|
||||||
<label for="ca_skin<?php echo $i; ?>" class="sound_only">PC스킨파일</label>
|
|
||||||
<select id="ca_skin<?php echo $i; ?>" name="ca_skin[<?php echo $i; ?>]" required class="required">
|
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_shop_skin_path, $row['ca_skin']); ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
<td class="td_mng td_mng_s" rowspan="2">
|
|
||||||
<?php echo $s_add; ?>
|
|
||||||
<?php echo $s_vie; ?>
|
|
||||||
<?php echo $s_upd; ?>
|
|
||||||
<?php echo $s_del; ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr class="<?php echo $bg; ?>">
|
|
||||||
<td headers="sct_admin">
|
|
||||||
<?php if ($is_admin == 'super') {?>
|
|
||||||
<label for="ca_mb_id<?php echo $i; ?>" class="sound_only">관리회원아이디</label>
|
|
||||||
<input type="text" name="ca_mb_id[<?php echo $i; ?>]" value="<?php echo $row['ca_mb_id']; ?>" id="ca_mb_id<?php echo $i; ?>" class="tbl_input full_input" size="15" maxlength="20">
|
|
||||||
<?php } else { ?>
|
|
||||||
<input type="hidden" name="ca_mb_id[<?php echo $i; ?>]" value="<?php echo $row['ca_mb_id']; ?>">
|
|
||||||
<?php echo $row['ca_mb_id']; ?>
|
|
||||||
<?php } ?>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_sell" class="td_possible">
|
|
||||||
<input type="checkbox" name="ca_use[<?php echo $i; ?>]" value="1" id="ca_use<?php echo $i; ?>" <?php echo ($row['ca_use'] ? "checked" : ""); ?>>
|
|
||||||
<label for="ca_use<?php echo $i; ?>">판매</label>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td headers="sct_adultcert" class="td_possible">
|
|
||||||
<input type="checkbox" name="ca_adult_use[<?php echo $i; ?>]" value="1" id="ca_adult_use_yes<?php echo $i; ?>" <?php if($row['ca_adult_use']) echo 'checked="checked"'; ?>>
|
|
||||||
<label for="ca_adult_use_yes<?php echo $i; ?>">사용</label>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_imgh">
|
|
||||||
<label for="ca_img_height<?php echo $i; ?>" class="sound_only">출력이미지 높이</label>
|
|
||||||
<input type="text" name="ca_img_height[<?php echo $i; ?>]" value="<?php echo $row['ca_img_height']; ?>" id="ca_img_height<?php echo $i; ?>" required class="required tbl_input" size="3" > <span class="sound_only">픽셀</span>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_imgrow">
|
|
||||||
<label for="ca_imgline_num<?php echo $i; ?>" class="sound_only">이미지 줄 수</label>
|
|
||||||
<input type="text" name="ca_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_list_row']; ?>' id="ca_imgline_num<?php echo $i; ?>" required class="required tbl_input" size="3"> <span class="sound_only">줄</span>
|
|
||||||
</td>
|
|
||||||
<td headers="sct_mobilerow">
|
|
||||||
<label for="ca_mobileimg_row<?php echo $i; ?>" class="sound_only">모바일 이미지 줄 수</label>
|
|
||||||
<input type="text" name="ca_mobile_list_row[<?php echo $i; ?>]" value='<?php echo $row['ca_mobile_list_row']; ?>' id="ca_mobileimg_row<?php echo $i; ?>" required class="required tbl_input" size="3">
|
|
||||||
</td>
|
|
||||||
<td headers="sct_mskin" class="sct_mskin">
|
|
||||||
<label for="ca_mobile_skin_dir<?php echo $i; ?>" class="sound_only">모바일스킨폴더</label>
|
|
||||||
<?php echo get_mobile_skin_select('shop', 'ca_mobile_skin_dir'.$i, 'ca_mobile_skin_dir['.$i.']', $row['ca_mobile_skin_dir'], 'class="skin_dir"'); ?>
|
|
||||||
<label for="ca_mobile_skin<?php echo $i; ?>" class="sound_only">모바일스킨파일</label>
|
|
||||||
<select id="ca_mobile_skin<?php echo $i; ?>" name="ca_mobile_skin[<?php echo $i; ?>]" required class="required">
|
|
||||||
<?php echo get_list_skin_options("^list.[0-9]+\.skin\.php", $g5_mshop_skin_path, $row['ca_mobile_skin']); ?>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php }
|
|
||||||
if ($i == 0) echo "<tr><td colspan=\"9\" class=\"empty_table\">자료가 한 건도 없습니다.</td></tr>\n";
|
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="btn_fixed_top">
|
|
||||||
<input type="submit" value="일괄수정" class="btn_02 btn">
|
|
||||||
|
|
||||||
<?php if ($is_admin == 'super') {?>
|
|
||||||
<a href="./categoryform.php" id="cate_add" class="btn btn_01">분류 추가</a>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
$("select.skin_dir").on("change", function() {
|
|
||||||
var type = "";
|
|
||||||
var dir = $(this).val();
|
|
||||||
if(!dir)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
var id = $(this).attr("id");
|
|
||||||
var $sel = $(this).siblings("select");
|
|
||||||
var sval = $sel.find("option:selected").val();
|
|
||||||
|
|
||||||
if(id.search("mobile") > -1)
|
|
||||||
type = "mobile";
|
|
||||||
|
|
||||||
$sel.load(
|
|
||||||
"./ajax.skinfile.php",
|
|
||||||
{ dir : dir, type : type, sval: sval }
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
|
||||||
@@ -1,97 +0,0 @@
|
|||||||
<?php
|
|
||||||
$sub_menu = '400200';
|
|
||||||
include_once('./_common.php');
|
|
||||||
|
|
||||||
check_demo();
|
|
||||||
|
|
||||||
auth_check_menu($auth, $sub_menu, "w");
|
|
||||||
|
|
||||||
check_admin_token();
|
|
||||||
|
|
||||||
$post_ca_id_count = (isset($_POST['ca_id']) && is_array($_POST['ca_id'])) ? count($_POST['ca_id']) : 0;
|
|
||||||
|
|
||||||
for ($i=0; $i<$post_ca_id_count; $i++)
|
|
||||||
{
|
|
||||||
$str_ca_mb_id = isset($_POST['ca_mb_id'][$i]) ? strip_tags(clean_xss_attributes($_POST['ca_mb_id'][$i])) : '';
|
|
||||||
|
|
||||||
if ($str_ca_mb_id)
|
|
||||||
{
|
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id = '".sql_real_escape_string($str_ca_mb_id)."' ";
|
|
||||||
$row = sql_fetch($sql);
|
|
||||||
if (!$row['mb_id'])
|
|
||||||
alert("\'{$str_ca_mb_id}\' 은(는) 존재하는 회원아이디가 아닙니다.", "./categorylist.php?$qstr");
|
|
||||||
}
|
|
||||||
|
|
||||||
$check_files = array();
|
|
||||||
|
|
||||||
if( !empty($_POST['ca_skin'][$i]) ){
|
|
||||||
$check_files[] = $_POST['ca_skin'][$i];
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !empty($_POST['ca_mobile_skin'][$i]) ){
|
|
||||||
$check_files[] = $_POST['ca_mobile_skin'][$i];
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !empty($_POST['ca_skin_dir'][$i]) ){
|
|
||||||
if( preg_match('#\.+(\/|\\\)#', $_POST['ca_skin_dir'][$i]) ){
|
|
||||||
alert('PC 스킨폴더명에 포함될수 없는 문자가 들어있습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !empty($_POST['ca_mobile_skin_dir'][$i]) ){
|
|
||||||
if( preg_match('#\.+(\/|\\\)#', $_POST['ca_mobile_skin_dir'][$i]) ){
|
|
||||||
alert('모바일 스킨폴더명에 포함될수 없는 문자가 들어있습니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach( $check_files as $file ){
|
|
||||||
if( empty($file) ) continue;
|
|
||||||
|
|
||||||
if( preg_match('#\.+(\/|\\\)#', $file) ){
|
|
||||||
alert('스킨파일명에 포함될수 없는 문자가 들어있습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
if( ! is_include_path_check($file) ){
|
|
||||||
alert('오류 : 데이터폴더가 포함된 path 또는 잘못된 path 를 포함할수 없습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$file_ext = pathinfo($file, PATHINFO_EXTENSION);
|
|
||||||
|
|
||||||
if( ! $file_ext || ! in_array($file_ext, array('php', 'htm', 'html')) || ! preg_match('/^.*\.(php|htm|html)$/i', $file) ) {
|
|
||||||
alert('스킨 파일 경로의 확장자는 php, htm, html 만 허용합니다.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$p_ca_name = is_array($_POST['ca_name']) ? strip_tags(clean_xss_attributes($_POST['ca_name'][$i])) : '';
|
|
||||||
|
|
||||||
$posts = array();
|
|
||||||
|
|
||||||
$check_keys = array('ca_mb_id', 'ca_id', 'ca_use', 'ca_list_mod', 'ca_cert_use', 'ca_adult_use', 'ca_skin', 'ca_mobile_skin', 'ca_skin_dir', 'ca_mobile_skin_dir', 'ca_img_width', 'ca_img_height', 'ca_list_row', 'ca_mobile_list_mod', 'ca_mobile_list_row');
|
|
||||||
|
|
||||||
foreach($check_keys as $key){
|
|
||||||
$posts[$key] = (isset($_POST[$key]) && isset($_POST[$key][$i])) ? $_POST[$key][$i] : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
$sql = " update {$g5['g5_shop_category_table']}
|
|
||||||
set ca_name = '".$p_ca_name."',
|
|
||||||
ca_mb_id = '".sql_real_escape_string(strip_tags(clean_xss_attributes($posts['ca_mb_id'])))."',
|
|
||||||
ca_use = '".sql_real_escape_string(strip_tags($posts['ca_use']))."',
|
|
||||||
ca_list_mod = '".sql_real_escape_string(strip_tags($posts['ca_list_mod']))."',
|
|
||||||
ca_cert_use = '".sql_real_escape_string(strip_tags($posts['ca_cert_use']))."',
|
|
||||||
ca_adult_use = '".sql_real_escape_string(strip_tags($posts['ca_adult_use']))."',
|
|
||||||
ca_skin = '".sql_real_escape_string(strip_tags($posts['ca_skin']))."',
|
|
||||||
ca_mobile_skin = '".sql_real_escape_string(strip_tags($posts['ca_mobile_skin']))."',
|
|
||||||
ca_skin_dir = '".sql_real_escape_string(strip_tags($posts['ca_skin_dir']))."',
|
|
||||||
ca_mobile_skin_dir = '".sql_real_escape_string(strip_tags($posts['ca_mobile_skin_dir']))."',
|
|
||||||
ca_img_width = '".sql_real_escape_string(strip_tags($posts['ca_img_width']))."',
|
|
||||||
ca_img_height = '".sql_real_escape_string(strip_tags($posts['ca_img_height']))."',
|
|
||||||
ca_list_row = '".sql_real_escape_string(strip_tags($posts['ca_list_row']))."',
|
|
||||||
ca_mobile_list_mod = '".sql_real_escape_string(strip_tags($posts['ca_mobile_list_mod']))."',
|
|
||||||
ca_mobile_list_row = '".sql_real_escape_string(strip_tags($posts['ca_mobile_list_row']))."'
|
|
||||||
where ca_id = '".sql_real_escape_string($posts['ca_id'])."' ";
|
|
||||||
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
goto_url("./categorylist.php?$qstr");
|
|
||||||
Loaded 100 of 1278 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user