diff --git a/_common.php b/_common.php
index 626acc9..48e1738 100644
--- a/_common.php
+++ b/_common.php
@@ -1,4 +1,2 @@
\ No newline at end of file
+include_once '../../../common.php';
diff --git a/list.skin.php b/list.skin.php
index c515653..94d9a19 100644
--- a/list.skin.php
+++ b/list.skin.php
@@ -1,132 +1,146 @@
-
-if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?>
-', 0); ?>
-
-}?>
-
-add_stylesheet(' ', 0);
-include_once(G5_LIB_PATH.'/thumbnail.lib.php');
-
-$au_type=$board['bo_1']?$board['bo_1']:'오리지널';
-$slide_space=10;
-$margin="5px";
-$slide_loop=($board['bo_3']) ? 'true':'false';
-if($board['bo_table_width']==0) $width="100%";
+
+', 0); ?>
+
+
+', 0);
+include_once G5_LIB_PATH . '/thumbnail.lib.php';
-$cate=array();
-$lists=array();
-?>
- if($board['bo_content_head']) { ?>
-
-
- if ($is_category && !$board['bo_4']) { ?>
-
-
-
- } ?>
-
-
-if($board['bo_4']=='1' && $is_category) {
- $cate=explode('|',$board['bo_category_list']);
-}
-for($h=0;$h<=count($cate);$h++){
- if(count($cate)>0 && $h==count($cate)) continue;
- $list_item=sql_query("select * from {$write_table} where wr_reply='' and wr_is_comment=0 order by wr_10*1 desc, wr_num");
-
- for($k=0;$row=sql_fetch_array($list_item);$k++){
- $lists[$k]=get_list($row,$board,$board_skin_url);
- }
+$au_type = $board['bo_1'] ? $board['bo_1'] : '오리지널';
+$slide_space = 10;
+$margin = "5px";
+$slide_loop = ($board['bo_3']) ? 'true' : 'false';
+if ($board['bo_table_width'] == 0)
+ $width = "100%";
+
+$cate = array();
+$lists = array();
?>
-
-
-
-
+
-
-
-
+
-}?>
-
-
+
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..4255475
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,21 @@
+## 게시판 캐릭터 정리 게시판 ver.2 스킨
+
+작성자: 대하 (Extra Shot)
+원본주소: https://extrashot.tistory.com/38
+
+오류 수정 및 일부 코드에 최적화 작업을 진행했습니다.
+
+### 주요 수정 사항
+- short open tag 제거
+
+모든 아보카도 버전에 호환됩니다.
+
+## 설치방법
+
+아보카도가 설치된 폴더의 하위 폴더인 `skin/board/` 에 `es_character` (또는 `character_new`)
+라는 폴더를 생성하고 파일을 업로드합니다.
+> (폴더명은 기능과 무관하므로 어느 폴더명을 넣으셔도 상관 없습니다.)
+
+```
+php 최소 버전: 5.6 이상 (5.3부터 사용 가능)
+```
diff --git a/set_order.php b/set_order.php
index 638c85d..803b97c 100644
--- a/set_order.php
+++ b/set_order.php
@@ -1,57 +1,61 @@
-', 0);
+', 0);
if (!$is_admin)
- alert('관리자만 접근 가능합니다.');
-if($is_admin){
-?>
-
-}?>
\ No newline at end of file
+ alert('관리자만 접근 가능합니다.');
+if ($is_admin) {
+ ?>
+
+
diff --git a/set_order_update.php b/set_order_update.php
index a6bcec2..77b84f1 100644
--- a/set_order_update.php
+++ b/set_order_update.php
@@ -1,17 +1,17 @@
-
+
+goto_url('./set_order.php?bo_table=' . $bo_table . '&write_table=' . $write_table);
diff --git a/upload_file.php b/upload_file.php
index 265d80f..80f63f6 100644
--- a/upload_file.php
+++ b/upload_file.php
@@ -1,46 +1,51 @@
16)
- alert("업로드 불가능한 확장자입니다.","./board.php?bo_table=".$bo_table); //@200927
- }else{
- $files['img']=$timg;
- $files['source']=$filename;
- $files['size']=$filesize;
+ $files = array();
+ $tmp_file = $_FILES[$name]['tmp_name'];
+ $filesize = $_FILES[$name]['size'];
+ $filename = $_FILES[$name]['name'];
+ $filename = get_safe_filename($filename);
- // 아래의 문자열이 들어간 파일은 -x 를 붙여서 웹경로를 알더라도 실행을 하지 못하도록 함
- $filename = preg_replace("/\.(php|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename);
+ $timg = @getimagesize($tmp_file);
+ // image type
+ if (
+ preg_match("/\.({$config['cf_image_extension']})$/i", $filename) ||
+ preg_match("/\.({$config['cf_flash_extension']})$/i", $filename)
+ ) {
+ if ($timg['2'] < 1 || $timg['2'] > 16)
+ alert("업로드 불가능한 확장자입니다.", "./board.php?bo_table=" . $bo_table); //@200927
+ } else {
+ $files['img'] = $timg;
+ $files['source'] = $filename;
+ $files['size'] = $filesize;
- $chars_array = array_merge(range(0,9), range('a','z'), range('A','Z'));
- shuffle($chars_array);
- $shuffle = implode('', $chars_array);
+ // 아래의 문자열이 들어간 파일은 -x 를 붙여서 웹경로를 알더라도 실행을 하지 못하도록 함
+ $filename = preg_replace("/\.(php|phtm|htm|cgi|pl|exe|jsp|asp|inc)/i", "$0-x", $filename);
- // 첨부파일 첨부시 첨부파일명에 공백이 포함되어 있으면 일부 PC에서 보이지 않거나 다운로드 되지 않는 현상이 있습니다. (길상여의 님 090925)
- $file_name = abs(ip2long($_SERVER['REMOTE_ADDR'])).'_'.substr($shuffle,0,8).'_'.replace_filename($filename);
+ $chars_array = array_merge(range(0, 9), range('a', 'z'), range('A', 'Z'));
+ shuffle($chars_array);
+ $shuffle = implode('', $chars_array);
- $dest_file = G5_DATA_PATH.'/file/'.$table.'/'.$file_name;
+ // 첨부파일 첨부시 첨부파일명에 공백이 포함되어 있으면 일부 PC에서 보이지 않거나 다운로드 되지 않는 현상이 있습니다. (길상여의 님 090925)
+ $file_name = abs(ip2long($_SERVER['REMOTE_ADDR'])) . '_' . substr($shuffle, 0, 8) . '_' . replace_filename($filename);
+
+ $dest_file = G5_DATA_PATH . '/file/' . $table . '/' . $file_name;
@move_uploaded_file($tmp_file, $dest_file);
- @chmod($dest_file, G5_FILE_PERMISSION);
-
- $files['link']=G5_DATA_URL.'/file/'.$table.'/'.$file_name;
- $files['name']=$file_name;
- if (!get_magic_quotes_gpc()) {
- $files['source'] = addslashes($files['source']);
+ @chmod($dest_file, G5_FILE_PERMISSION);
+
+ $files['link'] = G5_DATA_URL . '/file/' . $table . '/' . $file_name;
+ $files['name'] = $file_name;
+ if (!get_magic_quotes_gpc()) {
+ $files['source'] = addslashes($files['source']);
}
- return $files;
- }
+ return $files;
+ }
}
-?>
diff --git a/view.skin.php b/view.skin.php
index bb5550a..a123545 100644
--- a/view.skin.php
+++ b/view.skin.php
@@ -1,151 +1,163 @@
-
-if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-include_once(G5_LIB_PATH.'/thumbnail.lib.php');
+', 0);
-
-if($board['bo_table_width']==0) $width="100%";
-$parent_type=$board['bo_1']?$board['bo_1']:'오리지널';
+add_stylesheet('
', 0);
+
+if ($board['bo_table_width'] == 0)
+ $width = "100%";
+$parent_type = $board['bo_1'] ? $board['bo_1'] : '오리지널';
// 동일캐릭터 wr_9 묶음, au명은 wr_type 사용, 캐릭터명은 wr_subject 사용.
-$allow_body=450;
-$content_width=400;
-if($board['bo_5']) $conts=explode("|",$board['bo_5']);
-if($conts[0]) $allow_body=trim($conts[0]);
-if($conts[1]) $content_width=trim($conts[1]);
+$allow_body = 450;
+$content_width = 400;
+if ($board['bo_5'])
+ $conts = explode("|", $board['bo_5']);
+if ($conts[0])
+ $allow_body = trim($conts[0]);
+if ($conts[1])
+ $content_width = trim($conts[1]);
-$rel=sql_fetch("select wr_id from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1");
-$relate=sql_query("select wr_id, wr_type from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1, wr_reply");
-$or_link = './board.php?bo_table='.$bo_table.'&wr_id='.$view['wr_9'].$qstr; // @211117
-$parent=sql_fetch("select wr_id, wr_type, wr_7 from {$write_table} where wr_id='{$view['wr_9']}' and wr_is_comment=0");
-$cl_no=sql_query("select * from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장' order by wr_10*1 ");
-$cl=array();
-$idx=0;
-for($i=0;$clo=sql_fetch_array($cl_no);$i++){
- $cl[$idx]=$clo;
- $idx++;
-}?>
+$rel = sql_fetch("select wr_id from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1");
+$relate = sql_query("select wr_id, wr_type from {$write_table} where wr_9='{$view['wr_9']}' and wr_id!={$view['wr_9']} order by wr_10*1, wr_reply");
+$or_link = './board.php?bo_table=' . $bo_table . '&wr_id=' . $view['wr_9'] . $qstr; // @211117
+$parent = sql_fetch("select wr_id, wr_type, wr_7 from {$write_table} where wr_id='{$view['wr_9']}' and wr_is_comment=0");
+$cl_no = sql_query("select * from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장' order by wr_10*1 ");
+$cl = array();
+$idx = 0;
+for ($i = 0; $clo = sql_fetch_array($cl_no); $i++) {
+ $cl[$idx] = $clo;
+ $idx++;
+} ?>
-
-
-
- }?>
-
- for($k=0;$k
-
-
-
- } ?>
-0){?>
-AU/옷장 }?>
-
-
-
+
+
+
+
+
+
+
+
+ 0) { ?>
+
AU/옷장
+
+
+
-
-
-
-
-
echo get_view_thumbnail($view['content']); ?>
- //echo $view['rich_content']; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
-
+
-
\ No newline at end of file
+
diff --git a/view_comment.skin.php b/view_comment.skin.php
index bc1804a..da869d7 100644
--- a/view_comment.skin.php
+++ b/view_comment.skin.php
@@ -1,373 +1,342 @@
-
-if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-
- $cmt_link = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content!='옷장'");
- $clo = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장'");
-?>
-
▶ 로그 링크 추가
}?> -▶ 의상 추가
- + +▶ 로그 링크 추가
+▶ 의상 추가
+ - } ?> - +..." onkeyup="check_byte('wr_content', 'char_count');" > + + + + +