Merge branch 'master' of github.com:gnuboard/g4s

This commit is contained in:
whitedot
2013-01-21 11:20:50 +09:00
21 changed files with 126 additions and 166 deletions

View File

@ -23,36 +23,21 @@ if (!$sst) {
$sql_order = " order by {$sst} {$sod} ";
$sql = " select count(*) as cnt
{$sql_common}
{$sql_search}
{$sql_order} ";
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
$row = sql_fetch($sql);
$total_count = $row['cnt'];
// 탈퇴회원수
$sql = " select count(*) as cnt
{$sql_common}
{$sql_search}
and mb_leave_date <> ''
{$sql_order} ";
$sql = " select count(*) as cnt {$sql_common} {$sql_search} and mb_leave_date <> '' {$sql_order} ";
$row = sql_fetch($sql);
$leave_count = $row['cnt'];
// 차단회원수
$sql = " select count(*) as cnt
{$sql_common}
{$sql_search}
and mb_intercept_date <> ''
{$sql_order} ";
// 차단회원수
$sql = " select count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} ";
$row = sql_fetch($sql);
$intercept_count = $row['cnt'];
$sql = " select *
{$sql_common}
{$sql_search}
{$sql_order}
limit {$new_member_rows} ";
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} ";
$result = sql_query($sql);
$colspan = 12;
@ -137,9 +122,9 @@ if ($i == 0)
<?
$sql_common = " from {$g4['board_new_table']} a, {$g4['board_table']} b, {$g4['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
if (isset($gr_id))
if ($gr_id)
$sql_common .= " and b.gr_id = '$gr_id' ";
if (isset($view)) {
if ($view) {
if ($view == 'w')
$sql_common .= " and a.wr_id = a.wr_parent ";
else if ($view == 'c')
@ -170,10 +155,7 @@ $colspan = 5;
</thead>
<tbody>
<?
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
{$sql_common}
{$sql_order}
limit {$new_write_rows} ";
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{

View File

@ -1,11 +1,12 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
include_once("$g4['path']/lib/mailer.lib.php");
include_once("{$g4['path']}/lib/mailer.lib.php");
if (!$config[cf_email_use])
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.'.PHP_EOL.PHP_EOL.'관리자에게 문의하시기 바랍니다.');
if (!$config['cf_email_use'])
alert('환경설정에서 "메일발송 사용"에 체크하셔야 메일을 발송할 수 있습니다.\\n\\n관리자에게 문의하시기 바랍니다.');
if (!$is_member && $config[cf_formmail_is_member])
if (!$is_member && $config['cf_formmail_is_member'])
alert_close('회원만 이용하실 수 있습니다.');
$to = base64_decode($to);
@ -14,33 +15,31 @@ if (substr_count($to, "@") > 1)
alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.');
$key = get_session('captcha_keystring');
if (!($key && $key == $_POST[wr_key])) {
session_unregister('captcha_keystring');
alert('정상적인 접근이 아닌것 같습니다.');
if ($is_guest && !chk_captcha()) {
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
}
for ($i=1; $i<=$attach; $i++)
for ($i=1; $i<=$attach; $i++)
{
if ($_FILES['file'.$i][name])
$file[] = attach_file($_FILES['file'.$i][name], $_FILES['file'.$i][tmp_name]);
if ($_FILES['file'.$i]['name'])
$file[] = attach_file($_FILES['file'.$i]['name'], $_FILES['file'.$i]['tmp_name']);
}
$content = stripslashes($content);
if ($type == 2)
if ($type == 2)
{
$type = 1;
$content = preg_replace("/\n/", "<br>", $content);
}
}
// html 이면
if ($type)
if ($type)
{
$current_url = $g4[url];
$mail_content = '<!doctype html><html lang="ko"><head><meta charset="'.$g4[charset].'"><title>메일보내기</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>'.$content.'</body></html>';
}
else
$current_url = $g4['url'];
$mail_content = '<!doctype html><html lang="ko"><head><meta charset="'.$g4['charset'].'"><title>메일보내기</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>'.$content.'</body></html>';
}
else
$mail_content = $content;
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);

View File

@ -48,6 +48,12 @@ if ($g4['https_url'])
else
$login_action_url = "{$g4['bbs_url']}/login_check.php";
// 로그인 스킨이 없는 경우 관리자 페이지 접속이 안되는 것을 막기 위하여 기본 스킨으로 대체
$login_file = $member_skin_path.'/login.skin.php';
if (!file_exists($login_file)) {
$member_skin_path = $g4['path'].'/'.$g4['skin_dir'].'/member/basic';
}
include_once($member_skin_path.'/login.skin.php');
include_once('./_tail.sub.php');

View File

@ -16,12 +16,12 @@ $email = trim($_POST['mb_email']);
if (!$email)
alert_close('메일주소 오류입니다.');
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '{$email}' ";
$sql = " select count(*) as cnt from {$g4['member_table']} where mb_email = '$email' ";
$row = sql_fetch($sql);
if ($row['cnt'] > 1)
alert('동일한 메일주소가 2개 이상 존재합니다.\n\n관리자에게 문의하여 주십시오.');
alert('동일한 메일주소가 2개 이상 존재합니다.\\n\\n관리자에게 문의하여 주십시오.');
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '{$email}' ";
$sql = " select mb_no, mb_id, mb_name, mb_nick, mb_email, mb_datetime from {$g4['member_table']} where mb_email = '$email' ";
$mb = sql_fetch($sql);
if (!$mb['mb_id'])
alert('존재하지 않는 회원입니다.');
@ -35,17 +35,17 @@ $randval = rand(4, 6);
$change_password = substr(md5(get_microtime()), 0, $randval);
$mb_lost_certify = sql_password($change_password);
$mb_datetime = sql_password($mb[mb_datetime]);
$mb_datetime = sql_password($mb['mb_datetime']);
// 회원테이블에 필드를 추가
sql_query(" ALTER TABLE `{$g4[member_table]}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
sql_query(" ALTER TABLE `{$g4['member_table']}` ADD `mb_lost_certify` VARCHAR( 255 ) NOT NULL AFTER `mb_memo` ", false);
$sql = " update {$g4[member_table]}
set mb_lost_certify = '{$mb_lost_certify}'
where mb_id = '{$mb[mb_id]}' ";
$sql = " update {$g4['member_table']}
set mb_lost_certify = '$mb_lost_certify'
where mb_id = '{$mb['mb_id']}' ";
sql_query($sql);
$href = $g4[url].'/'.$g4[bbs].'/password_lost_certify.php?mb_no='.$mb[mb_no].'&amp;mb_datetime='.$mb_datetime.'&amp;mb_lost_certify='.$mb_lost_certify;
$href = $g4['url'].'/'.$g4['bbs'].'/password_lost_certify.php?mb_no='.$mb['mb_no'].'&amp;mb_datetime='.$mb_datetime.'&amp;mb_lost_certify='.$mb_lost_certify;
$subject = '요청하신 회원아이디/패스워드 정보입니다.';
@ -54,13 +54,13 @@ $content .= '<div style="line-height:180%;">';
$content .= '<p>요청하신 계정정보는 다음과 같습니다.</p>';
$content .= '<hr>';
$content .= '<ul>';
$content .= '<li>회원아이디 : '.$mb[mb_id].'</li>';
$content .= '<li>회원아이디 : '.$mb['mb_id'].'</li>';
$content .= '<li>변경 패스워드 : <span style="color:#ff3300; font:13px Verdana;"><strong>'.$change_password.'</strong></span></li>';
$content .= '<li>이름 : '.addslashes($mb[mb_name]).'</li>';
$content .= '<li>별명 : '.addslashes($mb[mb_nick]).'</li>';
$content .= '<li>이메일주소 : '.addslashes($mb[mb_email]).'</li>';
$content .= '<li>요청일시 : '.$g4[time_ymdhis].'</li>';
$content .= '<li>홈페이지 : '.$g4[url].'</li>';
$content .= '<li>이름 : '.addslashes($mb['mb_name']).'</li>';
$content .= '<li>별명 : '.addslashes($mb['mb_nick']).'</li>';
$content .= '<li>이메일주소 : '.addslashes($mb['mb_email']).'</li>';
$content .= '<li>요청일시 : '.$g4['time_ymdhis'].'</li>';
$content .= '<li>홈페이지 : '.$g4['url'].'</li>';
$content .= '</ul>';
$content .= '<hr>';
$content .= '<p><a href="'.$href.'" target="_blank">'.$href.'</a></p>';
@ -75,7 +75,7 @@ $content .= '<p>[끝]</p>';
$content .= '</div>';
$admin = get_admin('super');
mailer($admin[mb_nick], $admin[mb_email], $mb[mb_email], $subject, $content, 1);
mailer($admin['mb_nick'], $admin['mb_email'], $mb['mb_email'], $subject, $content, 1);
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\n\n메일을 확인하여 주십시오.');
alert_close($email.' 메일로 회원아이디와 패스워드를 인증할 수 있는 메일이 발송 되었습니다.\\n\\n메일을 확인하여 주십시오.');
?>

View File

@ -3,23 +3,23 @@ include_once('./_common.php');
// 오류시 공히 Error 라고 처리하는 것은 회원정보가 있는지? 패스워드가 틀린지? 를 알아보려는 해킹에 대비한것
$mb_no = trim($_GET[mb_no]);
$mb_datetime = trim($_GET[mb_datetime]);
$mb_lost_certify = trim($_GET[mb_lost_certify]);
$mb_no = trim($_GET['mb_no']);
$mb_datetime = trim($_GET['mb_datetime']);
$mb_lost_certify = trim($_GET['mb_lost_certify']);
// 회원아이디가 아닌 회원고유번호로 회원정보를 구한다.
$sql = " select mb_id, mb_datetime, mb_lost_certify from {$g4[member_table]} where mb_no = '{$mb_no}' ";
$sql = " select mb_id, mb_datetime, mb_lost_certify from {$g4['member_table']} where mb_no = '$mb_no' ";
$mb = sql_fetch($sql);
if (!trim($mb[mb_lost_certify]))
if (!trim($mb['mb_lost_certify']))
die("Error");
// 인증 링크는 한번만 처리가 되게 한다.
sql_query(" update {$g4[member_table]} set mb_lost_certify = '' where mb_no = '{$mb_no}' ");
sql_query(" update {$g4['member_table']} set mb_lost_certify = '' where mb_no = '$mb_no' ");
// 변경될 패스워드가 넘어와야하고 저장된 변경패스워드를 md5 로 변환하여 같으면 정상
if ($mb_lost_certify && $mb_datetime === sql_password($mb[mb_datetime]) && $mb_lost_certify === $mb[mb_lost_certify]) {
sql_query(" update {$g4[member_table]} set mb_password = '{$mb[mb_lost_certify]}' where mb_no = '{$mb_no}' ");
alert('이메일로 보내드린 패스워드로 변경 하였습니다.'.PHP_EOL.PHP_EOL.'회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.', $g4[url].'/'.$g4[bbs].'/login.php');
if ($mb_lost_certify && $mb_datetime === sql_password($mb['mb_datetime']) && $mb_lost_certify === $mb['mb_lost_certify']) {
sql_query(" update {$g4['member_table']} set mb_password = '{$mb['mb_lost_certify']}' where mb_no = '$mb_no' ");
alert('이메일로 보내드린 패스워드로 변경 하였습니다.\\n\\n회원아이디와 변경된 패스워드로 로그인 하시기 바랍니다.', $g4['url'].'/'.$g4['bbs'].'/login.php');
}
else {
die("Error");

View File

@ -1,4 +1,5 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$po_id}' ");

View File

@ -1,6 +1,11 @@
<?
define('G4_CAPTCHA', 1);
include_once('./_common.php');
if ($is_guest && !chk_captcha()) {
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
}
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' ");
if (!$po['po_id'])
alert('po_id 값이 제대로 넘어오지 않았습니다.');

View File

@ -1,31 +1,31 @@
<?
include_once('./_common.php');
if (!$member[mb_id])
if (!$member['mb_id'])
alert_close('회원만 이용하실 수 있습니다.');
if (!$member[mb_open] && $is_admin != 'super' && $member[mb_id] != $mb_id)
alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.'.PHP_EOL.PHP_EOL.'정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
if (!$member['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
alert_close('자신의 정보를 공개하지 않으면 다른분의 정보를 조회할 수 없습니다.\\n\\n정보공개 설정은 회원정보수정에서 하실 수 있습니다.');
$mb = get_member($mb_id);
if (!$mb[mb_id])
alert_close('회원정보가 존재하지 않습니다.'.PHP_EOL.PHP_EOL.'탈퇴하였을 수 있습니다.');
if (!$mb['mb_id'])
alert_close('회원정보가 존재하지 않습니다.\\n\\n탈퇴하였을 수 있습니다.');
if (!$mb[mb_open] && $is_admin != 'super' && $member[mb_id] != $mb_id)
if (!$mb['mb_open'] && $is_admin != 'super' && $member['mb_id'] != $mb_id)
alert_close('정보공개를 하지 않았습니다.');
$g4['title'] = $mb[mb_nick].'님의 자기소개';
$g4['title'] = $mb['mb_nick'].'님의 자기소개';
include_once($g4['path'].'/head.sub.php');
$mb_nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage], $mb[mb_open]);
$mb_nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage'], $mb['mb_open']);
// 회원가입후 몇일째인지? + 1 은 당일을 포함한다는 뜻
$sql = " select (TO_DAYS('{$g4[time_ymdhis]}') - TO_DAYS('{$mb[mb_datetime]}') + 1) as days ";
$sql = " select (TO_DAYS('{$g4['time_ymdhis']}') - TO_DAYS('{$mb['mb_datetime']}') + 1) as days ";
$row = sql_fetch($sql);
$mb_reg_after = $row[days];
$mb_reg_after = $row['days'];
$mb_homepage = set_http($mb[mb_homepage]);
$mb_profile = $mb[mb_profile] ? conv_content($mb[mb_profile],0) : '소개 내용이 없습니다.';
$mb_homepage = set_http($mb['mb_homepage']);
$mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'],0) : '소개 내용이 없습니다.';
echo '<script src="'.$g4['path'].'/js/sideview.js"></script>';

View File

@ -1,10 +1,10 @@
<?
// 회원가입축하 메일 (회원님께 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title>회원가입 축하 메일</title>
</head>
@ -29,7 +29,7 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<tr>
<td width="100%" height="25" bgcolor=#F7F1D8>회원가입을 축하합니다.</td>
</tr>
</table>
@ -39,9 +39,9 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr><td height="150">
<b><?=$mb_name?></b> 님의 회원가입을 진심으로 축하합니다.
<? if ($config[cf_use_email_certify]) { ?>
<? if ($config['cf_use_email_certify']) { ?>
<p>아래의 주소를 클릭하시면 회원가입이 완료됩니다.
<p><a href='<?=$certify_href?>'><b><?=$certify_href?></b></a>
<p><a href="<?=$certify_href?>"><b><?=$certify_href?></b></a>
<? } ?>
<p>회원님의 성원에 보답하고자 더욱 더 열심히 하겠습니다.
@ -54,8 +54,8 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">로그인 후 모든 정보를 이용하실 수 있습니다.[<a href="<?=$g4[url]?>/<?=$g4[bbs]?>/login.php">바로가기</a>]</td>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">로그인 후 모든 정보를 이용하실 수 있습니다.[<a href="<?=$g4['url']?>/<?=$g4['bbs']?>/login.php">바로가기</a>]</td>
</tr>
</table>
</td>

View File

@ -1,10 +1,10 @@
<?
// 회원가입 메일 (관리자 메일로 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title>회원가입 메일</title>
</head>
@ -29,7 +29,7 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<tr>
<td width="100%" height="25" bgcolor=#F7F1D8>회원가입 메일</td>
</tr>
</table>
@ -48,8 +48,8 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">관리자화면에서 자세한 내용을 확인하실 수 있습니다.[<a href="<?=$g4[url]?>/<?=$g4[admin]?>/member_form.php?w=u&amp;mb_id=<?=$mb_id?>">바로가기</a>]</td>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">관리자화면에서 자세한 내용을 확인하실 수 있습니다.[<a href="<?=$g4['url']?>/<?=$g4['admin']?>/member_form.php?w=u&amp;mb_id=<?=$mb_id?>">바로가기</a>]</td>
</tr>
</table>
</td>

View File

@ -1,10 +1,10 @@
<?
// E-mail 수정시 인증 메일 (회원님께 발송)
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title>인증 메일</title>
</head>
@ -29,7 +29,7 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<tr>
<td width="100%" height="25" bgcolor=#F7F1D8>인증 메일입니다.</td>
</tr>
</table>
@ -52,8 +52,8 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">로그인 후 모든 정보를 이용하실 수 있습니다.[<a href="<?=$g4[url]?>/<?=$g4[bbs]?>/login.php">바로가기</a>]</td>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">로그인 후 모든 정보를 이용하실 수 있습니다.[<a href="<?=$g4['url']?>/<?=$g4['bbs']?>/login.php">바로가기</a>]</td>
</tr>
</table>
</td>

View File

@ -1,10 +1,10 @@
<?
// 게시물 입력시 게시자, 관리자에게 드리는 메일을 수정하고 싶으시다면 이 파일을 수정하십시오.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4[charset]?>">
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title><?=$wr_subject?> 메일</title>
</head>
@ -29,14 +29,14 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td>
<table width="500" border="0" cellspacing="0" cellpadding="4">
<tr>
<tr>
<td width="10%" height="25" bgcolor=#F7F1D8>제목</td>
<td width="90%" bgcolor=#FBF7E7><?=$wr_subject?></td>
</tr>
<tr bgcolor="#FFFFFF">
<tr bgcolor="#FFFFFF">
<td height="2" colspan="2"></td>
</tr>
<tr>
<tr>
<td height="25" bgcolor=#F7F1D8>게시자</td>
<td bgcolor=#FBF7E7><?=$wr_name?></td>
</tr>
@ -52,7 +52,7 @@ body, th, td, form, input, select, text, textarea, caption { font-size: 12px; fo
<tr>
<td height="2" bgcolor="#E0E0E0" align="center"></td>
</tr>
<tr>
<tr>
<td height="25" bgcolor="#EDEDED" align="center">홈페이지에서도 게시물을 확인하실 수 있습니다.[<a href='<?=$link_url?>'>바로가기</a>]</td>
</tr>
</table>

View File

@ -28,6 +28,7 @@ $g4['bbs_path'] = $g4['path'].'/'.$g4['bbs'];
$g4['admin'] = 'adm';
$g4['admin_path'] = $g4['path'].'/'.$g4['admin'];
$g4['skin_dir'] = 'skin';
$g4['mobile_dir'] = 'mobile';
// 자주 사용하는 값

View File

@ -1651,8 +1651,7 @@ function get_selected($field, $value, $first=false)
function skin_path()
{
global $g4;
$skin_dir = 'skin';
$skin_path = $g4['path'].'/'.$skin_dir;
$skin_path = $g4['path'].'/'.$g4['skin_dir'];
if (G4_IS_MOBILE) $skin_path = $g4['mobile_path'].'/'.$skin_dir;
return $skin_path;
}

View File

@ -1,17 +1,17 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div id="formmail" class="new_win">
<h1><?=$name?>님께 메일보내기</h1>
<form name="fformmail" method="post" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<form name="fformmail" method="post" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
<? if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?=$member[mb_nick]?>">
<input type="hidden" name="fmail" value="<?=$member[mb_email]?>">
<input type="hidden" name="fnick" value="<?=$member['mb_nick']?>">
<input type="hidden" name="fmail" value="<?=$member['mb_email']?>">
<? } ?>
<table class="frm_tbl">
<caption>메일쓰기</caption>
@ -77,9 +77,7 @@ with (document.fformmail) {
function fformmail_submit(f)
{
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<? echo chk_captcha_js(); ?>
if (f.file1.value || f.file2.value) {
// 4.00.11
@ -89,7 +87,6 @@ function fformmail_submit(f)
document.getElementById('btn_submit').disabled = true;
f.action = "./formmail_send.php";
return true;
}
</script>

View File

@ -36,14 +36,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
</div>
<script>
$(function() {
$("#memo_list").append("<div class=\"btn_win\"><a>창닫기</a></div>");
$(".btn_win a").click(function() {
window.close();
});
});
</script>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>

View File

@ -37,19 +37,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<div class="btn_win">
<input type="submit" id="btn_submit" class="btn_submit" value="보내기">
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</form>
</div>
<script>
$(function() {
$(".btn_win").append("<a>창닫기</a>");
$(".btn_win a").click(function() {
window.close();
});
});
function fmemoform_submit(f)
{
<? if ($is_guest) { echo chk_captcha_js(); } ?>

View File

@ -33,15 +33,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
<? if ($kind == 'recv') { ?><a href="./memo_form.php?me_recv_mb_id=<?=$mb['mb_id']?>&amp;me_id=<?=$memo['me_id']?>" class="btn01">답장</a><? } ?>
<a href="./memo.php?kind=<?=$kind?>">목록보기</a>
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</div>
<script>
$(function() {
$(".btn_win").append("<a id=\"win_close\">창닫기</a>");
$("#win_close").click(function() {
window.close();
});
});
</script>
</div>

View File

@ -1,5 +1,5 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<div id="profile" class="new_win">
@ -9,11 +9,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<tbody>
<tr>
<th scope="row">회원권한</th>
<td><?=$mb[mb_level]?></td>
<td><?=$mb['mb_level']?></td>
</tr>
<tr>
<th scope="row">포인트</th>
<td><?=number_format($mb[mb_point])?></td>
<td><?=number_format($mb['mb_point'])?></td>
</tr>
<? if ($mb_homepage) { ?>
<tr>
@ -23,11 +23,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
<tr>
<th scope="row">회원가입일</th>
<td><?=($member[mb_level] >= $mb[mb_level]) ? substr($mb[mb_datetime],0,10) ." (".$mb_reg_after." 일)" : "알 수 없음"; ?></td>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음"; ?></td>
</tr>
<tr>
<th scope="row">최종접속일</th>
<td><?=($member[mb_level] >= $mb[mb_level]) ? $mb[mb_today_login] : "알 수 없음";?></td>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음";?></td>
</tr>
</tbody>
</table>

View File

@ -34,14 +34,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<div class="pg">
<?=get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page=");?>
</div>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>
<script>
$(function() {
$("div#scrap").append("<div class=\"btn_win\"><a>창닫기</a></div>");
$("div.btn_win a").click(function() {
window.close();
});
});
</script>

View File

@ -49,7 +49,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
<? if ($member['mb_level'] >= $po['po_level']) { ?>
<form name="fpollresult" method="post" action="./poll_etc_update.php" autocomplete="off">
<form name="fpollresult" method="post" action="./poll_etc_update.php" onsubmit="return fpollresult_submit(this);" autocomplete="off">
<input type=hidden name="po_id" value="<?=$po_id?>">
<input type=hidden name="w" value="">
<input type=hidden name="skin_dir" value="<?=$skin_dir?>">
@ -66,6 +66,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
<input type="text" id="pc_idea" name="pc_idea" class="fieldset_input required" size="<?=$comment_size?>" required maxlength="100" title="의견">
<input type="submit" class="fieldset_submit" value="의견남기기">
<? if ($is_guest) { echo captcha_html(); } ?>
</fieldset>
</form>
<? } ?>
@ -81,14 +82,15 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<? } ?>
</ul>
</section>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>
<script>
$(function() {
$("#poll_result").append("<div class=\"btn_win\"><a class=\"btn_cancel\">창닫기</a></div>");
function fpollresult_submit(f)
{
<? if ($is_guest) { echo chk_captcha_js(); } ?>
$(".btn_win a").click(function() {
window.close();
});
});
return true;
}
</script>