"; }else{ if(!$number){ $result=mysql_query("select * from $table_name order by number ASC limit $u,1",$dbcon); }else{ $result=mysql_query("select * from $table_name where number=$number ",$dbcon); } $total=mysql_num_rows($result); if($total=='0'){ $u=$u-1; $result=mysql_query("select * from $table_name order by number desc limit $u,7",$dbcon); } $data=mysql_fetch_array($result); if(!$number){ $number=$data[number]; } $hit = $data[hit] + 1; mysql_query("update $table_name set hit=$hit where number=$number",$dbcon); //Á¶È¸¼ö ¿Ã¸®±â $size=getimagesize("./photo/$table_name/photo/$data[filename]"); //ºÒ·¯¿Â À̹ÌÁöÀÇ »çÀÌÁ ¾Ë¾Æ³½´Ù.. size[0] = °¡·Î, size[1] = ¼¼·Î $photo_t_width= 350; //Å×À̺íÀÇ °¡·Î»çÀÌÁî $photo_t_height= 350; //Å×À̺íÀÇ ¼¼·Î»çÀÌÁî if($size[0]>$photo_t_width){ //°¡·Î»çÀÌÁî°¡ Å×ÀÌºí »çÀÌÁ´Ù Å©¸é Å×À̺í»çÀÌÁî·Î °¡·Î»çÀÌÁ ¸ÂÃá´Ù(À̶§, ¼¼·Î»çÀÌÁî´Â ÀÚµ¿À¸·Î ÀâÈû) $width="width="."$photo_t_width"; }elseif($size[1]>$photo_t_height){ //¼¼·Î»çÀÌÁî°¡ Å×ÀÌºí »çÀÌÁ´Ù Å©¸é $height="height="."$photo_t_height"; } $page_result=mysql_query("select count(*) from $table_name",$dbcon); $photo_total=mysql_result($page_result, 0,0); $max_line = $pic_number * $line_number; //ÇöÀç ÆäÀÌÁö $data[name] = stripslashes($data[name]); $data[subject] = stripslashes($data[subject]); $data[content] = stripslashes($data[content]); $data[content] = nl2br($data[content]); if ($Word) { //°Ë»öµÈ ¹®ÀÚ¿­ Ç¥½Ã $data[name]=str_replace("$word","$word",$data[name]); $data[subject]=str_replace("$word","$word",$data[subject]); $data[content]=str_replace("$word","$word",$data[content]); } include "lib.php"; //¹öư¸µÅ© ºÒ·¯¿À±â $fp = fopen("photo/$table_name/top_design.php","r"); //»ó´Ü µðÀÚÀÎ ºÒ·¯¿À±â $top_design = ""; while(!feof($fp)) { $line = fgets($fp,1024); $top_design .=$line; } $top_design = stripslashes($top_design); //¾Ù¹ü »ó´Ü ²Ù¹Ì±â ?>




"; ?>