Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
@ -960,7 +960,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
|
||||
$tmp_name = "";
|
||||
if ($mb_id) {
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"win_profile(this.href); return false;\">$name</a>";
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>";
|
||||
|
||||
if ($config['cf_use_member_icon']) {
|
||||
$mb_dir = substr($mb_id,0,2);
|
||||
@ -973,13 +973,13 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
||||
$tmp_name = '<img src="'.$icon_file_url.'" width="'.$width.'" height="'.$height.'" border="0" alt="">';
|
||||
|
||||
if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름
|
||||
$tmp_name = $tmp_name . " <a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"win_profile(this.href); return false;\">$name</a>";
|
||||
$tmp_name = $tmp_name . " <a href=\"".G4_BBS_URL."/profile.php?mb_id=".$mb_id."\" class=\"sv_member\" title=\"$name 자기소개\" target=\"_blank\" onclick=\"return false;\">$name</a>";
|
||||
}
|
||||
}
|
||||
|
||||
$title_mb_id = '['.$mb_id.']';
|
||||
} else {
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\" title=\"$name 이름으로 검색\"class=\"sv_guest\">$name</a>";
|
||||
$tmp_name = "<a href=\"".G4_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\" title=\"$name 이름으로 검색\"class=\"sv_guest\" onclick=\"return false;\">$name</a>";
|
||||
$title_mb_id = '[비회원]';
|
||||
}
|
||||
|
||||
|
||||
@ -4,8 +4,8 @@ if (!defined('_GNUBOARD_')) exit;
|
||||
/*******************************************************************************
|
||||
썸네일 Class
|
||||
|
||||
사용법 :
|
||||
|
||||
사용법 :
|
||||
|
||||
$thumb = new g4_thumbnail(경로, 썸네일이미지폭);
|
||||
$thumb->run(이미지 경로가 포함된 컨텐츠);
|
||||
|
||||
@ -57,11 +57,11 @@ class g4_thumb {
|
||||
$width = $this->get_width();
|
||||
$source = null;
|
||||
$size = @getimagesize($srcimg);
|
||||
if ($size[2] == 1)
|
||||
if ($size[2] == 1)
|
||||
$source = @imagecreatefromgif($srcimg);
|
||||
else if ($size[2] == 2)
|
||||
$source = @imagecreatefromjpeg($srcimg);
|
||||
else if ($size[2] == 3)
|
||||
else if ($size[2] == 3)
|
||||
$source = @imagecreatefrompng($srcimg);
|
||||
|
||||
if ($source == null)
|
||||
@ -111,7 +111,7 @@ class g4_thumb {
|
||||
if ($size[0] < $this->width) {
|
||||
return "<img src='$thumb' width='$size[0]' />";
|
||||
} else {
|
||||
return "<a href='$src' target='_blank' title='클릭하시면 이미지가 크게 보입니다.'><img src='$thumb' width='{$this->width}' border='0' /></a>";
|
||||
return "<a href='$src' target='_blank' title='새창으로 크게 보기'><img src='$thumb' width='{$this->width}' border='0' /></a>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user