Merge branch 'master' of github.com:gnuboard/yc4s
This commit is contained in:
@ -16,7 +16,7 @@ button {cursor:pointer}
|
||||
|
||||
textarea, select {font-family:dotum;font-size:1em}
|
||||
select {margin:0}
|
||||
p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all}
|
||||
p {margin:0;padding:0;word-break:break-all}
|
||||
hr {display:none}
|
||||
pre {overflow-x:scroll;font-size:1.1em}
|
||||
a:link, a:visited {color:#000;text-decoration:none}
|
||||
@ -93,7 +93,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
#ft_catch {position:relative;margin:0 auto;padding:20px 0;width:970px;text-align:center}
|
||||
|
||||
#ft_copy {background:#414141}
|
||||
#ft_copy p {position:relative;margin:0 auto;width:970px;color:#fff}
|
||||
#ft_copy p {position:relative;margin:0 auto;padding:10px 0;width:970px;color:#fff}
|
||||
#ft_copy a {position:absolute;top:10px;right:0;color:#fff}
|
||||
|
||||
/* 게시물 선택복사 선택이동 */
|
||||
|
||||
@ -16,7 +16,7 @@ input[type=text], input[type=password], input[type=submit], input[type=image], b
|
||||
textarea, select {font-size:1em}
|
||||
textarea {border-radius:0;-webkit-appearance:none}
|
||||
select {margin:0}
|
||||
p {margin:0;padding:1em 0;line-height:1.7em;word-break:break-all}
|
||||
p {margin:0;padding:0;word-break:break-all}
|
||||
hr {display:none}
|
||||
pre {overflow-x:scroll;font-size:1.1em}
|
||||
a:link, a:visited {color:#000;text-decoration:none}
|
||||
@ -200,6 +200,7 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
.new_win #win_title {margin:0 0 20px;padding:20px;border-top:3px solid #4e5d60;border-bottom:1px solid #e9e9e9;font-size:1.2em}
|
||||
.new_win #win_title .sv {font-size:0.75em;line-height:1.2em}
|
||||
.new_win .tbl_wrap {margin:0 20px}
|
||||
.new_win .win_ul {margin:-20px 0 20px 0;padding:0 20px;border-bottom:1px solid #455255;background:#484848;list-style:none}
|
||||
.new_win .win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
@ -213,7 +214,12 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.new_win .win_btn input {padding:0 10px;height:2.5em;line-height:2.5em}
|
||||
|
||||
/* 사이드뷰 */
|
||||
/* 모바일에서는 사이드뷰를 지원하지 않습니다. */
|
||||
.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}
|
||||
.sv_wrap .sv a {display:inline-block;margin:0;padding:3px;width:94px;border-bottom:1px solid #283646;background:#111;color:#fff !important}
|
||||
.sv_wrap a:focus, .sv_wrap a:hover, .sv_wrap a:active {text-decoration:none}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto}
|
||||
.sv_nojs .sv {display:block}
|
||||
|
||||
/* 페이징 */
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding:20px 0 0;text-align:center}
|
||||
|
||||
@ -1226,32 +1226,30 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
$str = "<span class=\"sv_wrap\">\n";
|
||||
$str .= $tmp_name."\n";
|
||||
|
||||
if(!G5_IS_MOBILE) {
|
||||
$str2 = "<span class=\"sv\">\n";
|
||||
$str2 = "<span class=\"sv\">\n";
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||
if($email)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/formmail.php?mb_id=".$mb_id."&name=".urlencode($name)."&email=".$email."\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n";
|
||||
if($homepage)
|
||||
$str2 .= "<a href=\"".$homepage."\" target=\"_blank\">홈페이지</a>\n";
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n";
|
||||
if($bo_table) {
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||
if($email)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/formmail.php?mb_id=".$mb_id."&name=".urlencode($name)."&email=".$email."\" onclick=\"win_email(this.href); return false;\">메일보내기</a>\n";
|
||||
if($homepage)
|
||||
$str2 .= "<a href=\"".$homepage."\" target=\"_blank\">홈페이지</a>\n";
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" onclick=\"win_profile(this.href); return false;\">자기소개</a>\n";
|
||||
if($bo_table) {
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">아이디로 검색</a>\n";
|
||||
else
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
}
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/new.php?mb_id=".$mb_id."\">전체게시물</a>\n";
|
||||
if($is_admin == "super" && $mb_id) {
|
||||
$str2 .= "<a href=\"".G5_ADMIN_URL."/member_form.php?w=u&mb_id=".$mb_id."\" target=\"_blank\">회원정보변경</a>\n";
|
||||
$str2 .= "<a href=\"".G5_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">포인트내역</a>\n";
|
||||
}
|
||||
$str2 .= "</span>\n";
|
||||
$str .= $str2;
|
||||
$str .= "\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">아이디로 검색</a>\n";
|
||||
else
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">이름으로 검색</a>\n";
|
||||
}
|
||||
if($mb_id)
|
||||
$str2 .= "<a href=\"".G5_BBS_URL."/new.php?mb_id=".$mb_id."\">전체게시물</a>\n";
|
||||
if($is_admin == "super" && $mb_id) {
|
||||
$str2 .= "<a href=\"".G5_ADMIN_URL."/member_form.php?w=u&mb_id=".$mb_id."\" target=\"_blank\">회원정보변경</a>\n";
|
||||
$str2 .= "<a href=\"".G5_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">포인트내역</a>\n";
|
||||
}
|
||||
$str2 .= "</span>\n";
|
||||
$str .= $str2;
|
||||
$str .= "\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||
|
||||
$str .= "</span>";
|
||||
|
||||
@ -1932,7 +1930,7 @@ function get_uniqid()
|
||||
sql_query(" LOCK TABLE {$g5['uniqid_table']} WRITE ");
|
||||
while (1) {
|
||||
// 년월일시분초에 100분의 1초 두자리를 추가함 (1/100 초 앞에 자리가 모자르면 0으로 채움)
|
||||
$key = date('YmdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT);
|
||||
$key = date('ymdHis', time()) . str_pad((int)(microtime()*100), 2, "0", STR_PAD_LEFT);
|
||||
|
||||
$result = sql_query(" insert into {$g5['uniqid_table']} set uq_id = '$key', uq_ip = '{$_SERVER['REMOTE_ADDR']}' ", false);
|
||||
if ($result) break; // 쿼리가 정상이면 빠진다.
|
||||
@ -2375,15 +2373,6 @@ function certify_count_check($mb_id, $type)
|
||||
alert_close('오늘 '.$cert.' 본인확인을 '.$row['cnt'].'회 이용하셔서 더 이상 이용할 수 없습니다.');
|
||||
}
|
||||
|
||||
// die 함수를 utf-8 환경에서 사용할 때 한글깨짐방지
|
||||
function die_utf8($msg)
|
||||
{
|
||||
if(!trim($msg))
|
||||
return;
|
||||
|
||||
die('<meta charset="utf-8"><p>'.$msg.'</p>');
|
||||
}
|
||||
|
||||
// 1:1문의 설정로드
|
||||
function get_qa_config($fld='*')
|
||||
{
|
||||
@ -2458,42 +2447,60 @@ function module_exec_check($exe, $type)
|
||||
// 바이너리 파일인지
|
||||
if($is_linux) {
|
||||
$search = false;
|
||||
exec('ls', $out);
|
||||
if(empty($out)) {
|
||||
$error = 'exec 함수의 실행권한이 없습니다. 서버관리자에게 문의해 주십시오.';
|
||||
} else {
|
||||
switch($type) {
|
||||
case 'ct_cli':
|
||||
exec($exe.' -h 2>&1', $out);
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos(strtoupper($out[$i]), 'KCP ENC') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'okname':
|
||||
exec($exe.' D 2>&1', $out);
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos(strtolower($out[$i]), 'ret code') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'pp_cli':
|
||||
exec($exe.' -h 2>&1', $out);
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos(strtoupper($out[$i]), 'PAYPLUS CLIENT') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
$executable = true;
|
||||
|
||||
if(!$search)
|
||||
$error = $exe.'\n파일을 바이너리 타입으로 다시 업로드하여 주십시오.';
|
||||
switch($type) {
|
||||
case 'ct_cli':
|
||||
exec($exe.' -h 2>&1', $out);
|
||||
|
||||
if(empty($out)) {
|
||||
$executable = false;
|
||||
break;
|
||||
}
|
||||
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos($out[$i], 'KCP ENC') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'pp_cli':
|
||||
exec($exe.' -h 2>&1', $out);
|
||||
|
||||
if(empty($out)) {
|
||||
$executable = false;
|
||||
break;
|
||||
}
|
||||
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos($out[$i], 'PayPLUS CLIENT') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'okname':
|
||||
exec($exe.' D 2>&1', $out);
|
||||
|
||||
if(empty($out)) {
|
||||
$executable = false;
|
||||
break;
|
||||
}
|
||||
|
||||
for($i=0; $i<count($out); $i++) {
|
||||
if(strpos(strtolower($out[$i]), 'ret code') !== false) {
|
||||
$search = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if(!$executable) {
|
||||
$error = 'exec 함수의 실행권한이 없습니다. 서버관리자에게 문의해 주십시오.';
|
||||
} else if(!$search) {
|
||||
$error = $exe.'\n파일을 바이너리 타입으로 다시 업로드하여 주십시오.';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
|
||||
<div id="formmail" class="new_win mbskin">
|
||||
<h1 id="new_win"><?php echo $name ?>님께 메일보내기</h1>
|
||||
<h1 id="win_title"><?php echo $name ?>님께 메일보내기</h1>
|
||||
|
||||
<form name="fformmail" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" method="post" enctype="multipart/form-data" style="margin:0px;">
|
||||
<input type="hidden" name="to" value="<?php echo $email ?>">
|
||||
|
||||
@ -174,7 +174,7 @@
|
||||
|
||||
/* 자기소개 */
|
||||
#profile table {margin-bottom:0}
|
||||
#profile section {padding:10px}
|
||||
#profile section {padding:10px 20px}
|
||||
#profile h2 {margin:0}
|
||||
#profile .sv_wrap a {margin:0 0 5px;padding:0;font-weight:bold;line-height:10px}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user