diff --git a/bbs/register.php b/bbs/register.php index 9781bcfcf..2a0ac36c8 100644 --- a/bbs/register.php +++ b/bbs/register.php @@ -3,7 +3,7 @@ include_once('./_common.php'); // 로그인중인 경우 회원가입 할 수 없습니다. if ($is_member) { - goto_url(G4_PATH); + goto_url(G4_URL); } // 세션을 지웁니다. diff --git a/bbs/register_result.php b/bbs/register_result.php index cad5a4adc..2d7b7b580 100644 --- a/bbs/register_result.php +++ b/bbs/register_result.php @@ -1,12 +1,12 @@ include_once('./_common.php'); -if (isset($_SESSION['ss_mb_reg'])) +if (isset($_SESSION['ss_mb_reg'])) $mb = get_member($_SESSION['ss_mb_reg']); // 회원정보가 없다면 초기 페이지로 이동 -if (!$mb['mb_id']) - goto_url(G4_PATH); +if (!$mb['mb_id']) + goto_url(G4_URL); $g4['title'] = '회원가입이 완료되었습니다.'; include_once('./_head.php'); diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index baf036d69..d56497c6d 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -42,6 +42,9 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_ $filename = basename($srcfile); $filepath = dirname($srcfile); + preg_match("/alt=[\'\"]{1}(.*)[\'\"]{1}/", $matchs[0][$i], $malt); + $alt = get_text($malt[1]); + break; } } diff --git a/mobile/skin/poll/basic/poll.skin.php b/mobile/skin/poll/basic/poll.skin.php index f3f017c0d..b1da218a4 100644 --- a/mobile/skin/poll/basic/poll.skin.php +++ b/mobile/skin/poll/basic/poll.skin.php @@ -1,19 +1,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 - -global $is_admin; - -// 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다 -if (!$po_id) { - $po_id = $config['cf_max_po_id']; - - if (!$po_id) return; -} - -$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' "); ?> -