1) { if ($member[mb_point] + $board[bo_read_point] < 0) alert("º¸À¯ÇϽŠÆ÷ÀÎÆ®(".number_format($member[mb_point]).")°¡ ¾ø°Å³ª ¸ðÀÚ¶ó¼­ ±ÛÀбâ(".number_format($board[bo_read_point]).")°¡ ºÒ°¡ÇÕ´Ï´Ù.\\n\\nÆ÷ÀÎÆ®¸¦ ¸ðÀ¸½Å ÈÄ ´Ù½Ã ±ÛÀбâ ÇØ ÁֽʽÿÀ."); insert_point($member[mb_id], $board[bo_read_point], "$board[bo_subject] $wr_id ±ÛÀбâ", $bo_table, $wr_id, 'Àбâ'); } */ // ±ÛÀбâ Æ÷ÀÎÆ®°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é if ($board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0) alert("º¸À¯ÇϽŠÆ÷ÀÎÆ®(" . number_format($member['mb_point']) . ")°¡ ¾ø°Å³ª ¸ðÀÚ¶ó¼­ ±ÛÀбâ(" . number_format($board['bo_read_point']) . ")°¡ ºÒ°¡ÇÕ´Ï´Ù.\\n\\nÆ÷ÀÎÆ®¸¦ ¸ðÀ¸½Å ÈÄ ´Ù½Ã ±ÛÀбâ ÇØ ÁֽʽÿÀ."); insert_point($member['mb_id'], $board['bo_read_point'], "{$board['bo_subject']} $wr_id ±ÛÀбâ", $bo_table, $wr_id, 'Àбâ'); } set_session($ss_name, TRUE); } $g4[title] = "{$group['gr_subject']} > {$board['bo_subject']} > " . strip_tags(conv_subject($write['wr_subject'], 255)); $sns_title = strip_tags(conv_subject($write['wr_subject'], 255)); $g4[content] = strip_tags($write[wr_content]); preg_match_all('!]*)src=([^\>]*?)\>!is', $write[wr_content], $matches); foreach($matches[0] as $key => $val) { //$write[wr_content] = str_replace($val,"",$write[wr_content]); preg_match_all('/([^=^"^ ]*)src=([^ ^>]*)/i', $val, $src_match); $src[] = str_replace("\"","",$src_match[2][0]); } //var_dump($src); //echo $src[0]; //array(2) { [0]=> string(82) "http://file.flash24.dreamx.com/g4/data/mw.cheditor/1803/e2XBb3xHKSdQxk4UnF5fAc.jpg" [1]=> string(90) "http://file.flash24.dreamx.com/g4/data/mw.cheditor/1803/LMxG9peKOpFGG7Hn4y4gvrPNVXGYfg.jpg" } } else { if ($member['mb_level'] < $board['bo_list_level']) { if ($member['mb_id']) alert("¸ñ·ÏÀ» º¼ ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.", $g4['g4m_path']); else alert("¸ñ·ÏÀ» º¼ ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.\\n\\nȸ¿øÀ̽öó¸é ·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ º¸½Ê½Ã¿À.", "../login.php?wr_id=$wr_id{$qstr}&url=" . urlencode("{$g4['g4m_bbs_path']}/board.php?bo_table=$bo_table&wr_id=$wr_id")); } if (!$page) $page = 1; $g4[title] = "{$group['gr_subject']} > {$board['bo_subject']} $page ÆäÀÌÁö"; $sns_title = ""; } include_once "{$g4['g4m_path']}/head.sub.php"; // ¿©¸®·Î À̵¿ $width = $board['bo_table_width']; if ($width <= 100) $width .= '%'; // IPº¸À̱⠻ç¿ë ¿©ºÎ $ip = ""; $is_ip_view = $board['bo_use_ip_view']; if ($is_admin) { $is_ip_view = true; $ip = $write['wr_ip']; } else // °ü¸®ÀÚ°¡ ¾Æ´Ï¶ó¸é IP ÁÖ¼Ò¸¦ °¨ÃáÈÄ º¸¿©ÁÝ´Ï´Ù. $ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.¢½.\\3.\\4", $write['wr_ip']); // ºÐ·ù »ç¿ë $is_category = false; $category_name = ""; if ($board['bo_use_category']) { $is_category = true; $category_name = $write['ca_name']; // ºÐ·ù¸í } // Ãßõ »ç¿ë $is_good = false; if ($board['bo_use_good']) $is_good = true; // ºñÃßõ »ç¿ë $is_nogood = false; if ($board['bo_use_nogood']) $is_nogood = true; $admin_href = ""; $g4m_admin_href = ""; // ÃÖ°í°ü¸®ÀÚ ¶Ç´Â ±×·ì°ü¸®ÀÚ¶ó¸é if ($member['mb_id'] && ($is_admin == 'super' || $group[gr_admin] == $member['mb_id'])) { $admin_href = "{$g4['admin_path']}/board_form.php?w=u&bo_table=$bo_table"; $g4m_admin_href = "{$g4['g4m_admin_path']}/board_form.php?w=u&bo_table=$bo_table"; } if (!($board['bo_use_comment'] && $cwin)) include_once "./board_head.php"; echo "\n"; if (!($board['bo_use_comment'] && $cwin)) { // °Ô½Ã¹° ¾ÆÀ̵𰡠ÀÖ´Ù¸é °Ô½Ã¹° º¸±â¸¦ INCLUDE if ($wr_id) include_once "./view.php"; // Àüü¸ñ·Ïº¸À̱⠻ç¿ëÀÌ "¿¹" ¶Ç´Â wr_id °ªÀÌ ¾ø´Ù¸é ¸ñ·ÏÀ» º¸ÀÓ //if ($board[bo_use_list_view] || empty($wr_id)) if ($member['mb_level'] >= $board['bo_list_level'] && $board['bo_use_list_view'] || empty($wr_id)) // ¸ð¹ÙÀÏÃÖ±ÙÀαâ±Û latest_popular("m3popular", "3", "$gr_id", "$bo_table", "", "10", "80", "Mobile"); include_once "./list.php"; include_once "./board_tail.php"; } else include_once "./view_comment.php"; echo "\n\n"; include_once "{$g4['g4m_path']}/tail.sub.php"; ?>