Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75328dff71 | ||
|
|
7163838706 | ||
|
|
31e98a85b8 | ||
|
|
f675c38441 | ||
|
|
05981661e7 | ||
|
|
e0cb64e0a7 | ||
|
|
d663ca90d3 | ||
|
|
0eea266500 | ||
|
|
cbde9c91d7 | ||
|
|
c17fef6778 | ||
|
|
73478d5961 | ||
|
|
846285549a | ||
|
|
b8ba893090 | ||
|
|
e632542c75 | ||
|
|
2199ffd44d | ||
|
|
86fb983eac | ||
|
|
17238808b5 | ||
|
|
a6d851e174 | ||
|
|
a1dbe22063 | ||
|
|
e6a3270936 | ||
|
|
26bbc9829d | ||
|
|
f7c8fa4a8e | ||
|
|
12f53f4c3a | ||
|
|
9e14e803e5 | ||
|
|
250c9fc660 | ||
|
|
3a8e3a4654 | ||
|
|
2ec7390cd6 | ||
|
|
630e39de16 | ||
|
|
b1ac49a738 | ||
|
|
166727879a | ||
|
|
9773c13d5d | ||
|
|
764cb34957 | ||
|
|
18d4a60e03 | ||
|
|
e234b990ec | ||
|
|
2bd6a639d4 | ||
|
|
78dc1a91d3 | ||
|
|
f8f33e3439 | ||
|
|
85fcbbbdb7 | ||
|
|
15c73972de | ||
|
|
e8730704c1 | ||
|
|
934e944fad | ||
|
|
1655e76d04 | ||
|
|
77ea93d50f | ||
|
|
66e0880ebb | ||
|
|
99f09a5bf1 | ||
|
|
96dd706456 | ||
|
|
83d7e1a586 | ||
|
|
6e89aff24f | ||
|
|
dc27423fe6 | ||
|
|
c086efa040 | ||
|
|
41ff66d35c | ||
|
|
1ad87b3e6c | ||
|
|
d26ee21322 | ||
|
|
e19e856c53 | ||
|
|
75a1289b1a | ||
|
|
9f26c993a1 | ||
|
|
32924003b9 | ||
|
|
831219e2c2 | ||
|
|
e4a7c1b21d | ||
|
|
eb803ae9c9 | ||
|
|
9af0d855b3 | ||
|
|
896444ce1a | ||
|
|
a844347c4c | ||
|
|
a870fe3777 | ||
|
|
05f1e718e1 | ||
|
|
e97b91cb88 | ||
|
|
4227356108 | ||
|
|
ae729f1525 | ||
|
|
2c61975b49 | ||
|
|
eb8bcb0a24 | ||
|
|
3574a09902 | ||
|
|
352856759d | ||
|
|
4d4064c40d | ||
|
|
92ded4b17a | ||
|
|
04f55c8b95 | ||
|
|
9c03cd85b6 | ||
|
|
d0eb0601ad | ||
|
|
e8abeb47e8 | ||
|
|
40508b05d0 | ||
|
|
31bf6e94ad | ||
|
|
0d968a52fa | ||
|
|
172b3dba98 | ||
|
|
63f4d7973c | ||
|
|
dc21287913 | ||
|
|
f1a69ff7a4 | ||
|
|
6b67183ec5 | ||
|
|
ab5fb4815d | ||
|
|
2ce07e5ec9 | ||
|
|
c5593c56be | ||
|
|
29c4330e7a | ||
|
|
579190c786 | ||
|
|
266772d6dc | ||
|
|
61c784eb57 | ||
|
|
2a8a283a77 | ||
|
|
826a497e84 | ||
|
|
5fdd38e1ce | ||
|
|
67353c508a | ||
|
|
e069c00ecd | ||
|
|
60387c8a95 | ||
|
|
4cc8284016 | ||
|
|
1ba5bb09fc | ||
|
|
953e301096 | ||
|
|
72bbc0b66b | ||
|
|
6a1f6c89f6 | ||
|
|
85cd83ecf1 | ||
|
|
95c5b5ecd8 | ||
|
|
bfdb44324f | ||
|
|
2e84d5fbf4 | ||
|
|
7539f2517c | ||
|
|
e43fc63e42 | ||
|
|
371788ee9f | ||
|
|
7c01ae4619 | ||
|
|
6766ef2e1f | ||
|
|
bf7d907ae7 | ||
|
|
82cdd90edc | ||
|
|
1d0f0bf50b | ||
|
|
4366d20410 | ||
|
|
e4d47cc7fd | ||
|
|
b83f82b3d7 | ||
|
|
7f62fffca4 | ||
|
|
3efa500b02 | ||
|
|
129da34249 | ||
|
|
54b1356ab1 | ||
|
|
061e73c014 | ||
|
|
7ae3d6b00d | ||
|
|
c028d34f78 | ||
|
|
53457e3b2f | ||
|
|
d38a44ba62 | ||
|
|
641ede57ef | ||
|
|
39c8182a2f | ||
|
|
038affe798 | ||
|
|
da963964a9 | ||
|
|
82078fc781 | ||
|
|
14f55f7519 | ||
|
|
97ee35e985 | ||
|
|
39f944e684 | ||
|
|
b71274a429 | ||
|
|
11dc38b883 | ||
|
|
ce50abd4b5 | ||
|
|
ea478310d9 | ||
|
|
e1a510b013 | ||
|
|
8aad35f416 | ||
|
|
d57372907d | ||
|
|
ee6948e580 | ||
|
|
8b0c24b8c3 | ||
|
|
6a4ac064c0 | ||
|
|
09be21e31f | ||
|
|
038087546a | ||
|
|
e8f233c280 | ||
|
|
dc5adce95f | ||
|
|
8d14c95e5c | ||
|
|
546424a045 | ||
|
|
cd2deb541f | ||
|
|
2acac99875 | ||
|
|
b08204d5a8 | ||
|
|
6ee46fd0c9 | ||
|
|
95234c0da5 | ||
|
|
fb7fd98b77 | ||
|
|
da14696e0c | ||
|
|
b8f5356c93 | ||
|
|
304984db63 | ||
|
|
e7e0649173 | ||
|
|
cfe9003154 | ||
|
|
f4b30a878e | ||
|
|
1eb10c9367 | ||
|
|
4b6f94fe8c | ||
|
|
669770c1f1 | ||
|
|
37737d5554 | ||
|
|
fe0f35a59c | ||
|
|
7414fed364 | ||
|
|
7e7d73d394 | ||
|
|
70d48e4d5a | ||
|
|
918663a7e2 | ||
|
|
c43dc3ee9e | ||
|
|
71f6c8e852 | ||
|
|
d23eda245f | ||
|
|
4922c46e7b | ||
|
|
a382a049c6 | ||
|
|
db813d69bd | ||
|
|
9dacee38d3 | ||
|
|
6510d79217 | ||
|
|
579e9ba598 | ||
|
|
6877f818e1 | ||
|
|
0913dba0ee | ||
|
|
961d45b607 | ||
|
|
d11010e6d4 | ||
|
|
17d10c3c37 | ||
|
|
aad3eca303 | ||
|
|
5f766ae06b | ||
|
|
8ba8b87690 | ||
|
|
3faf265c46 | ||
|
|
7c01ab8f32 | ||
|
|
4376f39504 | ||
|
|
8b76de6650 | ||
|
|
575a54b766 | ||
|
|
517ce64fda | ||
|
|
e1c071a596 | ||
|
|
704ae9863f | ||
|
|
fd1d53931a | ||
|
|
8fcfc3a7ed | ||
|
|
c55a0e4600 | ||
|
|
73fa80fc52 | ||
|
|
0954bd8b5f | ||
|
|
cf566e3512 | ||
|
|
eca24d196e | ||
|
|
7f22566ecd | ||
|
|
c84efa72a4 | ||
|
|
866f49ec47 | ||
|
|
e40344fe96 | ||
|
|
ffdbaa5680 | ||
|
|
6f19c8141a | ||
|
|
082f0c43ee | ||
|
|
c8a9576d63 | ||
|
|
a5bd3841dd | ||
|
|
352cf06944 | ||
|
|
c4a326cd48 | ||
|
|
c742b3fff8 | ||
|
|
100328a031 | ||
|
|
e21429167b | ||
|
|
8d7c0005e4 | ||
|
|
f5155c4fed | ||
|
|
f6d994d810 | ||
|
|
2757fb46f1 | ||
|
|
e17e4dc869 | ||
|
|
75b6116057 | ||
|
|
cbeef0e453 | ||
|
|
7547b6e0ab | ||
|
|
e61dc3534f | ||
|
|
92a27cb64a | ||
|
|
db2b8a2f9b | ||
|
|
561d2ffd52 | ||
|
|
6b9cbb9612 | ||
|
|
27e0a541c7 | ||
|
|
16907801b7 | ||
|
|
7c1e1e6240 | ||
|
|
58b86e556a | ||
|
|
f66300a394 | ||
|
|
25bd7430fc |
No files matched your search
@@ -0,0 +1,120 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
|
|
||||||
|
$is_use_apache = (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false);
|
||||||
|
|
||||||
|
$is_use_nginx = (stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false);
|
||||||
|
|
||||||
|
$is_use_iis = !$is_use_apache && (stripos($_SERVER['SERVER_SOFTWARE'], 'microsoft-iis') !== false);
|
||||||
|
|
||||||
|
$is_write_file = false;
|
||||||
|
$is_apache_need_rules = false;
|
||||||
|
$is_apache_rewrite = false;
|
||||||
|
|
||||||
|
if( !($is_use_apache || $is_use_nginx || $is_use_iis) ){ // 셋다 아니면 다 출력시킨다.
|
||||||
|
$is_use_apache = true;
|
||||||
|
$is_use_nginx = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $is_use_nginx ){
|
||||||
|
$is_write_file = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $is_use_apache ){
|
||||||
|
$is_write_file = (is_writable(G5_PATH) || (file_exists(G5_PATH.'/.htaccess') && is_writable(G5_PATH.'/.htaccess'))) ? true : false;
|
||||||
|
$is_apache_need_rules = check_need_rewrite_rules();
|
||||||
|
$is_apache_rewrite = function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules());
|
||||||
|
}
|
||||||
|
|
||||||
|
$get_path_url = parse_url( G5_URL );
|
||||||
|
|
||||||
|
$base_path = isset($get_path_url['path']) ? $get_path_url['path'].'/' : '/';
|
||||||
|
|
||||||
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/remodal/remodal.css">', 11);
|
||||||
|
add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/remodal/remodal-default-theme.css">', 12);
|
||||||
|
add_javascript('<script src="'.G5_JS_URL.'/remodal/remodal.js"></script>', 10);
|
||||||
|
?>
|
||||||
|
<section id="anc_cf_url">
|
||||||
|
<h2 class="h2_frm">짧은 주소 설정</h2>
|
||||||
|
<?php echo $pg_anchor ?>
|
||||||
|
<div class="local_desc02 local_desc">
|
||||||
|
<p>
|
||||||
|
게시판과 컨텐츠 페이지에 짧은 URL 을 사용합니다. <a href="https://sir.kr/manual/g5/286" class="btn btn_03" target="_blank" style="margin-left:10px">설정 관련 메뉴얼 보기</a>
|
||||||
|
<?php if( $is_use_apache && ! $is_use_nginx ){ ?>
|
||||||
|
<?php if( ! $is_apache_rewrite ){ ?>
|
||||||
|
<br><strong>Apache 서버인 경우 rewrite_module 이 비활성화 되어 있으면 짧은 주소를 사용할수 없습니다.</strong>
|
||||||
|
<?php } else if( ! $is_write_file && $is_apache_need_rules ) { // apache인 경우 ?>
|
||||||
|
<br><strong>짧은 주소 사용시 아래 Apache 설정 코드를 참고하여 설정해 주세요.</strong>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="server_config_views">
|
||||||
|
<?php if ( $is_use_apache ){ ?>
|
||||||
|
<button type="button" data-remodal-target="modal_apache" class="btn btn_03">Apache 설정 코드 보기</button>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if ( $is_use_nginx ) { ?>
|
||||||
|
<button type="button" data-remodal-target="modal_nginx" class="btn btn_03">Nginx 설정 코드 보기</button>
|
||||||
|
<?php } ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
|
<table>
|
||||||
|
<caption>짧은주소 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col class="grid_4">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<?php
|
||||||
|
$short_url_arrs = array(
|
||||||
|
'0'=>array('label'=>'사용안함', 'url'=>G5_URL.'/board.php?bo_table=free&wr_id=123'),
|
||||||
|
'1'=>array('label'=>'숫자', 'url'=>G5_URL.'/free/123'),
|
||||||
|
'2'=>array('label'=>'글 이름', 'url'=>G5_URL.'/free/안녕하세요/'),
|
||||||
|
);
|
||||||
|
foreach($short_url_arrs as $k=>$v){
|
||||||
|
$checked = ((int) $config['cf_bbs_rewrite'] === (int) $k) ? 'checked' : '';
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><input name="cf_bbs_rewrite" id="cf_bbs_rewrite_<?php echo $k; ?>" type="radio" value="<?php echo $k; ?>" <?php echo $checked;?> ><label for="cf_bbs_rewrite_<?php echo $k; ?>" class="rules_label"><?php echo $v['label']; ?></label></td>
|
||||||
|
<td><?php echo $v['url']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php } //end foreach ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="server_rewrite_info">
|
||||||
|
<div class="is_rewrite remodal" data-remodal-id="modal_apache" role="dialog" aria-labelledby="modalApache" aria-describedby="modal1Desc">
|
||||||
|
|
||||||
|
<button type="button" class="connect-close" data-remodal-action="close">
|
||||||
|
<i class="fa fa-close"></i>
|
||||||
|
<span class="txt">닫기</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<h4 class="copy_title">.htaccess 파일에 적용할 코드입니다.
|
||||||
|
<?php if( ! $is_apache_rewrite ) { ?>
|
||||||
|
<br><span class="info-warning">Apache 서버인 경우 rewrite_module 이 비활성화 되어 있으면 짧은 주소를 사용할수 없습니다.</span>
|
||||||
|
<?php } else if ( ! $is_write_file && $is_apache_need_rules ) { ?>
|
||||||
|
<br><span class="info-warning">자동으로 .htaccess 파일을 수정 할수 있는 권한이 없습니다.<br>.htaccess 파일이 없다면 생성 후에, 아래 코드가 없으면 코드를 복사하여 붙여넣기 해 주세요.</span>
|
||||||
|
<?php } else if ( ! $is_apache_need_rules ){ ?>
|
||||||
|
<br><span class="info-success">정상적으로 적용된 상태입니다.</span>
|
||||||
|
<?php } ?>
|
||||||
|
</h4>
|
||||||
|
<textarea readonly="readonly" rows="10"><?php echo get_mod_rewrite_rules(true); ?></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="is_rewrite remodal" data-remodal-id="modal_nginx" role="dialog" aria-labelledby="modalNginx" aria-describedby="modal2Desc">
|
||||||
|
|
||||||
|
<button type="button" class="connect-close" data-remodal-action="close">
|
||||||
|
<i class="fa fa-close"></i>
|
||||||
|
<span class="txt">닫기</span>
|
||||||
|
</button>
|
||||||
|
<h4 class="copy_title">아래 코드를 복사하여 nginx 설정 파일에 적용해 주세요.</h4>
|
||||||
|
<textarea readonly="readonly" rows="10"><?php echo get_nginx_conf_rules(true); ?></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit;
|
if (!defined('_GNUBOARD_')) exit;
|
||||||
|
|
||||||
$begin_time = get_microtime();
|
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
||||||
|
|
||||||
$files = glob(G5_ADMIN_PATH.'/css/admin_extend_*');
|
$files = glob(G5_ADMIN_PATH.'/css/admin_extend_*');
|
||||||
if (is_array($files)) {
|
if (is_array($files)) {
|
||||||
@@ -101,7 +101,7 @@ function imageview(id, w, h)
|
|||||||
<h1><?php echo $config['cf_title'] ?></h1>
|
<h1><?php echo $config['cf_title'] ?></h1>
|
||||||
<div id="hd_top">
|
<div id="hd_top">
|
||||||
<button type="button" id="btn_gnb" class="btn_gnb_close <?php echo $adm_menu_cookie['btn_gnb'];?>">메뉴</button>
|
<button type="button" id="btn_gnb" class="btn_gnb_close <?php echo $adm_menu_cookie['btn_gnb'];?>">메뉴</button>
|
||||||
<div id="logo"><a href="<?php echo G5_ADMIN_URL ?>"><img src="<?php echo G5_ADMIN_URL ?>/img/logo.png" alt="<?php echo $config['cf_title'] ?> 관리자"></a></div>
|
<div id="logo"><a href="<?php echo correct_goto_url(G5_ADMIN_URL); ?>"><img src="<?php echo G5_ADMIN_URL ?>/img/logo.png" alt="<?php echo $config['cf_title'] ?> 관리자"></a></div>
|
||||||
|
|
||||||
<div id="tnb">
|
<div id="tnb">
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
+44
-3
@@ -379,6 +379,47 @@ function get_sanitize_input($s, $is_html=false){
|
|||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function check_log_folder($log_path){
|
||||||
|
|
||||||
|
if( is_writable($log_path) ){
|
||||||
|
|
||||||
|
// 아파치 서버인 경우 웹에서 해당 폴더 접근 막기
|
||||||
|
$htaccess_file = $log_path.'/.htaccess';
|
||||||
|
if ( !file_exists( $htaccess_file ) ) {
|
||||||
|
if ( $handle = @fopen( $htaccess_file, 'w' ) ) {
|
||||||
|
fwrite( $handle, 'Order deny,allow' . "\n" );
|
||||||
|
fwrite( $handle, 'Deny from all' . "\n" );
|
||||||
|
fclose( $handle );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 아파치 서버인 경우 해당 디렉토리 파일 목록 안보이게 하기
|
||||||
|
$index_file = $log_path . '/index.php';
|
||||||
|
if ( !file_exists( $index_file ) ) {
|
||||||
|
if ( $handle = @fopen( $index_file, 'w' ) ) {
|
||||||
|
fwrite( $handle, '' );
|
||||||
|
fclose( $handle );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// txt 파일과 log 파일을 조회하여 30일이 지난 파일은 삭제합니다.
|
||||||
|
$txt_files = glob($log_path.'/*.txt');
|
||||||
|
$log_files = glob($log_path.'/*.log');
|
||||||
|
|
||||||
|
$del_files = array_merge($txt_files, $log_files);
|
||||||
|
|
||||||
|
if( $del_files && is_array($del_files) ){
|
||||||
|
foreach ($del_files as $del_file) {
|
||||||
|
$filetime = filemtime($del_file);
|
||||||
|
// 30일이 지난 파일을 삭제
|
||||||
|
if($filetime && $filetime < (G5_SERVER_TIME - 2592000)) {
|
||||||
|
@unlink($del_file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// POST로 넘어온 토큰과 세션에 저장된 토큰 비교
|
// POST로 넘어온 토큰과 세션에 저장된 토큰 비교
|
||||||
function check_admin_token()
|
function check_admin_token()
|
||||||
{
|
{
|
||||||
@@ -435,8 +476,8 @@ function admin_check_xss_params($params){
|
|||||||
if ( empty($value) ) continue;
|
if ( empty($value) ) continue;
|
||||||
|
|
||||||
if( is_array($value) ){
|
if( is_array($value) ){
|
||||||
admin_check_xss_params($params);
|
admin_check_xss_params($value);
|
||||||
} else if ( preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && preg_match('/script.*?\/script/ius', $value) ){
|
} else if ( preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/[onload|onerror]=.*/ius', $value)) ){
|
||||||
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.');
|
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
@@ -448,7 +489,7 @@ function admin_check_xss_params($params){
|
|||||||
// 접근 권한 검사
|
// 접근 권한 검사
|
||||||
if (!$member['mb_id'])
|
if (!$member['mb_id'])
|
||||||
{
|
{
|
||||||
alert('로그인 하십시오.', G5_BBS_URL.'/login.php?url=' . urlencode(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')
|
||||||
{
|
{
|
||||||
|
|||||||
+49
-48
@@ -38,43 +38,43 @@ $sql = " insert into {$g5['board_table']}
|
|||||||
bo_subject = '$target_subject',
|
bo_subject = '$target_subject',
|
||||||
bo_device = '{$board['bo_device']}',
|
bo_device = '{$board['bo_device']}',
|
||||||
bo_admin = '{$board['bo_admin']}',
|
bo_admin = '{$board['bo_admin']}',
|
||||||
bo_list_level = '{$board[bo_list_level]}',
|
bo_list_level = '{$board['bo_list_level']}',
|
||||||
bo_read_level = '{$board[bo_read_level]}',
|
bo_read_level = '{$board['bo_read_level']}',
|
||||||
bo_write_level = '{$board[bo_write_level]}',
|
bo_write_level = '{$board['bo_write_level']}',
|
||||||
bo_reply_level = '{$board[bo_reply_level]}',
|
bo_reply_level = '{$board['bo_reply_level']}',
|
||||||
bo_comment_level = '{$board[bo_comment_level]}',
|
bo_comment_level = '{$board['bo_comment_level']}',
|
||||||
bo_upload_level = '{$board[bo_upload_level]}',
|
bo_upload_level = '{$board['bo_upload_level']}',
|
||||||
bo_download_level = '{$board[bo_download_level]}',
|
bo_download_level = '{$board['bo_download_level']}',
|
||||||
bo_html_level = '{$board[bo_html_level]}',
|
bo_html_level = '{$board['bo_html_level']}',
|
||||||
bo_link_level = '{$board[bo_link_level]}',
|
bo_link_level = '{$board['bo_link_level']}',
|
||||||
bo_count_modify = '{$board[bo_count_modify]}',
|
bo_count_modify = '{$board['bo_count_modify']}',
|
||||||
bo_count_delete = '{$board[bo_count_delete]}',
|
bo_count_delete = '{$board['bo_count_delete']}',
|
||||||
bo_read_point = '{$board[bo_read_point]}',
|
bo_read_point = '{$board['bo_read_point']}',
|
||||||
bo_write_point = '{$board[bo_write_point]}',
|
bo_write_point = '{$board['bo_write_point']}',
|
||||||
bo_comment_point = '{$board[bo_comment_point]}',
|
bo_comment_point = '{$board['bo_comment_point']}',
|
||||||
bo_download_point = '{$board[bo_download_point]}',
|
bo_download_point = '{$board['bo_download_point']}',
|
||||||
bo_use_category = '{$board[bo_use_category]}',
|
bo_use_category = '{$board['bo_use_category']}',
|
||||||
bo_category_list = '{$board['bo_category_list']}',
|
bo_category_list = '{$board['bo_category_list']}',
|
||||||
bo_use_sideview = '{$board[bo_use_sideview]}',
|
bo_use_sideview = '{$board['bo_use_sideview']}',
|
||||||
bo_use_file_content = '{$board[bo_use_file_content]}',
|
bo_use_file_content = '{$board['bo_use_file_content']}',
|
||||||
bo_use_secret = '{$board[bo_use_secret]}',
|
bo_use_secret = '{$board['bo_use_secret']}',
|
||||||
bo_use_dhtml_editor = '{$board[bo_use_dhtml_editor]}',
|
bo_use_dhtml_editor = '{$board['bo_use_dhtml_editor']}',
|
||||||
bo_use_rss_view = '{$board[bo_use_rss_view]}',
|
bo_use_rss_view = '{$board['bo_use_rss_view']}',
|
||||||
bo_use_good = '{$board[bo_use_good]}',
|
bo_use_good = '{$board['bo_use_good']}',
|
||||||
bo_use_nogood = '{$board[bo_use_nogood]}',
|
bo_use_nogood = '{$board['bo_use_nogood']}',
|
||||||
bo_use_name = '{$board[bo_use_name]}',
|
bo_use_name = '{$board['bo_use_name']}',
|
||||||
bo_use_signature = '{$board[bo_use_signature]}',
|
bo_use_signature = '{$board['bo_use_signature']}',
|
||||||
bo_use_ip_view = '{$board[bo_use_ip_view]}',
|
bo_use_ip_view = '{$board['bo_use_ip_view']}',
|
||||||
bo_use_list_view = '{$board['bo_use_list_view']}',
|
bo_use_list_view = '{$board['bo_use_list_view']}',
|
||||||
bo_use_list_content = '{$board[bo_use_list_content]}',
|
bo_use_list_content = '{$board['bo_use_list_content']}',
|
||||||
bo_table_width = '{$board[bo_table_width]}',
|
bo_table_width = '{$board['bo_table_width']}',
|
||||||
bo_subject_len = '{$board[bo_subject_len]}',
|
bo_subject_len = '{$board['bo_subject_len']}',
|
||||||
bo_mobile_subject_len = '{$board[bo_mobile_subject_len]}',
|
bo_mobile_subject_len = '{$board['bo_mobile_subject_len']}',
|
||||||
bo_page_rows = '{$board[bo_page_rows]}',
|
bo_page_rows = '{$board['bo_page_rows']}',
|
||||||
bo_mobile_page_rows = '{$board[bo_mobile_page_rows]}',
|
bo_mobile_page_rows = '{$board['bo_mobile_page_rows']}',
|
||||||
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 = '{$board['bo_skin']}',
|
bo_skin = '{$board['bo_skin']}',
|
||||||
bo_mobile_skin = '{$board['bo_mobile_skin']}',
|
bo_mobile_skin = '{$board['bo_mobile_skin']}',
|
||||||
bo_include_head = '{$board['bo_include_head']}',
|
bo_include_head = '{$board['bo_include_head']}',
|
||||||
@@ -84,20 +84,21 @@ $sql = " insert into {$g5['board_table']}
|
|||||||
bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."',
|
bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."',
|
||||||
bo_mobile_content_tail = '".addslashes($board['bo_mobile_content_tail'])."',
|
bo_mobile_content_tail = '".addslashes($board['bo_mobile_content_tail'])."',
|
||||||
bo_insert_content = '".addslashes($board['bo_insert_content'])."',
|
bo_insert_content = '".addslashes($board['bo_insert_content'])."',
|
||||||
bo_gallery_cols = '{$board[bo_gallery_cols]}',
|
bo_gallery_cols = '{$board['bo_gallery_cols']}',
|
||||||
bo_gallery_width = '{$board[bo_gallery_width]}',
|
bo_gallery_width = '{$board['bo_gallery_width']}',
|
||||||
bo_gallery_height = '{$board[bo_gallery_height]}',
|
bo_gallery_height = '{$board['bo_gallery_height']}',
|
||||||
bo_mobile_gallery_width = '{$board[bo_mobile_gallery_width]}',
|
bo_mobile_gallery_width = '{$board['bo_mobile_gallery_width']}',
|
||||||
bo_mobile_gallery_height = '{$board[bo_mobile_gallery_height]}',
|
bo_mobile_gallery_height = '{$board['bo_mobile_gallery_height']}',
|
||||||
bo_upload_size = '{$board[bo_upload_size]}',
|
bo_upload_size = '{$board['bo_upload_size']}',
|
||||||
bo_reply_order = '{$board[bo_reply_order]}',
|
bo_reply_order = '{$board['bo_reply_order']}',
|
||||||
bo_use_search = '{$board[bo_use_search]}',
|
bo_use_search = '{$board['bo_use_search']}',
|
||||||
bo_order = '{$board[bo_order]}',
|
bo_order = '{$board['bo_order']}',
|
||||||
bo_notice = '{$board['bo_notice']}',
|
bo_notice = '{$board['bo_notice']}',
|
||||||
bo_upload_count = '{$board[bo_upload_count]}',
|
bo_upload_count = '{$board['bo_upload_count']}',
|
||||||
bo_use_email = '{$board[bo_use_email]}',
|
bo_use_email = '{$board['bo_use_email']}',
|
||||||
bo_use_cert = '{$board[bo_use_cert]}',
|
bo_use_cert = '{$board['bo_use_cert']}',
|
||||||
bo_use_sns = '{$board[bo_use_sns]}',
|
bo_use_sns = '{$board['bo_use_sns']}',
|
||||||
|
bo_use_captcha = '{$board['bo_use_captcha']}',
|
||||||
bo_sort_field = '{$board['bo_sort_field']}',
|
bo_sort_field = '{$board['bo_sort_field']}',
|
||||||
bo_1_subj = '".addslashes($board['bo_1_subj'])."',
|
bo_1_subj = '".addslashes($board['bo_1_subj'])."',
|
||||||
bo_2_subj = '".addslashes($board['bo_2_subj'])."',
|
bo_2_subj = '".addslashes($board['bo_2_subj'])."',
|
||||||
|
|||||||
+8
-8
@@ -185,7 +185,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<?php if ($w == '') { ?>
|
<?php if ($w == '') { ?>
|
||||||
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
|
영문자, 숫자, _ 만 가능 (공백없이 20자 이내)
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $board['bo_table'] ?>" class="btn_frmline">게시판 바로가기</a>
|
<a href="<?php echo get_pretty_url($board['bo_table']) ?>" class="btn_frmline">게시판 바로가기</a>
|
||||||
<a href="./board_list.php?<?php echo $qstr;?>" class="btn_frmline">목록으로</a>
|
<a href="./board_list.php?<?php echo $qstr;?>" class="btn_frmline">목록으로</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
@@ -869,7 +869,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_content_head">상단 내용</label></th>
|
<th scope="row"><label for="bo_content_head">상단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("bo_content_head", get_text($board['bo_content_head'], 0)); ?>
|
<?php echo editor_html("bo_content_head", get_text(html_purifier($board['bo_content_head']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_content_head" value="1" id="chk_grp_content_head">
|
<input type="checkbox" name="chk_grp_content_head" value="1" id="chk_grp_content_head">
|
||||||
@@ -881,7 +881,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_content_tail">하단 내용</label></th>
|
<th scope="row"><label for="bo_content_tail">하단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("bo_content_tail", get_text($board['bo_content_tail'], 0)); ?>
|
<?php echo editor_html("bo_content_tail", get_text(html_purifier($board['bo_content_tail']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_content_tail" value="1" id="chk_grp_content_tail">
|
<input type="checkbox" name="chk_grp_content_tail" value="1" id="chk_grp_content_tail">
|
||||||
@@ -893,7 +893,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_mobile_content_head">모바일 상단 내용</label></th>
|
<th scope="row"><label for="bo_mobile_content_head">모바일 상단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("bo_mobile_content_head", get_text($board['bo_mobile_content_head'], 0)); ?>
|
<?php echo editor_html("bo_mobile_content_head", get_text(html_purifier($board['bo_mobile_content_head']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_mobile_content_head" value="1" id="chk_grp_mobile_content_head">
|
<input type="checkbox" name="chk_grp_mobile_content_head" value="1" id="chk_grp_mobile_content_head">
|
||||||
@@ -905,7 +905,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_mobile_content_tail">모바일 하단 내용</label></th>
|
<th scope="row"><label for="bo_mobile_content_tail">모바일 하단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("bo_mobile_content_tail", get_text($board['bo_mobile_content_tail'], 0)); ?>
|
<?php echo editor_html("bo_mobile_content_tail", get_text(html_purifier($board['bo_mobile_content_tail']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_mobile_content_tail" value="1" id="chk_grp_mobile_content_tail">
|
<input type="checkbox" name="chk_grp_mobile_content_tail" value="1" id="chk_grp_mobile_content_tail">
|
||||||
@@ -918,7 +918,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
|
<th scope="row"><label for="bo_insert_content">글쓰기 기본 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea id="bo_insert_content" name="bo_insert_content" rows="5"><?php echo $board['bo_insert_content'] ?></textarea>
|
<textarea id="bo_insert_content" name="bo_insert_content" rows="5"><?php echo html_purifier($board['bo_insert_content']); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_insert_content" value="1" id="chk_grp_insert_content">
|
<input type="checkbox" name="chk_grp_insert_content" value="1" id="chk_grp_insert_content">
|
||||||
@@ -1242,7 +1242,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<label for="bo_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
<label for="bo_<?php echo $i ?>_subj">여분필드 <?php echo $i ?> 제목</label>
|
||||||
<input type="text" name="bo_<?php echo $i ?>_subj" id="bo_<?php echo $i ?>_subj" value="<?php echo get_text($board['bo_'.$i.'_subj']) ?>" class="frm_input">
|
<input type="text" name="bo_<?php echo $i ?>_subj" id="bo_<?php echo $i ?>_subj" value="<?php echo get_text($board['bo_'.$i.'_subj']) ?>" class="frm_input">
|
||||||
<label for="bo_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
<label for="bo_<?php echo $i ?>">여분필드 <?php echo $i ?> 값</label>
|
||||||
<input type="text" name="bo_<?php echo $i ?>" value="<?php echo get_text($board['bo_'.$i]) ?>" id="bo_<?php echo $i ?>" class="frm_input">
|
<input type="text" name="bo_<?php echo $i ?>" value="<?php echo get_text($board['bo_'.$i]) ?>" id="bo_<?php echo $i ?>" class="frm_input extra-value-input">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grpset">
|
<td class="td_grpset">
|
||||||
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
|
<input type="checkbox" name="chk_grp_<?php echo $i ?>" value="1" id="chk_grp_<?php echo $i ?>">
|
||||||
@@ -1261,7 +1261,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<div class="btn_fixed_top">
|
<div class="btn_fixed_top">
|
||||||
<?php if( $bo_table && $w ){ ?>
|
<?php if( $bo_table && $w ){ ?>
|
||||||
<a href="./board_copy.php?bo_table=<?php echo $board['bo_table']; ?>" id="board_copy" target="win_board_copy" class=" btn_02 btn">게시판복사</a>
|
<a href="./board_copy.php?bo_table=<?php echo $board['bo_table']; ?>" id="board_copy" target="win_board_copy" class=" btn_02 btn">게시판복사</a>
|
||||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $board['bo_table']; ?>" class=" btn_02 btn">게시판 바로가기</a>
|
<a href="<?php echo get_pretty_url($board['bo_table']); ?>" class=" btn_02 btn">게시판 바로가기</a>
|
||||||
<a href="./board_thumbnail_delete.php?bo_table=<?php echo $board['bo_table'].'&'.$qstr;?>" onclick="return delete_confirm2('게시판 썸네일 파일을 삭제하시겠습니까?');" class="btn_02 btn">게시판 썸네일 삭제</a>
|
<a href="./board_thumbnail_delete.php?bo_table=<?php echo $board['bo_table'].'&'.$qstr;?>" onclick="return delete_confirm2('게시판 썸네일 파일을 삭제하시겠습니까?');" class="btn_02 btn">게시판 썸네일 삭제</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<input type="submit" value="확인" class="btn_submi btn btn_01" accesskey="s">
|
<input type="submit" value="확인" class="btn_submi btn btn_01" accesskey="s">
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ auth_check($auth[$sub_menu], 'w');
|
|||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
if (!$_POST['gr_id']) { alert('그룹 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']) : '';
|
||||||
|
|
||||||
|
if (!$gr_id) { alert('그룹 ID는 반드시 선택하세요.'); }
|
||||||
if (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }
|
if (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }
|
||||||
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); }
|
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); }
|
||||||
if (!$_POST['bo_subject']) { alert('게시판 제목을 입력하세요.'); }
|
if (!$_POST['bo_subject']) { alert('게시판 제목을 입력하세요.'); }
|
||||||
@@ -75,11 +78,11 @@ $str_bo_category_list = isset($_POST['bo_category_list']) ? preg_replace("/[\<\>
|
|||||||
$_POST['bo_subject'] = strip_tags($_POST['bo_subject']);
|
$_POST['bo_subject'] = strip_tags($_POST['bo_subject']);
|
||||||
$_POST['bo_mobile_subject'] = strip_tags($_POST['bo_mobile_subject']);
|
$_POST['bo_mobile_subject'] = strip_tags($_POST['bo_mobile_subject']);
|
||||||
|
|
||||||
$sql_common = " gr_id = '{$_POST['gr_id']}',
|
$sql_common = " gr_id = '{$gr_id}',
|
||||||
bo_subject = '{$_POST['bo_subject']}',
|
bo_subject = '{$_POST['bo_subject']}',
|
||||||
bo_mobile_subject = '{$_POST['bo_mobile_subject']}',
|
bo_mobile_subject = '{$_POST['bo_mobile_subject']}',
|
||||||
bo_device = '{$_POST['bo_device']}',
|
bo_device = '{$_POST['bo_device']}',
|
||||||
bo_admin = '{$_POST['bo_admin']}',
|
bo_admin = '{$bo_admin}',
|
||||||
bo_list_level = '{$_POST['bo_list_level']}',
|
bo_list_level = '{$_POST['bo_list_level']}',
|
||||||
bo_read_level = '{$_POST['bo_read_level']}',
|
bo_read_level = '{$_POST['bo_read_level']}',
|
||||||
bo_write_level = '{$_POST['bo_write_level']}',
|
bo_write_level = '{$_POST['bo_write_level']}',
|
||||||
@@ -189,6 +192,8 @@ if ($w == '') {
|
|||||||
|
|
||||||
// 게시판 테이블 생성
|
// 게시판 테이블 생성
|
||||||
$file = file('./sql_write.sql');
|
$file = file('./sql_write.sql');
|
||||||
|
$file = get_db_create_replace($file);
|
||||||
|
|
||||||
$sql = implode($file, "\n");
|
$sql = implode($file, "\n");
|
||||||
|
|
||||||
$create_table = $g5['write_prefix'] . $bo_table;
|
$create_table = $g5['write_prefix'] . $bo_table;
|
||||||
@@ -441,5 +446,7 @@ 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);
|
||||||
|
|
||||||
goto_url("./board_form.php?w=u&bo_table={$bo_table}&{$qstr}");
|
goto_url("./board_form.php?w=u&bo_table={$bo_table}&{$qstr}");
|
||||||
?>
|
?>
|
||||||
+1
-1
@@ -131,7 +131,7 @@ $colspan = 15;
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="board_table[<?php echo $i ?>]" value="<?php echo $row['bo_table'] ?>">
|
<input type="hidden" name="board_table[<?php echo $i ?>]" value="<?php echo $row['bo_table'] ?>">
|
||||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $row['bo_table'] ?>"><?php echo $row['bo_table'] ?></a>
|
<a href="<?php echo get_pretty_url($row['bo_table']) ?>"><?php echo $row['bo_table'] ?></a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<label for="bo_skin_<?php echo $i; ?>" class="sound_only">스킨</label>
|
<label for="bo_skin_<?php echo $i; ?>" class="sound_only">스킨</label>
|
||||||
|
|||||||
+14
-12
@@ -29,19 +29,21 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$p_bo_subject = is_array($_POST['bo_subject']) ? strip_tags($_POST['bo_subject'][$k]) : '';
|
||||||
|
|
||||||
$sql = " update {$g5['board_table']}
|
$sql = " update {$g5['board_table']}
|
||||||
set gr_id = '".sql_real_escape_string($_POST['gr_id'][$k])."',
|
set gr_id = '".sql_real_escape_string(strip_tags($_POST['gr_id'][$k]))."',
|
||||||
bo_subject = '".sql_real_escape_string($_POST['bo_subject'][$k])."',
|
bo_subject = '".$p_bo_subject."',
|
||||||
bo_device = '".sql_real_escape_string($_POST['bo_device'][$k])."',
|
bo_device = '".sql_real_escape_string(strip_tags($_POST['bo_device'][$k]))."',
|
||||||
bo_skin = '".sql_real_escape_string($_POST['bo_skin'][$k])."',
|
bo_skin = '".sql_real_escape_string(strip_tags($_POST['bo_skin'][$k]))."',
|
||||||
bo_mobile_skin = '".sql_real_escape_string($_POST['bo_mobile_skin'][$k])."',
|
bo_mobile_skin = '".sql_real_escape_string(strip_tags($_POST['bo_mobile_skin'][$k]))."',
|
||||||
bo_read_point = '".sql_real_escape_string($_POST['bo_read_point'][$k])."',
|
bo_read_point = '".sql_real_escape_string(strip_tags($_POST['bo_read_point'][$k]))."',
|
||||||
bo_write_point = '".sql_real_escape_string($_POST['bo_write_point'][$k])."',
|
bo_write_point = '".sql_real_escape_string(strip_tags($_POST['bo_write_point'][$k]))."',
|
||||||
bo_comment_point = '".sql_real_escape_string($_POST['bo_comment_point'][$k])."',
|
bo_comment_point = '".sql_real_escape_string(strip_tags($_POST['bo_comment_point'][$k]))."',
|
||||||
bo_download_point = '".sql_real_escape_string($_POST['bo_download_point'][$k])."',
|
bo_download_point = '".sql_real_escape_string(strip_tags($_POST['bo_download_point'][$k]))."',
|
||||||
bo_use_search = '".sql_real_escape_string($_POST['bo_use_search'][$k])."',
|
bo_use_search = '".sql_real_escape_string(strip_tags($_POST['bo_use_search'][$k]))."',
|
||||||
bo_use_sns = '".sql_real_escape_string($_POST['bo_use_sns'][$k])."',
|
bo_use_sns = '".sql_real_escape_string(strip_tags($_POST['bo_use_sns'][$k]))."',
|
||||||
bo_order = '".sql_real_escape_string($_POST['bo_order'][$k])."'
|
bo_order = '".sql_real_escape_string(strip_tags($_POST['bo_order'][$k]))."'
|
||||||
where bo_table = '".sql_real_escape_string($_POST['board_table'][$k])."' ";
|
where bo_table = '".sql_real_escape_string($_POST['board_table'][$k])."' ";
|
||||||
|
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ $colspan = 10;
|
|||||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['gr_subject'] ?> 그룹</label>
|
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['gr_subject'] ?> 그룹</label>
|
||||||
<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="<?php echo G5_BBS_URL ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_id'] ?></a></td>
|
<td class="td_left"><a href="<?php echo get_pretty_url(G5_GROUP_DIR, $row['gr_id']); ?>"><?php echo $row['gr_id'] ?></a></td>
|
||||||
<td class="td_input">
|
<td class="td_input">
|
||||||
<label for="gr_subject_<?php echo $i; ?>" class="sound_only">그룹제목</label>
|
<label for="gr_subject_<?php echo $i; ?>" class="sound_only">그룹제목</label>
|
||||||
<input type="text" name="gr_subject[<?php echo $i ?>]" value="<?php echo get_text($row['gr_subject']) ?>" id="gr_subject_<?php echo $i ?>" class="tbl_input">
|
<input type="text" name="gr_subject[<?php echo $i ?>]" value="<?php echo get_text($row['gr_subject']) ?>" id="gr_subject_<?php echo $i ?>" class="tbl_input">
|
||||||
|
|||||||
@@ -18,19 +18,20 @@ if(!$count)
|
|||||||
for ($i=0; $i<$count; $i++)
|
for ($i=0; $i<$count; $i++)
|
||||||
{
|
{
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
$gr_id = $_POST['group_id'][$k];
|
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $_POST['group_id'][$k]);
|
||||||
$gr_subject = strip_tags($_POST['gr_subject'][$k]);
|
$gr_subject = is_array($_POST['gr_subject']) ? strip_tags($_POST['gr_subject'][$k]) : '';
|
||||||
|
$gr_admin = is_array($_POST['gr_admin']) ? strip_tags($_POST['gr_admin'][$k]) : '';
|
||||||
|
|
||||||
if($_POST['act_button'] == '선택수정') {
|
if($_POST['act_button'] == '선택수정') {
|
||||||
$sql = " update {$g5['group_table']}
|
$sql = " update {$g5['group_table']}
|
||||||
set gr_subject = '{$gr_subject}',
|
set gr_subject = '{$gr_subject}',
|
||||||
gr_device = '{$_POST['gr_device'][$k]}',
|
gr_device = '".sql_real_escape_string($_POST['gr_device'][$k])."',
|
||||||
gr_admin = '{$_POST['gr_admin'][$k]}',
|
gr_admin = '".sql_real_escape_string($_POST['gr_admin'][$k])."',
|
||||||
gr_use_access = '{$_POST['gr_use_access'][$k]}',
|
gr_use_access = '".sql_real_escape_string($_POST['gr_use_access'][$k])."',
|
||||||
gr_order = '{$_POST['gr_order'][$k]}'
|
gr_order = '".sql_real_escape_string($_POST['gr_order'][$k])."'
|
||||||
where gr_id = '{$gr_id}' ";
|
where gr_id = '{$gr_id}' ";
|
||||||
if ($is_admin != 'super')
|
if ($is_admin != 'super')
|
||||||
$sql .= " and gr_admin = '{$_POST['gr_admin'][$k]}' ";
|
$sql .= " and gr_admin = '{$gr_admin}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
} else if($_POST['act_button'] == '선택삭제') {
|
} else if($_POST['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' ");
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ $colspan = 4;
|
|||||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['gr_subject'] ?> 그룹</label>
|
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $row['gr_subject'] ?> 그룹</label>
|
||||||
<input type="checkbox" name="chk[]" value="<?php echo $row['gm_id'] ?>" id="chk_<?php echo $i ?>">
|
<input type="checkbox" name="chk[]" value="<?php echo $row['gm_id'] ?>" id="chk_<?php echo $i ?>">
|
||||||
</td>
|
</td>
|
||||||
<td class="td_grid"><a href="<?php echo G5_BBS_URL; ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo $row['gr_id'] ?></a></td>
|
<td class="td_grid"><a href="<?php echo get_pretty_url(G5_GROUP_DIR, $row['gr_id']); ?>"><?php echo $row['gr_id'] ?></a></td>
|
||||||
<td class="td_category"><?php echo $row['gr_subject'] ?></td>
|
<td class="td_category"><?php echo $row['gr_subject'] ?></td>
|
||||||
<td class="td_datetime"><?php echo $row['gm_datetime'] ?></td>
|
<td class="td_datetime"><?php echo $row['gm_datetime'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ else if ($w == 'd' || $w == 'ld')
|
|||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
for($i=0; $i<$count; $i++) {
|
for($i=0; $i<$count; $i++) {
|
||||||
$gm_id = $_POST['chk'][$i];
|
$gm_id = (int) $_POST['chk'][$i];
|
||||||
$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']) {
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ $sub_menu = "100510";
|
|||||||
include_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('사용할 수 없는 기능입니다.', G5_ADMIN_URL);
|
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||||
|
|
||||||
if ($is_admin != 'super')
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ $sub_menu = "100520";
|
|||||||
include_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('사용할 수 없는 기능입니다.', G5_ADMIN_URL);
|
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||||
|
|
||||||
if ($is_admin != 'super')
|
if ($is_admin != 'super')
|
||||||
alert('최고관리자만 접근 가능합니다.');
|
alert('최고관리자만 접근 가능합니다.');
|
||||||
|
|||||||
+46
-7
@@ -253,6 +253,24 @@ if(!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
|||||||
) ", true);
|
) ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 짧은 URL 주소를 사용 여부 필드 추가
|
||||||
|
if (!isset($config['cf_bbs_rewrite'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||||
|
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 읽지 않은 메모 수 칼럼 추가
|
||||||
|
if(!isset($member['mb_memo_cnt'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
|
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 스크랩 읽은 수 추가
|
||||||
|
if(!isset($member['mb_scrap_cnt'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
|
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`", true);
|
||||||
|
}
|
||||||
|
|
||||||
if(!$config['cf_faq_skin']) $config['cf_faq_skin'] = "basic";
|
if(!$config['cf_faq_skin']) $config['cf_faq_skin'] = "basic";
|
||||||
if(!$config['cf_mobile_faq_skin']) $config['cf_mobile_faq_skin'] = "basic";
|
if(!$config['cf_mobile_faq_skin']) $config['cf_mobile_faq_skin'] = "basic";
|
||||||
|
|
||||||
@@ -264,6 +282,7 @@ $pg_anchor = '<ul class="anchor">
|
|||||||
<li><a href="#anc_cf_board">게시판기본</a></li>
|
<li><a href="#anc_cf_board">게시판기본</a></li>
|
||||||
<li><a href="#anc_cf_join">회원가입</a></li>
|
<li><a href="#anc_cf_join">회원가입</a></li>
|
||||||
<li><a href="#anc_cf_cert">본인확인</a></li>
|
<li><a href="#anc_cf_cert">본인확인</a></li>
|
||||||
|
<li><a href="#anc_cf_url">짧은주소</a></li>
|
||||||
<li><a href="#anc_cf_mail">기본메일환경</a></li>
|
<li><a href="#anc_cf_mail">기본메일환경</a></li>
|
||||||
<li><a href="#anc_cf_article_mail">글작성메일</a></li>
|
<li><a href="#anc_cf_article_mail">글작성메일</a></li>
|
||||||
<li><a href="#anc_cf_join_mail">가입메일</a></li>
|
<li><a href="#anc_cf_join_mail">가입메일</a></li>
|
||||||
@@ -881,6 +900,9 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
include_once('_rewrite_config_form.php');
|
||||||
|
?>
|
||||||
|
|
||||||
<section id="anc_cf_mail">
|
<section id="anc_cf_mail">
|
||||||
<h2 class="h2_frm">기본 메일 환경 설정</h2>
|
<h2 class="h2_frm">기본 메일 환경 설정</h2>
|
||||||
@@ -1317,7 +1339,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
|||||||
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
|
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
|
||||||
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
|
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
|
||||||
<label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
|
<label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
|
||||||
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input" size="30">
|
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input extra-value-input" size="30">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@@ -1419,6 +1441,10 @@ if($config['cf_cert_use']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo module_exec_check($exe, 'okname');
|
echo module_exec_check($exe, 'okname');
|
||||||
|
|
||||||
|
if(is_dir(G5_OKNAME_PATH.'/log') && is_writable(G5_OKNAME_PATH.'/log') && function_exists('check_log_folder') ) {
|
||||||
|
check_log_folder(G5_OKNAME_PATH.'/log');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// kcp일 때
|
// kcp일 때
|
||||||
@@ -1436,16 +1462,29 @@ 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)) {
|
||||||
echo '<script>'.PHP_EOL;
|
|
||||||
echo 'alert("'.str_replace(G5_PATH.'/', '', G5_LGXPAY_PATH).'/lgdacom 폴더 안에 log 폴더를 생성하신 후 쓰기권한을 부여해 주십시오.\n> mkdir log\n> chmod 707 log");'.PHP_EOL;
|
if( is_writable(G5_LGXPAY_PATH.'/lgdacom/') ){
|
||||||
echo '</script>'.PHP_EOL;
|
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
|
||||||
} else {
|
@mkdir($log_path, G5_DIR_PERMISSION);
|
||||||
if(!is_writable($log_path)) {
|
@chmod($log_path, G5_DIR_PERMISSION);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!is_dir($log_path)){
|
||||||
echo '<script>'.PHP_EOL;
|
echo '<script>'.PHP_EOL;
|
||||||
echo 'alert("'.str_replace(G5_PATH.'/', '',$log_path).' 폴더에 쓰기권한을 부여해 주십시오.\n> chmod 707 log");'.PHP_EOL;
|
echo 'alert("'.str_replace(G5_PATH.'/', '', G5_LGXPAY_PATH).'/lgdacom 폴더 안에 log 폴더를 생성하신 후 쓰기권한을 부여해 주십시오.\n> mkdir log\n> chmod 707 log");'.PHP_EOL;
|
||||||
echo '</script>'.PHP_EOL;
|
echo '</script>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_dir($log_path) && is_writable($log_path)) {
|
||||||
|
if( function_exists('check_log_folder') ){
|
||||||
|
check_log_folder($log_path);
|
||||||
|
}
|
||||||
|
} else if (is_dir($log_path)) {
|
||||||
|
echo '<script>'.PHP_EOL;
|
||||||
|
echo 'alert("'.str_replace(G5_PATH.'/', '',$log_path).' 폴더에 쓰기권한을 부여해 주십시오.\n> chmod 707 log");'.PHP_EOL;
|
||||||
|
echo '</script>'.PHP_EOL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,14 @@ $cf_social_servicelist = !empty($_POST['cf_social_servicelist']) ? implode(',',
|
|||||||
|
|
||||||
$_POST['cf_title'] = strip_tags($_POST['cf_title']);
|
$_POST['cf_title'] = strip_tags($_POST['cf_title']);
|
||||||
|
|
||||||
|
$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 ){
|
||||||
|
if ( isset($_POST[$key]) && $_POST[$key] ){
|
||||||
|
$_POST[$key] = preg_replace('/[^a-z0-9_\-\.]/i', '', $_POST[$key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$sql = " update {$g5['config_table']}
|
$sql = " update {$g5['config_table']}
|
||||||
set cf_title = '{$_POST['cf_title']}',
|
set cf_title = '{$_POST['cf_title']}',
|
||||||
cf_admin = '{$_POST['cf_admin']}',
|
cf_admin = '{$_POST['cf_admin']}',
|
||||||
@@ -61,6 +69,7 @@ $sql = " update {$g5['config_table']}
|
|||||||
cf_add_meta = '{$_POST['cf_add_meta']}',
|
cf_add_meta = '{$_POST['cf_add_meta']}',
|
||||||
cf_syndi_token = '{$_POST['cf_syndi_token']}',
|
cf_syndi_token = '{$_POST['cf_syndi_token']}',
|
||||||
cf_syndi_except = '{$_POST['cf_syndi_except']}',
|
cf_syndi_except = '{$_POST['cf_syndi_except']}',
|
||||||
|
cf_bbs_rewrite = '{$_POST['cf_bbs_rewrite']}',
|
||||||
cf_member_skin = '{$_POST['cf_member_skin']}',
|
cf_member_skin = '{$_POST['cf_member_skin']}',
|
||||||
cf_use_homepage = '{$_POST['cf_use_homepage']}',
|
cf_use_homepage = '{$_POST['cf_use_homepage']}',
|
||||||
cf_req_homepage = '{$_POST['cf_req_homepage']}',
|
cf_req_homepage = '{$_POST['cf_req_homepage']}',
|
||||||
@@ -179,5 +188,13 @@ sql_query($sql);
|
|||||||
|
|
||||||
//sql_query(" OPTIMIZE TABLE `$g5[config_table]` ");
|
//sql_query(" OPTIMIZE TABLE `$g5[config_table]` ");
|
||||||
|
|
||||||
|
if( isset($_POST['cf_bbs_rewrite']) ){
|
||||||
|
g5_delete_all_cache();
|
||||||
|
}
|
||||||
|
|
||||||
|
run_event('admin_config_form_update');
|
||||||
|
|
||||||
|
update_rewrite_rules();
|
||||||
|
|
||||||
goto_url('./config_form.php', false);
|
goto_url('./config_form.php', false);
|
||||||
?>
|
?>
|
||||||
+6
-3
@@ -35,6 +35,7 @@ if(!sql_query(" select co_skin from {$g5['content_table']} limit 1 ", false)) {
|
|||||||
|
|
||||||
$html_title = "내용";
|
$html_title = "내용";
|
||||||
$g5['title'] = $html_title.' 관리';
|
$g5['title'] = $html_title.' 관리';
|
||||||
|
$readonly = '';
|
||||||
|
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
@@ -77,7 +78,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<td>
|
<td>
|
||||||
<?php echo help('20자 이내의 영문자, 숫자, _ 만 가능합니다.'); ?>
|
<?php echo help('20자 이내의 영문자, 숫자, _ 만 가능합니다.'); ?>
|
||||||
<input type="text" value="<?php echo $co['co_id']; ?>" name="co_id" id ="co_id" required <?php echo $readonly; ?> class="required <?php echo $readonly; ?> frm_input" size="20" maxlength="20">
|
<input type="text" value="<?php echo $co['co_id']; ?>" name="co_id" id ="co_id" required <?php echo $readonly; ?> class="required <?php echo $readonly; ?> frm_input" size="20" maxlength="20">
|
||||||
<?php if ($w == 'u') { ?><a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $co_id; ?>" class="btn_frmline">내용확인</a><?php } ?>
|
<?php if ($w == 'u') { ?><a href="<?php echo get_pretty_url('content', $co_id); ?>" class="btn_frmline">내용확인</a><?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -86,11 +87,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">내용</th>
|
<th scope="row">내용</th>
|
||||||
<td><?php echo editor_html('co_content', get_text($co['co_content'], 0)); ?></td>
|
<td><?php echo editor_html('co_content', get_text(html_purifier($co['co_content']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">모바일 내용</th>
|
<th scope="row">모바일 내용</th>
|
||||||
<td><?php echo editor_html('co_mobile_content', get_text($co['co_mobile_content'], 0)); ?></td>
|
<td><?php echo editor_html('co_mobile_content', get_text(html_purifier($co['co_mobile_content']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="co_skin">스킨 디렉토리<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="co_skin">스킨 디렉토리<strong class="sound_only">필수</strong></label></th>
|
||||||
@@ -104,6 +105,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<?php echo get_mobile_skin_select('content', 'co_mobile_skin', 'co_mobile_skin', $co['co_mobile_skin'], 'required'); ?>
|
<?php echo get_mobile_skin_select('content', 'co_mobile_skin', 'co_mobile_skin', $co['co_mobile_skin'], 'required'); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!--
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="co_tag_filter_use">태그 필터링 사용</label></th>
|
<th scope="row"><label for="co_tag_filter_use">태그 필터링 사용</label></th>
|
||||||
<td>
|
<td>
|
||||||
@@ -114,6 +116,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
-->
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ $co_id = preg_replace('/[^a-z0-9_]/i', '', $co_id);
|
|||||||
$co_subject = strip_tags($co_subject);
|
$co_subject = strip_tags($co_subject);
|
||||||
$co_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_head, 0, 255));
|
$co_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_head, 0, 255));
|
||||||
$co_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_tail, 0, 255));
|
$co_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($co_include_tail, 0, 255));
|
||||||
|
$co_tag_filter_use = isset($_POST['co_tag_filter_use']) ? (int) $_POST['co_tag_filter_use'] : 1;
|
||||||
|
|
||||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||||
if (($co_row['co_include_head'] !== $co_include_head || $co_row['co_include_tail'] !== $co_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
if (($co_row['co_include_head'] !== $co_include_head || $co_row['co_include_tail'] !== $co_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
||||||
@@ -70,6 +71,8 @@ if( $co_include_tail && ! is_include_path_check($co_include_tail, 1) ){
|
|||||||
$error_msg = '/data/file/ 또는 /data/editor/ 포함된 문자를 하단 파일 경로에 포함시킬수 없습니다.';
|
$error_msg = '/data/file/ 또는 /data/editor/ 포함된 문자를 하단 파일 경로에 포함시킬수 없습니다.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$co_seo_title = exist_seo_title_recursive('content', generate_seo_title($co_subject), $g5['content_table'], $co_id);
|
||||||
|
|
||||||
$sql_common = " co_include_head = '$co_include_head',
|
$sql_common = " co_include_head = '$co_include_head',
|
||||||
co_include_tail = '$co_include_tail',
|
co_include_tail = '$co_include_tail',
|
||||||
co_html = '$co_html',
|
co_html = '$co_html',
|
||||||
@@ -77,6 +80,7 @@ $sql_common = " co_include_head = '$co_include_head',
|
|||||||
co_subject = '$co_subject',
|
co_subject = '$co_subject',
|
||||||
co_content = '$co_content',
|
co_content = '$co_content',
|
||||||
co_mobile_content = '$co_mobile_content',
|
co_mobile_content = '$co_mobile_content',
|
||||||
|
co_seo_title = '$co_seo_title',
|
||||||
co_skin = '$co_skin',
|
co_skin = '$co_skin',
|
||||||
co_mobile_skin = '$co_mobile_skin' ";
|
co_mobile_skin = '$co_mobile_skin' ";
|
||||||
|
|
||||||
@@ -110,6 +114,8 @@ else if ($w == "d")
|
|||||||
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.'-');
|
||||||
|
|
||||||
if ($w == "" || $w == "u")
|
if ($w == "" || $w == "u")
|
||||||
{
|
{
|
||||||
if ($_FILES['co_himg']['name'])
|
if ($_FILES['co_himg']['name'])
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ $result = sql_query($sql);
|
|||||||
<td class="td_left"><?php echo htmlspecialchars2($row['co_subject']); ?></td>
|
<td class="td_left"><?php echo htmlspecialchars2($row['co_subject']); ?></td>
|
||||||
<td class="td_mng td_mng_l">
|
<td class="td_mng td_mng_l">
|
||||||
<a href="./contentform.php?w=u&co_id=<?php echo $row['co_id']; ?>" class="btn btn_03"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a>
|
<a href="./contentform.php?w=u&co_id=<?php echo $row['co_id']; ?>" class="btn btn_03"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a>
|
||||||
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>" class="btn btn_02"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
|
<a href="<?php echo get_pretty_url('content', $row['co_id']); ?>" class="btn btn_02"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a>
|
||||||
<a href="./contentformupdate.php?w=d&co_id=<?php echo $row['co_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a>
|
<a href="./contentformupdate.php?w=d&co_id=<?php echo $row['co_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
+17
-1
@@ -27,6 +27,7 @@ a:link, a:visited {color:#000;text-decoration:none}
|
|||||||
|
|
||||||
h2{font-size: 1.083em;font-weight: bold;margin:10px 0}
|
h2{font-size: 1.083em;font-weight: bold;margin:10px 0}
|
||||||
|
|
||||||
|
#wrapper {min-height:480px}
|
||||||
/* 레이아웃 */
|
/* 레이아웃 */
|
||||||
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#hd_top{position:fixed;top:0;left:0;width:100%;height:50px;background:#3f51b5;z-index:1000}
|
#hd_top{position:fixed;top:0;left:0;width:100%;height:50px;background:#3f51b5;z-index:1000}
|
||||||
@@ -403,6 +404,9 @@ tfoot th {}
|
|||||||
#anc_bo_extra label {display:inline-block;width:100px}
|
#anc_bo_extra label {display:inline-block;width:100px}
|
||||||
#anc_bo_extra input {margin-right:10px}
|
#anc_bo_extra input {margin-right:10px}
|
||||||
|
|
||||||
|
/* 환경설정 및 게시판 여분필드 값 input style 로빈아빠님 제안 */
|
||||||
|
#anc_bo_extra input.extra-value-input, #anc_cf_extra input.extra-value-input{width:calc(100% - 370px);}
|
||||||
|
|
||||||
/* 접속자집계 목록 */
|
/* 접속자집계 목록 */
|
||||||
.tbl_visit_list td {text-align:center}
|
.tbl_visit_list td {text-align:center}
|
||||||
.visit_bar {position:relative}
|
.visit_bar {position:relative}
|
||||||
@@ -512,8 +516,20 @@ td.td_grpset {width:160px;border-left:1px solid #e9ecee;text-align:center}
|
|||||||
/* 환경설정 */
|
/* 환경설정 */
|
||||||
.cf_cert_hide {display:none}
|
.cf_cert_hide {display:none}
|
||||||
|
|
||||||
|
.server_config_views {margin-bottom:10px}
|
||||||
|
.rules_label {margin-left:5px;vertical-align:middle}
|
||||||
|
|
||||||
|
.is_rewrite .connect-close {position:absolute;top:10px;right:10px;margin:0;padding:0;width:30px;height:30px;border:0;background:transparent;color:#383838;cursor:pointer;font-size:15px}
|
||||||
|
.is_rewrite .connect-close:hover {color:#ff5191}
|
||||||
|
.is_rewrite .connect-close .fa {margin:0 0 0 1px}
|
||||||
|
.is_rewrite .connect-close .txt {position:absolute;line-height:0;font-size:0;overflow:hidden}
|
||||||
|
.is_rewrite textarea{width:99%;min-height:260px}
|
||||||
|
.is_rewrite .copy_title{margin-top:15px;margin-bottom:10px;font-weight:bold;text-align:left}
|
||||||
|
.is_rewrite .info-success{color:#155724}
|
||||||
|
.is_rewrite .info-warning{color:#856404}
|
||||||
|
|
||||||
/* 관리권한설정 */
|
/* 관리권한설정 */
|
||||||
#add_admin fieldset {margin-top:20px}
|
#add_admin fieldset {margin-top:20px;overflow:auto;padding:2px 6px;line-height:1.4;resize:vertical}
|
||||||
|
|
||||||
/* 메일 테스트 */
|
/* 메일 테스트 */
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,81 @@ if( isset($g5['social_profile_table']) && !sql_query(" DESC {$g5['social_profile
|
|||||||
$is_check = true;
|
$is_check = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 게시판 짧은 주소
|
||||||
|
$sql = " select bo_table from {$g5['board_table']} ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
|
||||||
|
while ($row = sql_fetch_array($result)) {
|
||||||
|
$write_table = $g5['write_prefix'] . $row['bo_table']; // 게시판 테이블 전체이름
|
||||||
|
|
||||||
|
$sql = " SHOW COLUMNS FROM {$write_table} LIKE 'wr_seo_title' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
if( !$row ){
|
||||||
|
sql_query("ALTER TABLE `{$write_table}`
|
||||||
|
ADD `wr_seo_title` varchar(200) NOT NULL DEFAULT '' AFTER `wr_content`,
|
||||||
|
ADD INDEX `wr_seo_title` (`wr_seo_title`);
|
||||||
|
", false);
|
||||||
|
|
||||||
|
$is_check = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 내용 관리 짧은 주소
|
||||||
|
$sql = " SHOW COLUMNS FROM `{$g5['content_table']}` LIKE 'co_seo_title' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
if( !$row ){
|
||||||
|
sql_query("ALTER TABLE `{$g5['content_table']}`
|
||||||
|
ADD `co_seo_title` varchar(200) NOT NULL DEFAULT '' AFTER `co_content`,
|
||||||
|
ADD INDEX `co_seo_title` (`co_seo_title`);
|
||||||
|
", false);
|
||||||
|
|
||||||
|
$is_check = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql = "select * from {$g5['content_table']} limit 100 ";
|
||||||
|
$result = sql_query($sql);
|
||||||
|
|
||||||
|
while ($row = sql_fetch_array($result)) {
|
||||||
|
|
||||||
|
if( ! $row['co_seo_title']){
|
||||||
|
|
||||||
|
$co_seo_title = exist_seo_title_recursive('content', generate_seo_title($row['co_subject']), $g5['content_table'], $row['co_id']);
|
||||||
|
|
||||||
|
$sql = " update {$g5['content_table']}
|
||||||
|
set co_seo_title = '$co_seo_title'
|
||||||
|
where co_id = '{$row['co_id']}' ";
|
||||||
|
sql_query($sql);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 메모 테이블
|
||||||
|
$sql = " SHOW COLUMNS FROM `{$g5['memo_table']}` LIKE 'me_send_id' ";
|
||||||
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
if( !$row ){
|
||||||
|
sql_query("ALTER TABLE `{$g5['memo_table']}`
|
||||||
|
ADD `me_send_id` INT(11) NOT NULL DEFAULT '0',
|
||||||
|
ADD `me_type` ENUM('send','recv') NOT NULL DEFAULT 'recv',
|
||||||
|
ADD `me_send_ip` VARCHAR(100) NOT NULL DEFAULT '',
|
||||||
|
CHANGE COLUMN `me_id` `me_id` INT(11) NOT NULL AUTO_INCREMENT;
|
||||||
|
", false);
|
||||||
|
|
||||||
|
$is_check = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 읽지 않은 메모 수 칼럼
|
||||||
|
if(!isset($member['mb_memo_cnt'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||||
|
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`", true);
|
||||||
|
|
||||||
|
$is_check = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$is_check = run_replace('admin_dbupgrade', $is_check);
|
||||||
|
|
||||||
$db_upgrade_msg = $is_check ? 'DB 업그레이드가 완료되었습니다.' : '더 이상 업그레이드 할 내용이 없습니다.<br>현재 DB 업그레이드가 완료된 상태입니다.';
|
$db_upgrade_msg = $is_check ? 'DB 업그레이드가 완료되었습니다.' : '더 이상 업그레이드 할 내용이 없습니다.<br>현재 DB 업그레이드가 완료된 상태입니다.';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -54,11 +54,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">질문</th>
|
<th scope="row">질문</th>
|
||||||
<td><?php echo editor_html('fa_subject', get_text($fa['fa_subject'], 0)); ?></td>
|
<td><?php echo editor_html('fa_subject', get_text(html_purifier($fa['fa_subject']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">답변</th>
|
<th scope="row">답변</th>
|
||||||
<td><?php echo editor_html('fa_content', get_text($fa['fa_content'], 0)); ?></td>
|
<td><?php echo editor_html('fa_content', get_text(html_purifier($fa['fa_content']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -117,25 +117,25 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row">상단 내용</th>
|
<th scope="row">상단 내용</th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html('fm_head_html', get_text($fm['fm_head_html'], 0)); ?>
|
<?php echo editor_html('fm_head_html', get_text(html_purifier($fm['fm_head_html']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">하단 내용</th>
|
<th scope="row">하단 내용</th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html('fm_tail_html', get_text($fm['fm_tail_html'], 0)); ?>
|
<?php echo editor_html('fm_tail_html', get_text(html_purifier($fm['fm_tail_html']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">모바일상단 내용</th>
|
<th scope="row">모바일상단 내용</th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html('fm_mobile_head_html', get_text($fm['fm_mobile_head_html'], 0)); ?>
|
<?php echo editor_html('fm_mobile_head_html', get_text(html_purifier($fm['fm_mobile_head_html']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">모바일하단 내용</th>
|
<th scope="row">모바일하단 내용</th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html('fm_mobile_tail_html', get_text($fm['fm_mobile_tail_html'], 0)); ?>
|
<?php echo editor_html('fm_mobile_tail_html', get_text(html_purifier($fm['fm_mobile_tail_html']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
+3
-3
@@ -212,8 +212,8 @@ $colspan = 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 G5_BBS_URL ?>/board.php?bo_table=<?php echo $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 G5_BBS_URL ?>/board.php?bo_table=<?php echo $row['bo_table'] ?>&wr_id=<?php echo $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"><div><?php echo $name ?></div></td>
|
<td class="td_mbname"><div><?php echo $name ?></div></td>
|
||||||
<td class="td_datetime"><?php echo $datetime ?></td>
|
<td class="td_datetime"><?php echo $datetime ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -283,7 +283,7 @@ $colspan = 7;
|
|||||||
$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="'.G5_BBS_URL.'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$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>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
+3
-1
@@ -11,6 +11,8 @@ if ($w == 'u') {
|
|||||||
$html_title .= '수정';
|
$html_title .= '수정';
|
||||||
$readonly = ' readonly';
|
$readonly = ' readonly';
|
||||||
|
|
||||||
|
$ma_id = (int) $ma_id;
|
||||||
|
|
||||||
$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'])
|
||||||
@@ -44,7 +46,7 @@ include_once('./admin.head.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="ma_content">메일 내용<strong class="sound_only">필수</strong></label></th>
|
<th scope="row"><label for="ma_content">메일 내용<strong class="sound_only">필수</strong></label></th>
|
||||||
<td><?php echo editor_html("ma_content", get_text($ma['ma_content'], 0)); ?></td>
|
<td><?php echo editor_html("ma_content", get_text(html_purifier($ma['ma_content']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
+7
-5
@@ -9,11 +9,13 @@ auth_check($auth[$sub_menu], 'w');
|
|||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
|
$ma_id = isset($_POST['ma_id']) ? (int) $_POST['ma_id'] : 0;
|
||||||
|
$ma_subject = isset($_POST['ma_subject']) ? strip_tags($_POST['ma_subject']) : '';
|
||||||
|
|
||||||
if ($w == '')
|
if ($w == '')
|
||||||
{
|
{
|
||||||
$sql = " insert {$g5['mail_table']}
|
$sql = " insert {$g5['mail_table']}
|
||||||
set ma_id = '{$_POST['ma_id']}',
|
set ma_subject = '{$ma_subject}',
|
||||||
ma_subject = '{$_POST['ma_subject']}',
|
|
||||||
ma_content = '{$_POST['ma_content']}',
|
ma_content = '{$_POST['ma_content']}',
|
||||||
ma_time = '".G5_TIME_YMDHIS."',
|
ma_time = '".G5_TIME_YMDHIS."',
|
||||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||||
@@ -22,16 +24,16 @@ if ($w == '')
|
|||||||
else if ($w == 'u')
|
else if ($w == 'u')
|
||||||
{
|
{
|
||||||
$sql = " update {$g5['mail_table']}
|
$sql = " update {$g5['mail_table']}
|
||||||
set ma_subject = '{$_POST['ma_subject']}',
|
set ma_subject = '{$ma_subject}',
|
||||||
ma_content = '{$_POST['ma_content']}',
|
ma_content = '{$_POST['ma_content']}',
|
||||||
ma_time = '".G5_TIME_YMDHIS."',
|
ma_time = '".G5_TIME_YMDHIS."',
|
||||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
|
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
|
||||||
where ma_id = '{$_POST['ma_id']}' ";
|
where ma_id = '{$ma_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
else if ($w == 'd')
|
else if ($w == 'd')
|
||||||
{
|
{
|
||||||
$sql = " delete from {$g5['mail_table']} where ma_id = '{$_POST['ma_id']}' ";
|
$sql = " delete from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -240,9 +240,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<input type="file" name="mb_icon" id="mb_icon">
|
<input type="file" name="mb_icon" id="mb_icon">
|
||||||
<?php
|
<?php
|
||||||
$mb_dir = substr($mb['mb_id'],0,2);
|
$mb_dir = substr($mb['mb_id'],0,2);
|
||||||
$icon_file = G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
$icon_file = G5_DATA_PATH.'/member/'.$mb_dir.'/'.get_mb_icon_name($mb['mb_id']).'.gif';
|
||||||
if (file_exists($icon_file)) {
|
if (file_exists($icon_file)) {
|
||||||
$icon_url = G5_DATA_URL.'/member/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
$icon_url = str_replace(G5_DATA_PATH, G5_DATA_URL, $icon_file);
|
||||||
echo '<img src="'.$icon_url.'" alt="">';
|
echo '<img src="'.$icon_url.'" alt="">';
|
||||||
echo '<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">삭제';
|
echo '<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">삭제';
|
||||||
}
|
}
|
||||||
@@ -256,9 +256,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
<input type="file" name="mb_img" id="mb_img">
|
<input type="file" name="mb_img" id="mb_img">
|
||||||
<?php
|
<?php
|
||||||
$mb_dir = substr($mb['mb_id'],0,2);
|
$mb_dir = substr($mb['mb_id'],0,2);
|
||||||
$icon_file = G5_DATA_PATH.'/member_image/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
$icon_file = G5_DATA_PATH.'/member_image/'.$mb_dir.'/'.get_mb_icon_name($mb['mb_id']).'.gif';
|
||||||
if (file_exists($icon_file)) {
|
if (file_exists($icon_file)) {
|
||||||
$icon_url = G5_DATA_URL.'/member_image/'.$mb_dir.'/'.$mb['mb_id'].'.gif';
|
$icon_url = str_replace(G5_DATA_PATH, G5_DATA_URL, $icon_file);
|
||||||
echo '<img src="'.$icon_url.'" alt="">';
|
echo '<img src="'.$icon_url.'" alt="">';
|
||||||
echo '<input type="checkbox" id="del_mb_img" name="del_mb_img" value="1">삭제';
|
echo '<input type="checkbox" id="del_mb_img" name="del_mb_img" value="1">삭제';
|
||||||
}
|
}
|
||||||
|
|||||||
+37
-27
@@ -33,9 +33,14 @@ if($_POST['mb_certify_case'] && $_POST['mb_certify']) {
|
|||||||
$mb_zip1 = substr($_POST['mb_zip'], 0, 3);
|
$mb_zip1 = substr($_POST['mb_zip'], 0, 3);
|
||||||
$mb_zip2 = substr($_POST['mb_zip'], 3);
|
$mb_zip2 = substr($_POST['mb_zip'], 3);
|
||||||
|
|
||||||
|
$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'])) : '';
|
||||||
|
|
||||||
|
if ($msg = valid_mb_nick($mb_nick)) alert($msg, "", true, true);
|
||||||
|
|
||||||
$sql_common = " mb_name = '{$_POST['mb_name']}',
|
$sql_common = " mb_name = '{$_POST['mb_name']}',
|
||||||
mb_nick = '{$_POST['mb_nick']}',
|
mb_nick = '{$mb_nick}',
|
||||||
mb_email = '{$_POST['mb_email']}',
|
mb_email = '{$mb_email}',
|
||||||
mb_homepage = '{$_POST['mb_homepage']}',
|
mb_homepage = '{$_POST['mb_homepage']}',
|
||||||
mb_tel = '{$_POST['mb_tel']}',
|
mb_tel = '{$_POST['mb_tel']}',
|
||||||
mb_hp = '{$mb_hp}',
|
mb_hp = '{$mb_hp}',
|
||||||
@@ -74,13 +79,13 @@ if ($w == '')
|
|||||||
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 = '{$_POST['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 ($row['mb_id'])
|
if ($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 = '{$_POST['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 ($row['mb_id'])
|
if ($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']);
|
||||||
@@ -104,25 +109,47 @@ else if ($w == 'u')
|
|||||||
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
|
alert($mb['mb_id'].' : 로그인 중인 관리자 레벨은 수정 할 수 없습니다.');
|
||||||
|
|
||||||
// 닉네임중복체크
|
// 닉네임중복체크
|
||||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$_POST['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 ($row['mb_id'])
|
if ($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 = '{$_POST['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 ($row['mb_id'])
|
if ($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)
|
||||||
|
$sql_password = " , mb_password = '".get_encrypt_string($mb_password)."' ";
|
||||||
|
else
|
||||||
|
$sql_password = "";
|
||||||
|
|
||||||
|
if ($passive_certify)
|
||||||
|
$sql_certify = " , mb_email_certify = '".G5_TIME_YMDHIS."' ";
|
||||||
|
else
|
||||||
|
$sql_certify = "";
|
||||||
|
|
||||||
|
$sql = " update {$g5['member_table']}
|
||||||
|
set {$sql_common}
|
||||||
|
{$sql_password}
|
||||||
|
{$sql_certify}
|
||||||
|
where mb_id = '{$mb_id}' ";
|
||||||
|
sql_query($sql);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||||
|
|
||||||
|
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';
|
||||||
|
|
||||||
// 회원 아이콘 삭제
|
// 회원 아이콘 삭제
|
||||||
if ($del_mb_icon)
|
if ($del_mb_icon)
|
||||||
@unlink(G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif');
|
@unlink(G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_icon_img);
|
||||||
|
|
||||||
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
||||||
$mb_icon_img = $mb_id.'.gif';
|
|
||||||
|
|
||||||
// 아이콘 업로드
|
// 아이콘 업로드
|
||||||
if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
|
if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
|
||||||
@@ -207,26 +234,9 @@ else if ($w == 'u')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mb_password)
|
|
||||||
$sql_password = " , mb_password = '".get_encrypt_string($mb_password)."' ";
|
|
||||||
else
|
|
||||||
$sql_password = "";
|
|
||||||
|
|
||||||
if ($passive_certify)
|
|
||||||
$sql_certify = " , mb_email_certify = '".G5_TIME_YMDHIS."' ";
|
|
||||||
else
|
|
||||||
$sql_certify = "";
|
|
||||||
|
|
||||||
$sql = " update {$g5['member_table']}
|
|
||||||
set {$sql_common}
|
|
||||||
{$sql_password}
|
|
||||||
{$sql_certify}
|
|
||||||
where mb_id = '{$mb_id}' ";
|
|
||||||
sql_query($sql);
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
run_event('admin_member_form_update', $w, $mb_id);
|
||||||
|
|
||||||
goto_url('./member_form.php?'.$qstr.'&w=u&mb_id='.$mb_id, false);
|
goto_url('./member_form.php?'.$qstr.'&w=u&mb_id='.$mb_id, false);
|
||||||
?>
|
?>
|
||||||
@@ -12,6 +12,8 @@ auth_check($auth[$sub_menu], 'w');
|
|||||||
|
|
||||||
check_admin_token();
|
check_admin_token();
|
||||||
|
|
||||||
|
$mb_datas = array();
|
||||||
|
|
||||||
if ($_POST['act_button'] == "선택수정") {
|
if ($_POST['act_button'] == "선택수정") {
|
||||||
|
|
||||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||||
@@ -19,7 +21,7 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
|
|
||||||
$mb = get_member($_POST['mb_id'][$k]);
|
$mb_datas[] = $mb = get_member($_POST['mb_id'][$k]);
|
||||||
|
|
||||||
if (!$mb['mb_id']) {
|
if (!$mb['mb_id']) {
|
||||||
$msg .= $mb['mb_id'].' : 회원자료가 존재하지 않습니다.\\n';
|
$msg .= $mb['mb_id'].' : 회원자료가 존재하지 않습니다.\\n';
|
||||||
@@ -53,7 +55,7 @@ if ($_POST['act_button'] == "선택수정") {
|
|||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
|
|
||||||
$mb = get_member($_POST['mb_id'][$k]);
|
$mb_datas[] = $mb = get_member($_POST['mb_id'][$k]);
|
||||||
|
|
||||||
if (!$mb['mb_id']) {
|
if (!$mb['mb_id']) {
|
||||||
$msg .= $mb['mb_id'].' : 회원자료가 존재하지 않습니다.\\n';
|
$msg .= $mb['mb_id'].' : 회원자료가 존재하지 않습니다.\\n';
|
||||||
@@ -74,5 +76,7 @@ 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);
|
||||||
|
|
||||||
goto_url('./member_list.php?'.$qstr);
|
goto_url('./member_list.php?'.$qstr);
|
||||||
?>
|
?>
|
||||||
@@ -52,13 +52,13 @@ if($sql) {
|
|||||||
<?php }
|
<?php }
|
||||||
switch($type) {
|
switch($type) {
|
||||||
case 'group':
|
case 'group':
|
||||||
$link = G5_BBS_URL.'/group.php?gr_id='.$row['id'];
|
$link = get_pretty_url(G5_GROUP_DIR, $row['id']);
|
||||||
break;
|
break;
|
||||||
case 'board':
|
case 'board':
|
||||||
$link = G5_BBS_URL.'/board.php?bo_table='.$row['id'];
|
$link = get_pretty_url($row['id']);
|
||||||
break;
|
break;
|
||||||
case 'content':
|
case 'content':
|
||||||
$link = G5_BBS_URL.'/content.php?co_id='.$row['id'];
|
$link = get_pretty_url(G5_CONTENT_DIR, $row['id']);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$link = '';
|
$link = '';
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ $colspan = 7;
|
|||||||
<td class="td_category<?php echo $sub_menu_class; ?>">
|
<td class="td_category<?php echo $sub_menu_class; ?>">
|
||||||
<input type="hidden" name="code[]" value="<?php echo substr($row['me_code'], 0, 2) ?>">
|
<input type="hidden" name="code[]" value="<?php echo substr($row['me_code'], 0, 2) ?>">
|
||||||
<label for="me_name_<?php echo $i; ?>" class="sound_only"><?php echo $sub_menu_info; ?> 메뉴<strong class="sound_only"> 필수</strong></label>
|
<label for="me_name_<?php echo $i; ?>" class="sound_only"><?php echo $sub_menu_info; ?> 메뉴<strong class="sound_only"> 필수</strong></label>
|
||||||
<input type="text" name="me_name[]" value="<?php echo $me_name; ?>" id="me_name_<?php echo $i; ?>" required class="required tbl_input full_input">
|
<input type="text" name="me_name[]" value="<?php echo get_sanitize_input($me_name); ?>" id="me_name_<?php echo $i; ?>" required class="required tbl_input full_input">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<label for="me_link_<?php echo $i; ?>" class="sound_only">링크<strong class="sound_only"> 필수</strong></label>
|
<label for="me_link_<?php echo $i; ?>" class="sound_only">링크<strong class="sound_only"> 필수</strong></label>
|
||||||
|
|||||||
+12
-10
@@ -21,9 +21,11 @@ for ($i=0; $i<$count; $i++)
|
|||||||
{
|
{
|
||||||
$_POST = array_map_deep('trim', $_POST);
|
$_POST = array_map_deep('trim', $_POST);
|
||||||
|
|
||||||
$code = $_POST['code'][$i];
|
$_POST['me_link'][$i] = is_array($_POST['me_link']) ? clean_xss_tags($_POST['me_link'][$i], 1) : '';
|
||||||
$me_name = $_POST['me_name'][$i];
|
|
||||||
$me_link = preg_match('/^javascript/i', $_POST['me_link'][$i]) ? G5_URL : strip_tags($_POST['me_link'][$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_link = (preg_match('/^javascript/i', $_POST['me_link'][$i]) || preg_match('/script:/i', $_POST['me_link'][$i])) ? G5_URL : strip_tags($_POST['me_link'][$i]);
|
||||||
|
|
||||||
if(!$code || !$me_name || !$me_link)
|
if(!$code || !$me_name || !$me_link)
|
||||||
continue;
|
continue;
|
||||||
@@ -56,13 +58,13 @@ for ($i=0; $i<$count; $i++)
|
|||||||
|
|
||||||
// 메뉴 등록
|
// 메뉴 등록
|
||||||
$sql = " insert into {$g5['menu_table']}
|
$sql = " insert into {$g5['menu_table']}
|
||||||
set me_code = '$me_code',
|
set me_code = '".$me_code."',
|
||||||
me_name = '$me_name',
|
me_name = '".$me_name."',
|
||||||
me_link = '$me_link',
|
me_link = '".$me_link."',
|
||||||
me_target = '{$_POST['me_target'][$i]}',
|
me_target = '".sql_real_escape_string(strip_tags($_POST['me_target'][$i]))."',
|
||||||
me_order = '{$_POST['me_order'][$i]}',
|
me_order = '".sql_real_escape_string(strip_tags($_POST['me_order'][$i]))."',
|
||||||
me_use = '{$_POST['me_use'][$i]}',
|
me_use = '".sql_real_escape_string(strip_tags($_POST['me_use'][$i]))."',
|
||||||
me_mobile_use = '{$_POST['me_mobile_use'][$i]}' ";
|
me_mobile_use = '".sql_real_escape_string(strip_tags($_POST['me_mobile_use'][$i]))."' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -114,7 +114,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="nw_content">내용</label></th>
|
<th scope="row"><label for="nw_content">내용</label></th>
|
||||||
<td><?php echo editor_html('nw_content', get_text($nw['nw_content'], 0)); ?></td>
|
<td><?php echo editor_html('nw_content', get_text(html_purifier($nw['nw_content']), 0)); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
+1
-1
@@ -131,7 +131,7 @@ else
|
|||||||
|
|
||||||
$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="'.G5_BBS_URL.'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,11 @@ for ($i=0; $i<$count; $i++)
|
|||||||
{
|
{
|
||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
|
$po_id = (int) $_POST['po_id'][$k];
|
||||||
|
$str_mb_id = sql_real_escape_string($_POST['mb_id'][$k]);
|
||||||
|
|
||||||
// 포인트 내역정보
|
// 포인트 내역정보
|
||||||
$sql = " select * from {$g5['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
|
$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'])
|
||||||
@@ -39,19 +41,19 @@ for ($i=0; $i<$count; $i++)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 포인트 내역삭제
|
// 포인트 내역삭제
|
||||||
$sql = " delete from {$g5['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
|
$sql = " delete from {$g5['point_table']} where po_id = '{$po_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
// po_mb_point에 반영
|
// po_mb_point에 반영
|
||||||
$sql = " update {$g5['point_table']}
|
$sql = " update {$g5['point_table']}
|
||||||
set po_mb_point = po_mb_point - '{$row['po_point']}'
|
set po_mb_point = po_mb_point - '{$row['po_point']}'
|
||||||
where mb_id = '{$_POST['mb_id'][$k]}'
|
where mb_id = '{$str_mb_id}'
|
||||||
and po_id > '{$_POST['po_id'][$k]}' ";
|
and po_id > '{$po_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
// 포인트 UPDATE
|
// 포인트 UPDATE
|
||||||
$sum_point = get_point_sum($_POST['mb_id'][$k]);
|
$sum_point = get_point_sum($_POST['mb_id'][$k]);
|
||||||
$sql= " update {$g5['member_table']} set mb_point = '$sum_point' where mb_id = '{$_POST['mb_id'][$k]}' ";
|
$sql= " update {$g5['member_table']} set mb_point = '$sum_point' where mb_id = '{$str_mb_id}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -282,25 +282,25 @@ if(!isset($qaconfig['qa_include_head'])) {
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_content_head">상단 내용</label></th>
|
<th scope="row"><label for="qa_content_head">상단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("qa_content_head", get_text($qaconfig['qa_content_head'], 0)); ?>
|
<?php echo editor_html("qa_content_head", get_text(html_purifier($qaconfig['qa_content_head']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_content_tail">하단 내용</label></th>
|
<th scope="row"><label for="qa_content_tail">하단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("qa_content_tail", get_text($qaconfig['qa_content_tail'], 0)); ?>
|
<?php echo editor_html("qa_content_tail", get_text(html_purifier($qaconfig['qa_content_tail']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_mobile_content_head">모바일 상단 내용</label></th>
|
<th scope="row"><label for="qa_mobile_content_head">모바일 상단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("qa_mobile_content_head", get_text($qaconfig['qa_mobile_content_head'], 0)); ?>
|
<?php echo editor_html("qa_mobile_content_head", get_text(html_purifier($qaconfig['qa_mobile_content_head']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="qa_mobile_content_tail">모바일 하단 내용</label></th>
|
<th scope="row"><label for="qa_mobile_content_tail">모바일 하단 내용</label></th>
|
||||||
<td>
|
<td>
|
||||||
<?php echo editor_html("qa_mobile_content_tail", get_text($qaconfig['qa_mobile_content_tail'], 0)); ?>
|
<?php echo editor_html("qa_mobile_content_tail", get_text(html_purifier($qaconfig['qa_mobile_content_tail']), 0)); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ if (!strstr($_SERVER['SCRIPT_NAME'], 'install.php')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sv = isset($_REQUEST['sv']) ? get_search_string($_REQUEST['sv']) : '';
|
$sv = isset($_REQUEST['sv']) ? get_search_string($_REQUEST['sv']) : '';
|
||||||
|
$st = (isset($_REQUEST['st']) && $st) ? substr(get_search_string($_REQUEST['st']), 0, 12) : '';
|
||||||
|
|
||||||
if( isset($token) ){
|
if( isset($token) ){
|
||||||
$token = @htmlspecialchars(strip_tags($token), ENT_QUOTES);
|
$token = @htmlspecialchars(strip_tags($token), ENT_QUOTES);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ $g5['title'] = '이모티콘그룹 이동';
|
|||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
$list = array(); //배열 변수 초기화
|
$list = array(); //배열 변수 초기화
|
||||||
$fo_no_list = isset($_POST['fo_no']) ? implode(',', $_POST['fo_no']) : '';
|
$fo_no_list = isset($_POST['fo_no']) ? clean_xss_tags(strip_tags(implode(',', $_POST['fo_no']))) : '';
|
||||||
|
|
||||||
$sql = " select * from {$g5['sms5_form_group_table']} order by fg_no ";
|
$sql = " select * from {$g5['sms5_form_group_table']} order by fg_no ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ auth_check($auth[$sub_menu], "r");
|
|||||||
if(!count($_POST['chk_fg_no']))
|
if(!count($_POST['chk_fg_no']))
|
||||||
alert('이모티콘을 이동할 그룹을 한개 이상 선택해 주십시오.', $url);
|
alert('이모티콘을 이동할 그룹을 한개 이상 선택해 주십시오.', $url);
|
||||||
|
|
||||||
|
$fo_no_list = preg_replace('/[^a-zA-Z0-9\, ]/', '', $fo_no_list);
|
||||||
|
|
||||||
$sql = "select * from {$g5['sms5_form_table']} where fo_no in ($fo_no_list) order by fo_no desc ";
|
$sql = "select * from {$g5['sms5_form_table']} where fo_no in ($fo_no_list) order by fo_no desc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
$save = array();
|
$save = array();
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ if ($w == 'u') // 업데이트
|
|||||||
// 실제 번호를 넘김
|
// 실제 번호를 넘김
|
||||||
$k = $_POST['chk'][$i];
|
$k = $_POST['chk'][$i];
|
||||||
$fg_no = (int) $_POST['fg_no'][$k];
|
$fg_no = (int) $_POST['fg_no'][$k];
|
||||||
$fg_name = strip_tags($_POST['fg_name'][$k]);
|
$fg_name = isset($_POST['fg_name'][$k]) ? addslashes(strip_tags($_POST['fg_name'][$k])) : '';
|
||||||
$fg_member = strip_tags($_POST['fg_member'][$k]);
|
$fg_member = isset($_POST['fg_member'][$k]) ? addslashes(strip_tags($_POST['fg_member'][$k])) : '';
|
||||||
|
|
||||||
if (!is_numeric($fg_no))
|
if (!is_numeric($fg_no))
|
||||||
alert('그룹 고유번호가 없습니다.');
|
alert('그룹 고유번호가 없습니다.');
|
||||||
@@ -83,7 +83,7 @@ else // 등록
|
|||||||
if (!strlen(trim($fg_name)))
|
if (!strlen(trim($fg_name)))
|
||||||
alert('그룹명을 입력해주세요');
|
alert('그룹명을 입력해주세요');
|
||||||
|
|
||||||
$fg_name = strip_tags($fg_name);
|
$fg_name = addslashes(strip_tags($fg_name));
|
||||||
|
|
||||||
$res = sql_fetch("select fg_name from {$g5['sms5_form_group_table']} where fg_name = '$fg_name'");
|
$res = sql_fetch("select fg_name from {$g5['sms5_form_group_table']} where fg_name = '$fg_name'");
|
||||||
if ($res)
|
if ($res)
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ $g5['title'] = "문자전송 내역 (번호별)";
|
|||||||
|
|
||||||
if ($page < 1) $page = 1;
|
if ($page < 1) $page = 1;
|
||||||
|
|
||||||
|
if( isset($st) && !in_array($st, array('hs_name', 'hs_hp', 'bk_no')) ){
|
||||||
|
$st = '';
|
||||||
|
}
|
||||||
|
|
||||||
if ($st && trim($sv))
|
if ($st && trim($sv))
|
||||||
$sql_search = " and $st like '%$sv%' ";
|
$sql_search = " and $st like '%$sv%' ";
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ $colspan = 10;
|
|||||||
$st = isset($st) ? strip_tags($st) : '';
|
$st = isset($st) ? strip_tags($st) : '';
|
||||||
$ssv = isset($ssv) ? strip_tags($ssv) : '';
|
$ssv = isset($ssv) ? strip_tags($ssv) : '';
|
||||||
|
|
||||||
|
if( $st && !in_array($st, array('hs_name', 'hs_hp', 'bk_no')) ){
|
||||||
|
$st = '';
|
||||||
|
}
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "r");
|
auth_check($auth[$sub_menu], "r");
|
||||||
|
|
||||||
$g5['title'] = "문자전송 상세내역";
|
$g5['title'] = "문자전송 상세내역";
|
||||||
@@ -127,22 +131,22 @@ function all_send()
|
|||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $re_vnum--?></td>
|
<td><?php echo $re_vnum--?></td>
|
||||||
<!-- <td><input type=checkbox></td> -->
|
<!-- <td><input type=checkbox></td> -->
|
||||||
<!-- <td><?php echo $res[wr_message]; ?></span></td>-->
|
<!-- <td><?php echo $res['wr_message']; ?></span></td>-->
|
||||||
<!-- <td><?php echo $res[wr_reply]; ?></td>-->
|
<!-- <td><?php echo $res['wr_reply']; ?></td>-->
|
||||||
<td><?php echo $res['wr_datetime']?></td>
|
<td><?php echo $res['wr_datetime']?></td>
|
||||||
<td><?php echo number_format($res['wr_total'])?></td>
|
<td><?php echo number_format($res['wr_total'])?></td>
|
||||||
<td><?php echo number_format($res['wr_success'])?></td>
|
<td><?php echo number_format($res['wr_success'])?></td>
|
||||||
<td><?php echo number_format($res['wr_failure'])?></td>
|
<td><?php echo number_format($res['wr_failure'])?></td>
|
||||||
<td class="td_mng">
|
<td class="td_mng">
|
||||||
<a href="./history_view.php?page=<?php echo $page?>&st=<?php echo $st?>&sv=<?php echo $sv?>&wr_no=<?php echo $res['wr_no']?>&wr_renum=<?php echo $res['wr_renum']?>" class="btn btn_03">수정</a>
|
<a href="./history_view.php?page=<?php echo $page?>&st=<?php echo $st?>&sv=<?php echo $sv?>&wr_no=<?php echo $res['wr_no']?>&wr_renum=<?php echo $res['wr_renum']?>" class="btn btn_03">수정</a>
|
||||||
<!-- <a href="./history_del.php?page=<?php echo $page?>&st=<?php echo $st?>&sv=<?php echo $sv?>&wr_no=<?php echo $res[wr_no]?>&wr_renum=<?php echo $res[wr_renum]?>">삭제</a> -->
|
<!-- <a href="./history_del.php?page=<?php echo $page?>&st=<?php echo $st?>&sv=<?php echo $sv?>&wr_no=<?php echo $res['wr_no']?>&wr_renum=<?php echo $res['wr_renum']?>">삭제</a> -->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php } ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if( $write['wr_memo'] ){
|
if( $write['wr_memo'] ){
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
|
|
||||||
<form name="fboardmoveall" method="post" action="./number_move_update.php" onsubmit="return fboardmoveall_submit(this);">
|
<form name="fboardmoveall" method="post" action="./number_move_update.php" onsubmit="return fboardmoveall_submit(this);">
|
||||||
<input type="hidden" name="sw" value="<?php echo $sw ?>">
|
<input type="hidden" name="sw" value="<?php echo $sw ?>">
|
||||||
<input type="hidden" name="bk_no_list" value="<?php echo $bk_no_list ?>">
|
<input type="hidden" name="bk_no_list" value="<?php echo get_sanitize_input($bk_no_list); ?>">
|
||||||
<input type="hidden" name="act" value="<?php echo $act ?>">
|
<input type="hidden" name="act" value="<?php echo get_sanitize_input($act); ?>">
|
||||||
<input type="hidden" name="url" value="<?php echo clean_xss_tags(strip_tags($_SERVER['HTTP_REFERER'])); ?>">
|
<input type="hidden" name="url" value="<?php echo clean_xss_tags(strip_tags($_SERVER['HTTP_REFERER'])); ?>">
|
||||||
<div class=" new_win_con">
|
<div class=" new_win_con">
|
||||||
<div class="tbl_head01 tbl_wrap">
|
<div class="tbl_head01 tbl_wrap">
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ $is_hp_exist = false;
|
|||||||
|
|
||||||
$bk_hp = get_hp($bk_hp);
|
$bk_hp = get_hp($bk_hp);
|
||||||
|
|
||||||
|
$bk_memo = strip_tags($bk_memo);
|
||||||
|
$bk_name = strip_tags($bk_name);
|
||||||
|
|
||||||
if ($w=='u') // 업데이트
|
if ($w=='u') // 업데이트
|
||||||
{
|
{
|
||||||
if (!$bg_no) $bg_no = 0;
|
if (!$bg_no) $bg_no = 0;
|
||||||
@@ -21,8 +24,6 @@ if ($w=='u') // 업데이트
|
|||||||
if (!strlen(trim($bk_name)))
|
if (!strlen(trim($bk_name)))
|
||||||
alert('이름을 입력해주세요');
|
alert('이름을 입력해주세요');
|
||||||
|
|
||||||
$bk_name = strip_tags($bk_name);
|
|
||||||
|
|
||||||
if ($bk_hp == '')
|
if ($bk_hp == '')
|
||||||
alert('휴대폰번호만 입력 가능합니다.');
|
alert('휴대폰번호만 입력 가능합니다.');
|
||||||
/*
|
/*
|
||||||
@@ -48,7 +49,7 @@ if ($w=='u') // 업데이트
|
|||||||
sql_query("update {$g5['sms5_book_group_table']} set bg_receipt = bg_receipt - 1, bg_reject = bg_reject + 1 where bg_no='$bg_no'");
|
sql_query("update {$g5['sms5_book_group_table']} set bg_receipt = bg_receipt - 1, bg_reject = bg_reject + 1 where bg_no='$bg_no'");
|
||||||
}
|
}
|
||||||
|
|
||||||
sql_query("update {$g5['sms5_book_table']} set bg_no='$bg_no', bk_name='$bk_name', bk_hp='$bk_hp', bk_receipt='$bk_receipt', bk_datetime='".G5_TIME_YMDHIS."', bk_memo='".addslashes($bk_memo)."' where bk_no='$bk_no'");
|
sql_query("update {$g5['sms5_book_table']} set bg_no='$bg_no', bk_name='".addslashes($bk_name)."', bk_hp='$bk_hp', bk_receipt='$bk_receipt', bk_datetime='".G5_TIME_YMDHIS."', bk_memo='".addslashes($bk_memo)."' where bk_no='$bk_no'");
|
||||||
if ($res['mb_id']){ //만약에 mb_id가 있다면...
|
if ($res['mb_id']){ //만약에 mb_id가 있다면...
|
||||||
// 휴대폰번호 중복체크
|
// 휴대폰번호 중복체크
|
||||||
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$res['mb_id']}' and mb_hp = '{$bk_hp}' ";
|
$sql = " select mb_id from {$g5['member_table']} where mb_id <> '{$res['mb_id']}' and mb_hp = '{$bk_hp}' ";
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ include_once(G5_ADMIN_PATH."/admin.head.php");
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="bk_memo">메모</label></th>
|
<th scope="row"><label for="bk_memo">메모</label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="bk_memo" id="bk_memo"><?php echo $write['bk_memo']?></textarea>
|
<textarea name="bk_memo" id="bk_memo"><?php echo html_purifier($write['bk_memo']); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ auth_check($auth[$sub_menu], "r");
|
|||||||
if(!count($_POST['chk_bg_no']))
|
if(!count($_POST['chk_bg_no']))
|
||||||
alert('번호를 '.$act.'할 그룹을 한개 이상 선택해 주십시오.', $url);
|
alert('번호를 '.$act.'할 그룹을 한개 이상 선택해 주십시오.', $url);
|
||||||
|
|
||||||
|
$bk_no_list = preg_replace('/[^a-zA-Z0-9\, ]/', '', $bk_no_list);
|
||||||
|
|
||||||
$sql = "select * from {$g5['sms5_book_table']} where bk_no in ($bk_no_list) order by bk_no desc ";
|
$sql = "select * from {$g5['sms5_book_table']} where bk_no in ($bk_no_list) order by bk_no desc ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
$save = array();
|
$save = array();
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ CREATE TABLE `__TABLE_NAME__` (
|
|||||||
`wr_option` set('html1','html2','secret','mail') NOT NULL,
|
`wr_option` set('html1','html2','secret','mail') NOT NULL,
|
||||||
`wr_subject` varchar(255) NOT NULL,
|
`wr_subject` varchar(255) NOT NULL,
|
||||||
`wr_content` text NOT NULL,
|
`wr_content` text NOT NULL,
|
||||||
|
`wr_seo_title` varchar(255) NOT NULL DEFAULT '',
|
||||||
`wr_link1` text NOT NULL,
|
`wr_link1` text NOT NULL,
|
||||||
`wr_link2` text NOT NULL,
|
`wr_link2` text NOT NULL,
|
||||||
`wr_link1_hit` int(11) NOT NULL DEFAULT '0',
|
`wr_link1_hit` int(11) NOT NULL DEFAULT '0',
|
||||||
@@ -39,6 +40,7 @@ CREATE TABLE `__TABLE_NAME__` (
|
|||||||
`wr_9` varchar(255) NOT NULL,
|
`wr_9` varchar(255) NOT NULL,
|
||||||
`wr_10` varchar(255) NOT NULL,
|
`wr_10` varchar(255) NOT NULL,
|
||||||
PRIMARY KEY (`wr_id`),
|
PRIMARY KEY (`wr_id`),
|
||||||
|
KEY `wr_seo_title` (`wr_seo_title`),
|
||||||
KEY `wr_num_reply_parent` (`wr_num`,`wr_reply`,`wr_parent`),
|
KEY `wr_num_reply_parent` (`wr_num`,`wr_reply`,`wr_parent`),
|
||||||
KEY `wr_is_comment` (`wr_is_comment`,`wr_id`)
|
KEY `wr_is_comment` (`wr_is_comment`,`wr_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
+1
-1
@@ -73,7 +73,7 @@ $result = sql_query($sql);
|
|||||||
}
|
}
|
||||||
|
|
||||||
$title = str_replace(array('<', '>', '&'), array("<", ">", "&"), $referer);
|
$title = str_replace(array('<', '>', '&'), array("<", ">", "&"), $referer);
|
||||||
$link = '<a href="'.$row['vi_referer'].'" target="_blank">';
|
$link = '<a href="'.get_text($row['vi_referer']).'" target="_blank">';
|
||||||
$link = str_replace('&', "&", $link);
|
$link = str_replace('&', "&", $link);
|
||||||
$link2 = '</a>';
|
$link2 = '</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ $listall = '<a href="'.$_SERVER['SCRIPT_NAME'].'">처음</a>'; //페이지 처
|
|||||||
}
|
}
|
||||||
|
|
||||||
$title = str_replace(array("<", ">"), array("<", ">"), $referer);
|
$title = str_replace(array("<", ">"), array("<", ">"), $referer);
|
||||||
$link = '<a href="'.$row['vi_referer'].'" target="_blank" title="'.$title.'">';
|
$link = '<a href="'.get_text($row['vi_referer']).'" target="_blank" title="'.$title.'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_admin == 'super')
|
if ($is_admin == 'super')
|
||||||
|
|||||||
+8
-5
@@ -31,10 +31,11 @@ include_once(G5_PATH.'/head.sub.php');
|
|||||||
$msg = isset($msg) ? strip_tags($msg) : '';
|
$msg = isset($msg) ? strip_tags($msg) : '';
|
||||||
$msg2 = str_replace("\\n", "<br>", $msg);
|
$msg2 = str_replace("\\n", "<br>", $msg);
|
||||||
|
|
||||||
$url = clean_xss_tags($url);
|
$url = clean_xss_tags($url, 1);
|
||||||
if (!$url) $url = clean_xss_tags($_SERVER['HTTP_REFERER']);
|
if (!$url) $url = clean_xss_tags($_SERVER['HTTP_REFERER'], 1);
|
||||||
|
|
||||||
$url = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", $url);
|
$url = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", $url);
|
||||||
|
$url = preg_replace('/\r\n|\r|\n|[^\x20-\x7e]/','', $url);
|
||||||
|
|
||||||
// url 체크
|
// url 체크
|
||||||
check_url_host($url, $msg);
|
check_url_host($url, $msg);
|
||||||
@@ -48,11 +49,9 @@ if($error) {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
alert("<?php echo $msg; ?>");
|
alert("<?php echo $msg; ?>");
|
||||||
//document.location.href = "<?php echo $url; ?>";
|
|
||||||
<?php if ($url) { ?>
|
<?php if ($url) { ?>
|
||||||
document.location.replace("<?php echo str_replace('&', '&', $url); ?>");
|
document.location.replace("<?php echo str_replace('&', '&', $url); ?>");
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
//alert('history.back();');
|
|
||||||
history.back();
|
history.back();
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</script>
|
</script>
|
||||||
@@ -67,13 +66,17 @@ history.back();
|
|||||||
<form method="post" action="<?php echo $url ?>">
|
<form method="post" action="<?php echo $url ?>">
|
||||||
<?php
|
<?php
|
||||||
foreach($_POST as $key => $value) {
|
foreach($_POST as $key => $value) {
|
||||||
|
|
||||||
|
$key = clean_xss_tags($key);
|
||||||
|
$value = clean_xss_tags($value);
|
||||||
|
|
||||||
if(strlen($value) < 1)
|
if(strlen($value) < 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(preg_match("/pass|pwd|capt|url/", $key))
|
if(preg_match("/pass|pwd|capt|url/", $key))
|
||||||
continue;
|
continue;
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="<?php echo $key ?>" value="<?php echo $value ?>">
|
<input type="hidden" name="<?php echo htmlspecialchars($key); ?>" value="<?php echo htmlspecialchars($value); ?>">
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
+10
-10
@@ -8,7 +8,7 @@ if (!$board['bo_table']) {
|
|||||||
check_device($board['bo_device']);
|
check_device($board['bo_device']);
|
||||||
|
|
||||||
if (isset($write['wr_is_comment']) && $write['wr_is_comment']) {
|
if (isset($write['wr_is_comment']) && $write['wr_is_comment']) {
|
||||||
goto_url('./board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'#c_'.$wr_id);
|
goto_url(get_pretty_url($bo_table, $write['wr_parent'], '#c_'.$wr_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$bo_table) {
|
if (!$bo_table) {
|
||||||
@@ -19,18 +19,18 @@ if (!$bo_table) {
|
|||||||
$g5['board_title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);
|
$g5['board_title'] = ((G5_IS_MOBILE && $board['bo_mobile_subject']) ? $board['bo_mobile_subject'] : $board['bo_subject']);
|
||||||
|
|
||||||
// wr_id 값이 있으면 글읽기
|
// wr_id 값이 있으면 글읽기
|
||||||
if (isset($wr_id) && $wr_id) {
|
if ((isset($wr_id) && $wr_id) || (isset($wr_seo_title) && $wr_seo_title)) {
|
||||||
// 글이 없을 경우 해당 게시판 목록으로 이동
|
// 글이 없을 경우 해당 게시판 목록으로 이동
|
||||||
if (!$write['wr_id']) {
|
if (!$write['wr_id']) {
|
||||||
$msg = '글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동된 경우입니다.';
|
$msg = '글이 존재하지 않습니다.\\n\\n글이 삭제되었거나 이동된 경우입니다.';
|
||||||
alert($msg, './board.php?bo_table='.$bo_table);
|
alert($msg, get_pretty_url($bo_table));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 그룹접근 사용
|
// 그룹접근 사용
|
||||||
if (isset($group['gr_use_access']) && $group['gr_use_access']) {
|
if (isset($group['gr_use_access']) && $group['gr_use_access']) {
|
||||||
if ($is_guest) {
|
if ($is_guest) {
|
||||||
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
|
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
|
||||||
alert($msg, './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
alert($msg, G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 그룹관리자 이상이라면 통과
|
// 그룹관리자 이상이라면 통과
|
||||||
@@ -51,14 +51,14 @@ if (isset($wr_id) && $wr_id) {
|
|||||||
if ($is_member)
|
if ($is_member)
|
||||||
alert('글을 읽을 권한이 없습니다.', G5_URL);
|
alert('글을 읽을 권한이 없습니다.', G5_URL);
|
||||||
else
|
else
|
||||||
alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
alert('글을 읽을 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 본인확인을 사용한다면
|
// 본인확인을 사용한다면
|
||||||
if ($config['cf_cert_use'] && !$is_admin) {
|
if ($config['cf_cert_use'] && !$is_admin) {
|
||||||
// 인증된 회원만 가능
|
// 인증된 회원만 가능
|
||||||
if ($board['bo_use_cert'] != '' && $is_guest) {
|
if ($board['bo_use_cert'] != '' && $is_guest) {
|
||||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
||||||
@@ -108,7 +108,7 @@ if (isset($wr_id) && $wr_id) {
|
|||||||
// 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
|
// 이 게시물이 저장된 게시물이 아니면서 관리자가 아니라면
|
||||||
//if ("$bo_table|$write['wr_num']" != get_session("ss_secret"))
|
//if ("$bo_table|$write['wr_num']" != get_session("ss_secret"))
|
||||||
if (!get_session($ss_name))
|
if (!get_session($ss_name))
|
||||||
goto_url('./password.php?w=s&bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
|
goto_url(G5_BBS_URL.'/password.php?w=s&bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
set_session($ss_name, TRUE);
|
set_session($ss_name, TRUE);
|
||||||
@@ -144,14 +144,14 @@ if (isset($wr_id) && $wr_id) {
|
|||||||
if ($member['mb_id'])
|
if ($member['mb_id'])
|
||||||
alert('목록을 볼 권한이 없습니다.', G5_URL);
|
alert('목록을 볼 권한이 없습니다.', G5_URL);
|
||||||
else
|
else
|
||||||
alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?'.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.($qstr?'&':'')));
|
alert('목록을 볼 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?'.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.($qstr?'&':'')));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 본인확인을 사용한다면
|
// 본인확인을 사용한다면
|
||||||
if ($config['cf_cert_use'] && !$is_admin) {
|
if ($config['cf_cert_use'] && !$is_admin) {
|
||||||
// 인증된 회원만 가능
|
// 인증된 회원만 가능
|
||||||
if ($board['bo_use_cert'] != '' && $is_guest) {
|
if ($board['bo_use_cert'] != '' && $is_guest) {
|
||||||
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', './login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr));
|
alert('이 게시판은 본인확인 하신 회원님만 글읽기가 가능합니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id, $qstr)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
if ($board['bo_use_cert'] == 'cert' && !$member['mb_certify']) {
|
||||||
@@ -189,7 +189,7 @@ $ip = "";
|
|||||||
$is_ip_view = $board['bo_use_ip_view'];
|
$is_ip_view = $board['bo_use_ip_view'];
|
||||||
if ($is_admin) {
|
if ($is_admin) {
|
||||||
$is_ip_view = true;
|
$is_ip_view = true;
|
||||||
if (array_key_exists('wr_ip', $write)) {
|
if ($write && array_key_exists('wr_ip', $write)) {
|
||||||
$ip = $write['wr_ip'];
|
$ip = $write['wr_ip'];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+11
-5
@@ -2,9 +2,15 @@
|
|||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
$url1 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url1));
|
$pattern1 = "/[\<\>\'\"\\\'\\\"\(\)]/";
|
||||||
$url2 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url2));
|
$pattern2 = "/\r\n|\r|\n|[^\x20-\x7e]/";
|
||||||
$url3 = preg_replace("/[\<\>\'\"\\\'\\\"\(\)]/", "", clean_xss_tags($url3));
|
|
||||||
|
$url1 = preg_replace($pattern1, "", clean_xss_tags($url1, 1));
|
||||||
|
$url1 = preg_replace($pattern2, "", $url1);
|
||||||
|
$url2 = preg_replace($pattern1, "", clean_xss_tags($url2, 1));
|
||||||
|
$url2 = preg_replace($pattern2, "", $url2);
|
||||||
|
$url3 = preg_replace($pattern1, "", clean_xss_tags($url3, 1));
|
||||||
|
$url3 = preg_replace($pattern2, "", $url3);
|
||||||
|
|
||||||
// url 체크
|
// url 체크
|
||||||
check_url_host($url1);
|
check_url_host($url1);
|
||||||
@@ -25,12 +31,12 @@ if (confirm(conf)) {
|
|||||||
<article id="confirm_check">
|
<article id="confirm_check">
|
||||||
<header>
|
<header>
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1><?php echo $header; ?></h1> <!-- 수행 중이던 작업 내용 -->
|
<h1><?php echo get_text(strip_tags($header)); ?></h1> <!-- 수행 중이던 작업 내용 -->
|
||||||
<h2>아래 내용을 확인해 주세요.</h2>
|
<h2>아래 내용을 확인해 주세요.</h2>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
</header>
|
</header>
|
||||||
<p>
|
<p>
|
||||||
<?php echo $msg; ?>
|
<?php echo get_text(strip_tags($msg)); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a href="<?php echo $url1; ?>">확인</a>
|
<a href="<?php echo $url1; ?>">확인</a>
|
||||||
|
|||||||
+14
-3
@@ -8,14 +8,23 @@ if( !isset($g5['content_table']) ){
|
|||||||
die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.');
|
die('<meta charset="utf-8">관리자 모드에서 게시판관리->내용 관리를 먼저 확인해 주세요.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 내용
|
||||||
|
if($co_seo_title){
|
||||||
|
$co = get_content_by_field($g5['content_table'], 'content', 'co_seo_title', generate_seo_title($co_seo_title));
|
||||||
|
$co_id = $co['co_id'];
|
||||||
|
} else {
|
||||||
|
$co = get_content_db($co_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if( ! (isset($co['co_seo_title']) && $co['co_seo_title']) && $co['co_id'] ){
|
||||||
|
seo_title_update($g5['content_table'], $co['co_id'], 'content');
|
||||||
|
}
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
if (G5_IS_MOBILE) {
|
||||||
include_once(G5_MOBILE_PATH.'/content.php');
|
include_once(G5_MOBILE_PATH.'/content.php');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 내용
|
|
||||||
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
|
||||||
$co = sql_fetch($sql);
|
|
||||||
if (!$co['co_id'])
|
if (!$co['co_id'])
|
||||||
alert('등록된 내용이 없습니다.');
|
alert('등록된 내용이 없습니다.');
|
||||||
|
|
||||||
@@ -26,6 +35,8 @@ if ($co['co_include_head'] && is_include_path_check($co['co_include_head']))
|
|||||||
else
|
else
|
||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
|
|
||||||
|
// KVE-2019-0828 취약점 내용
|
||||||
|
$co['co_tag_filter_use'] = 1;
|
||||||
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
|
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
|
||||||
|
|
||||||
// $src 를 $dst 로 변환
|
// $src 를 $dst 로 변환
|
||||||
|
|||||||
+4
-2
@@ -30,7 +30,7 @@ else if ($is_admin == 'group') { // 그룹관리자
|
|||||||
alert('자신의 글이 아니므로 삭제할 수 없습니다.');
|
alert('자신의 글이 아니므로 삭제할 수 없습니다.');
|
||||||
} else {
|
} else {
|
||||||
if ($write['mb_id'])
|
if ($write['mb_id'])
|
||||||
alert('로그인 후 삭제하세요.', './login.php?url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
alert('로그인 후 삭제하세요.', G5_BBS_URL.'/login.php?url='.urlencode(get_pretty_url($bo_table, $wr_id)));
|
||||||
else if (!check_password($wr_password, $write['wr_password']))
|
else if (!check_password($wr_password, $write['wr_password']))
|
||||||
alert('비밀번호가 틀리므로 삭제할 수 없습니다.');
|
alert('비밀번호가 틀리므로 삭제할 수 없습니다.');
|
||||||
}
|
}
|
||||||
@@ -134,5 +134,7 @@ if ($count_write > 0 || $count_comment > 0)
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr);
|
run_event('bbs_delete', $write, $board);
|
||||||
|
|
||||||
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr));
|
||||||
?>
|
?>
|
||||||
+3
-1
@@ -156,5 +156,7 @@ if ($count_write > 0 || $count_comment > 0)
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr);
|
run_event('bbs_delete_all', $tmp_array, $board);
|
||||||
|
|
||||||
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&page='.$page.$qstr));
|
||||||
?>
|
?>
|
||||||
@@ -53,8 +53,8 @@ $comment_reply = substr($write['wr_comment_reply'], 0, $len);
|
|||||||
$sql = " select count(*) as cnt from {$write_table}
|
$sql = " select count(*) as cnt from {$write_table}
|
||||||
where wr_comment_reply like '{$comment_reply}%'
|
where wr_comment_reply like '{$comment_reply}%'
|
||||||
and wr_id <> '{$comment_id}'
|
and wr_id <> '{$comment_id}'
|
||||||
and wr_parent = '{$write[wr_parent]}'
|
and wr_parent = '{$write['wr_parent']}'
|
||||||
and wr_comment = '{$write[wr_comment]}'
|
and wr_comment = '{$write['wr_comment']}'
|
||||||
and wr_is_comment = 1 ";
|
and wr_is_comment = 1 ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt'] && !$is_admin)
|
if ($row['cnt'] && !$is_admin)
|
||||||
@@ -86,5 +86,7 @@ sql_query(" delete from {$g5['board_new_table']} where bo_table = '{$bo_table}'
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
|
run_event('bbs_delete_comment', $comment_id, $board);
|
||||||
|
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr);
|
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$write['wr_parent'].'&page='.$page. $qstr);
|
||||||
?>
|
?>
|
||||||
+12
-3
@@ -15,7 +15,7 @@ if (!get_session('ss_view_'.$bo_table.'_'.$wr_id))
|
|||||||
|
|
||||||
// 다운로드 차감일 때 비회원은 다운로드 불가
|
// 다운로드 차감일 때 비회원은 다운로드 불가
|
||||||
if($board['bo_download_point'] < 0 && $is_guest)
|
if($board['bo_download_point'] < 0 && $is_guest)
|
||||||
alert('다운로드 권한이 없습니다.\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
alert('다운로드 권한이 없습니다.\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id)));
|
||||||
|
|
||||||
$sql = " select bf_source, bf_file from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$no' ";
|
$sql = " select bf_source, bf_file from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '$no' ";
|
||||||
$file = sql_fetch($sql);
|
$file = sql_fetch($sql);
|
||||||
@@ -25,9 +25,13 @@ if (!$file['bf_file'])
|
|||||||
// JavaScript 불가일 때
|
// JavaScript 불가일 때
|
||||||
if($js != 'on' && $board['bo_download_point'] < 0) {
|
if($js != 'on' && $board['bo_download_point'] < 0) {
|
||||||
$msg = $file['bf_source'].' 파일을 다운로드 하시면 포인트가 차감('.number_format($board['bo_download_point']).'점)됩니다.\\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\\n그래도 다운로드 하시겠습니까?';
|
$msg = $file['bf_source'].' 파일을 다운로드 하시면 포인트가 차감('.number_format($board['bo_download_point']).'점)됩니다.\\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\\n그래도 다운로드 하시겠습니까?';
|
||||||
$url1 = G5_BBS_URL.'/download.php?'.clean_query_string($_SERVER['QUERY_STRING']).'&js=on';
|
$url1 = G5_BBS_URL.'/download.php?'.clean_query_string($_SERVER['QUERY_STRING'], false).'&js=on';
|
||||||
$url2 = clean_xss_tags($_SERVER['HTTP_REFERER']);
|
$url2 = clean_xss_tags($_SERVER['HTTP_REFERER']);
|
||||||
|
|
||||||
|
if( $url2 && stripos($url2, $_SERVER['REQUEST_URI']) !== false ){
|
||||||
|
$url2 = G5_BBS_URL.'/board.php?'.clean_query_string($_SERVER['QUERY_STRING'], false);
|
||||||
|
}
|
||||||
|
|
||||||
//$url1 = 확인link, $url2=취소link
|
//$url1 = 확인link, $url2=취소link
|
||||||
// 특정주소로 이동시키려면 $url3 이용
|
// 특정주소로 이동시키려면 $url3 이용
|
||||||
confirm($msg, $url1, $url2);
|
confirm($msg, $url1, $url2);
|
||||||
@@ -38,7 +42,7 @@ if ($member['mb_level'] < $board['bo_download_level']) {
|
|||||||
if ($member['mb_id'])
|
if ($member['mb_id'])
|
||||||
alert($alert_msg);
|
alert($alert_msg);
|
||||||
else
|
else
|
||||||
alert($alert_msg.'\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
alert($alert_msg.'\\n회원이시라면 로그인 후 이용해 보십시오.', G5_BBS_URL.'/login.php?wr_id='.$wr_id.'&'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$filepath = G5_DATA_PATH.'/file/'.$bo_table.'/'.$file['bf_file'];
|
$filepath = G5_DATA_PATH.'/file/'.$bo_table.'/'.$file['bf_file'];
|
||||||
@@ -84,11 +88,16 @@ if (!get_session($ss_name))
|
|||||||
$g5['title'] = '다운로드 > '.conv_subject($write['wr_subject'], 255);
|
$g5['title'] = '다운로드 > '.conv_subject($write['wr_subject'], 255);
|
||||||
|
|
||||||
//파일명에 한글이 있는 경우
|
//파일명에 한글이 있는 경우
|
||||||
|
/*
|
||||||
if(preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $file['bf_source'])){
|
if(preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $file['bf_source'])){
|
||||||
|
// 2015.09.02 날짜의 파이어폭스에서 인코딩된 문자 그대로 출력되는 문제가 발생됨, 2018.12.11 날짜의 파이어폭스에서는 해당 현상이 없으므로 해당 코드를 사용 안합니다.
|
||||||
$original = iconv('utf-8', 'euc-kr', $file['bf_source']); // SIR 잉끼님 제안코드
|
$original = iconv('utf-8', 'euc-kr', $file['bf_source']); // SIR 잉끼님 제안코드
|
||||||
} else {
|
} else {
|
||||||
$original = urlencode($file['bf_source']);
|
$original = urlencode($file['bf_source']);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
$original = urlencode($file['bf_source']);
|
||||||
|
|
||||||
@include_once($board_skin_path.'/download.tail.skin.php');
|
@include_once($board_skin_path.'/download.tail.skin.php');
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 봇의 메일 링크 크롤링을 방지합니다.
|
||||||
|
if(function_exists('check_mail_bot')){ check_mail_bot($_SERVER['REMOTE_ADDR']); }
|
||||||
|
|
||||||
$mb_id = trim($_GET['mb_id']);
|
$mb_id = trim($_GET['mb_id']);
|
||||||
$mb_md5 = trim($_GET['mb_md5']);
|
$mb_md5 = trim($_GET['mb_md5']);
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ if (!$config['cf_email_use'])
|
|||||||
if (!$is_member && $config['cf_formmail_is_member'])
|
if (!$is_member && $config['cf_formmail_is_member'])
|
||||||
alert_close('회원만 이용하실 수 있습니다.');
|
alert_close('회원만 이용하실 수 있습니다.');
|
||||||
|
|
||||||
|
$mb_id = isset($mb_id) ? get_search_string($mb_id) : '';
|
||||||
|
|
||||||
if ($is_member && !$member['mb_open'] && $is_admin != "super" && $member['mb_id'] != $mb_id)
|
if ($is_member && !$member['mb_open'] && $is_admin != "super" && $member['mb_id'] != $mb_id)
|
||||||
alert_close('자신의 정보를 공개하지 않으면 다른분에게 메일을 보낼 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
|
alert_close('자신의 정보를 공개하지 않으면 다른분에게 메일을 보낼 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -90,7 +90,7 @@ if($_POST['js'] == "on") {
|
|||||||
|
|
||||||
if (!$is_member)
|
if (!$is_member)
|
||||||
{
|
{
|
||||||
$href = './login.php?'.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
$href = './login.php?'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id));
|
||||||
|
|
||||||
alert('회원만 가능합니다.', $href);
|
alert('회원만 가능합니다.', $href);
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ if($_POST['js'] == "on") {
|
|||||||
else
|
else
|
||||||
$status = '비추천';
|
$status = '비추천';
|
||||||
|
|
||||||
$href = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$href = get_pretty_url($bo_table, $wr_id);
|
||||||
|
|
||||||
alert("이 글을 $status 하셨습니다.", '', false);
|
alert("이 글을 $status 하셨습니다.", '', false);
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-8
@@ -6,7 +6,7 @@ $is_category = false;
|
|||||||
$category_option = '';
|
$category_option = '';
|
||||||
if ($board['bo_use_category']) {
|
if ($board['bo_use_category']) {
|
||||||
$is_category = true;
|
$is_category = true;
|
||||||
$category_href = G5_BBS_URL.'/board.php?bo_table='.$bo_table;
|
$category_href = get_pretty_url($bo_table);
|
||||||
|
|
||||||
$category_option .= '<li><a href="'.$category_href.'"';
|
$category_option .= '<li><a href="'.$category_href.'"';
|
||||||
if ($sca=='')
|
if ($sca=='')
|
||||||
@@ -17,7 +17,7 @@ if ($board['bo_use_category']) {
|
|||||||
for ($i=0; $i<count($categories); $i++) {
|
for ($i=0; $i<count($categories); $i++) {
|
||||||
$category = trim($categories[$i]);
|
$category = trim($categories[$i]);
|
||||||
if ($category=='') continue;
|
if ($category=='') continue;
|
||||||
$category_option .= '<li><a href="'.($category_href."&sca=".urlencode($category)).'"';
|
$category_option .= '<li><a href="'.(get_pretty_url($bo_table,'','sca='.urlencode($category))).'"';
|
||||||
$category_msg = '';
|
$category_msg = '';
|
||||||
if ($category==$sca) { // 현재 선택된 카테고리라면
|
if ($category==$sca) { // 현재 선택된 카테고리라면
|
||||||
$category_option .= ' id="bo_cate_on"';
|
$category_option .= ' id="bo_cate_on"';
|
||||||
@@ -200,13 +200,15 @@ if($page_rows > 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, './board.php?bo_table='.$bo_table.$qstr.'&page=');
|
g5_latest_cache_data($board['bo_table'], $list);
|
||||||
|
|
||||||
|
$write_pages = get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, get_pretty_url($bo_table, '', $qstr.'&page='));
|
||||||
|
|
||||||
$list_href = '';
|
$list_href = '';
|
||||||
$prev_part_href = '';
|
$prev_part_href = '';
|
||||||
$next_part_href = '';
|
$next_part_href = '';
|
||||||
if ($is_search_bbs) {
|
if ($is_search_bbs) {
|
||||||
$list_href = './board.php?bo_table='.$bo_table;
|
$list_href = get_pretty_url($bo_table);
|
||||||
|
|
||||||
$patterns = array('#&page=[0-9]*#', '#&spt=[0-9\-]*#');
|
$patterns = array('#&page=[0-9]*#', '#&spt=[0-9\-]*#');
|
||||||
|
|
||||||
@@ -214,14 +216,14 @@ if ($is_search_bbs) {
|
|||||||
$prev_spt = $spt - $config['cf_search_part'];
|
$prev_spt = $spt - $config['cf_search_part'];
|
||||||
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
if (isset($min_spt) && $prev_spt >= $min_spt) {
|
||||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||||
$prev_part_href = './board.php?bo_table='.$bo_table.$qstr1.'&spt='.$prev_spt.'&page=1';
|
$prev_part_href = get_pretty_url($bo_table,0,$qstr1.'&spt='.$prev_spt.'&page=1');
|
||||||
$write_pages = page_insertbefore($write_pages, '<a href="'.$prev_part_href.'" class="pg_page pg_prev">이전검색</a>');
|
$write_pages = page_insertbefore($write_pages, '<a href="'.$prev_part_href.'" class="pg_page pg_prev">이전검색</a>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$next_spt = $spt + $config['cf_search_part'];
|
$next_spt = $spt + $config['cf_search_part'];
|
||||||
if ($next_spt < 0) {
|
if ($next_spt < 0) {
|
||||||
$qstr1 = preg_replace($patterns, '', $qstr);
|
$qstr1 = preg_replace($patterns, '', $qstr);
|
||||||
$next_part_href = './board.php?bo_table='.$bo_table.$qstr1.'&spt='.$next_spt.'&page=1';
|
$next_part_href = get_pretty_url($bo_table,0,$qstr1.'&spt='.$next_spt.'&page=1');
|
||||||
$write_pages = page_insertafter($write_pages, '<a href="'.$next_part_href.'" class="pg_page pg_end">다음검색</a>');
|
$write_pages = page_insertafter($write_pages, '<a href="'.$next_part_href.'" class="pg_page pg_end">다음검색</a>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,7 +231,7 @@ if ($is_search_bbs) {
|
|||||||
|
|
||||||
$write_href = '';
|
$write_href = '';
|
||||||
if ($member['mb_level'] >= $board['bo_write_level']) {
|
if ($member['mb_level'] >= $board['bo_write_level']) {
|
||||||
$write_href = './write.php?bo_table='.$bo_table;
|
$write_href = short_url_clean(G5_BBS_URL.'/write.php?bo_table='.$bo_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
$nobr_begin = $nobr_end = "";
|
$nobr_begin = $nobr_end = "";
|
||||||
@@ -241,7 +243,7 @@ if (preg_match("/gecko|firefox/i", $_SERVER['HTTP_USER_AGENT'])) {
|
|||||||
// RSS 보기 사용에 체크가 되어 있어야 RSS 보기 가능 061106
|
// RSS 보기 사용에 체크가 되어 있어야 RSS 보기 가능 061106
|
||||||
$rss_href = '';
|
$rss_href = '';
|
||||||
if ($board['bo_use_rss_view']) {
|
if ($board['bo_use_rss_view']) {
|
||||||
$rss_href = './rss.php?bo_table='.$bo_table;
|
$rss_href = G5_BBS_URL.'/rss.php?bo_table='.$bo_table;
|
||||||
}
|
}
|
||||||
|
|
||||||
$stx = get_text(stripslashes($stx));
|
$stx = get_text(stripslashes($stx));
|
||||||
|
|||||||
+3
-1
@@ -8,7 +8,7 @@ if( function_exists('social_check_login_before') ){
|
|||||||
$g5['title'] = '로그인';
|
$g5['title'] = '로그인';
|
||||||
include_once('./_head.sub.php');
|
include_once('./_head.sub.php');
|
||||||
|
|
||||||
$url = $_GET['url'];
|
$url = strip_tags($_GET['url']);
|
||||||
|
|
||||||
// url 체크
|
// url 체크
|
||||||
check_url_host($url);
|
check_url_host($url);
|
||||||
@@ -31,5 +31,7 @@ if (!file_exists($login_file))
|
|||||||
|
|
||||||
include_once($member_skin_path.'/login.skin.php');
|
include_once($member_skin_path.'/login.skin.php');
|
||||||
|
|
||||||
|
run_event('member_login_tail', $login_url, $login_action_url, $member_skin_path, $url);
|
||||||
|
|
||||||
include_once('./_tail.sub.php');
|
include_once('./_tail.sub.php');
|
||||||
?>
|
?>
|
||||||
+6
-1
@@ -29,7 +29,10 @@ if(function_exists('social_is_login_check')){
|
|||||||
// 가입된 회원이 아니다. 비밀번호가 틀리다. 라는 메세지를 따로 보여주지 않는 이유는
|
// 가입된 회원이 아니다. 비밀번호가 틀리다. 라는 메세지를 따로 보여주지 않는 이유는
|
||||||
// 회원아이디를 입력해 보고 맞으면 또 비밀번호를 입력해보는 경우를 방지하기 위해서입니다.
|
// 회원아이디를 입력해 보고 맞으면 또 비밀번호를 입력해보는 경우를 방지하기 위해서입니다.
|
||||||
// 불법사용자의 경우 회원아이디가 틀린지, 비밀번호가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다.
|
// 불법사용자의 경우 회원아이디가 틀린지, 비밀번호가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다.
|
||||||
if (!$is_social_password_check && (!$mb['mb_id'] || !check_password($mb_password, $mb['mb_password'])) ) {
|
if (!$is_social_password_check && (!$mb['mb_id'] || !login_password_check($mb, $mb_password, $mb['mb_password'])) ) {
|
||||||
|
|
||||||
|
run_event('password_is_wrong', 'login', $mb);
|
||||||
|
|
||||||
alert('가입된 회원아이디가 아니거나 비밀번호가 틀립니다.\\n비밀번호는 대소문자를 구분합니다.');
|
alert('가입된 회원아이디가 아니거나 비밀번호가 틀립니다.\\n비밀번호는 대소문자를 구분합니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,5 +121,7 @@ if(function_exists('social_login_success_after')){
|
|||||||
social_login_session_clear(1);
|
social_login_session_clear(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('member_login_check', $mb, $link);
|
||||||
|
|
||||||
goto_url($link);
|
goto_url($link);
|
||||||
?>
|
?>
|
||||||
+3
-1
@@ -29,10 +29,12 @@ if ($url) {
|
|||||||
|
|
||||||
$link = $url;
|
$link = $url;
|
||||||
} else if ($bo_table) {
|
} else if ($bo_table) {
|
||||||
$link = G5_BBS_URL.'/board.php?bo_table='.$bo_table;
|
$link = get_pretty_url($bo_table);
|
||||||
} else {
|
} else {
|
||||||
$link = G5_URL;
|
$link = G5_URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('member_logout', $link);
|
||||||
|
|
||||||
goto_url($link);
|
goto_url($link);
|
||||||
?>
|
?>
|
||||||
@@ -14,7 +14,7 @@ else
|
|||||||
$url = clean_xss_tags($_GET['url']);
|
$url = clean_xss_tags($_GET['url']);
|
||||||
|
|
||||||
//소셜 로그인 한 경우
|
//소셜 로그인 한 경우
|
||||||
if( function_exists('social_member_comfirm_redirect') && (! $url || $url === 'register_form.php') ){
|
if( function_exists('social_member_comfirm_redirect') && (! $url || $url === 'register_form.php' || (function_exists('social_is_edit_page') && social_is_edit_page($url) ) ) ){
|
||||||
social_member_comfirm_redirect();
|
social_member_comfirm_redirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
-3
@@ -18,12 +18,15 @@ else if ($kind == 'send')
|
|||||||
else
|
else
|
||||||
alert(''.$kind .'값을 넘겨주세요.');
|
alert(''.$kind .'값을 넘겨주세요.');
|
||||||
|
|
||||||
$sql = " select count(*) as cnt from {$g5['memo_table']} where me_{$kind}_mb_id = '{$member['mb_id']}' ";
|
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||||
|
|
||||||
|
run_event('memo_list', $kind, $unkind, $page);
|
||||||
|
|
||||||
|
$sql = " select count(*) as cnt from {$g5['memo_table']} where me_{$kind}_mb_id = '{$member['mb_id']}' and me_type = '$kind' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
$total_count = $row['cnt'];
|
$total_count = $row['cnt'];
|
||||||
|
|
||||||
$total_page = ceil($total_count / $config['cf_page_rows']); // 전체 페이지 계산
|
$total_page = ceil($total_count / $config['cf_page_rows']); // 전체 페이지 계산
|
||||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
|
||||||
$from_record = ((int) $page - 1) * $config['cf_page_rows']; // 시작 열을 구함
|
$from_record = ((int) $page - 1) * $config['cf_page_rows']; // 시작 열을 구함
|
||||||
|
|
||||||
if ($kind == 'recv')
|
if ($kind == 'recv')
|
||||||
@@ -44,8 +47,9 @@ $list = array();
|
|||||||
$sql = " select a.*, b.mb_id, b.mb_nick, b.mb_email, b.mb_homepage
|
$sql = " select a.*, b.mb_id, b.mb_nick, b.mb_email, b.mb_homepage
|
||||||
from {$g5['memo_table']} a
|
from {$g5['memo_table']} a
|
||||||
left join {$g5['member_table']} b on (a.me_{$unkind}_mb_id = b.mb_id)
|
left join {$g5['member_table']} b on (a.me_{$unkind}_mb_id = b.mb_id)
|
||||||
where a.me_{$kind}_mb_id = '{$member['mb_id']}'
|
where a.me_{$kind}_mb_id = '{$member['mb_id']}' and a.me_type = '$kind'
|
||||||
order by a.me_id desc limit $from_record, {$config['cf_page_rows']} ";
|
order by a.me_id desc limit $from_record, {$config['cf_page_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++)
|
||||||
{
|
{
|
||||||
@@ -67,6 +71,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
|
|
||||||
$send_datetime = substr($row['me_send_datetime'],2,14);
|
$send_datetime = substr($row['me_send_datetime'],2,14);
|
||||||
|
|
||||||
|
$list[$i]['mb_id'] = $mb_id;
|
||||||
$list[$i]['name'] = $name;
|
$list[$i]['name'] = $name;
|
||||||
$list[$i]['send_datetime'] = $send_datetime;
|
$list[$i]['send_datetime'] = $send_datetime;
|
||||||
$list[$i]['read_datetime'] = $read_datetime;
|
$list[$i]['read_datetime'] = $read_datetime;
|
||||||
|
|||||||
+9
-4
@@ -15,6 +15,11 @@ $me_id = (int)$_REQUEST['me_id'];
|
|||||||
$sql = " select * from {$g5['memo_table']} where me_id = '{$me_id}' ";
|
$sql = " select * from {$g5['memo_table']} where me_id = '{$me_id}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
|
|
||||||
|
$sql = " delete from {$g5['memo_table']}
|
||||||
|
where me_id = '{$me_id}'
|
||||||
|
and (me_recv_mb_id = '{$member['mb_id']}' or me_send_mb_id = '{$member['mb_id']}') ";
|
||||||
|
sql_query($sql);
|
||||||
|
|
||||||
if (!$row['me_read_datetime'][0]) // 메모 받기전이면
|
if (!$row['me_read_datetime'][0]) // 메모 받기전이면
|
||||||
{
|
{
|
||||||
$sql = " update {$g5['member_table']}
|
$sql = " update {$g5['member_table']}
|
||||||
@@ -22,12 +27,12 @@ if (!$row['me_read_datetime'][0]) // 메모 받기전이면
|
|||||||
where mb_id = '{$row['me_recv_mb_id']}'
|
where mb_id = '{$row['me_recv_mb_id']}'
|
||||||
and mb_memo_call = '{$row['me_send_mb_id']}' ";
|
and mb_memo_call = '{$row['me_send_mb_id']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
$sql = " update `{$g5['member_table']}` set mb_memo_cnt = '".get_memo_not_read($member['mb_id'])."' where mb_id = '{$member['mb_id']}' ";
|
||||||
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " delete from {$g5['memo_table']}
|
run_event('memo_delete', $me_id, $row);
|
||||||
where me_id = '{$me_id}'
|
|
||||||
and (me_recv_mb_id = '{$member['mb_id']}' or me_send_mb_id = '{$member['mb_id']}') ";
|
|
||||||
sql_query($sql);
|
|
||||||
|
|
||||||
goto_url('./memo.php?kind='.$kind);
|
goto_url('./memo.php?kind='.$kind);
|
||||||
?>
|
?>
|
||||||
@@ -13,7 +13,10 @@ $recv_list = explode(',', trim($_POST['me_recv_mb_id']));
|
|||||||
$str_nick_list = '';
|
$str_nick_list = '';
|
||||||
$msg = '';
|
$msg = '';
|
||||||
$error_list = array();
|
$error_list = array();
|
||||||
$member_list = array();
|
$member_list = array('id'=>array(), 'nick'=>array());
|
||||||
|
|
||||||
|
run_event('memo_form_update_before', $recv_list);
|
||||||
|
|
||||||
for ($i=0; $i<count($recv_list); $i++) {
|
for ($i=0; $i<count($recv_list); $i++) {
|
||||||
$row = sql_fetch(" select mb_id, mb_nick, mb_open, mb_leave_date, mb_intercept_date from {$g5['member_table']} where mb_id = '{$recv_list[$i]}' ");
|
$row = sql_fetch(" select mb_id, mb_nick, mb_open, mb_leave_date, mb_intercept_date from {$g5['member_table']} where mb_id = '{$recv_list[$i]}' ");
|
||||||
if ($row) {
|
if ($row) {
|
||||||
@@ -41,6 +44,10 @@ $error_msg = implode(",", $error_list);
|
|||||||
if ($error_msg && !$is_admin)
|
if ($error_msg && !$is_admin)
|
||||||
alert("회원아이디 '{$error_msg}' 은(는) 존재(또는 정보공개)하지 않는 회원아이디 이거나 탈퇴, 접근차단된 회원아이디 입니다.\\n쪽지를 발송하지 않았습니다.");
|
alert("회원아이디 '{$error_msg}' 은(는) 존재(또는 정보공개)하지 않는 회원아이디 이거나 탈퇴, 접근차단된 회원아이디 입니다.\\n쪽지를 발송하지 않았습니다.");
|
||||||
|
|
||||||
|
if (! count($member_list['id'])){
|
||||||
|
alert('해당 회원이 존재하지 않습니다.');
|
||||||
|
}
|
||||||
|
|
||||||
if (!$is_admin) {
|
if (!$is_admin) {
|
||||||
if (count($member_list['id'])) {
|
if (count($member_list['id'])) {
|
||||||
$point = (int)$config['cf_memo_send_point'] * count($member_list['id']);
|
$point = (int)$config['cf_memo_send_point'] * count($member_list['id']);
|
||||||
@@ -59,12 +66,21 @@ for ($i=0; $i<count($member_list['id']); $i++) {
|
|||||||
$recv_mb_id = $member_list['id'][$i];
|
$recv_mb_id = $member_list['id'][$i];
|
||||||
$recv_mb_nick = get_text($member_list['nick'][$i]);
|
$recv_mb_nick = get_text($member_list['nick'][$i]);
|
||||||
|
|
||||||
// 쪽지 INSERT
|
// 받는 회원 쪽지 INSERT
|
||||||
$sql = " insert into {$g5['memo_table']} ( me_id, me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo ) values ( '$me_id', '$recv_mb_id', '{$member['mb_id']}', '".G5_TIME_YMDHIS."', '{$_POST['me_memo']}' ) ";
|
$sql = " insert into {$g5['memo_table']} ( me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo, me_read_datetime, me_type, me_send_ip ) values ( '$recv_mb_id', '{$member['mb_id']}', '".G5_TIME_YMDHIS."', '{$_POST['me_memo']}', '0000-00-00 00:00:00' , 'recv', '{$_SERVER['REMOTE_ADDR']}' ) ";
|
||||||
|
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
if( $me_id = sql_insert_id() ){
|
||||||
|
|
||||||
|
// 보내는 회원 쪽지 INSERT
|
||||||
|
$sql = " insert into {$g5['memo_table']} ( me_recv_mb_id, me_send_mb_id, me_send_datetime, me_memo, me_read_datetime, me_send_id, me_type , me_send_ip ) values ( '$recv_mb_id', '{$member['mb_id']}', '".G5_TIME_YMDHIS."', '{$_POST['me_memo']}', '0000-00-00 00:00:00', '$me_id', 'send', '{$_SERVER['REMOTE_ADDR']}' ) ";
|
||||||
|
sql_query($sql);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// 실시간 쪽지 알림 기능
|
// 실시간 쪽지 알림 기능
|
||||||
$sql = " update {$g5['member_table']} set mb_memo_call = '{$member['mb_id']}' where mb_id = '$recv_mb_id' ";
|
$sql = " update {$g5['member_table']} set mb_memo_call = '{$member['mb_id']}', mb_memo_cnt = '".get_memo_not_read($recv_mb_id)."' where mb_id = '$recv_mb_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
if (!$is_admin) {
|
if (!$is_admin) {
|
||||||
@@ -73,9 +89,21 @@ for ($i=0; $i<count($member_list['id']); $i++) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($member_list) {
|
if ($member_list) {
|
||||||
|
|
||||||
|
$redirect_url = G5_HTTP_BBS_URL."/memo.php?kind=send";
|
||||||
$str_nick_list = implode(',', $member_list['nick']);
|
$str_nick_list = implode(',', $member_list['nick']);
|
||||||
alert($str_nick_list." 님께 쪽지를 전달하였습니다.", G5_HTTP_BBS_URL."/memo.php?kind=send", false);
|
|
||||||
|
run_event('memo_form_update_after', $member_list, $str_nick_list, $redirect_url);
|
||||||
|
|
||||||
|
alert($str_nick_list." 님께 쪽지를 전달하였습니다.", $redirect_url, false);
|
||||||
} else {
|
} else {
|
||||||
alert("회원아이디 오류 같습니다.", G5_HTTP_BBS_URL."/memo_form.php", false);
|
|
||||||
|
$redirect_url = G5_HTTP_BBS_URL."/memo_form.php";
|
||||||
|
|
||||||
|
run_event('memo_form_update_failed', $member_list, $redirect_url);
|
||||||
|
|
||||||
|
exit;
|
||||||
|
|
||||||
|
alert("회원아이디 오류 같습니다.", $redirect_url, false);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
+20
-20
@@ -13,10 +13,13 @@ if ($kind == 'recv')
|
|||||||
|
|
||||||
$sql = " update {$g5['memo_table']}
|
$sql = " update {$g5['memo_table']}
|
||||||
set me_read_datetime = '".G5_TIME_YMDHIS."'
|
set me_read_datetime = '".G5_TIME_YMDHIS."'
|
||||||
where me_id = '$me_id'
|
where (me_id = '$me_id' or me_send_id = '$me_id' )
|
||||||
and me_recv_mb_id = '{$member['mb_id']}'
|
and me_recv_mb_id = '{$member['mb_id']}'
|
||||||
and me_read_datetime = '0000-00-00 00:00:00' ";
|
and me_read_datetime = '0000-00-00 00:00:00' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
$sql = " update `{$g5['member_table']}` set mb_memo_cnt = '".get_memo_not_read($member['mb_id'])."' where mb_id = '{$member['mb_id']}' ";
|
||||||
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
else if ($kind == 'send')
|
else if ($kind == 'send')
|
||||||
{
|
{
|
||||||
@@ -37,31 +40,28 @@ $sql = " select * from {$g5['memo_table']}
|
|||||||
$memo = sql_fetch($sql);
|
$memo = sql_fetch($sql);
|
||||||
|
|
||||||
// 이전 쪽지
|
// 이전 쪽지
|
||||||
$sql = " select * from {$g5['memo_table']}
|
$sql = " select me.*, a.rownum from `{$g5['memo_table']}` as me inner join ( select me_id , (@rownum:=@rownum+1) as rownum from `{$g5['memo_table']}` as memo, (select @rownum:=0) tmp where me_{$kind}_mb_id = '{$member['mb_id']}' and memo.me_type = '$kind' order by me_id desc ) as a on a.me_id = me.me_id where me.me_id < '$me_id' and me.me_{$kind}_mb_id = '{$member['mb_id']}' and me.me_type = '$kind' order by me.me_id desc limit 1 ";
|
||||||
where me_id > '{$me_id}'
|
|
||||||
and me_{$kind}_mb_id = '{$member['mb_id']}'
|
|
||||||
order by me_id asc
|
|
||||||
limit 1 ";
|
|
||||||
$prev = sql_fetch($sql);
|
|
||||||
if ($prev['me_id'])
|
|
||||||
$prev_link = './memo_view.php?kind='.$kind.'&me_id='.$prev['me_id'];
|
|
||||||
else
|
|
||||||
//$prev_link = 'javascript:alert(\'쪽지의 처음입니다.\');';
|
|
||||||
$prev_link = '';
|
|
||||||
|
|
||||||
|
$prev = sql_fetch($sql);
|
||||||
|
if ($prev['me_id']) {
|
||||||
|
$prev_link = './memo_view.php?kind='.$kind.'&me_id='.$prev['me_id'];
|
||||||
|
$prev['page'] = ceil( (int)$prev['rownum'] / $config['cf_page_rows']); // 이동할 페이지 계산
|
||||||
|
if( (int)$prev['page'] > 0 ) $prev_link .= "&page=".$prev['page'];
|
||||||
|
} else {
|
||||||
|
$prev_link = '';
|
||||||
|
}
|
||||||
|
|
||||||
// 다음 쪽지
|
// 다음 쪽지
|
||||||
$sql = " select * from {$g5[memo_table]}
|
$sql = " select me.*, a.rownum from `{$g5['memo_table']}` as me inner join ( select me_id , (@rownum:=@rownum+1) as rownum from `{$g5['memo_table']}` as memo, (select @rownum:=0) tmp where me_{$kind}_mb_id = '{$member['mb_id']}' and memo.me_type = '$kind' order by me_id asc ) as a on a.me_id = me.me_id where me.me_id > '$me_id' and me.me_{$kind}_mb_id = '{$member['mb_id']}' and me.me_type = '$kind' order by me.me_id asc limit 1 ";
|
||||||
where me_id < '{$me_id}'
|
|
||||||
and me_{$kind}_mb_id = '{$member[mb_id]}'
|
|
||||||
order by me_id desc
|
|
||||||
limit 1 ";
|
|
||||||
$next = sql_fetch($sql);
|
$next = sql_fetch($sql);
|
||||||
if ($next['me_id'])
|
if ($next['me_id']) {
|
||||||
$next_link = './memo_view.php?kind='.$kind.'&me_id='.$next['me_id'];
|
$next_link = './memo_view.php?kind='.$kind.'&me_id='.$next['me_id'];
|
||||||
else
|
$next['page'] = ceil( (int)$next['rownum'] / $config['cf_page_rows']); // 이동할 페이지 계산
|
||||||
//$next_link = 'javascript:alert(\'쪽지의 마지막입니다.\');';
|
if( (int)$next['page'] > 0 ) $next_link .= "&page=".$next['page'];
|
||||||
|
} else {
|
||||||
$next_link = '';
|
$next_link = '';
|
||||||
|
}
|
||||||
|
|
||||||
$mb = get_member($memo['me_'.$unkind.'_mb_id']);
|
$mb = get_member($memo['me_'.$unkind.'_mb_id']);
|
||||||
|
|
||||||
|
|||||||
@@ -156,5 +156,6 @@ function fboardmoveall_submit(f)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
run_event('move_html_footer');
|
||||||
include_once(G5_PATH.'/tail.sub.php');
|
include_once(G5_PATH.'/tail.sub.php');
|
||||||
?>
|
?>
|
||||||
+14
-4
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
$act = isset($act) ? strip_tags($act) : '';
|
||||||
|
|
||||||
// 게시판 관리자 이상 복사, 이동 가능
|
// 게시판 관리자 이상 복사, 이동 가능
|
||||||
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
||||||
alert_close('게시판 관리자 이상 접근이 가능합니다.');
|
alert_close('게시판 관리자 이상 접근이 가능합니다.');
|
||||||
@@ -125,7 +127,7 @@ while ($row = sql_fetch_array($result))
|
|||||||
// 제이프로님 코드제안 적용
|
// 제이프로님 코드제안 적용
|
||||||
$copy_file_name = ($bo_table !== $move_bo_table) ? $row3['bf_file'] : $row2['wr_id'].'_copy_'.$insert_id.'_'.$row3['bf_file'];
|
$copy_file_name = ($bo_table !== $move_bo_table) ? $row3['bf_file'] : $row2['wr_id'].'_copy_'.$insert_id.'_'.$row3['bf_file'];
|
||||||
@copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$copy_file_name);
|
@copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$copy_file_name);
|
||||||
@chmod($dst_dir/$row3['bf_file'], G5_FILE_PERMISSION);
|
@chmod($dst_dir.'/'.$copy_file_name, G5_FILE_PERMISSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = " insert into {$g5['board_file_table']}
|
$sql = " insert into {$g5['board_file_table']}
|
||||||
@@ -196,8 +198,14 @@ if ($sw == 'move')
|
|||||||
{
|
{
|
||||||
for ($i=0; $i<count($save); $i++)
|
for ($i=0; $i<count($save); $i++)
|
||||||
{
|
{
|
||||||
for ($k=0; $k<count($save[$i]['bf_file']); $k++)
|
if( isset($save[$i]['bf_file']) && $save[$i]['bf_file'] ){
|
||||||
@unlink($save[$i]['bf_file'][$k]);
|
for ($k=0; $k<count($save[$i]['bf_file']); $k++) {
|
||||||
|
@unlink($save[$i]['bf_file'][$k]);
|
||||||
|
|
||||||
|
// 썸네일 파일 삭제, 먼지손 님 코드 제안
|
||||||
|
delete_board_thumbnail($bo_table, basename($save[$i]['bf_file'][$k]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sql_query(" delete from $write_table where wr_parent = '{$save[$i]['wr_id']}' ");
|
sql_query(" delete from $write_table where wr_parent = '{$save[$i]['wr_id']}' ");
|
||||||
sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
|
sql_query(" delete from {$g5['board_new_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
|
||||||
@@ -207,9 +215,11 @@ if ($sw == 'move')
|
|||||||
}
|
}
|
||||||
|
|
||||||
$msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.';
|
$msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.';
|
||||||
$opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&'.$qstr;
|
$opener_href = get_pretty_url($bo_table,'','&page='.$page.'&'.$qstr);
|
||||||
$opener_href1 = str_replace('&', '&', $opener_href);
|
$opener_href1 = str_replace('&', '&', $opener_href);
|
||||||
|
|
||||||
|
run_event('bbs_move_update', $bo_table, $chk_bo_table, $wr_id_list, $opener_href);
|
||||||
|
|
||||||
echo <<<HEREDOC
|
echo <<<HEREDOC
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
$list[$i]['bo_table'] = $row['bo_table'];
|
$list[$i]['bo_table'] = $row['bo_table'];
|
||||||
$list[$i]['name'] = $name;
|
$list[$i]['name'] = $name;
|
||||||
$list[$i]['comment'] = $comment;
|
$list[$i]['comment'] = $comment;
|
||||||
$list[$i]['href'] = './board.php?bo_table='.$row['bo_table'].'&wr_id='.$row2['wr_id'].$comment_link;
|
$list[$i]['href'] = get_pretty_url($row['bo_table'], $row2['wr_id'], $comment_link);
|
||||||
$list[$i]['datetime'] = $datetime;
|
$list[$i]['datetime'] = $datetime;
|
||||||
$list[$i]['datetime2'] = $datetime2;
|
$list[$i]['datetime2'] = $datetime2;
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -87,7 +87,7 @@ for($i=0;$i<count($_POST['chk_bn_id']);$i++)
|
|||||||
$lf = '';
|
$lf = '';
|
||||||
for ($k=0; $k<count($notice_array); $k++) {
|
for ($k=0; $k<count($notice_array); $k++) {
|
||||||
if ((int)$write['wr_id'] != (int)$notice_array[$k])
|
if ((int)$write['wr_id'] != (int)$notice_array[$k])
|
||||||
$bo_notice .= $nl.$notice_array[$k];
|
$bo_notice .= $lf.$notice_array[$k];
|
||||||
|
|
||||||
if($bo_notice)
|
if($bo_notice)
|
||||||
$lf = ',';
|
$lf = ',';
|
||||||
@@ -117,7 +117,7 @@ for($i=0;$i<count($_POST['chk_bn_id']);$i++)
|
|||||||
|
|
||||||
// 코멘트 삭제
|
// 코멘트 삭제
|
||||||
if (!delete_point($write['mb_id'], $bo_table, $comment_id, '코멘트')) {
|
if (!delete_point($write['mb_id'], $bo_table, $comment_id, '코멘트')) {
|
||||||
insert_point($write['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write[wr_parent]}-{$comment_id} 코멘트삭제");
|
insert_point($write['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write['wr_parent']}-{$comment_id} 코멘트삭제");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 코멘트 삭제
|
// 코멘트 삭제
|
||||||
@@ -143,5 +143,7 @@ foreach ($save_bo_table as $key=>$value) {
|
|||||||
delete_cache_latest($value);
|
delete_cache_latest($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('bbs_new_delete', $chk_bn_id, $save_bo_table);
|
||||||
|
|
||||||
goto_url("new.php?sfl=$sfl&stx=$stx&page=$page");
|
goto_url("new.php?sfl=$sfl&stx=$stx&page=$page");
|
||||||
?>
|
?>
|
||||||
+7
-7
@@ -6,35 +6,35 @@ $g5['title'] = '비밀번호 입력';
|
|||||||
switch ($w) {
|
switch ($w) {
|
||||||
case 'u' :
|
case 'u' :
|
||||||
$action = G5_HTTP_BBS_URL.'/write.php';
|
$action = G5_HTTP_BBS_URL.'/write.php';
|
||||||
$return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$return_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
||||||
break;
|
break;
|
||||||
case 'd' :
|
case 'd' :
|
||||||
set_session('ss_delete_token', $token = uniqid(time()));
|
set_session('ss_delete_token', $token = uniqid(time()));
|
||||||
$action = https_url(G5_BBS_DIR).'/delete.php?token='.$token;
|
$action = https_url(G5_BBS_DIR).'/delete.php?token='.$token;
|
||||||
$return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$return_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
||||||
break;
|
break;
|
||||||
case 'x' :
|
case 'x' :
|
||||||
set_session('ss_delete_comment_'.$comment_id.'_token', $token = uniqid(time()));
|
set_session('ss_delete_comment_'.$comment_id.'_token', $token = uniqid(time()));
|
||||||
$action = https_url(G5_BBS_DIR).'/delete_comment.php?token='.$token;
|
$action = https_url(G5_BBS_DIR).'/delete_comment.php?token='.$token;
|
||||||
$row = sql_fetch(" select wr_parent from $write_table where wr_id = '$comment_id' ");
|
$row = sql_fetch(" select wr_parent from $write_table where wr_id = '$comment_id' ");
|
||||||
$return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent'];
|
$return_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_parent']);
|
||||||
break;
|
break;
|
||||||
case 's' :
|
case 's' :
|
||||||
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
||||||
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||||
else {
|
else {
|
||||||
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
||||||
$return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table;
|
$return_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'sc' :
|
case 'sc' :
|
||||||
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
// 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감
|
||||||
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id']))
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id));
|
||||||
else {
|
else {
|
||||||
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
$action = https_url(G5_BBS_DIR).'/password_check.php';
|
||||||
$return_url = G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$return_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
|||||||
+19
-3
@@ -6,8 +6,16 @@ if ($w == 's') {
|
|||||||
|
|
||||||
$wr = get_write($write_table, $wr_id);
|
$wr = get_write($write_table, $wr_id);
|
||||||
|
|
||||||
if (!check_password($wr_password, $wr['wr_password']))
|
if( !$wr['wr_password'] && $wr['mb_id'] ){
|
||||||
|
if ( $mb = get_member($wr['mb_id']) ){
|
||||||
|
$wr['wr_password'] = $mb['mb_password'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!check_password($wr_password, $wr['wr_password'])) {
|
||||||
|
run_event('password_is_wrong', 'bbs', $wr, $qstr);
|
||||||
alert('비밀번호가 틀립니다.');
|
alert('비밀번호가 틀립니다.');
|
||||||
|
}
|
||||||
|
|
||||||
// 세션에 아래 정보를 저장. 하위번호는 비밀번호없이 보아야 하기 때문임.
|
// 세션에 아래 정보를 저장. 하위번호는 비밀번호없이 보아야 하기 때문임.
|
||||||
//$ss_name = 'ss_secret.'_'.$bo_table.'_'.$wr_id';
|
//$ss_name = 'ss_secret.'_'.$bo_table.'_'.$wr_id';
|
||||||
@@ -20,8 +28,16 @@ if ($w == 's') {
|
|||||||
|
|
||||||
$wr = get_write($write_table, $wr_id);
|
$wr = get_write($write_table, $wr_id);
|
||||||
|
|
||||||
if (!check_password($wr_password, $wr['wr_password']))
|
if( !$wr['wr_password'] && $wr['mb_id'] ){
|
||||||
|
if ( $mb = get_member($wr['mb_id']) ){
|
||||||
|
$wr['wr_password'] = $mb['mb_password'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!check_password($wr_password, $wr['wr_password'])){
|
||||||
|
run_event('password_is_wrong', 'bbs', $wr, $qstr);
|
||||||
alert('비밀번호가 틀립니다.');
|
alert('비밀번호가 틀립니다.');
|
||||||
|
}
|
||||||
|
|
||||||
// 세션에 아래 정보를 저장. 하위번호는 비밀번호없이 보아야 하기 때문임.
|
// 세션에 아래 정보를 저장. 하위번호는 비밀번호없이 보아야 하기 때문임.
|
||||||
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$wr['wr_id'];
|
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$wr['wr_id'];
|
||||||
@@ -31,5 +47,5 @@ if ($w == 's') {
|
|||||||
} else
|
} else
|
||||||
alert('w 값이 제대로 넘어오지 않았습니다.');
|
alert('w 값이 제대로 넘어오지 않았습니다.');
|
||||||
|
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?'.$qstr);
|
goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?'.$qstr));
|
||||||
?>
|
?>
|
||||||
@@ -11,7 +11,7 @@ if (!chk_captcha()) {
|
|||||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$email = trim($_POST['mb_email']);
|
$email = get_email_address(trim($_POST['mb_email']));
|
||||||
|
|
||||||
if (!$email)
|
if (!$email)
|
||||||
alert_close('메일주소 오류입니다.');
|
alert_close('메일주소 오류입니다.');
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 봇의 메일 링크 크롤링을 방지합니다.
|
||||||
|
if(function_exists('check_mail_bot')){ check_mail_bot($_SERVER['REMOTE_ADDR']); }
|
||||||
|
|
||||||
// 오류시 공히 Error 라고 처리하는 것은 회원정보가 있는지? 비밀번호가 틀린지? 를 알아보려는 해킹에 대비한것
|
// 오류시 공히 Error 라고 처리하는 것은 회원정보가 있는지? 비밀번호가 틀린지? 를 알아보려는 해킹에 대비한것
|
||||||
|
|
||||||
$mb_no = trim($_GET['mb_no']);
|
$mb_no = trim($_GET['mb_no']);
|
||||||
|
|||||||
@@ -7,7 +7,10 @@ if (!$member['mb_id'])
|
|||||||
if (!$member['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
|
if (!$member['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
|
||||||
alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
|
alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
|
||||||
|
|
||||||
|
$mb_id = isset($mb_id) ? $mb_id : '';
|
||||||
|
|
||||||
$mb = get_member($mb_id);
|
$mb = get_member($mb_id);
|
||||||
|
|
||||||
if (!$mb['mb_id'])
|
if (!$mb['mb_id'])
|
||||||
alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.');
|
alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.');
|
||||||
|
|
||||||
|
|||||||
@@ -317,6 +317,8 @@ if($w == '' || $w == 'a' || $w == 'r') {
|
|||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('qawrite_update', $qa_id, $write, $w, $qaconfig);
|
||||||
|
|
||||||
// SMS 알림
|
// SMS 알림
|
||||||
if($config['cf_sms_use'] == 'icode' && $qaconfig['qa_use_sms']) {
|
if($config['cf_sms_use'] == 'icode' && $qaconfig['qa_use_sms']) {
|
||||||
if($config['cf_sms_type'] == 'LMS') {
|
if($config['cf_sms_type'] == 'LMS') {
|
||||||
|
|||||||
+10
-8
@@ -76,12 +76,14 @@ if ($w == "") {
|
|||||||
|
|
||||||
if ($_POST['mb_password']) {
|
if ($_POST['mb_password']) {
|
||||||
// 수정된 정보를 업데이트후 되돌아 온것이라면 비밀번호가 암호화 된채로 넘어온것임
|
// 수정된 정보를 업데이트후 되돌아 온것이라면 비밀번호가 암호화 된채로 넘어온것임
|
||||||
if ($_POST['is_update'])
|
if ($_POST['is_update']) {
|
||||||
$tmp_password = $_POST['mb_password'];
|
$tmp_password = $_POST['mb_password'];
|
||||||
else
|
$pass_check = ($member['mb_password'] === $tmp_password);
|
||||||
$tmp_password = get_encrypt_string($_POST['mb_password']);
|
} else {
|
||||||
|
$pass_check = check_password($_POST['mb_password'], $member['mb_password']);
|
||||||
|
}
|
||||||
|
|
||||||
if ($member['mb_password'] != $tmp_password)
|
if (!$pass_check)
|
||||||
alert('비밀번호가 틀립니다.');
|
alert('비밀번호가 틀립니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,12 +119,12 @@ if ($w == "") {
|
|||||||
include_once('./_head.php');
|
include_once('./_head.php');
|
||||||
|
|
||||||
// 회원아이콘 경로
|
// 회원아이콘 경로
|
||||||
$mb_icon_path = G5_DATA_PATH.'/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
$mb_icon_path = G5_DATA_PATH.'/member/'.substr($member['mb_id'],0,2).'/'.get_mb_icon_name($member['mb_id']).'.gif';
|
||||||
$mb_icon_url = G5_DATA_URL.'/member/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
$mb_icon_url = G5_DATA_URL.'/member/'.substr($member['mb_id'],0,2).'/'.get_mb_icon_name($member['mb_id']).'.gif';
|
||||||
|
|
||||||
// 회원이미지 경로
|
// 회원이미지 경로
|
||||||
$mb_img_path = G5_DATA_PATH.'/member_image/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
$mb_img_path = G5_DATA_PATH.'/member_image/'.substr($member['mb_id'],0,2).'/'.get_mb_icon_name($member['mb_id']).'.gif';
|
||||||
$mb_img_url = G5_DATA_URL.'/member_image/'.substr($member['mb_id'],0,2).'/'.$member['mb_id'].'.gif';
|
$mb_img_url = G5_DATA_URL.'/member_image/'.substr($member['mb_id'],0,2).'/'.get_mb_icon_name($member['mb_id']).'.gif';
|
||||||
|
|
||||||
$register_action_url = G5_HTTPS_BBS_URL.'/register_form_update.php';
|
$register_action_url = G5_HTTPS_BBS_URL.'/register_form_update.php';
|
||||||
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400)));
|
$req_nick = !isset($member['mb_nick_date']) || (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", G5_SERVER_TIME - ($config['cf_nick_modify'] * 86400)));
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ $mb_addr2 = clean_xss_tags($mb_addr2);
|
|||||||
$mb_addr3 = clean_xss_tags($mb_addr3);
|
$mb_addr3 = clean_xss_tags($mb_addr3);
|
||||||
$mb_addr_jibeon = preg_match("/^(N|R)$/", $mb_addr_jibeon) ? $mb_addr_jibeon : '';
|
$mb_addr_jibeon = preg_match("/^(N|R)$/", $mb_addr_jibeon) ? $mb_addr_jibeon : '';
|
||||||
|
|
||||||
|
run_event('register_form_update_before', $mb_id, $w);
|
||||||
|
|
||||||
if ($w == '' || $w == 'u') {
|
if ($w == '' || $w == 'u') {
|
||||||
|
|
||||||
if ($msg = empty_mb_id($mb_id)) alert($msg, "", true, true); // alert($msg, $url, $error, $post);
|
if ($msg = empty_mb_id($mb_id)) alert($msg, "", true, true); // alert($msg, $url, $error, $post);
|
||||||
@@ -146,6 +148,8 @@ if ($w == '' || $w == 'u') {
|
|||||||
$old_email = $member['mb_email'];
|
$old_email = $member['mb_email'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('register_form_update_valid', $w, $mb_id, $mb_nick, $mb_email);
|
||||||
|
|
||||||
if ($msg = exist_mb_nick($mb_nick, $mb_id)) alert($msg, "", true, true);
|
if ($msg = exist_mb_nick($mb_nick, $mb_id)) alert($msg, "", true, true);
|
||||||
if ($msg = exist_mb_email($mb_email, $mb_id)) alert($msg, "", true, true);
|
if ($msg = exist_mb_email($mb_email, $mb_id)) alert($msg, "", true, true);
|
||||||
}
|
}
|
||||||
@@ -266,8 +270,12 @@ if ($w == '') {
|
|||||||
$content = ob_get_contents();
|
$content = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
|
$content = run_replace('register_form_update_mail_mb_content', $content, $mb_id);
|
||||||
|
|
||||||
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content, 1);
|
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content, 1);
|
||||||
|
|
||||||
|
run_event('register_form_update_send_mb_mail', $config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content);
|
||||||
|
|
||||||
// 메일인증을 사용하는 경우 가입메일에 인증 url이 있으므로 인증메일을 다시 발송되지 않도록 함
|
// 메일인증을 사용하는 경우 가입메일에 인증 url이 있으므로 인증메일을 다시 발송되지 않도록 함
|
||||||
if($config['cf_use_email_certify'])
|
if($config['cf_use_email_certify'])
|
||||||
$old_email = $mb_email;
|
$old_email = $mb_email;
|
||||||
@@ -275,14 +283,18 @@ if ($w == '') {
|
|||||||
|
|
||||||
// 최고관리자님께 메일 발송
|
// 최고관리자님께 메일 발송
|
||||||
if ($config['cf_email_mb_super_admin']) {
|
if ($config['cf_email_mb_super_admin']) {
|
||||||
$subject = '['.$config['cf_title'].'] '.$mb_nick .' 님께서 회원으로 가입하셨습니다.';
|
$subject = run_replace('register_form_update_mail_admin_subject', '['.$config['cf_title'].'] '.$mb_nick .' 님께서 회원으로 가입하셨습니다.', $mb_id, $mb_nick);
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
include_once ('./register_form_update_mail2.php');
|
include_once ('./register_form_update_mail2.php');
|
||||||
$content = ob_get_contents();
|
$content = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
|
$content = run_replace('register_form_update_mail_admin_content', $content, $mb_id);
|
||||||
|
|
||||||
mailer($mb_nick, $mb_email, $config['cf_admin_email'], $subject, $content, 1);
|
mailer($mb_nick, $mb_email, $config['cf_admin_email'], $subject, $content, 1);
|
||||||
|
|
||||||
|
run_event('register_form_update_send_admin_mail', $mb_nick, $mb_email, $config['cf_admin_email'], $subject, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 메일인증 사용하지 않는 경우에만 로그인
|
// 메일인증 사용하지 않는 경우에만 로그인
|
||||||
@@ -356,7 +368,7 @@ $mb_dir = G5_DATA_PATH.'/member/'.substr($mb_id,0,2);
|
|||||||
|
|
||||||
// 아이콘 삭제
|
// 아이콘 삭제
|
||||||
if (isset($_POST['del_mb_icon'])) {
|
if (isset($_POST['del_mb_icon'])) {
|
||||||
@unlink($mb_dir.'/'.$mb_id.'.gif');
|
@unlink($mb_dir.'/'.get_mb_icon_name($mb_id).'.gif');
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = "";
|
$msg = "";
|
||||||
@@ -364,7 +376,7 @@ $msg = "";
|
|||||||
// 아이콘 업로드
|
// 아이콘 업로드
|
||||||
$mb_icon = '';
|
$mb_icon = '';
|
||||||
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
||||||
$mb_icon_img = $mb_id.'.gif';
|
$mb_icon_img = get_mb_icon_name($mb_id).'.gif';
|
||||||
|
|
||||||
if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
|
if (isset($_FILES['mb_icon']) && is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
|
||||||
if (preg_match($image_regex, $_FILES['mb_icon']['name'])) {
|
if (preg_match($image_regex, $_FILES['mb_icon']['name'])) {
|
||||||
@@ -485,7 +497,11 @@ if ($config['cf_use_email_certify'] && $old_email != $mb_email) {
|
|||||||
$content = ob_get_contents();
|
$content = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
|
$content = run_replace('register_form_update_mail_certify_content', $content, $mb_id);
|
||||||
|
|
||||||
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content, 1);
|
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content, 1);
|
||||||
|
|
||||||
|
run_event('register_form_update_send_certify_mail', $config['cf_admin_email_name'], $config['cf_admin_email'], $mb_email, $subject, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -501,6 +517,8 @@ unset($_SESSION['ss_cert_adult']);
|
|||||||
if ($msg)
|
if ($msg)
|
||||||
echo '<script>alert(\''.$msg.'\');</script>';
|
echo '<script>alert(\''.$msg.'\');</script>';
|
||||||
|
|
||||||
|
run_event('register_form_update_after', $mb_id, $w);
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
goto_url(G5_HTTP_BBS_URL.'/register_result.php');
|
goto_url(G5_HTTP_BBS_URL.'/register_result.php');
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
|
|||||||
+4
-4
@@ -47,8 +47,8 @@ echo '<?xml version="1.0" encoding="utf-8" ?>'."\n";
|
|||||||
?>
|
?>
|
||||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<channel>
|
<channel>
|
||||||
<title><?php echo specialchars_replace($config['cf_title'].' > '.$subj1.' > '.$subj2) ?></title>
|
<title><?php echo specialchars_replace($config['cf_title'].' > '.$subj1.' > '.$subj2); ?></title>
|
||||||
<link><?php echo specialchars_replace(G5_BBS_URL.'/board.php?bo_table='.$bo_table) ?></link>
|
<link><?php echo specialchars_replace(get_pretty_url($bo_table)); ?></link>
|
||||||
<description>테스트 버전 0.2 (2004-04-26)</description>
|
<description>테스트 버전 0.2 (2004-04-26)</description>
|
||||||
<language>ko</language>
|
<language>ko</language>
|
||||||
|
|
||||||
@@ -69,8 +69,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<title><?php echo specialchars_replace($row['wr_subject']) ?></title>
|
<title><?php echo specialchars_replace($row['wr_subject']); ?></title>
|
||||||
<link><?php echo specialchars_replace(G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$row['wr_id']) ?></link>
|
<link><?php echo specialchars_replace(get_pretty_url($bo_table, $wr_id)); ?></link>
|
||||||
<description><![CDATA[<?php echo $file ?><?php echo conv_content($row['wr_content'], $html) ?>]]></description>
|
<description><![CDATA[<?php echo $file ?><?php echo conv_content($row['wr_content'], $html) ?>]]></description>
|
||||||
<dc:creator><?php echo specialchars_replace($row['wr_name']) ?></dc:creator>
|
<dc:creator><?php echo specialchars_replace($row['wr_name']) ?></dc:creator>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
+2
-2
@@ -47,8 +47,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
$row3['wr_subject'] = '[글 없음]';
|
$row3['wr_subject'] = '[글 없음]';
|
||||||
|
|
||||||
$list[$i]['num'] = $num;
|
$list[$i]['num'] = $num;
|
||||||
$list[$i]['opener_href'] = './board.php?bo_table='.$row['bo_table'];
|
$list[$i]['opener_href'] = get_pretty_url($row['bo_table']);
|
||||||
$list[$i]['opener_href_wr_id'] = './board.php?bo_table='.$row['bo_table'].'&wr_id='.$row['wr_id'];
|
$list[$i]['opener_href_wr_id'] = get_pretty_url($row['bo_table'], $row['wr_id']);
|
||||||
$list[$i]['bo_subject'] = $row2['bo_subject'];
|
$list[$i]['bo_subject'] = $row2['bo_subject'];
|
||||||
$list[$i]['subject'] = $subject;
|
$list[$i]['subject'] = $subject;
|
||||||
$list[$i]['del_href'] = './scrap_delete.php?ms_id='.$row['ms_id'].'&page='.$page;
|
$list[$i]['del_href'] = './scrap_delete.php?ms_id='.$row['ms_id'].'&page='.$page;
|
||||||
|
|||||||
@@ -7,5 +7,8 @@ if (!$is_member)
|
|||||||
$sql = " delete from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and ms_id = '$ms_id' ";
|
$sql = " delete from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and ms_id = '$ms_id' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
$sql = " update `{$g5['member_table']}` set mb_scrap_cnt = '".get_scrap_totals($member['mb_id'])."' where mb_id = '{$member['mb_id']}' ";
|
||||||
|
sql_query($sql);
|
||||||
|
|
||||||
goto_url('./scrap.php?page='.$page);
|
goto_url('./scrap.php?page='.$page);
|
||||||
?>
|
?>
|
||||||
+5
-2
@@ -4,7 +4,7 @@ include_once('./_common.php');
|
|||||||
include_once(G5_PATH.'/head.sub.php');
|
include_once(G5_PATH.'/head.sub.php');
|
||||||
|
|
||||||
if ($is_guest) {
|
if ($is_guest) {
|
||||||
$href = './login.php?'.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
$href = './login.php?'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id));
|
||||||
$href2 = str_replace('&', '&', $href);
|
$href2 = str_replace('&', '&', $href);
|
||||||
echo <<<HEREDOC
|
echo <<<HEREDOC
|
||||||
<script>
|
<script>
|
||||||
@@ -38,6 +38,9 @@ $sql = " select count(*) as cnt from {$g5['scrap_table']}
|
|||||||
and wr_id = '$wr_id' ";
|
and wr_id = '$wr_id' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if ($row['cnt']) {
|
if ($row['cnt']) {
|
||||||
|
|
||||||
|
$back_url = get_pretty_url($bo_table, $wr_id);
|
||||||
|
|
||||||
echo <<<HEREDOC
|
echo <<<HEREDOC
|
||||||
<script>
|
<script>
|
||||||
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
|
if (confirm('이미 스크랩하신 글 입니다.\\n\\n지금 스크랩을 확인하시겠습니까?'))
|
||||||
@@ -48,7 +51,7 @@ if ($row['cnt']) {
|
|||||||
<noscript>
|
<noscript>
|
||||||
<p>이미 스크랩하신 글 입니다.</p>
|
<p>이미 스크랩하신 글 입니다.</p>
|
||||||
<a href="./scrap.php">스크랩 확인하기</a>
|
<a href="./scrap.php">스크랩 확인하기</a>
|
||||||
<a href="./board.php?bo_table={$bo_table}&wr_id=$wr_id">돌아가기</a>
|
<a href="{$back_url}">돌아가기</a>
|
||||||
</noscript>
|
</noscript>
|
||||||
HEREDOC;
|
HEREDOC;
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ include_once(G5_PATH.'/head.sub.php');
|
|||||||
|
|
||||||
if (!$is_member)
|
if (!$is_member)
|
||||||
{
|
{
|
||||||
$href = './login.php?'.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id);
|
$href = './login.php?'.$qstr.'&url='.urlencode(get_pretty_url($bo_table, $wr_id));
|
||||||
echo '<script> alert(\'회원만 접근 가능합니다.\'); top.location.href = \''.str_replace('&', '&', $href).'\'; </script>';
|
echo '<script> alert(\'회원만 접근 가능합니다.\'); top.location.href = \''.str_replace('&', '&', $href).'\'; </script>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ if ($row['cnt'])
|
|||||||
<noscript>
|
<noscript>
|
||||||
<p>이미 스크랩하신 글 입니다.</p>
|
<p>이미 스크랩하신 글 입니다.</p>
|
||||||
<a href="./scrap.php">스크랩 확인하기</a>
|
<a href="./scrap.php">스크랩 확인하기</a>
|
||||||
<a href="./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'">돌아가기</a>
|
<a href="'.get_pretty_url($bo_table, $wr_id).'">돌아가기</a>
|
||||||
</noscript>';
|
</noscript>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@@ -101,6 +101,9 @@ if ($wr_content && ($member['mb_level'] >= $board['bo_comment_level']))
|
|||||||
$sql = " insert into {$g5['scrap_table']} ( mb_id, bo_table, wr_id, ms_datetime ) values ( '{$member['mb_id']}', '$bo_table', '$wr_id', '".G5_TIME_YMDHIS."' ) ";
|
$sql = " insert into {$g5['scrap_table']} ( mb_id, bo_table, wr_id, ms_datetime ) values ( '{$member['mb_id']}', '$bo_table', '$wr_id', '".G5_TIME_YMDHIS."' ) ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
$sql = " update `{$g5['member_table']}` set mb_scrap_cnt = '".get_scrap_totals($member['mb_id'])."' where mb_id = '{$member['mb_id']}' ";
|
||||||
|
sql_query($sql);
|
||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
echo <<<HEREDOC
|
echo <<<HEREDOC
|
||||||
|
|||||||
+1
-1
@@ -172,7 +172,7 @@ if ($stx) {
|
|||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
// 검색어까지 링크되면 게시판 부하가 일어남
|
// 검색어까지 링크되면 게시판 부하가 일어남
|
||||||
$list[$idx][$i] = $row;
|
$list[$idx][$i] = $row;
|
||||||
$list[$idx][$i]['href'] = './board.php?bo_table='.$search_table[$idx].'&wr_id='.$row['wr_parent'];
|
$list[$idx][$i]['href'] = get_pretty_url($search_table[$idx], $row['wr_parent']);
|
||||||
|
|
||||||
if ($row['wr_is_comment'])
|
if ($row['wr_is_comment'])
|
||||||
{
|
{
|
||||||
|
|||||||
+20
-18
@@ -13,11 +13,11 @@ $sql_search = "";
|
|||||||
if ($sca || $stx || $stx === '0') {
|
if ($sca || $stx || $stx === '0') {
|
||||||
// where 문을 얻음
|
// where 문을 얻음
|
||||||
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);
|
$sql_search = get_sql_search($sca, $sfl, $stx, $sop);
|
||||||
$search_href = './board.php?bo_table='.$bo_table.'&page='.$page.$qstr;
|
$search_href = get_pretty_url($bo_table,'','&page='.$page.$qstr);
|
||||||
$list_href = './board.php?bo_table='.$bo_table;
|
$list_href = get_pretty_url($bo_table);
|
||||||
} else {
|
} else {
|
||||||
$search_href = '';
|
$search_href = '';
|
||||||
$list_href = './board.php?bo_table='.$bo_table.'&page='.$page;
|
$list_href = get_pretty_url($bo_table,'',$qstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$board['bo_use_list_view']) {
|
if (!$board['bo_use_list_view']) {
|
||||||
@@ -47,7 +47,7 @@ if (!$board['bo_use_list_view']) {
|
|||||||
$prev_href = '';
|
$prev_href = '';
|
||||||
if (isset($prev['wr_id']) && $prev['wr_id']) {
|
if (isset($prev['wr_id']) && $prev['wr_id']) {
|
||||||
$prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255));
|
$prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255));
|
||||||
$prev_href = './board.php?bo_table='.$bo_table.'&wr_id='.$prev['wr_id'].$qstr;
|
$prev_href = get_pretty_url($bo_table, $prev['wr_id'], $qstr);
|
||||||
$prev_wr_date = $prev['wr_datetime'];
|
$prev_wr_date = $prev['wr_datetime'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,38 +55,40 @@ if (isset($prev['wr_id']) && $prev['wr_id']) {
|
|||||||
$next_href = '';
|
$next_href = '';
|
||||||
if (isset($next['wr_id']) && $next['wr_id']) {
|
if (isset($next['wr_id']) && $next['wr_id']) {
|
||||||
$next_wr_subject = get_text(cut_str($next['wr_subject'], 255));
|
$next_wr_subject = get_text(cut_str($next['wr_subject'], 255));
|
||||||
$next_href = './board.php?bo_table='.$bo_table.'&wr_id='.$next['wr_id'].$qstr;
|
$next_href = get_pretty_url($bo_table, $next['wr_id'], $qstr);
|
||||||
$next_wr_date = $next['wr_datetime'];
|
$next_wr_date = $next['wr_datetime'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// 쓰기 링크
|
// 쓰기 링크
|
||||||
$write_href = '';
|
$write_href = '';
|
||||||
if ($member['mb_level'] >= $board['bo_write_level'])
|
if ($member['mb_level'] >= $board['bo_write_level']) {
|
||||||
$write_href = './write.php?bo_table='.$bo_table;
|
$write_href = short_url_clean(G5_BBS_URL.'/write.php?bo_table='.$bo_table);
|
||||||
|
}
|
||||||
|
|
||||||
// 답변 링크
|
// 답변 링크
|
||||||
$reply_href = '';
|
$reply_href = '';
|
||||||
if ($member['mb_level'] >= $board['bo_reply_level'])
|
if ($member['mb_level'] >= $board['bo_reply_level']) {
|
||||||
$reply_href = './write.php?w=r&bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr;
|
$reply_href = short_url_clean(G5_BBS_URL.'/write.php?w=r&bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
|
||||||
|
}
|
||||||
|
|
||||||
// 수정, 삭제 링크
|
// 수정, 삭제 링크
|
||||||
$update_href = $delete_href = '';
|
$update_href = $delete_href = '';
|
||||||
// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능
|
// 로그인중이고 자신의 글이라면 또는 관리자라면 비밀번호를 묻지 않고 바로 수정, 삭제 가능
|
||||||
if (($member['mb_id'] && ($member['mb_id'] === $write['mb_id'])) || $is_admin) {
|
if (($member['mb_id'] && ($member['mb_id'] === $write['mb_id'])) || $is_admin) {
|
||||||
$update_href = './write.php?w=u&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
$update_href = short_url_clean(G5_BBS_URL.'/write.php?w=u&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr);
|
||||||
set_session('ss_delete_token', $token = uniqid(time()));
|
set_session('ss_delete_token', $token = uniqid(time()));
|
||||||
$delete_href ='./delete.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&token='.$token.'&page='.$page.urldecode($qstr);
|
$delete_href = G5_BBS_URL.'/delete.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&token='.$token.'&page='.$page.urldecode($qstr);
|
||||||
}
|
}
|
||||||
else if (!$write['mb_id']) { // 회원이 쓴 글이 아니라면
|
else if (!$write['mb_id']) { // 회원이 쓴 글이 아니라면
|
||||||
$update_href = './password.php?w=u&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
$update_href = G5_BBS_URL.'/password.php?w=u&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
||||||
$delete_href = './password.php?w=d&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
$delete_href = G5_BBS_URL.'/password.php?w=d&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 최고, 그룹관리자라면 글 복사, 이동 가능
|
// 최고, 그룹관리자라면 글 복사, 이동 가능
|
||||||
$copy_href = $move_href = '';
|
$copy_href = $move_href = '';
|
||||||
if ($write['wr_reply'] == '' && ($is_admin == 'super' || $is_admin == 'group')) {
|
if ($write['wr_reply'] == '' && ($is_admin == 'super' || $is_admin == 'group')) {
|
||||||
$copy_href = './move.php?sw=copy&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
$copy_href = G5_BBS_URL.'/move.php?sw=copy&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
||||||
$move_href = './move.php?sw=move&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
$move_href = G5_BBS_URL.'/move.php?sw=move&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
$scrap_href = '';
|
$scrap_href = '';
|
||||||
@@ -94,15 +96,15 @@ $good_href = '';
|
|||||||
$nogood_href = '';
|
$nogood_href = '';
|
||||||
if ($is_member) {
|
if ($is_member) {
|
||||||
// 스크랩 링크
|
// 스크랩 링크
|
||||||
$scrap_href = './scrap_popin.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$scrap_href = G5_BBS_URL.'/scrap_popin.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
||||||
|
|
||||||
// 추천 링크
|
// 추천 링크
|
||||||
if ($board['bo_use_good'])
|
if ($board['bo_use_good'])
|
||||||
$good_href = './good.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&good=good';
|
$good_href = G5_BBS_URL.'/good.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&good=good';
|
||||||
|
|
||||||
// 비추천 링크
|
// 비추천 링크
|
||||||
if ($board['bo_use_nogood'])
|
if ($board['bo_use_nogood'])
|
||||||
$nogood_href = './good.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&good=nogood';
|
$nogood_href = G5_BBS_URL.'/good.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&good=nogood';
|
||||||
}
|
}
|
||||||
|
|
||||||
$view = get_view($write, $board, $board_skin_path);
|
$view = get_view($write, $board, $board_skin_path);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$list[$i]['wr_id'];
|
$ss_name = 'ss_secret_comment_'.$bo_table.'_'.$list[$i]['wr_id'];
|
||||||
|
|
||||||
if(!get_session($ss_name))
|
if(!get_session($ss_name))
|
||||||
$list[$i]['content'] = '<a href="./password.php?w=sc&bo_table='.$bo_table.'&wr_id='.$list[$i]['wr_id'].$qstr.'" class="s_cmt">댓글내용 확인</a>';
|
$list[$i]['content'] = '<a href="'.G5_BBS_URL.'/password.php?w=sc&bo_table='.$bo_table.'&wr_id='.$list[$i]['wr_id'].$qstr.'" class="s_cmt">댓글내용 확인</a>';
|
||||||
else {
|
else {
|
||||||
$list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content');
|
$list[$i]['content'] = conv_content($row['wr_content'], 0, 'wr_content');
|
||||||
$list[$i]['content'] = search_font($stx, $list[$i]['content']);
|
$list[$i]['content'] = search_font($stx, $list[$i]['content']);
|
||||||
@@ -74,7 +74,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
if ($row['mb_id'] === $member['mb_id'] || $is_admin)
|
if ($row['mb_id'] === $member['mb_id'] || $is_admin)
|
||||||
{
|
{
|
||||||
set_session('ss_delete_comment_'.$row['wr_id'].'_token', $token = uniqid(time()));
|
set_session('ss_delete_comment_'.$row['wr_id'].'_token', $token = uniqid(time()));
|
||||||
$list[$i]['del_link'] = './delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr;
|
$list[$i]['del_link'] = G5_BBS_URL.'/delete_comment.php?bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&token='.$token.'&page='.$page.$qstr;
|
||||||
$list[$i]['is_edit'] = true;
|
$list[$i]['is_edit'] = true;
|
||||||
$list[$i]['is_del'] = true;
|
$list[$i]['is_del'] = true;
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!$row['mb_id']) {
|
if (!$row['mb_id']) {
|
||||||
$list[$i]['del_link'] = './password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr;
|
$list[$i]['del_link'] = G5_BBS_URL.'/password.php?w=x&bo_table='.$bo_table.'&comment_id='.$row['wr_id'].'&page='.$page.$qstr;
|
||||||
$list[$i]['is_del'] = true;
|
$list[$i]['is_del'] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -12,10 +12,10 @@ if ( ! preg_match('/(jpg|jpeg|png|gif|bmp)$/i', $extension) ){
|
|||||||
alert_close('이미지 확장자가 아닙니다.');
|
alert_close('이미지 확장자가 아닙니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strpos($filename, 'data/editor')) {
|
if(strpos($filename, G5_DATA_DIR.'/editor')) {
|
||||||
$editor_file = strstr($filename, 'editor');
|
$editor_file = strstr($filename, 'editor');
|
||||||
$filepath = G5_DATA_PATH.'/'.$editor_file;
|
$filepath = G5_DATA_PATH.'/'.$editor_file;
|
||||||
} else if(strpos($filename, 'data/qa')) {
|
} else if(strpos($filename, G5_DATA_DIR.'/qa')) {
|
||||||
$editor_file = strstr($filename, 'qa');
|
$editor_file = strstr($filename, 'qa');
|
||||||
$filepath = G5_DATA_PATH.'/'.$editor_file;
|
$filepath = G5_DATA_PATH.'/'.$editor_file;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR'])
|
|||||||
$remote_addr = escape_trim($_SERVER['REMOTE_ADDR']);
|
$remote_addr = escape_trim($_SERVER['REMOTE_ADDR']);
|
||||||
$referer = "";
|
$referer = "";
|
||||||
if (isset($_SERVER['HTTP_REFERER']))
|
if (isset($_SERVER['HTTP_REFERER']))
|
||||||
$referer = escape_trim(clean_xss_tags($_SERVER['HTTP_REFERER']));
|
$referer = escape_trim(clean_xss_tags(strip_tags($_SERVER['HTTP_REFERER'])));
|
||||||
$user_agent = escape_trim(clean_xss_tags($_SERVER['HTTP_USER_AGENT']));
|
$user_agent = escape_trim(clean_xss_tags(strip_tags($_SERVER['HTTP_USER_AGENT'])));
|
||||||
$vi_browser = '';
|
$vi_browser = '';
|
||||||
$vi_os = '';
|
$vi_os = '';
|
||||||
$vi_device = '';
|
$vi_device = '';
|
||||||
|
|||||||
+5
-2
@@ -31,6 +31,8 @@ if ($w == 'u' || $w == 'r') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_event('bbs_write', $board, $wr_id, $w);
|
||||||
|
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
if ($wr_id) {
|
if ($wr_id) {
|
||||||
alert('글쓰기에는 \$wr_id 값을 사용하지 않습니다.', G5_BBS_URL.'/board.php?bo_table='.$bo_table);
|
alert('글쓰기에는 \$wr_id 값을 사용하지 않습니다.', G5_BBS_URL.'/board.php?bo_table='.$bo_table);
|
||||||
@@ -310,7 +312,8 @@ if ($w == '') {
|
|||||||
if (!$is_admin) {
|
if (!$is_admin) {
|
||||||
if (!($is_member && $member['mb_id'] === $write['mb_id'])) {
|
if (!($is_member && $member['mb_id'] === $write['mb_id'])) {
|
||||||
if (!check_password($wr_password, $write['wr_password'])) {
|
if (!check_password($wr_password, $write['wr_password'])) {
|
||||||
alert('비밀번호가 틀립니다.');
|
$is_wrong = run_replace('invalid_password', false, 'write', $write);
|
||||||
|
if(!$is_wrong) alert('비밀번호가 틀립니다.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -362,7 +365,7 @@ if (isset($write['wr_subject'])) {
|
|||||||
|
|
||||||
$content = '';
|
$content = '';
|
||||||
if ($w == '') {
|
if ($w == '') {
|
||||||
$content = $board['bo_insert_content'];
|
$content = html_purifier($board['bo_insert_content']);
|
||||||
} else if ($w == 'r') {
|
} else if ($w == 'r') {
|
||||||
if (!strstr($write['wr_option'], 'html')) {
|
if (!strstr($write['wr_option'], 'html')) {
|
||||||
$content = "\n\n\n > "
|
$content = "\n\n\n > "
|
||||||
|
|||||||
@@ -54,18 +54,20 @@ if (empty($wr['wr_id']))
|
|||||||
// 이 옵션을 사용 안 함으로 설정할 경우 어떤 스크립트도 실행 되지 않습니다.
|
// 이 옵션을 사용 안 함으로 설정할 경우 어떤 스크립트도 실행 되지 않습니다.
|
||||||
//if (!trim($_POST["wr_content"])) die ("내용을 입력하여 주십시오.");
|
//if (!trim($_POST["wr_content"])) die ("내용을 입력하여 주십시오.");
|
||||||
|
|
||||||
|
$post_wr_password = '';
|
||||||
if ($is_member)
|
if ($is_member)
|
||||||
{
|
{
|
||||||
$mb_id = $member['mb_id'];
|
$mb_id = $member['mb_id'];
|
||||||
// 4.00.13 - 실명 사용일때 댓글에 닉네임으로 입력되던 오류를 수정
|
// 4.00.13 - 실명 사용일때 댓글에 닉네임으로 입력되던 오류를 수정
|
||||||
$wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick']));
|
$wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick']));
|
||||||
$wr_password = $member['mb_password'];
|
$wr_password = '';
|
||||||
$wr_email = addslashes($member['mb_email']);
|
$wr_email = addslashes($member['mb_email']);
|
||||||
$wr_homepage = addslashes(clean_xss_tags($member['mb_homepage']));
|
$wr_homepage = addslashes(clean_xss_tags($member['mb_homepage']));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$mb_id = '';
|
$mb_id = '';
|
||||||
|
$post_wr_password = $wr_password;
|
||||||
$wr_password = get_encrypt_string($wr_password);
|
$wr_password = get_encrypt_string($wr_password);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +207,7 @@ if ($w == 'c') // 댓글 입력
|
|||||||
|
|
||||||
$subject = '['.$config['cf_title'].'] '.$board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
|
$subject = '['.$config['cf_title'].'] '.$board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
|
||||||
// 4.00.15 - 메일로 보내는 댓글의 바로가기 링크 수정
|
// 4.00.15 - 메일로 보내는 댓글의 바로가기 링크 수정
|
||||||
$link_url = G5_BBS_URL."/board.php?bo_table=".$bo_table."&wr_id=".$wr_id."&".$qstr."#c_".$comment_id;
|
$link_url = get_pretty_url($bo_table, $wr_id, $qstr."#c_".$comment_id);
|
||||||
|
|
||||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
@@ -289,7 +291,7 @@ else if ($w == 'cu') // 댓글 수정
|
|||||||
if ($member['mb_id'] !== $comment['mb_id'])
|
if ($member['mb_id'] !== $comment['mb_id'])
|
||||||
alert('자신의 글이 아니므로 수정할 수 없습니다.');
|
alert('자신의 글이 아니므로 수정할 수 없습니다.');
|
||||||
} else {
|
} else {
|
||||||
if($comment['wr_password'] != $wr_password)
|
if( !($comment['mb_id'] === '' && $comment['wr_password'] && check_password($post_wr_password, $comment['wr_password'])) )
|
||||||
alert('댓글을 수정할 권한이 없습니다.');
|
alert('댓글을 수정할 권한이 없습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,5 +339,9 @@ else if ($w == 'cu') // 댓글 수정
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id);
|
$redirect_url = short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&'.$qstr.'&#c_'.$comment_id);
|
||||||
|
|
||||||
|
run_event('comment_update_after', $board, $wr_id, $w, $qstr, $redirect_url);
|
||||||
|
|
||||||
|
goto_url($redirect_url);
|
||||||
?>
|
?>
|
||||||
@@ -22,7 +22,7 @@ if ($_POST['facebook_checked']) {
|
|||||||
|
|
||||||
if ($user) {
|
if ($user) {
|
||||||
try {
|
try {
|
||||||
$link = G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&#c_'.$comment_id;
|
$link = get_pretty_url($bo_table, $wr['wr_parent'], '&#c_'.$comment_id);
|
||||||
$attachment = array(
|
$attachment = array(
|
||||||
'message' => stripslashes($wr_content),
|
'message' => stripslashes($wr_content),
|
||||||
'name' => $wr_subject,
|
'name' => $wr_subject,
|
||||||
@@ -53,7 +53,7 @@ if ($_POST['twitter_checked']) {
|
|||||||
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
|
include_once(G5_SNS_PATH."/twitter/twitterconfig.php");
|
||||||
|
|
||||||
if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) {
|
if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) {
|
||||||
$comment_url = G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&#c_'.$comment_id;
|
$comment_url = get_pretty_url($bo_table, $wr['wr_parent'], '&#c_'.$comment_id);
|
||||||
|
|
||||||
$post = googl_short_url($comment_url).' '.$wr_content;
|
$post = googl_short_url($comment_url).' '.$wr_content;
|
||||||
$post = utf8_strcut($post, 140);
|
$post = utf8_strcut($post, 140);
|
||||||
|
|||||||
+22
-7
@@ -127,6 +127,8 @@ for ($i=1; $i<=10; $i++) {
|
|||||||
|
|
||||||
@include_once($board_skin_path.'/write_update.head.skin.php');
|
@include_once($board_skin_path.'/write_update.head.skin.php');
|
||||||
|
|
||||||
|
run_event('write_update_before', $board, $wr_id, $w, $qstr);
|
||||||
|
|
||||||
if ($w == '' || $w == 'u') {
|
if ($w == '' || $w == 'u') {
|
||||||
|
|
||||||
// 외부에서 글을 등록할 수 있는 버그가 존재하므로 공지는 관리자만 등록이 가능해야 함
|
// 외부에서 글을 등록할 수 있는 버그가 존재하므로 공지는 관리자만 등록이 가능해야 함
|
||||||
@@ -211,12 +213,14 @@ if ($w == '' || $w == 'r') {
|
|||||||
if (!isset($_POST['wr_subject']) || !trim($_POST['wr_subject']))
|
if (!isset($_POST['wr_subject']) || !trim($_POST['wr_subject']))
|
||||||
alert('제목을 입력하여 주십시오.');
|
alert('제목을 입력하여 주십시오.');
|
||||||
|
|
||||||
|
$wr_seo_title = exist_seo_title_recursive('bbs', generate_seo_title($wr_subject), $write_table, $wr_id);
|
||||||
|
|
||||||
if ($w == '' || $w == 'r') {
|
if ($w == '' || $w == 'r') {
|
||||||
|
|
||||||
if ($member['mb_id']) {
|
if ($member['mb_id']) {
|
||||||
$mb_id = $member['mb_id'];
|
$mb_id = $member['mb_id'];
|
||||||
$wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick']));
|
$wr_name = addslashes(clean_xss_tags($board['bo_use_name'] ? $member['mb_name'] : $member['mb_nick']));
|
||||||
$wr_password = $member['mb_password'];
|
$wr_password = '';
|
||||||
$wr_email = addslashes($member['mb_email']);
|
$wr_email = addslashes($member['mb_email']);
|
||||||
$wr_homepage = addslashes(clean_xss_tags($member['mb_homepage']));
|
$wr_homepage = addslashes(clean_xss_tags($member['mb_homepage']));
|
||||||
} else {
|
} else {
|
||||||
@@ -251,6 +255,7 @@ if ($w == '' || $w == 'r') {
|
|||||||
wr_option = '$html,$secret,$mail',
|
wr_option = '$html,$secret,$mail',
|
||||||
wr_subject = '$wr_subject',
|
wr_subject = '$wr_subject',
|
||||||
wr_content = '$wr_content',
|
wr_content = '$wr_content',
|
||||||
|
wr_seo_title = '$wr_seo_title',
|
||||||
wr_link1 = '$wr_link1',
|
wr_link1 = '$wr_link1',
|
||||||
wr_link2 = '$wr_link2',
|
wr_link2 = '$wr_link2',
|
||||||
wr_link1_hit = 0,
|
wr_link1_hit = 0,
|
||||||
@@ -304,10 +309,10 @@ if ($w == '' || $w == 'r') {
|
|||||||
}
|
}
|
||||||
} else if ($w == 'u') {
|
} else if ($w == 'u') {
|
||||||
if (get_session('ss_bo_table') != $_POST['bo_table'] || get_session('ss_wr_id') != $_POST['wr_id']) {
|
if (get_session('ss_bo_table') != $_POST['bo_table'] || get_session('ss_wr_id') != $_POST['wr_id']) {
|
||||||
alert('올바른 방법으로 수정하여 주십시오.', G5_BBS_URL.'/board.php?bo_table='.$bo_table);
|
alert('올바른 방법으로 수정하여 주십시오.', get_pretty_url($bo_table));
|
||||||
}
|
}
|
||||||
|
|
||||||
$return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id;
|
$return_url = get_pretty_url($bo_table, $wr_id);
|
||||||
|
|
||||||
if ($is_admin == 'super') // 최고관리자 통과
|
if ($is_admin == 'super') // 최고관리자 통과
|
||||||
;
|
;
|
||||||
@@ -372,6 +377,7 @@ if ($w == '' || $w == 'r') {
|
|||||||
wr_option = '{$html},{$secret},{$mail}',
|
wr_option = '{$html},{$secret},{$mail}',
|
||||||
wr_subject = '{$wr_subject}',
|
wr_subject = '{$wr_subject}',
|
||||||
wr_content = '{$wr_content}',
|
wr_content = '{$wr_content}',
|
||||||
|
wr_seo_title = '$wr_seo_title',
|
||||||
wr_link1 = '{$wr_link1}',
|
wr_link1 = '{$wr_link1}',
|
||||||
wr_link2 = '{$wr_link2}',
|
wr_link2 = '{$wr_link2}',
|
||||||
mb_id = '{$mb_id}',
|
mb_id = '{$mb_id}',
|
||||||
@@ -546,6 +552,8 @@ for ($i=0; $i<count($_FILES['bf_file']['name']); $i++) {
|
|||||||
|
|
||||||
// 올라간 파일의 퍼미션을 변경합니다.
|
// 올라간 파일의 퍼미션을 변경합니다.
|
||||||
chmod($dest_file, G5_FILE_PERMISSION);
|
chmod($dest_file, G5_FILE_PERMISSION);
|
||||||
|
|
||||||
|
$dest_file = run_replace('write_update_upload_file', $dest_file, $board, $wr_id, $w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -603,6 +611,8 @@ for ($i=0; $i<count($upload); $i++)
|
|||||||
bf_type = '{$upload[$i]['image']['2']}',
|
bf_type = '{$upload[$i]['image']['2']}',
|
||||||
bf_datetime = '".G5_TIME_YMDHIS."' ";
|
bf_datetime = '".G5_TIME_YMDHIS."' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
|
run_event('write_update_file_insert', $bo_table, $wr_id, $upload[$i], $w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -655,7 +665,7 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
|||||||
|
|
||||||
$subject = '['.$config['cf_title'].'] '.$board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
|
$subject = '['.$config['cf_title'].'] '.$board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
|
||||||
|
|
||||||
$link_url = G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.'&'.$qstr;
|
$link_url = get_pretty_url($bo_table, $wr_id, $qstr);
|
||||||
|
|
||||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||||
|
|
||||||
@@ -686,7 +696,8 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
|||||||
|
|
||||||
// 중복된 메일 주소는 제거
|
// 중복된 메일 주소는 제거
|
||||||
$unique_email = array_unique($array_email);
|
$unique_email = array_unique($array_email);
|
||||||
$unique_email = array_values($unique_email);
|
$unique_email = run_replace('write_update_mail_list', array_values($unique_email), $board, $wr_id);
|
||||||
|
|
||||||
for ($i=0; $i<count($unique_email); $i++) {
|
for ($i=0; $i<count($unique_email); $i++) {
|
||||||
mailer($wr_name, $wr_email, $unique_email[$i], $subject, $content, 1);
|
mailer($wr_name, $wr_email, $unique_email[$i], $subject, $content, 1);
|
||||||
}
|
}
|
||||||
@@ -698,8 +709,12 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
|||||||
|
|
||||||
delete_cache_latest($bo_table);
|
delete_cache_latest($bo_table);
|
||||||
|
|
||||||
|
$redirect_url = run_replace('write_update_move_url', short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr), $board, $wr_id, $w, $qstr, $file_upload_msg);
|
||||||
|
|
||||||
|
run_event('write_update_after', $board, $wr_id, $w, $qstr, $redirect_url);
|
||||||
|
|
||||||
if ($file_upload_msg)
|
if ($file_upload_msg)
|
||||||
alert($file_upload_msg, G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
|
alert($file_upload_msg, $redirect_url);
|
||||||
else
|
else
|
||||||
goto_url(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id.$qstr);
|
goto_url($redirect_url);
|
||||||
?>
|
?>
|
||||||
+31
-10
@@ -10,6 +10,9 @@ header('P3P: CP="ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV
|
|||||||
if (!defined('G5_SET_TIME_LIMIT')) define('G5_SET_TIME_LIMIT', 0);
|
if (!defined('G5_SET_TIME_LIMIT')) define('G5_SET_TIME_LIMIT', 0);
|
||||||
@set_time_limit(G5_SET_TIME_LIMIT);
|
@set_time_limit(G5_SET_TIME_LIMIT);
|
||||||
|
|
||||||
|
if( version_compare( PHP_VERSION, '5.2.17' , '<' ) ){
|
||||||
|
die(sprintf('PHP 5.2.17 or higher required. Your PHP version is %s', PHP_VERSION));
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================================================================
|
//==========================================================================================================================
|
||||||
// extract($_GET); 명령으로 인해 page.php?_POST[var1]=data1&_POST[var2]=data2 와 같은 코드가 _POST 변수로 사용되는 것을 막음
|
// extract($_GET); 명령으로 인해 page.php?_POST[var1]=data1&_POST[var2]=data2 와 같은 코드가 _POST 변수로 사용되는 것을 막음
|
||||||
@@ -31,13 +34,15 @@ function g5_path()
|
|||||||
{
|
{
|
||||||
$chroot = substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], dirname(__FILE__)));
|
$chroot = substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], dirname(__FILE__)));
|
||||||
$result['path'] = str_replace('\\', '/', $chroot.dirname(__FILE__));
|
$result['path'] = str_replace('\\', '/', $chroot.dirname(__FILE__));
|
||||||
$tilde_remove = preg_replace('/^\/\~[^\/]+(.*)$/', '$1', $_SERVER['SCRIPT_NAME']);
|
$server_script_name = preg_replace('/\/+/', '/', str_replace('\\', '/', $_SERVER['SCRIPT_NAME']));
|
||||||
$document_root = str_replace($tilde_remove, '', $_SERVER['SCRIPT_FILENAME']);
|
$server_script_filename = preg_replace('/\/+/', '/', str_replace('\\', '/', $_SERVER['SCRIPT_FILENAME']));
|
||||||
|
$tilde_remove = preg_replace('/^\/\~[^\/]+(.*)$/', '$1', $server_script_name);
|
||||||
|
$document_root = str_replace($tilde_remove, '', $server_script_filename);
|
||||||
$pattern = '/' . preg_quote($document_root, '/') . '/i';
|
$pattern = '/' . preg_quote($document_root, '/') . '/i';
|
||||||
$root = preg_replace($pattern, '', $result['path']);
|
$root = preg_replace($pattern, '', $result['path']);
|
||||||
$port = ($_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443) ? '' : ':'.$_SERVER['SERVER_PORT'];
|
$port = ($_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443) ? '' : ':'.$_SERVER['SERVER_PORT'];
|
||||||
$http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://';
|
$http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://';
|
||||||
$user = str_replace(preg_replace($pattern, '', $_SERVER['SCRIPT_FILENAME']), '', $_SERVER['SCRIPT_NAME']);
|
$user = str_replace(preg_replace($pattern, '', $server_script_filename), '', $server_script_name);
|
||||||
$host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
|
$host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];
|
||||||
if(isset($_SERVER['HTTP_HOST']) && preg_match('/:[0-9]+$/', $host))
|
if(isset($_SERVER['HTTP_HOST']) && preg_match('/:[0-9]+$/', $host))
|
||||||
$host = preg_replace('/:[0-9]+$/', '', $host);
|
$host = preg_replace('/:[0-9]+$/', '', $host);
|
||||||
@@ -122,7 +127,15 @@ $member = array();
|
|||||||
$board = array();
|
$board = array();
|
||||||
$group = array();
|
$group = array();
|
||||||
$g5 = array();
|
$g5 = array();
|
||||||
|
$qaconfig = array();
|
||||||
|
$g5_debug = array('php'=>array(),'sql'=>array());
|
||||||
|
|
||||||
|
include_once(G5_LIB_PATH.'/hook.lib.php'); // hook 함수 파일
|
||||||
|
include_once(G5_LIB_PATH.'/get_data.lib.php'); // 데이타 가져오는 함수 모음
|
||||||
|
include_once(G5_LIB_PATH.'/cache.lib.php'); // cache 함수 및 object cache class 모음
|
||||||
|
include_once(G5_LIB_PATH.'/uri.lib.php'); // URL 함수 파일
|
||||||
|
|
||||||
|
$g5_object = new G5_object_cache();
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// 공통
|
// 공통
|
||||||
@@ -138,7 +151,7 @@ if (file_exists($dbconfig_file)) {
|
|||||||
// mysql connect resource $g5 배열에 저장 - 명랑폐인님 제안
|
// mysql connect resource $g5 배열에 저장 - 명랑폐인님 제안
|
||||||
$g5['connect_db'] = $connect_db;
|
$g5['connect_db'] = $connect_db;
|
||||||
|
|
||||||
sql_set_charset('utf8', $connect_db);
|
sql_set_charset(G5_DB_CHARSET, $connect_db);
|
||||||
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) sql_query("SET SESSION sql_mode = ''");
|
if(defined('G5_MYSQL_SET_MODE') && G5_MYSQL_SET_MODE) sql_query("SET SESSION sql_mode = ''");
|
||||||
if (defined('G5_TIMEZONE')) sql_query(" set time_zone = '".G5_TIMEZONE."'");
|
if (defined('G5_TIMEZONE')) sql_query(" set time_zone = '".G5_TIMEZONE."'");
|
||||||
} else {
|
} else {
|
||||||
@@ -212,7 +225,7 @@ ini_set("session.cookie_domain", G5_COOKIE_DOMAIN);
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// 기본환경설정
|
// 기본환경설정
|
||||||
// 기본적으로 사용하는 필드만 얻은 후 상황에 따라 필드를 추가로 얻음
|
// 기본적으로 사용하는 필드만 얻은 후 상황에 따라 필드를 추가로 얻음
|
||||||
$config = sql_fetch(" select * from {$g5['config_table']} ");
|
$config = get_config();
|
||||||
|
|
||||||
define('G5_HTTP_BBS_URL', https_url(G5_BBS_DIR, false));
|
define('G5_HTTP_BBS_URL', https_url(G5_BBS_DIR, false));
|
||||||
define('G5_HTTPS_BBS_URL', https_url(G5_BBS_DIR, true));
|
define('G5_HTTPS_BBS_URL', https_url(G5_BBS_DIR, true));
|
||||||
@@ -402,19 +415,25 @@ if ($_SESSION['ss_mb_id']) { // 로그인중이라면
|
|||||||
$write = array();
|
$write = array();
|
||||||
$write_table = "";
|
$write_table = "";
|
||||||
if ($bo_table) {
|
if ($bo_table) {
|
||||||
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
|
$board = get_board_db($bo_table);
|
||||||
if ($board['bo_table']) {
|
if ($board['bo_table']) {
|
||||||
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
|
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
|
||||||
$gr_id = $board['gr_id'];
|
$gr_id = $board['gr_id'];
|
||||||
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
|
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
|
||||||
//$comment_table = $g5['write_prefix'] . $bo_table . $g5['comment_suffix']; // 코멘트 테이블 전체이름
|
|
||||||
if (isset($wr_id) && $wr_id)
|
if (isset($wr_id) && $wr_id) {
|
||||||
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
|
$write = get_write($write_table, $wr_id);
|
||||||
|
} else if (isset($wr_seo_title) && $wr_seo_title) {
|
||||||
|
$write = get_content_by_field($write_table, 'bbs', 'wr_seo_title', generate_seo_title($wr_seo_title));
|
||||||
|
if( isset($write['wr_id']) ){
|
||||||
|
$wr_id = $write['wr_id'];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($gr_id) {
|
if ($gr_id) {
|
||||||
$group = sql_fetch(" select * from {$g5['group_table']} where gr_id = '$gr_id' ");
|
$group = get_group($gr_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -637,5 +656,7 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
|
|||||||
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
|
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
|
||||||
header('Pragma: no-cache'); // HTTP/1.0
|
header('Pragma: no-cache'); // HTTP/1.0
|
||||||
|
|
||||||
|
run_event('common_header');
|
||||||
|
|
||||||
$html_process = new html_process();
|
$html_process = new html_process();
|
||||||
?>
|
?>
|
||||||
+21
-2
@@ -5,7 +5,7 @@
|
|||||||
********************/
|
********************/
|
||||||
|
|
||||||
define('G5_VERSION', '그누보드5');
|
define('G5_VERSION', '그누보드5');
|
||||||
define('G5_GNUBOARD_VER', '5.3.2.0');
|
define('G5_GNUBOARD_VER', '5.4.0.1');
|
||||||
|
|
||||||
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
|
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
|
||||||
define('_GNUBOARD_', true);
|
define('_GNUBOARD_', true);
|
||||||
@@ -29,6 +29,16 @@ if (PHP_VERSION >= '5.1.0') {
|
|||||||
define('G5_DOMAIN', '');
|
define('G5_DOMAIN', '');
|
||||||
define('G5_HTTPS_DOMAIN', '');
|
define('G5_HTTPS_DOMAIN', '');
|
||||||
|
|
||||||
|
// 디버깅 상수, 실제 서버운영시 false 로 설정해 주제요.
|
||||||
|
define('G5_DEBUG', false);
|
||||||
|
|
||||||
|
// Set Databse table default engine is Databse default_storage_engine, If you want to use MyISAM or InnoDB, change to MyISAM or InnoDB.
|
||||||
|
define('G5_DB_ENGINE', '');
|
||||||
|
|
||||||
|
// Set Databse table default Charset
|
||||||
|
// utf8, utf8mb4 등 지정 가능 기본값은 utf8, 설치전에 utf8mb4 으로 수정시 모든 테이블에 이모지 입력이 가능합니다. utf8mb4 는 mysql 또는 mariadb 5.5 버전 이상을 요구합니다.
|
||||||
|
define('G5_DB_CHARSET', 'utf8');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
www.sir.kr 과 sir.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.kr 과 같이 입력하세요.
|
www.sir.kr 과 sir.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.kr 과 같이 입력하세요.
|
||||||
이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
|
이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
|
||||||
@@ -60,6 +70,9 @@ define('G5_PHPMAILER_DIR', 'PHPMailer');
|
|||||||
define('G5_SESSION_DIR', 'session');
|
define('G5_SESSION_DIR', 'session');
|
||||||
define('G5_THEME_DIR', 'theme');
|
define('G5_THEME_DIR', 'theme');
|
||||||
|
|
||||||
|
define('G5_GROUP_DIR', 'group');
|
||||||
|
define('G5_CONTENT_DIR', 'content');
|
||||||
|
|
||||||
// URL 은 브라우저상에서의 경로 (도메인으로 부터의)
|
// URL 은 브라우저상에서의 경로 (도메인으로 부터의)
|
||||||
if (G5_DOMAIN) {
|
if (G5_DOMAIN) {
|
||||||
define('G5_URL', G5_DOMAIN);
|
define('G5_URL', G5_DOMAIN);
|
||||||
@@ -147,6 +160,9 @@ define('G5_HANGUL', 16); // 한글
|
|||||||
define('G5_SPACE', 32); // 공백
|
define('G5_SPACE', 32); // 공백
|
||||||
define('G5_SPECIAL', 64); // 특수문자
|
define('G5_SPECIAL', 64); // 특수문자
|
||||||
|
|
||||||
|
// SEO TITLE 문단 길이
|
||||||
|
define('G5_SEO_TITEL_WORD_CUT', 8); // SEO TITLE 문단 길이
|
||||||
|
|
||||||
// 퍼미션
|
// 퍼미션
|
||||||
define('G5_DIR_PERMISSION', 0755); // 디렉토리 생성시 퍼미션
|
define('G5_DIR_PERMISSION', 0755); // 디렉토리 생성시 퍼미션
|
||||||
define('G5_FILE_PERMISSION', 0644); // 파일 생성시 퍼미션
|
define('G5_FILE_PERMISSION', 0644); // 파일 생성시 퍼미션
|
||||||
@@ -166,7 +182,10 @@ define('G5_SMTP_PORT', '25');
|
|||||||
|
|
||||||
// 암호화 함수 지정
|
// 암호화 함수 지정
|
||||||
// 사이트 운영 중 설정을 변경하면 로그인이 안되는 등의 문제가 발생합니다.
|
// 사이트 운영 중 설정을 변경하면 로그인이 안되는 등의 문제가 발생합니다.
|
||||||
define('G5_STRING_ENCRYPT_FUNCTION', 'sql_password');
|
// 5.4 버전 이전에는 sql_password 이 사용됨, 5.4 버전부터 기본이 create_hash 로 변경
|
||||||
|
//define('G5_STRING_ENCRYPT_FUNCTION', 'sql_password');
|
||||||
|
define('G5_STRING_ENCRYPT_FUNCTION', 'create_hash');
|
||||||
|
define('G5_MYSQL_PASSWORD_LENGTH', 41); // mysql password length 41, old_password 의 경우에는 16
|
||||||
|
|
||||||
// SQL 에러를 표시할 것인지 지정
|
// SQL 에러를 표시할 것인지 지정
|
||||||
// 에러를 표시하려면 TRUE 로 변경
|
// 에러를 표시하려면 TRUE 로 변경
|
||||||
|
|||||||
+217
-216
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/* 초기화 */
|
/* 초기화 */
|
||||||
html {overflow-y:scroll}
|
html {overflow-y:scroll}
|
||||||
body {margin:0;padding:0;font-size:0.75em;font-family:'Malgun Gothic', dotum, sans-serif;background:#e7e7e7}
|
body {margin:0;padding:0;font-size:0.75em;font-family:'Malgun Gothic', dotum, sans-serif;background:#fff}
|
||||||
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
||||||
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:'Malgun Gothic', dotum, sans-serif}
|
h1, h2, h3, h4, h5, h6 {font-size:1em;font-family:'Malgun Gothic', dotum, sans-serif}
|
||||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
||||||
@@ -11,7 +11,7 @@ ul, dl,dt,dd {margin:0;padding:0;list-style:none}
|
|||||||
legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||||
label, input, button, select, img {vertical-align:middle;font-size:1em}
|
label, input, button, select, img {vertical-align:middle;font-size:1em}
|
||||||
input, button {margin:0;padding:0;font-family:'Malgun Gothic', dotum, sans-serif;font-size:1em}
|
input, button {margin:0;padding:0;font-family:'Malgun Gothic', dotum, sans-serif;font-size:1em}
|
||||||
input[type="submit"]{cursor:pointer}
|
input[type="submit"] {cursor:pointer}
|
||||||
button {cursor:pointer}
|
button {cursor:pointer}
|
||||||
|
|
||||||
textarea, select {font-family:'Malgun Gothic', dotum, sans-serif;font-size:1em}
|
textarea, select {font-family:'Malgun Gothic', dotum, sans-serif;font-size:1em}
|
||||||
@@ -22,190 +22,184 @@ pre {overflow-x:scroll;font-size:1.1em}
|
|||||||
a {color:#000;text-decoration:none}
|
a {color:#000;text-decoration:none}
|
||||||
|
|
||||||
*, :after, :before {
|
*, :after, :before {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing:border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing:border-box;
|
||||||
box-sizing: border-box;
|
box-sizing:border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=text],input[type=password], textarea {
|
input[type=text],input[type=password], textarea {
|
||||||
-webkit-transition: all 0.30s ease-in-out;
|
-webkit-transition:all 0.30s ease-in-out;
|
||||||
-moz-transition: all 0.30s ease-in-out;
|
-moz-transition:all 0.30s ease-in-out;
|
||||||
-ms-transition: all 0.30s ease-in-out;
|
-ms-transition:all 0.30s ease-in-out;
|
||||||
-o-transition: all 0.30s ease-in-out;
|
-o-transition:all 0.30s ease-in-out;
|
||||||
outline: none;
|
outline:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=text]:focus,input[type=password]:focus, textarea:focus,select:focus {
|
input[type=text]:focus,input[type=password]:focus, textarea:focus,select:focus {
|
||||||
-webkit-box-shadow: 0 0 5px #9ed4ff;
|
-webkit-box-shadow:0 0 5px #9ed4ff;
|
||||||
-moz-box-shadow: 0 0 5px #9ed4ff;
|
-moz-box-shadow:0 0 5px #9ed4ff;
|
||||||
box-shadow: 0 0 5px #9ed4ff;
|
box-shadow:0 0 5px #9ed4ff;
|
||||||
border: 1px solid #558ab7 !important;
|
border:1px solid #558ab7 !important;
|
||||||
}
|
}
|
||||||
.placeholdersjs { color: #aaa !important; }
|
|
||||||
|
.placeholdersjs {color:#aaa !important}
|
||||||
|
|
||||||
/* 레이아웃 크기 지정 */
|
/* 레이아웃 크기 지정 */
|
||||||
#hd, #wrapper, #ft{min-width:1200px}
|
#hd, #wrapper, #ft {min-width:1200px}
|
||||||
|
|
||||||
#hd_pop,
|
#hd_pop,
|
||||||
#hd_wrapper,
|
#hd_wrapper,
|
||||||
#tnb ul,
|
#tnb .inner,
|
||||||
|
|
||||||
#gnb .gnb_wrap,
|
#gnb .gnb_wrap,
|
||||||
#container_wr,
|
#container_wr,
|
||||||
#ft_wr{width:1200px}
|
#ft_wr {width:1200px}
|
||||||
|
|
||||||
/* 팝업레이어 */
|
/* 팝업레이어 */
|
||||||
#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}
|
#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}
|
||||||
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff;}
|
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff}
|
||||||
.hd_pops img{max-width:100%}
|
.hd_pops img {max-width:100%}
|
||||||
.hd_pops_con {}
|
.hd_pops_con {}
|
||||||
.hd_pops_footer {padding: 0;background:#000;color:#fff;text-align:left;position:relative;}
|
.hd_pops_footer {padding:0;background:#000;color:#fff;text-align:left;position:relative}
|
||||||
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
|
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.hd_pops_footer button {padding: 10px;border:0;color:#fff}
|
.hd_pops_footer button {padding:10px;border:0;color:#fff}
|
||||||
.hd_pops_footer .hd_pops_reject{background:#000;text-align:left}
|
.hd_pops_footer .hd_pops_reject {background:#000;text-align:left}
|
||||||
.hd_pops_footer .hd_pops_close{background:#393939;position:absolute;top:0;right:0}
|
.hd_pops_footer .hd_pops_close {background:#393939;position:absolute;top:0;right:0}
|
||||||
|
|
||||||
/* 상단 레이아웃 */
|
/* 상단 레이아웃 */
|
||||||
#hd {border-top:2px solid #253dbe}
|
#hd {background:#212020}
|
||||||
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
|
|
||||||
#hd_wrapper {position:relative;margin:0 auto;padding:10px 0;height:115px;zoom:1}
|
#tnb {border-bottom:1px solid #383838;margin:0 auto}
|
||||||
|
#tnb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
#tnb .inner {margin:0 auto}
|
||||||
|
|
||||||
|
#hd_wrapper {position:relative;margin:0 auto;height:140px;zoom:1}
|
||||||
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
|
||||||
#logo {float:left;padding:30px 0 0}
|
#logo {float:left;padding:30px 0 0}
|
||||||
|
|
||||||
.hd_sch_wr{position:absolute;top:25px;left:50%;width:430px;margin-left:-215px;}
|
.hd_sch_wr {float:left;padding:30px 0;;width:445px;margin-left:65px}
|
||||||
#hd_sch h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#hd_sch h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#hd_sch{border:2px solid #556ada;background:#fff;border-radius:5px;overflow:hidden}
|
#hd_sch {border-radius:30px;overflow:hidden}
|
||||||
#hd_sch #sch_stx {padding-left:10px;height:40px;width:376px;border:0;border-right:0;float:left;font-size:1.25em}
|
#hd_sch #sch_stx {float:left;width:385px;height:45px;padding-left:10px;border-radius:30px 0 0 30px;background:#2c2c2c;border:0;border-right:0;font-size:1.25em;color:#fff}
|
||||||
#hd_sch #sch_submit {height:40px;border:0;background:#fff;color:#253dbe;width:50px;float:left;cursor:pointer;font-size:18px}
|
#hd_sch #sch_submit {float:left;width:60px;height:45px;border:0;background:#2c2c2c;color:#fff;border-radius:0 30px 30px 0;cursor:pointer;font-size:16px}
|
||||||
|
|
||||||
#sbn_side{position:absolute;top:20px;right:0}
|
#hd_qnb {float:right;text-align:right}
|
||||||
|
|
||||||
#tnb {border-bottom:1px solid #ddd;background:#fff}
|
|
||||||
#tnb h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
|
||||||
#tnb ul {margin:0 auto;zoom:1}
|
|
||||||
#tnb ul:after {display:block;visibility:hidden;clear:both;content:""}
|
|
||||||
#tnb li {float:right;border-left:1px solid #ddd;margin-bottom:-1px;font-size:0.92em}
|
|
||||||
#tnb a {display:inline-block;padding:0 10px;color:#646464;line-height:35px}
|
|
||||||
#tnb a:focus, #tnb a:hover {color:#253dbe;background:#fafafa}
|
|
||||||
#tnb .tnb_admin a{color:#ff0000;}
|
|
||||||
#tnb .tnb_left{float:left}
|
|
||||||
#tnb .tnb_left a{padding:0 14px}
|
|
||||||
#tnb .tnb_cart{border-right:1px solid #ddd;}
|
|
||||||
#tnb .tnb_community{border-right:1px solid #ddd}
|
|
||||||
#tnb .tnb_community i{font-size:15px}
|
|
||||||
#tnb .tnb_community{background:#e7e7e7;font-weight:bold;}
|
|
||||||
#tnb .tnb_community:focus, #tnb .tnb_community:hover {color:#333;border-bottom:0}
|
|
||||||
#tnb .tnb_community a{color:#253dbe;border-bottom:1px solid #e7e7e7}
|
|
||||||
|
|
||||||
#hd_qnb{float:right;margin-top:20px}
|
|
||||||
#hd_qnb:after {display:block;visibility:hidden;clear:both;content:""}
|
#hd_qnb:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#hd_qnb li{float:left;font-size:1.083em;line-height:15px;position:relative;text-align:center;margin:0 10px}
|
#hd_qnb li {float:left;font-size:1.083em;line-height:14px;border-right:1px solid #4a4a4a;position:relative;text-align:center;margin:15px 10px 15px 0;padding-right:10px}
|
||||||
|
#hd_qnb li:last-child {padding-right:0;margin-right:0;border-right:0}
|
||||||
#hd_qnb li span {display:block;margin-top:5px;font-size:0.92em}
|
#hd_qnb li span {display:block;margin-top:5px;font-size:0.92em}
|
||||||
#hd_qnb li a{display:block}
|
#hd_qnb li a {display:inline-block;color:#919191}
|
||||||
#hd_qnb li i{display:inline-block;width:40px;line-height:40px;border-radius:25px;background:#fff;text-align:center;margin:0;color:#fff}
|
#hd_qnb .visit .visit-num {display:inline-block;line-height:16px;padding:0 5px;margin-left:5px;border-radius:10px;background:#da22f5;color:#fff;font-size:10px}
|
||||||
#hd_qnb .visit .visit-num{display:inline-block;line-height:18px;padding:0 5px;border-radius:10px;background:#f04e00;color:#fff;font-size:10px;position:absolute;top:0;right:0}
|
|
||||||
#hd_qnb li .fa-question{background:#e83a5f;font-size:20px}
|
|
||||||
#hd_qnb li .fa-question:hover{background:#e41b45}
|
.hd_login {position:absolute;right:0;top:60px}
|
||||||
#hd_qnb li .fa-comments{background:#82c13f;font-size:16px}
|
.hd_login li {float:left;margin:0 5px;border-left:1px solid #616161;padding-left:10px;line-height:13px}
|
||||||
#hd_qnb li .fa-comments:hover{background:#5aa708}
|
.hd_login li:first-child {border-left:0}
|
||||||
#hd_qnb li .fa-users{background:#f0ba00;font-size:15px}
|
.hd_login a {color:#fff}
|
||||||
#hd_qnb li .fa-users:hover{background:#f06f00}
|
|
||||||
#hd_qnb li .fa-history{background:#8522c4;font-size:15px}
|
|
||||||
#hd_qnb li .fa-history:hover{background:#6700a9}
|
|
||||||
|
|
||||||
/* 메인메뉴 */
|
/* 메인메뉴 */
|
||||||
#gnb{position:relative}
|
#gnb {position:relative;background:#fff}
|
||||||
#gnb h2{position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#gnb > h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#gnb .gnb_wrap{margin:0 auto;position:relative}
|
#gnb .gnb_wrap {margin:0 auto;position:relative;z-index:10}
|
||||||
#gnb #gnb_1dul {font-size:1.083em;padding: 0;background:#253dbe;zoom:1;
|
#gnb #gnb_1dul {font-size:1.083em;padding:0;border-bottom:1px solid #e0e2e5;zoom:1}
|
||||||
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
||||||
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.3)}
|
|
||||||
#gnb ul:after {display:block;visibility:hidden;clear:both;content:""}
|
#gnb ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#gnb .gnb_1dli{float:left;line-height:50px;padding:0 15px;position:relative;}
|
#gnb .gnb_1dli {float:left;line-height:55px;padding:0px;position:relative}
|
||||||
#gnb .gnb_1dli:hover{background:#1a30a7;
|
#gnb .gnb_1dli:hover > a {color:#3a8afd;
|
||||||
-webkit-transition: background-color 2s ease-out;
|
-webkit-transition:background-color 2s ease-out;
|
||||||
-moz-transition: background-color 0.3s ease-out;
|
-moz-transition:background-color 0.3s ease-out;
|
||||||
-o-transition: background-color 0.3s ease-out;
|
-o-transition:background-color 0.3s ease-out;
|
||||||
transition: background-color 0.3s ease-out;}
|
transition:background-color 0.3s ease-out}
|
||||||
|
|
||||||
.gnb_1dli .bg{display:inline-block;width:10px;height:10px;overflow:hidden;background:url(../img/gnb_bg2.gif) no-repeat 50% 50%;text-indent:-999px}
|
.gnb_1dli .bg {position:absolute;top:24px;right:8px;display:inline-block;width:10px;height:10px;overflow:hidden;background:url('./images/gnb_bg2.gif') no-repeat 50% 50%;text-indent:-999px}
|
||||||
.gnb_1da {display:inline-block;font-weight:bold;color:#fff;text-decoration:none;}
|
.gnb_1da {display:block;font-weight:bold;padding:0 15px;color:#080808;text-decoration:none}
|
||||||
.gnb_2dli{border-top:1px solid #253dbe}
|
.gnb_1dli.gnb_al_li_plus .gnb_1da{padding-right:25px}
|
||||||
.gnb_2dli:first-child{border:0}
|
.gnb_2dli:first-child {border:0}
|
||||||
.gnb_2dul {display:none;position:absolute;top:50px;min-width:140px;background:#1a30a7;padding: 0;
|
.gnb_2dul {display:none;position:absolute;top:54px;min-width:140px;padding-top:2px}
|
||||||
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
|
.gnb_2dul .gnb_2dul_box {border:1px solid #e0e2e5;border-top:0;padding:0;
|
||||||
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
|
-webkit-box-shadow:0px 1px 5px rgba(97, 97, 97, 0.2);
|
||||||
box-shadow: 0 1px 5px rgba(0,0,0,0.1);}
|
-moz-box-shadow:0px 1px 5px rgba(97, 97, 97, 0.2);
|
||||||
.gnb_2da {display:block;padding:0 10px;line-height:40px;color:#c3cbf7;text-align:left;text-decoration:none}
|
box-shadow:0px 1px 5px rgba(97, 97, 97, 0.2)}
|
||||||
a.gnb_2da:hover{background:#0e2080;
|
.gnb_2da {display:block;padding:0 10px;line-height:40px;background:#fff;color:#080808;text-align:left;text-decoration:none}
|
||||||
-moz-transition: all 0.3s ease-out;
|
a.gnb_2da:hover {color:#3a8afd;background:#f7f7f8;
|
||||||
-o-transition: all 0.3s ease-out;
|
-moz-transition:all 0.3s ease-out;
|
||||||
transition: all 0.3s ease-out;}
|
-o-transition:all 0.3s ease-out;
|
||||||
|
transition:all 0.3s ease-out}
|
||||||
|
|
||||||
.gnb_1dli_air .gnb_2da {}
|
.gnb_1dli_air .gnb_2da {}
|
||||||
.gnb_1dli_on .gnb_2da {}
|
.gnb_1dli_on .gnb_2da {}
|
||||||
.gnb_2da:focus, .gnb_2da:hover {color:#fff}
|
.gnb_2da:focus, .gnb_2da:hover {color:#fff}
|
||||||
.gnb_1dli_over .gnb_2dul {display:block;left:0}
|
.gnb_1dli_over .gnb_2dul {display:block;left:0}
|
||||||
.gnb_1dli_over2 .gnb_2dul {display:block;right:0}
|
.gnb_1dli_over2 .gnb_2dul {display:block;right:0}
|
||||||
.gnb_wrap .gnb_empty {padding:10px 0;width:100%;text-align:center;line-height:2em;color:#fff}
|
.gnb_wrap .gnb_empty {padding:10px 0;width:100%;text-align:center;line-height:2.7em;color:#080808}
|
||||||
.gnb_wrap .gnb_empty a{color:#fff;text-decoration:underline}
|
.gnb_wrap .gnb_empty a {color:#3a8afd;text-decoration:underline}
|
||||||
.gnb_wrap .gnb_al_ul .gnb_empty, .gnb_wrap .gnb_al_ul .gnb_empty a{color:#555}
|
.gnb_wrap .gnb_al_ul .gnb_empty, .gnb_wrap .gnb_al_ul .gnb_empty a {color:#555}
|
||||||
|
|
||||||
#gnb .gnb_menu_btn{background:#4158d1;color:#fff;width:50px;height:50px;border:0;vertical-align:top;font-size:18px}
|
#gnb .gnb_menu_btn {background:#4158d1;color:#fff;width:50px;height:55px;border:0;vertical-align:top;font-size:18px}
|
||||||
#gnb .gnb_close_btn{background:#4158d1;color:#fff;width:50px;height:50px;border:0;vertical-align:top;font-size:18px;position:absolute;top:-50px;left:0}
|
#gnb .gnb_close_btn {background:#fff;color:#b6b9bb;width:50px;height:50px;border:0;vertical-align:top;font-size:18px;position:absolute;top:0;right:0}
|
||||||
#gnb .gnb_mnal{padding:0}
|
#gnb .gnb_mnal {float:right;padding:0}
|
||||||
|
|
||||||
#gnb_all{display:none;position:absolute;width:100%;z-index:99;}
|
#gnb_all {display:none;position:absolute;border:1px solid #c5d6da;width:100%;background:#fff;z-index:1000;-webkit-box-shadow:0 2px 5px rgba(0,0,0,0.2);
|
||||||
|
-moz-box-shadow:0 2px 5px rgba(0,0,0,0.2);
|
||||||
|
box-shadow:0 2px 5px rgba(0,0,0,0.2)}
|
||||||
|
#gnb_all h2 {font-size:1.3em;padding:15px 20px;border-bottom:1px solid #e7eeef}
|
||||||
#gnb_all .gnb_al_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
#gnb_all .gnb_al_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#gnb_all .gnb_al_ul{background:#fff;border:1px solid #4158d1;padding:20px;
|
#gnb_all .gnb_al_ul > li:nth-child(5n+1) {border-left:0}
|
||||||
-webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
#gnb_all .gnb_al_li {float:left;width:20%;min-height:150px;padding:20px;border-left:1px solid #e7eeef}
|
||||||
-moz-box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
#gnb_all .gnb_al_li .gnb_al_a {font-size:1.2em;display:block;position:relative;margin-bottom:10px;font-weight:bold;color:#3a8afd}
|
||||||
box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
|
#gnb_all .gnb_al_li li {line-height:2em}
|
||||||
#gnb_all .gnb_al_li{background:#fff;float:left;min-width:20%;padding:5px }
|
#gnb_all .gnb_al_li li a {color:#555}
|
||||||
#gnb_all .gnb_al_li .gnb_al_a{font-size:1.083em;padding:10px;display:block;position:relative;margin-bottom:10px;background: #eff1f9;border-bottom: 1px solid #dee2f1;font-weight: bold;color:#243071}
|
#gnb_all_bg {display:none;background:rgba(0,0,0,0.1);width:100%;height:100%;position:fixed;left:0;top:0;z-index:999}
|
||||||
#gnb_all .gnb_al_li li {padding-left:10px;line-height:2em}
|
|
||||||
#gnb_all .gnb_al_li li i{color:#9ca6cc}
|
|
||||||
#gnb_all .gnb_al_li li a{color:#555}
|
|
||||||
|
|
||||||
/* 중간 레이아웃 */
|
/* 중간 레이아웃 */
|
||||||
#wrapper{}
|
#wrapper {}
|
||||||
#container_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
#container_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#container_wr {z-index:5;margin:0 auto;height:100%;zoom:1}
|
#container_wr {z-index:5;margin:0 auto;height:100%;zoom:1}
|
||||||
#aside {float:right;width:305px;padding:0;background: #e7ebf3;height: 100%;border: 1px solid #adbfd2;margin:20px 0 20px 20px}
|
#aside {float:right;width:235px;padding:0;height:100%;margin:20px 0 20px 20px}
|
||||||
|
|
||||||
#container {z-index:4;position:relative;float:left;min-height:500px;height:auto !important;margin:20px 0;height:500px;font-size:1em;width:875px;zoom:1}
|
#container {z-index:4;position:relative;float:left;min-height:500px;height:auto !important;margin:20px 0;height:500px;font-size:1em;width:930px;zoom:1}
|
||||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#container_title {font-size:1.333em;margin:0 auto;font-weight:bold;}
|
#container_title {font-size:1.333em;margin:0 auto;font-weight:bold}
|
||||||
#container_title span{margin:0 auto 10px;display:block;line-height:30px;}
|
#container_title span {margin:0 auto 10px;display:block;line-height:30px}
|
||||||
/*.latest_wr:after {display:block;visibility:hidden;clear:both;content:""}*/
|
|
||||||
.lt_wr{width:49%}
|
.lt_wr {width:32%}
|
||||||
.lt_wr:nth-child(2n+1){clear:both}
|
.lt_wr:nth-child(3n+1) {clear:both}
|
||||||
|
.latest_wr {margin-bottom:20px}
|
||||||
.latest_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
.latest_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
.latest_top_wr {margin:0 -10px 20px}
|
||||||
|
.latest_top_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
|
||||||
/* 하단 레이아웃 */
|
/* 하단 레이아웃 */
|
||||||
#ft {border-top:1px solid #d5d5d5;background:#fff;padding-bottom:30px;margin:0 auto;text-align:center}
|
#ft {background:#212020;margin:0 auto;text-align:center}
|
||||||
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||||
#ft_wr {margin:0 auto;position:relative;}
|
#ft_wr {max-width:1240px;margin:0;padding:40px 0;position:relative;display:inline-block;text-align:left}
|
||||||
#ft_link{padding:15px 0;border-bottom:1px solid #eee}
|
#ft_wr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#ft_link a{display:inline-block;padding:0 8px;line-height:1.083em;font-weight:bold}
|
#ft_wr .ft_cnt {width:25%;float:left;padding:0 20px}
|
||||||
#ft_catch{margin:20px 0 10px}
|
|
||||||
#ft_copy{color:#555;font-size:0.92em}
|
#ft_link {text-align:left}
|
||||||
|
#ft_link a {display:block;color:#fff;line-height:2em;font-weight:bold}
|
||||||
|
#ft_company h2 {font-size:1.2em;margin-bottom:20px}
|
||||||
|
#ft_company {font-weight:normal;color:#e3e3e3;line-height:2em}
|
||||||
|
#ft_catch {margin:20px 0 10px}
|
||||||
|
#ft_copy {text-align:center;width:1200px;margin:0 auto;padding:20px 0;color:#5b5b5b;font-size:0.92em;border-top:1px solid #383838}
|
||||||
#top_btn {position:fixed;bottom:20px;right:20px;width:50px;height:50px;line-height:46px;border:2px solid #333;color:#333;text-align:center;font-size:15px;z-index:90;background:rgba(255,255,255,0.5)}
|
#top_btn {position:fixed;bottom:20px;right:20px;width:50px;height:50px;line-height:46px;border:2px solid #333;color:#333;text-align:center;font-size:15px;z-index:90;background:rgba(255,255,255,0.5)}
|
||||||
#top_btn:hover{border-color:#3059c7;background:#3059c7;color:#fff}
|
#top_btn:hover {border-color:#3059c7;background:#3059c7;color:#fff}
|
||||||
|
|
||||||
/* 게시물 선택복사 선택이동 */
|
/* 게시물 선택복사 선택이동 */
|
||||||
#copymove {}
|
#copymove {}
|
||||||
#copymove .win_desc {text-align:center;display:block}
|
#copymove .win_desc {text-align:center;display:block}
|
||||||
#copymove .tbl_wrap{margin:20px }
|
#copymove .tbl_wrap {margin:20px}
|
||||||
#copymove .win_btn{padding:0 20px 20px}
|
#copymove .win_btn {padding:0 20px 20px}
|
||||||
.copymove_current {float:right;background:#ff3061;padding:5px;color:#fff;border-radius:3px}
|
.copymove_current {float:right;background:#ff3061;padding:5px;color:#fff;border-radius:3px}
|
||||||
.copymove_currentbg {background:#f4f4f4}
|
.copymove_currentbg {background:#f4f4f4}
|
||||||
|
|
||||||
/* 화면낭독기 사용자용 */
|
/* 화면낭독기 사용자용 */
|
||||||
#hd_login_msg {position:absolute;top:0;left:0;font-size:0;line-height:0;overflow:hidden}
|
#hd_login_msg {position:absolute;top:0;left:0;font-size:0;line-height:0;overflow:hidden}
|
||||||
.msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
.msg_sound_only, .sound_only {display:inline-block !important;position:absolute;top:0;left:0;width:0;height:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
||||||
|
|
||||||
/* 본문 바로가기 */
|
/* 본문 바로가기 */
|
||||||
#skip_to_container a {z-index:100000;position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
#skip_to_container a {z-index:100000;position:absolute;top:0;left:0;width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}
|
||||||
#skip_to_container a:focus, #skip_to_container a:active {width:100%;height:75px;background:#21272e;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em}
|
#skip_to_container a:focus, #skip_to_container a:active {width:100%;height:75px;background:#21272e;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em}
|
||||||
@@ -215,89 +209,89 @@ box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
|
|||||||
|
|
||||||
/* 캡챠 자동등록(입력)방지 기본 -pc */
|
/* 캡챠 자동등록(입력)방지 기본 -pc */
|
||||||
#captcha {display:inline-block;position:relative}
|
#captcha {display:inline-block;position:relative}
|
||||||
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden;}
|
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||||
#captcha #captcha_img {height:40px;border:1px solid #898989;vertical-align:top;padding:0;margin:0}
|
#captcha #captcha_img {height:40px;border:1px solid #898989;vertical-align:top;padding:0;margin:0}
|
||||||
#captcha #captcha_mp3 {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat;text-indent:-999px;border-radius:3px}
|
#captcha #captcha_mp3 {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat;text-indent:-999px;border-radius:3px}
|
||||||
#captcha #captcha_reload {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px;border-radius:3px}
|
#captcha #captcha_reload {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px;border-radius:3px}
|
||||||
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
|
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
|
||||||
#captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
#captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
||||||
|
|
||||||
/* 캡챠 자동등록(입력)방지 기본 - mobile */
|
/* 캡챠 자동등록(입력)방지 기본 - mobile */
|
||||||
#captcha.m_captcha audio {display:block;margin:0 0 5px;width:187px}
|
#captcha.m_captcha audio {display:block;margin:0 0 5px;width:187px}
|
||||||
#captcha.m_captcha #captcha_img {width:160px;height:60px;border:1px solid #e9e9e9;margin-bottom:3px;margin-top:5px;display:block;}
|
#captcha.m_captcha #captcha_img {width:160px;height:60px;border:1px solid #e9e9e9;margin-bottom:3px;margin-top:5px;display:block}
|
||||||
#captcha.m_captcha #captcha_reload {position:static;margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px}
|
#captcha.m_captcha #captcha_reload {position:static;margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha2.png') no-repeat 0 -40px;text-indent:-999px}
|
||||||
#captcha.m_captcha #captcha_reload span{display:none;}
|
#captcha.m_captcha #captcha_reload span {display:none}
|
||||||
#captcha.m_captcha #captcha_key {margin:0;padding:0 5px;width:115px;height:29px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:29px;margin-left:3px}
|
#captcha.m_captcha #captcha_key {margin:0;padding:0 5px;width:115px;height:29px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:29px;margin-left:3px}
|
||||||
#captcha.m_captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
#captcha.m_captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
|
||||||
#captcha.m_captcha #captcha_mp3 {width:31px;height:31px;background:url('../img/captcha2.png') no-repeat 0 0 ; vertical-align:top;overflow:hidden;cursor:pointer;text-indent:-9999px;border:none}
|
#captcha.m_captcha #captcha_mp3 {width:31px;height:31px;background:url('../img/captcha2.png') no-repeat 0 0 ; vertical-align:top;overflow:hidden;cursor:pointer;text-indent:-9999px;border:none}
|
||||||
|
|
||||||
/* ckeditor 단축키 */
|
/* ckeditor 단축키 */
|
||||||
.cke_sc {margin:0 0 5px;text-align:right}
|
.cke_sc {margin:0 0 5px;text-align:right}
|
||||||
.btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:1.9em;vertical-align:middle;cursor:pointer}
|
.btn_cke_sc {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;line-height:1.9em;vertical-align:middle;cursor:pointer}
|
||||||
.cke_sc_def {margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center}
|
.cke_sc_def {margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center}
|
||||||
.cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1}
|
.cke_sc_def dl {margin:0 0 5px;text-align:left;zoom:1}
|
||||||
.cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""}
|
.cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.cke_sc_def dt, .cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9}
|
.cke_sc_def dt, .cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9}
|
||||||
.cke_sc_def dt {width:20%;font-weight:bold}
|
.cke_sc_def dt {width:20%;font-weight:bold}
|
||||||
.cke_sc_def dd {width:30%}
|
.cke_sc_def dd {width:30%}
|
||||||
|
|
||||||
|
/* ckeditor 태그 기본값 */
|
||||||
|
#bo_v_con ul {display:block;list-style-type:disc;margin-top:1em;margin-bottom:1em;margin-left:0;margin-right:0;padding-left:40px}
|
||||||
|
#bo_v_con ol {display:block;list-style-type:decimal;margin-top:1em;margin-bottom:1em;margin-left:0;margin-right:0;padding-left:40px}
|
||||||
|
#bo_v_con li {display:list-item}
|
||||||
|
|
||||||
/* 버튼 */
|
/* 버튼 */
|
||||||
a.btn,.btn{line-height:35px;height:35px;padding:0 10px;text-align:center;font-weight:bold;border:0;
|
a.btn,.btn {line-height:35px;height:35px;padding:0 10px;text-align:center;font-weight:bold;border:0;font-size:1.4em;
|
||||||
-webkit-transition: background-color 0.3s ease-out;
|
-webkit-transition:background-color 0.3s ease-out;
|
||||||
-moz-transition: background-color 0.3s ease-out;
|
-moz-transition:background-color 0.3s ease-out;
|
||||||
-o-transition: background-color 0.3s ease-out;
|
-o-transition:background-color 0.3s ease-out;
|
||||||
transition: background-color 0.3s ease-out;}
|
transition:background-color 0.3s ease-out}
|
||||||
|
|
||||||
a.btn01 {display:inline-block;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;vertical-align:middle}
|
a.btn01 {display:inline-block;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none;vertical-align:middle}
|
||||||
a.btn01:focus, a.btn01:hover {text-decoration:none}
|
a.btn01:focus, a.btn01:hover {text-decoration:none}
|
||||||
button.btn01 {display:inline-block;margin:0;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none}
|
button.btn01 {display:inline-block;margin:0;padding:7px;border:1px solid #ccc;background:#fafafa;color:#000;text-decoration:none}
|
||||||
a.btn02 {display:inline-block;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none;vertical-align:middle;}
|
a.btn02 {display:inline-block;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none;vertical-align:middle}
|
||||||
a.btn02:focus, .btn02:hover {text-decoration:none}
|
a.btn02:focus, .btn02:hover {text-decoration:none}
|
||||||
button.btn02 {display:inline-block;margin:0;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none}
|
button.btn02 {display:inline-block;margin:0;padding:7px;border:1px solid #3b3c3f;background:#4b545e;color:#fff;text-decoration:none}
|
||||||
|
|
||||||
.btn_confirm {text-align:right} /* 서식단계 진행 */
|
.btn_confirm {text-align:right} /* 서식단계 진행 */
|
||||||
|
|
||||||
.btn_submit {border:0;background:#253dbe;color:#fff;cursor:pointer;border:0}
|
.btn_submit {border:0;background:#3a8afd;color:#fff;cursor:pointer;border-radius:3px}
|
||||||
.btn_submit:hover {background:#0025eb}
|
.btn_submit:hover {background:#2375eb}
|
||||||
|
.btn_close {border:1px solid #dcdcdc;cursor:pointer;border-radius:3px;background:#fff}
|
||||||
|
a.btn_close {text-align:center;line-height:50px}
|
||||||
|
|
||||||
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle;}
|
a.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
|
||||||
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
|
button.btn_cancel {display:inline-block;background:#969696;color:#fff;text-decoration:none;vertical-align:middle}
|
||||||
.btn_cancel:hover {background:#aaa;
|
.btn_cancel:hover {background:#aaa}
|
||||||
}
|
a.btn_frmline, button.btn_frmline {display:inline-block;width:128px;padding:0 5px;height:40px;border:0;background:#434a54;border-radius:3px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
|
||||||
a.btn_frmline, button.btn_frmline {display:inline-block;padding:0 5px;height:40px;border:0;background:#3c3c3c;border-radius:5px;color:#fff;text-decoration:none;vertical-align:top} /* 우편번호검색버튼 등 */
|
|
||||||
a.btn_frmline {}
|
a.btn_frmline {}
|
||||||
button.btn_frmline {font-size:1em}
|
button.btn_frmline {font-size:1em}
|
||||||
|
|
||||||
/* 게시판용 버튼 */
|
/* 게시판용 버튼 */
|
||||||
a.btn_b01,.btn_b01 {display:inline-block;background:#4c4f6f;color:#fff;text-decoration:none;vertical-align:middle}
|
a.btn_b01,.btn_b01 {display:inline-block;color:#bababa;text-decoration:none;vertical-align:middle;border:0;background:transparent}
|
||||||
.btn_b01:hover, .btn_b01:hover {background:#54598c}
|
.btn_b01:hover, .btn_b01:hover {color:#000}
|
||||||
a.btn_b02,.btn_b02 {display:inline-block;background:#253dbe;padding:0 10px;color:#fff;text-decoration:none;border:0;vertical-align:middle;}
|
a.btn_b02,.btn_b02 {display:inline-block;background:#253dbe;padding:0 10px;color:#fff;text-decoration:none;border:0;vertical-align:middle}
|
||||||
a.btn_b02:hover, .btn_b02:hover {background:#0025eb}
|
a.btn_b02:hover, .btn_b02:hover {background:#0025eb}
|
||||||
a.btn_b03, .btn_b03 {display:inline-block;background:#fff;border:1px solid #b9bdd3;color:#646982;text-decoration:none;vertical-align:middle}
|
a.btn_b03, .btn_b03 {display:inline-block;background:#fff;border:1px solid #b9bdd3;color:#646982;text-decoration:none;vertical-align:middle}
|
||||||
a.btn_b03:hover, .btn_b03:hover {background:#ebedf6}
|
a.btn_b03:hover, .btn_b03:hover {background:#ebedf6}
|
||||||
a.btn_b04, .btn_b04 {display:inline-block;background:#fff;border:1px solid #ccc;color:#707070;text-decoration:none;vertical-align:middle}
|
a.btn_b04, .btn_b04 {display:inline-block;background:#fff;border:1px solid #ccc;color:#707070;text-decoration:none;vertical-align:middle}
|
||||||
a.btn_b04:hover, .btn_b04:hover {color:#333;background:#f9f9f9}
|
a.btn_b04:hover, .btn_b04:hover {color:#333;background:#f9f9f9}
|
||||||
a.btn_admin,.btn_admin {display:inline-block;background:#d13f4a;color:#fff;text-decoration:none;vertical-align:middle} /* 관리자 전용 버튼 */
|
a.btn_admin,.btn_admin {display:inline-block;color:#d13f4a;text-decoration:none;vertical-align:middle} /* 관리자 전용 버튼 */
|
||||||
.btn_admin:hover, a.btn_admin:hover {background:#ff3746}
|
.btn_admin:hover, a.btn_admin:hover {color:#ff3746}
|
||||||
|
|
||||||
|
|
||||||
/*컬러*/
|
|
||||||
.color_1 {background:#169dd6}
|
|
||||||
.color_2 {background:#14d53d}
|
|
||||||
.color_3 {background:#3814ff}
|
|
||||||
.color_4 {background:#7520c5}
|
|
||||||
|
|
||||||
/* 기본테이블 */
|
/* 기본테이블 */
|
||||||
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing: 0 5px;border:1px solid #ccc;}
|
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing:0 5px;background:#fff;border-top:1px solid #ececec;border-bottom:1px solid #ececec}
|
||||||
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
|
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
|
||||||
.tbl_head01 {margin:0 0 10px}
|
.tbl_head01 {margin:0 0 10px}
|
||||||
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
|
||||||
.tbl_head01 thead th {padding:10px 0;font-weight:normal;text-align:center;border-bottom:1px solid #ddd;background:#fafafa;height:40px}
|
.tbl_head01 thead th {padding:20px 0;font-weight:normal;text-align:center;border-bottom:1px solid #ececec;height:40px}
|
||||||
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||||
.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
|
.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
|
||||||
.tbl_head01 tbody th {padding:8px 0;border-bottom:1px solid #e8e8e8}
|
.tbl_head01 tbody th {padding:8px 0;border-bottom:1px solid #e8e8e8}
|
||||||
.tbl_head01 td {color:#666;background:#fff;padding:10px 5px;border-top:1px solid #ecf0f1;line-height:1.4em;height:60px;word-break:break-all}
|
.tbl_head01 td {color:#666;padding:10px 5px;border-top:1px solid #ecf0f1;border-bottom:1px solid #ecf0f1;line-height:1.4em;height:60px;word-break:break-all}
|
||||||
.tbl_head01 tbody tr:hover td{background:#fafafa;}
|
.tbl_head01 tbody tr:hover td {background:#fafafa}
|
||||||
.tbl_head01 a:hover {text-decoration:underline}
|
.tbl_head01 a:hover {text-decoration:underline}
|
||||||
|
|
||||||
.tbl_head02 {margin:0 0 10px}
|
.tbl_head02 {margin:0 0 10px}
|
||||||
@@ -315,40 +309,46 @@ a.btn_admin,.btn_admin {display:inline-block;background:#d13f4a;color:#fff;text-
|
|||||||
.tbl_frm01 table {width:100%;border-collapse:collapse;border-spacing:0}
|
.tbl_frm01 table {width:100%;border-collapse:collapse;border-spacing:0}
|
||||||
.tbl_frm01 th {width:70px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f5f8f9;text-align:left}
|
.tbl_frm01 th {width:70px;padding:7px 13px;border:1px solid #e9e9e9;border-left:0;background:#f5f8f9;text-align:left}
|
||||||
.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
|
||||||
.wr_content textarea,.tbl_frm01 textarea,.form_01 textarea, .frm_input {border:1px solid #ccc;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;
|
.wr_content textarea,.tbl_frm01 textarea,.form_01 textarea, .frm_input {border:1px solid #d0d3db;background:#fff;color:#000;vertical-align:middle;border-radius:3px;padding:5px;
|
||||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);
|
||||||
}
|
}
|
||||||
.tbl_frm01 textarea {padding:2px 2px 3px}
|
.tbl_frm01 textarea {padding:2px 2px 3px}
|
||||||
.frm_input {height:40px;}
|
.frm_input {height:40px}
|
||||||
|
|
||||||
.full_input{width:100%}
|
.full_input {width:100%}
|
||||||
.half_input{width:49.5%}
|
.half_input {width:49.5%}
|
||||||
|
.twopart_input {width:385px;margin-right:10px}
|
||||||
.tbl_frm01 textarea, .write_div textarea {width:100%;height:100px}
|
.tbl_frm01 textarea, .write_div textarea {width:100%;height:100px}
|
||||||
.tbl_frm01 a {text-decoration:none}
|
.tbl_frm01 a {text-decoration:none}
|
||||||
.tbl_frm01 .frm_file {display:block;margin-bottom:5px}
|
.tbl_frm01 .frm_file {display:block;margin-bottom:5px}
|
||||||
.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em}
|
.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em}
|
||||||
|
|
||||||
/*기본 리스트*/
|
/*기본 리스트*/
|
||||||
.list_01 li{border:1px solid #dbdbdb;background:#fff;border-radius:3px;margin:3px 0;padding:10px 15px;list-style:none;position:relative;}
|
.list_01 ul {border-top:1px solid #ececec}
|
||||||
|
.list_01 li {border-bottom:1px solid #ececec;background:#fff;padding:10px 15px;list-style:none;position:relative}
|
||||||
|
.list_01 li:nth-child(odd) {background:#f6f6f6}
|
||||||
.list_01 li:after {display:block;visibility:hidden;clear:both;content:""}
|
.list_01 li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.list_01 li:hover{background:#f9f9f9}
|
.list_01 li:hover {background:#f9f9f9}
|
||||||
.list_01 li.empty_li{text-align:center;padding:20px 0;color:#666}
|
.list_01 li.empty_li {text-align:center;padding:20px 0;color:#666}
|
||||||
|
|
||||||
/*폼 리스트*/
|
/*폼 리스트*/
|
||||||
.form_01 h2{margin:0 0 10px;font-size:1.167em}
|
.form_01 h2 {font-size:1.167em}
|
||||||
.form_01 li{margin:10px 0}
|
.form_01 li {margin-bottom:10px}
|
||||||
|
.form_01 ul:after,
|
||||||
.form_01 li:after {display:block;visibility:hidden;clear:both;content:""}
|
.form_01 li:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.form_01 li .right_input{float:right}
|
.form_01 .left_input {float:left}
|
||||||
.form_01 textarea{height:100px;width:100%}
|
.form_01 .margin_input {margin-right:1%}
|
||||||
.form_01 .frm_label{display:inline-block;width:130px}
|
.form_01 textarea {height:100px;width:100%}
|
||||||
|
.form_01 .frm_label {display:inline-block;width:130px}
|
||||||
|
|
||||||
/* 자료 없는 목록 */
|
/* 자료 없는 목록 */
|
||||||
.empty_table {padding:50px 0 !important;text-align:center}
|
.empty_table {padding:50px 0 !important;text-align:center}
|
||||||
.empty_list {padding:20px 0 !important;color:#666;text-align:center}
|
.empty_list {padding:20px 0 !important;color:#666;text-align:center}
|
||||||
|
|
||||||
/* 필수입력 */
|
/* 필수입력 */
|
||||||
.required, textarea.required {background-image:url('../img/require.png') !important;background-repeat:no-repeat !important;background-position:right top !important;}
|
.required, textarea.required {background-image:url('../img/require.png') !important;background-repeat:no-repeat !important;background-position:right top !important}
|
||||||
|
|
||||||
/* 테이블 항목별 정의 */
|
/* 테이블 항목별 정의 */
|
||||||
.td_board {width:80px;text-align:center}
|
.td_board {width:80px;text-align:center}
|
||||||
@@ -371,29 +371,34 @@ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
|||||||
.txt_rdy {color:#8abc2a}
|
.txt_rdy {color:#8abc2a}
|
||||||
|
|
||||||
/* 새창 기본 스타일 */
|
/* 새창 기본 스타일 */
|
||||||
.new_win {position:relative;}
|
.new_win {position:relative}
|
||||||
.new_win .tbl_wrap {margin:0 20px}
|
.new_win .tbl_wrap {margin:0 20px}
|
||||||
.new_win #win_title {font-size:1.25em;height:50px;line-height:30px;padding:10px 20px;background:#333;color:#fff;}
|
.new_win #win_title {font-size:1.3em;height:50px;line-height:30px;padding:10px 20px;background:#fff;color:#000;-webkit-box-shadow:0 1px 10px rgba(0,0,0,.1);
|
||||||
|
-moz-box-shadow:0 1px 10px rgba(0,0,0,.1);
|
||||||
|
box-shadow:0 1px 10px rgba(0,0,0,.1)}
|
||||||
.new_win #win_title .sv {font-size:0.75em;line-height:1.2em}
|
.new_win #win_title .sv {font-size:0.75em;line-height:1.2em}
|
||||||
.new_win .win_ul {border-right:1px solid #dfe6e7;}
|
.new_win .win_ul {margin-bottom:15px;padding:0 20px}
|
||||||
.new_win .win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
.new_win .win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.new_win .win_ul li{float:left;background:#fff;width:33.333%;text-align:center;border:1px solid #ccc;margin-left:-1px}
|
.new_win .win_ul li {float:left;background:#fff;text-align:center;padding:0 10px;border:1px solid #d6e9ff;border-radius:30px;margin-left:5px}
|
||||||
.new_win .win_ul li a{display:block;padding:10px 0}
|
.new_win .win_ul li:first-child {margin-left:0}
|
||||||
.new_win .win_ul .selected{background:#fff;border-color:#253dbe;position:relative;z-index:5}
|
.new_win .win_ul li a {display:block;padding:8px 0;color:#6794d3}
|
||||||
.new_win .win_ul .selected a{color:#253dbe;font-weight:bold}
|
.new_win .win_ul .selected {background:#3a8afd;border-color:#3a8afd;position:relative;z-index:5}
|
||||||
.new_win .win_desc {margin:5px 0;font-size:0.92em;color:#3598db;}
|
.new_win .win_ul .selected a {color:#fff;font-weight:bold}
|
||||||
.new_win .frm_info{font-size:0.92em;color:#3598db}
|
.new_win .win_desc {position:relative;margin:10px;border-radius:5px;font-size:1em;background:#f2838f;color:#fff;line-height:50px;text-align:left;padding:0 20px}
|
||||||
.new_win .win_total{text-align:right;margin:10px 0}
|
.new_win .win_desc i {font-size:1.2em;vertical-align:baseline}
|
||||||
.new_win .win_total span{display:inline-block;line-height:30px;font-size:0.92em;color:#4e546f;background:#d4d4d4;padding:0 10px;border-radius:5px;}
|
.new_win .win_desc:after {content:"";position:absolute;left:0;top:0;width:4px;height:50px;background:#da4453;border-radius:3px 0 0 3px}
|
||||||
.new_win .new_win_con{margin:20px;}
|
.new_win .frm_info {font-size:0.92em;color:#919191}
|
||||||
|
.new_win .win_total {float:right;display:inline-block;line-height:30px;font-weight:normal;font-size:0.75em;color:#3a8afd;background:#f6f6f6;padding:0 10px;border-radius:5px}
|
||||||
|
.new_win .new_win_con {margin:20px 0;padding:20px}
|
||||||
.new_win .new_win_con:after {display:block;visibility:hidden;clear:both;content:""}
|
.new_win .new_win_con:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
|
.new_win .new_win_con2 {margin:20px 0}
|
||||||
.new_win .btn_confirm:after {display:block;visibility:hidden;clear:both;content:""}
|
.new_win .btn_confirm:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.new_win .win_btn{text-align:right}
|
.new_win .win_btn {text-align:center}
|
||||||
.new_win .btn_close {position:absolute;top:0;right:0;height:50px;width:50px;background:url(../img/close_btn.gif) no-repeat 50% 50%;border:0;text-indent:-999px;overflow:hidden;cursor:pointer}
|
.new_win .btn_close {height:45px;width:60px;overflow:hidden;cursor:pointer}
|
||||||
.new_win .btn_submit {padding:0 20px;height:40px;font-weight:bold;font-size:1.083em;float:right}
|
.new_win .btn_submit {padding:0 20px;height:45px;font-weight:bold;font-size:1.083em}
|
||||||
|
|
||||||
/* 검색결과 색상 */
|
/* 검색결과 색상 */
|
||||||
.sch_word {color:#00c4ac}
|
.sch_word {color:#fff;background:#ff005a;padding:2px 5px 3px;line-height:18px;margin:0 2px}
|
||||||
|
|
||||||
/* 자바스크립트 alert 대안 */
|
/* 자바스크립트 alert 대안 */
|
||||||
#validation_check {margin:100px auto;width:500px}
|
#validation_check {margin:100px auto;width:500px}
|
||||||
@@ -403,41 +408,37 @@ box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
|||||||
/* 사이드뷰 */
|
/* 사이드뷰 */
|
||||||
.sv_wrap {position:relative;font-weight:normal}
|
.sv_wrap {position:relative;font-weight:normal}
|
||||||
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;font-size:0.92em;background:#333;
|
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;font-size:0.92em;background:#333;
|
||||||
-webkit-box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);
|
-webkit-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
|
||||||
-moz-box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);
|
-moz-box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2);
|
||||||
box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
|
box-shadow:2px 2px 3px 0px rgba(0,0,0,0.2)}
|
||||||
.sv_wrap .sv:before{content: "";position: absolute;top: -6px;left: 15px;width: 0;height: 0;border-style: solid;border-width: 0 6px 6px 6px;border-color: transparent transparent #333 transparent;}
|
.sv_wrap .sv:before {content:"";position:absolute;top:-6px;left:15px;width:0;height:0;border-style:solid;border-width:0 6px 6px 6px;border-color:transparent transparent #333 transparent}
|
||||||
.sv_wrap .sv a {display:inline-block;margin:0;padding:0 10px;line-height:30px;width:100px;font-weight:normal;color:#bbb }
|
.sv_wrap .sv a {display:inline-block;margin:0;padding:0 10px;line-height:30px;width:100px;font-weight:normal;color:#bbb}
|
||||||
.sv_wrap .sv a:hover{background:#000;color:#fff}
|
.sv_wrap .sv a:hover {background:#000;color:#fff}
|
||||||
.sv_member{color:#333}
|
.sv_member {color:#333}
|
||||||
.sv_on {display:block !important;position:absolute;top:23px;left:0px;width:auto;height:auto}
|
.sv_on {display:block !important;position:absolute;top:23px;left:0px;width:auto;height:auto}
|
||||||
.sv_nojs .sv {display:block}
|
.sv_nojs .sv {display:block}
|
||||||
|
|
||||||
/* 페이징 */
|
/* 페이징 */
|
||||||
.pg_wrap {clear:both;margin:30px 0 ;text-align:center}
|
.pg_wrap {clear:both;float:left;display:inline-block}
|
||||||
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
.pg_wrap:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.pg {}
|
.pg {text-align:center}
|
||||||
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#f3f3f3;border:1px solid #bbbcc3}
|
.pg_page, .pg_current {display:inline-block;vertical-align:middle;background:#eee;border:1px solid #eee}
|
||||||
.pg a:focus, .pg a:hover {text-decoration:none}
|
.pg a:focus, .pg a:hover {text-decoration:none}
|
||||||
.pg_page {color:#555;font-size:1.083em;height:30px;line-height:28px;padding:0 5px;min-width:30px;text-decoration:none;border-radius:3px;}
|
.pg_page {color:#959595;font-size:1.083em;height:30px;line-height:28px;padding:0 5px;min-width:30px;text-decoration:none;border-radius:3px}
|
||||||
.pg_page:hover{background-color:#ddd}
|
.pg_page:hover {background-color:#fafafa}
|
||||||
.pg_start {text-indent:-999px;overflow:hidden;background:url('../img/btn_first.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb;}
|
.pg_start {text-indent:-999px;overflow:hidden;background:url('../img/btn_first.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
|
||||||
.pg_prev {text-indent:-999px;overflow:hidden;background:url('../img/btn_prev.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
|
.pg_prev {text-indent:-999px;overflow:hidden;background:url('../img/btn_prev.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
|
||||||
.pg_end {text-indent:-999px;overflow:hidden;background:url('../img/btn_end.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
|
.pg_end {text-indent:-999px;overflow:hidden;background:url('../img/btn_end.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
|
||||||
.pg_next {text-indent:-999px;overflow:hidden;background:url('../img/btn_next.gif') no-repeat 50% 50% #fff;padding:0;border:1px solid #bbb}
|
.pg_next {text-indent:-999px;overflow:hidden;background:url('../img/btn_next.gif') no-repeat 50% 50% #eee;padding:0;border:1px solid #eee}
|
||||||
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover{background-color:#fafafa}
|
.pg_start:hover,.pg_prev:hover,.pg_end:hover,.pg_next:hover {background-color:#fafafa}
|
||||||
|
|
||||||
.pg_current {display:inline-block;background:#4c4f6f;color:#fff;font-weight:bold;height:30px;line-height:30px;padding:0 10px;min-width:30px;border-radius:3px;
|
.pg_current {display:inline-block;background:#3a8afd;border:1px solid #3a8afd;color:#fff;font-weight:bold;height:30px;line-height:30px;padding:0 10px;min-width:30px;border-radius:3px}
|
||||||
-webkit-box-shadow: inset 1px 1px 2px #222542;
|
|
||||||
-moz-box-shadow: inset 1px 1px 2px #222542;
|
|
||||||
box-shadow: inset 1px 1px 2px #222542;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* cheditor 이슈 */
|
/* cheditor 이슈 */
|
||||||
.cheditor-popup-window *, .cheditor-popup-window :after, .cheditor-popup-window :before {
|
.cheditor-popup-window *, .cheditor-popup-window :after, .cheditor-popup-window :before {
|
||||||
-webkit-box-sizing: content-box;
|
-webkit-box-sizing:content-box;
|
||||||
-moz-box-sizing: content-box;
|
-moz-box-sizing:content-box;
|
||||||
box-sizing: content-box;
|
box-sizing:content-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mobile화면으로 */
|
/* Mobile화면으로 */
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loaded 100 of 571 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user