$_zb_url = "https://www.skkuter.com/bbs/"; $_zb_path = "/home/skku/htdocs/bbs/"; include $_zb_path."outlogin.php"; mysql_query("set names utf8"); //$dept="0142"; function format_date($time){ $t=time()-$time+1; $f=array( '31536000'=>'년 전', '2592000'=>'개월 전', '604800'=>'주 전', '86400'=>'일 전', '3600'=>'시간 전', '60'=>'분 전', '1'=>'초 전' ); foreach ($f as $k=>$v) { if (0 !=$c=floor($t/(int)$k)) { return $c.$v; } } } ?> $page=$_REQUEST[page]; ?> if (!$page) { $page=1; } ?> $howmuch=$page*30-30; ?> $now=time(); $w_today = date("Ymd"); ?> $posi=$_REQUEST[posi]; $posi=urldecode($posi); if (!is_numeric($posi)) { $posi=0; } /* 기본 */ $q="select * from camf_board "; if ($posi>0) { $popo=$posi+20; $q.=" where no <= ".$popo." "; } $q.="order by no desc limit $howmuch,30"; $query=mysql_query($q); ?> include "newsfeed_source_utf.php"; ?> if ($i==0) { ?>