##-------------------------------------------------------------------## ## ÇÁ·Î±×·¥¸í : gmBoard 06 ##-------------------------------------------------------------------## ## ÃÖÃÊ °³¹ß ¿Ï·áÀÏ : 2005-12-25 ## °³¹ß»ç ¹× ÀúÀÛ±ÇÀÚ : PHP¸ó½ºÅÍ ## À¥»çÀÌÆ® : http://www.phpmonster.co.kr ## °³ ¹ß ÀÚ : ¹Ú¿äÇÑ (misnam@gmail.com) ##-------------------------------------------------------------------## ## Ä«ÇǶóÀÌÆ® ##-------------------------------------------------------------------## ## º» ÇÁ·Î±×·¥Àº ¹«·á ÇÁ·Î±×·¥À¸·Î ¹èÆ÷µË´Ï´Ù. ## gmBoard´Â GNU General Public License(GPL) ¸¦ µû¸¨´Ï´Ù. ## º¸´Ù ÀÚ¼¼ÇÑ ³»¿ëÀº LICENSE¸¦ ÂüÁ¶ÇϽʽÿä. ## Âü°í: http://korea.gnu.org/people/chsong/copyleft/gpl.ko.html ##-------------------------------------------------------------------## ## °³¹ßȯ°æ ##-------------------------------------------------------------------## ## Áö¿ø OS : ¸®´ª½º, À©µµ¿ì ## °³¹ßȯ°æ : PHP 4.3, MYSQL 4.0 ##-------------------------------------------------------------------## require_once ("../lib/config.inc.php"); require_once ("../lib/function.inc.php"); adds_mpost($_POST); $admin = sql_array(query('select * from '.$tb['board_info']." where boardname='".$_GET['db']."'")); if(empty($_GET['db'])) exit; if(!$admin) exit; // ¾ð¾î include_once ('../languages/'.$admin[languages].'/user.lang.php'); header("Content-Type: text/html; charset=$admin[languages]"); //-------------------------------------------------------- $level_arr = explode(':',$admin[level]); $file_size_arr = @explode(':',$admin[file_size]); $b_taile_tmp = explode('|:|',strip_trim($admin[b_taile])); $b_taile = explode(':',$b_taile_tmp[0]); $b_fild_setup = explode(':',$b_taile_tmp[1]); $u_tail_tmp = explode(':',$b_taile_tmp[2]); $sh_title_tmp = explode(':',$b_taile_tmp[4]); //--------------------------------------------------------- // ±ÛÀбⰡ ȸ¿ø±ÇÇÑÀ̸é Â÷´Ü if($level_arr[1] > 0) die('It does not support in the general member'); // 1:1°Ô½ÃÆÇÀ̰ųª ¼³¹®ÅõÇ¥¶ó¸é Â÷´Ü if($b_taile[21] > 0) die('It does not support in the general member'); // ¼ºÀÎÁ¢±Ù±ÇÇÑ ¼³Á¤ if(($level_arr[11] == 1) || ($level_arr[11] == 2)) die('It does not support in the general member'); // ³²³àÁ¢±Ù±ÇÇÑ ¼³Á¤ if(($level_arr[12] == 1) || ($level_arr[12] == 2)) die('It does not support in the general member'); $lines = $b_taile[8] ? $b_taile[8] : 10; // Ãâó ±¸Çϱâ $root_name = path($_GET['db']); // °Ô½ÃÆÇ À̸§ $boardtitle = str_replace('&','&',str_tags($admin[boardtitle])); $boardname = str_replace('&','&',str_tags($admin[boardname])); // Áö¿¥º¸µå°¡ ¼³Ä¡µÈ °æ·Î $goUrl = path('','',1); function meta_replace($item){ global $goUrl; $cmt = preg_replace("/\r\n"; echo "\r\n"; echo "\r\n"; echo "".$boardtitle."\r\n"; echo "".str_replace('&','&',str_tags($root_name))."list\r\n"; echo "".$boardtitle."[".$boardname."]\r\n"; echo "ko\r\n"; echo "".date("r", mktime())."\r\n"; $sql = query('select * from '.bbs_table($admin[idx])." where idx > '0' order by sortno limit 0,".$lines); $total = sql_affected(); for($i=0; $i<$total; $i++){ $row = sql_array($sql); // ºñ¹Ð±ÛÀº Á¦¿Ü½ÃÅ´ if($row[pass_chk] < 1){ if($b_taile[30]==1){ $cmt = js_tags($row[content]); } else{ $cmt = auto_link(content_nl2br(str_tags($row[content]))); } // À̹ÌÁö ÆÄÀÏ Ãâ·Â ¼³Á¤ $imgfile = ($row[imgfile] && ($file_size_arr[2]==1)) ? img_size($file_size_arr[4],'',$data['imguploaded'].'/'.$admin[idx].'/'.$row[mdate].'.'.substr($row[imgfile],strrpos(stripslashes($row[imgfile]),'.')+1)) : ''; // ´ÙÁ߯ÄÀÏ Ãâ·Â ¼³Á¤ if($file_size_arr[12]==1){ // ´ÙÁ߯ÄÀÏ $upfile_arr = explode('|:|',$row[upfile]); for($j=0; $j"; // À̹ÌÁö °æ·Î°¡ ¿ÀÇÂÀ϶§ if($img_path_auth==1){ $content .= " "; $content .= " "; $content .= meta_replace($imgfile); $content .= meta_replace($u_file); $content .= " "; $content .= " "; } // end // °Ë»ö Çʵå if($b_fild_setup[1]==1){for($j=0;$j<5;$j++){$sh_title=explode('`',$sh_title_tmp[$j]); if($sh_title[0]){ $k=$j+1; $content .= " "; $content .= " "; $content .= " ".$sh_title[0]." : "; $content .= " ".strip_trim($row["sh_".$k]); $content .= " "; $content .= " "; $content .= " "; $content .= " "; $content .= " "; }}} // end // ´ÙÁßÇʵå Ãâ·Â if($b_fild_setup[0]==1){for($j=0;$j ".$u_title[$j][1]." : "; $content .= " ".preg_replace("/"; $content .= " "; }}} // end $content .= " "; $content .= " "; $content .= " ".$cmt; $content .= " "; $content .= " "; $content .= ""; echo "\r\n"; echo "".str_replace('&','&',$row[title])."\r\n"; echo "".str_replace('&','&',str_tags($root_name.'view&id='.$row[id]))."\r\n"; echo "\r\n"; echo "".str_tags($row[name])."\r\n"; echo "".date("Y-m-d H:i:s",$row[mdate])."\r\n"; echo "\r\n"; } } echo "\r\n"; echo ""; ?>