Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
@ -14,7 +14,7 @@ if (!defined('_GNUBOARD_')) exit;
|
||||
|
||||
<footer id="ft">
|
||||
<p>
|
||||
Copyright © 소유하신 도메인. All rights reserved.<br>
|
||||
Copyright © <?php echo $_SERVER['HTTP_HOST']; ?>. All rights reserved.<br>
|
||||
<a href="#">상단으로</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
@ -14,6 +14,15 @@ else
|
||||
$g5['title'] = '회원 비밀번호 확인';
|
||||
include_once('./_head.sub.php');
|
||||
|
||||
$url = $_GET['url'];
|
||||
|
||||
$p = parse_url($url);
|
||||
if ((isset($p['scheme']) && $p['scheme']) || (isset($p['host']) && $p['host'])) {
|
||||
//print_r2($p);
|
||||
if ($p['host'].(isset($p['port']) ? ':'.$p['port'] : '') != $_SERVER['HTTP_HOST'])
|
||||
alert('url에 타 도메인을 지정할 수 없습니다.');
|
||||
}
|
||||
|
||||
include_once($member_skin_path.'/member_confirm.skin.php');
|
||||
|
||||
include_once('./_tail.sub.php');
|
||||
|
||||
@ -218,20 +218,17 @@ if ($w == 'c') // 댓글 입력
|
||||
// 최고관리자에게 보내는 메일
|
||||
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
|
||||
|
||||
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
|
||||
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
|
||||
// 원글 메일발송에 체크가 되어 있다면
|
||||
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
|
||||
// 원글게시자에게 보내는 메일
|
||||
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
|
||||
|
||||
// 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
|
||||
if ($config['cf_email_wr_comment_all']) {
|
||||
$sql = " select distinct wr_email from {$write_table}
|
||||
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
|
||||
and wr_parent = '$wr_id' ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result))
|
||||
$array_email[] = $row['wr_email'];
|
||||
}
|
||||
// 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
|
||||
if ($config['cf_email_wr_comment_all']) {
|
||||
$sql = " select distinct wr_email from {$write_table}
|
||||
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
|
||||
and wr_parent = '$wr_id' ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result))
|
||||
$array_email[] = $row['wr_email'];
|
||||
}
|
||||
|
||||
// 중복된 메일 주소는 제거
|
||||
|
||||
@ -604,22 +604,18 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
|
||||
// 최고관리자에게 보내는 메일
|
||||
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
|
||||
|
||||
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
|
||||
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
|
||||
// 원글 메일발송에 체크가 되어 있다면
|
||||
if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
|
||||
// 원글게시자에게 보내는 메일
|
||||
if ($config['cf_email_wr_write']) {
|
||||
if($w == '')
|
||||
$wr['wr_email'] = $wr_email;
|
||||
|
||||
// 코멘트 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
|
||||
if ($config['cf_email_wr_comment_all']) {
|
||||
$sql = " select distinct wr_email from {$write_table}
|
||||
where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
|
||||
and wr_parent = '{$wr_id}' ";
|
||||
$result = sql_query($sql);
|
||||
while ($row=sql_fetch_array($result))
|
||||
$array_email[] = $row['wr_email'];
|
||||
}
|
||||
$array_email[] = $wr['wr_email'];
|
||||
}
|
||||
|
||||
// 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
|
||||
if (strstr($wr['wr_option'], 'mail') && $wr['wr_email'])
|
||||
$array_email[] = $wr['wr_email'];
|
||||
|
||||
// 중복된 메일 주소는 제거
|
||||
$unique_email = array_unique($array_email);
|
||||
$unique_email = array_values($unique_email);
|
||||
|
||||
@ -100,6 +100,8 @@ function get_view_thumbnail($contents, $thumb_width=0)
|
||||
$width = $m[1];
|
||||
preg_match("/height:\s*(\d+)px/", $style, $m);
|
||||
$height = $m[1];
|
||||
preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img, $m);
|
||||
$alt = get_text($m[1]);
|
||||
|
||||
// 이미지 path 구함
|
||||
$p = parse_url($src);
|
||||
@ -165,8 +167,6 @@ function get_view_thumbnail($contents, $thumb_width=0)
|
||||
else
|
||||
$thumb_file = $filename;
|
||||
|
||||
preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img_tag, $malt);
|
||||
$alt = get_text($malt[1]);
|
||||
if ($width) {
|
||||
$thumb_tag = '<img src="'.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'" width="'.$width.'" height="'.$height.'"/>';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user