Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -14,13 +14,18 @@ $CKEditor = $_GET['CKEditor'] ;
|
||||
$langCode = $_GET['langCode'] ;
|
||||
|
||||
if(isset($_FILES['upload']['tmp_name'])) {
|
||||
$file_name = $_FILES['upload']['name'];
|
||||
$ext = substr($file_name, (strrpos($file_name, '.') + 1));
|
||||
if (!preg_match("/\.(jpe?g|gif|png)$/i", $file_name)) {
|
||||
echo '이미지만 가능';
|
||||
$file = $_FILES['upload']['name'];
|
||||
$pos = strrpos($file, '.');
|
||||
$filename = substr($file, 0, $pos);
|
||||
$extension = substr($file, $pos, strlen($file) - $pos);
|
||||
|
||||
if (!preg_match("/\.(jpe?g|gif|png)$/i", $extension)) {
|
||||
echo '이미지 파일만 가능합니다.';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 윈도우에서 한글파일명으로 업로드 되지 않는 오류 해결
|
||||
$file_name = sprintf('%u', ip2long($_SERVER['REMOTE_ADDR'])).'_'.get_microtime().$extension;
|
||||
$save_dir = sprintf('%s/%s', $data_dir, $file_name);
|
||||
$save_url = sprintf('%s/%s', $data_url, $file_name);
|
||||
|
||||
|
||||
@ -305,14 +305,14 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
#admin_confirm .frm_input {border-color:#000}
|
||||
|
||||
/* 사이드뷰 */
|
||||
.sv_wrap {display:inline-block;position:relative;font-weight:normal}
|
||||
.sv_wrap .sv {z-index:5;display:none;margin:5px 0 0;border:1px solid #283646;background:#334356}
|
||||
.sv_js_off .sv {display:block}
|
||||
.sv_wrap {display:inline-block;position:relative;font-weight:normal;font-size:1em}
|
||||
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111}
|
||||
.sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important}
|
||||
.sv_wrap a:focus,
|
||||
.sv_wrap a:hover,
|
||||
.sv_wrap a:active {text-decoration:none !important}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important;background:#ddd}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
|
||||
.sv_nojs .sv {display:block}
|
||||
|
||||
/* pagination */
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
|
||||
|
||||
@ -229,17 +229,15 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important
|
||||
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
||||
#validation_check p {margin-bottom:20px;padding:30px 20px}
|
||||
|
||||
/* 스킨별 스타일 */
|
||||
|
||||
/* 사이드뷰 */
|
||||
.sv_wrap {display:inline-block;position:relative;font-weight:normal}
|
||||
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111}
|
||||
.sv_js_off {display:block}
|
||||
.sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important}
|
||||
.sv_wrap a:focus,
|
||||
.sv_wrap a:hover,
|
||||
.sv_wrap a:active {text-decoration:none !important}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
|
||||
.sv_nojs .sv {display:block}
|
||||
|
||||
/* pagination */
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
|
||||
|
||||
@ -1003,7 +1003,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
$str .= $tmp_name."\n";
|
||||
|
||||
if(!G4_IS_MOBILE) {
|
||||
$str2 = "<span class=\"sv sv_js_off\">\n";
|
||||
$str2 = "<span class=\"sv\">\n";
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G4_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||
if($email)
|
||||
@ -1025,7 +1025,8 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
$str2 .= "<a href=\"".G4_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">포인트내역</a>\n";
|
||||
}
|
||||
$str2 .= "</span>\n";
|
||||
$str .= $str2;//."\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||
$str .= $str2;
|
||||
$str .= "\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||
}
|
||||
|
||||
$str .= "</span>";
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
/* 게시판 목록 */
|
||||
#bo_list_title {padding:0 1em}
|
||||
|
||||
#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_cate ul {margin:0.5em 1em;padding-left:1px;zoom:1}
|
||||
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_cate li {float:left;margin-bottom:-1px;width:25%}
|
||||
#bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em}
|
||||
#bo_cate a:focus,
|
||||
#bo_cate a:hover,
|
||||
#bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
.bo_list table {margin-bottom:1.5em;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
|
||||
.bo_list th {}
|
||||
|
||||
@ -2,6 +2,17 @@
|
||||
#bo_img h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_img_list {margin:1em 0 0;padding:0 1em;list-style:none}
|
||||
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_cate ul {margin:0.5em 1em;padding-left:1px;zoom:1}
|
||||
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_cate li {float:left;margin-bottom:-1px;width:25%}
|
||||
#bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em}
|
||||
#bo_cate a:focus,
|
||||
#bo_cate a:hover,
|
||||
#bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
.bo_img_list_li {float:left;margin:0 0 2em}
|
||||
|
||||
.bo_img_con {margin:0;padding:0;list-style:none}
|
||||
|
||||
Reference in New Issue
Block a user