fine9.php소스 내용입니다.

2003.03.13
http://comhard.isp.st/fine9.php정말 넘 감사해요.
좋은 분을 만나 넘 기뻐여..^^

<?
// 자신의 계정에 맞게 설정해 주세요.

        $디비호스트 = "localhost";                    //디비 호스트를 적습니다.
        $디비아이디 = "comhard";                       // 디비아이디를 적습니다.
        $디비비밀번호 = "7412";                 // 디비비밀번호를 적습니다.
        $디비네임 = "comhard";                         // 디비네임을 적습니다.
        $제로보드경로 = "http://comhard.isp.st/zboard";      // 제로보드가 설치되어 있는 상대경로를 적습니다. 끝에 /는 넣지 마세요.
        $제목길이 = "60";                             // 최대 제목 글자수를 적습니다.
        
        // 다시한번 위 설정이 맞는지 확인하세요.

/*
function cut_str($msg,$cut_size)
{
if($cut_size<=0) return $msg;
if(ereg("[re]",$msg)) $cut_size=$cut_size+4;
for($i=0;$i<$cut_size;$i++) if(ord($msg[$i])>127) $han++; else $eng++;
$cut_size=$cut_size+(int)$han*0.6;
$point=1;
for ($i=0;$i<strlen($msg);$i++)
{
if ($point>$cut_size) {return $pointtmp."..."};
if (ord($msg[$i])<=127)
{
$pointtmp.= $msg[$i];
if ($point%$cut_size==0) {return $pointtmp."..."};
}
else
{
if ($point%$cut_size==0) {return $pointtmp."..."};
$pointtmp.=$msg[$i].$msg[++$i];
$point++;
}
$point++;
}
return $pointtmp;
}
*/

function fine9($id, $number)

{

global $디비호스트,$디비아이디,$디비비밀번호,$디비네임,$제로보드경로,$제목길이,$올드아이콘,$뉴아이콘;
$디비접속=mysql_connect($디비호스트,$디비아이디,$디비비밀번호);
mysql_select_db($디비네임,$디비접속);
$result=mysql_query("select * from zetyx_board_$id order by no desc limit $number",$디비접속) or die(mysql_error());


while($data=mysql_fetch_array($result))

{
$name = stripslashes($data[name]);  
$data[memo] = stripslashes($data[memo]);
$data[memo]=cut_str($data[memo],150); // 최대 본문 글자수입니다. 150을 자신에 맞게 수정하세요.
$data[subject] = stripslashes($data[subject]);
$data[subject]=cut_str($data[subject],60); // 최대 제목 글자수입니다. 60을 자신에 맞게 수정하세요.
$passtime = (mktime()-$data[reg_date])/3600;
if($passtime <48) {
$data[subject] = $data[subject]."<img src=./images/new.gif border=0 align=absmiddle>"; //new 아이콘 경로를 자신에 맞게 수정하세요.
}else{
$data[subject] = $data[subject];
}

if (!stripslashes($data[file_name1]))

{

echo " <style>
.memo {font-family:굴림;font-size:9pt;color:black;}
.title {font_family:굴림;font-size:9pt;color:blue;}
</style>";        
echo("<table border='0' cellpadding='0' cellspacing='0'  width='100%'>");
echo("<tr>");
echo("<td width='100%' class=title><font color=gray>[".date("Y.m.d",$data[reg_date])." $name]</font> <a href='$제로보드경로/view.php?id=$id&no=$data[no]') target='_self'>".stripslashes($data[subject])."</a></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' valign=top class=memo style=text-align:justify;>".stripslashes($data[memo])."</td>");
echo("</tr>");
echo("<tr>");
echo("<td width='100%' background='http://finesite.net/images/bar_dot.gif'>");//점선이미지가 있는 경로를 자신에 맞게 수정하세요.
echo("<p> </p>");
echo("</td>");
echo("</tr>");
echo("</table>");


}else{

echo "<style>
.memo {font-family:굴림;font-size:9pt;color:black;}
.title {font_family:굴림;font-size:9pt;color:blue;}
</style>";  
echo("<table border='0' cellpadding='0' cellspacing='0'  width='100%'>");
echo("<tr>");
echo("<td align=right rowspan=2><a href=$제로보드경로/view.php?id=$id&no=$data[no]><img src=$제로보드경로/".stripslashes($data[file_name1])." border=1 hspace=0 width=100 height=100 style='border-color:#6e6e6e'></a></td>");
echo("<td width='90%' colspan=2 class=title style=padding-left:15px;><font color=gray>[".date("Y.m.d",$data[reg_date])." $name]</font> <a href='$제로보드경로/view.php?id=$id&no=$data[no]') target='_self'>".stripslashes($data[subject])."</a></td>");
echo("</tr>");
echo("<tr>");
echo("<td width='90%' valign=top class=memo style=padding-left:15px; style=text-align:justify;>".stripslashes($data[memo])."</td>");
echo("</tr>");
echo("<tr>");
echo("<td width='90%' colspan=2 background='http://finesite.net/images/bar_dot.gif'>");//점선이미지가 있는 경로를 자신에 맞게 수정하세요.
echo("<p> </p>");
echo("</td>");
echo("</tr>");
echo("</table>");

}
//윗 부분에 %는 자신에게 맞게 수정해서 사용하셔면 더욱 깔끔합니다.
}

}

  • 김미경 2003.03.13 23:37
    보여질 fine.html 페이지 입니다.
    ------------------------------

    <? include "fine9.php"; ?>
    <html>

    <head>
    <meta http-equiv="content-type" content="text/html; charset=euc-kr">
    <title>제목 없음</title>
    <meta name="generator" content="Namo WebEditor v5.0">
    </head>

    <body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
    <p> </p>
    <table border="1" width="417">
    <tr>
    <td width="407" height="130">
    <p><? fine9(happy,5);?> </p>
    </td>
    </tr>
    </table>
    <p> </p>
    </body>

    </html>
  • 대류 2003.03.15 02:34
    음... 소스를 보면 별 문제가 없는 것 같은데요... 저도 초보라서 이런 문제들을 만나면 해결하기가 힘드네요...
    일단, 인덱스 파일을 index.php 로 바꿔서 해보시는 것도 좋을 것 같네요..
    htm 으로 안되는 것도 있거든요..

List of Articles
번호 제목 글쓴이 날짜 조회 수
1292 음악스킨을 잘 사용하고 있습니다.그런데... 1 유문식 2005.03.04 3433
1291 "멀티갤러리 통합추출 팁" 에 대한 질문 1 강신용 2004.09.15 845
1290 [질문] 대류공간에 있는 달력에 대해서요.. 1 지기 2004.03.04 1024
1289 vol.32 기본갤러리 질문이요.. ^^ 1 김태희 2005.02.02 1658
1288 가계부 스킨... 1 처음방문이 2004.06.25 889
1287 갤러리 관련 질문입니다. 2 김대희 2004.02.21 1042
1286 글자 제한... 1 dbZin 2005.07.06 1953
1285 님아 도와줘여... 3 file 쫌봐주세효 2004.03.07 1004
1284 대류님께서 갈켜주신부분은.. 2xgallery_daerew_file10 스킨에 그냥 적용돼 있습니다.. 1 조민성 2005.09.05 5064
1283 대류님께서 수정배포하신 음악감상기능 확장판에서 다운로드가 않됩니다. 1 유문식 2005.03.02 1723
1282 대류님의 음악감상 스킨에 대하여....(다시 허접질문 드립니다.) 3 스카이 2004.12.24 1001
1281 대류커뮤니티 2.5 레이아웃... 3 photojang 2005.07.11 3084
1280 도메인에 대해서 질문올립니다...^^ 1 박선규 2006.03.24 2932
1279 스킨 중에서 [단순한 배너링크 - 글쓰기 관리자 전용] 을 사용하려고 하는데요.. 1 jini 2005.06.22 2837
1278 안녕하세요. 게시판 문의...! 1 강신용 2005.03.31 1307
1277 안녕하세혀? ^0^;; 음악태그에 관해서..(인사차질문 ^^) 2 rulrulara 2003.01.24 6603
1276 웹진형최근게시물 다시 질문드립니다. 1 김태옥 2004.12.18 886
1275 음악스킨을 잘 사용하고 있습니다.그런데... 1 유문식 2005.03.04 1057
1274 이미지에 책갈피 링크를 걸었더니... 정원기 2004.08.22 837
1273 제홈에 검색엔진(다음,야후,네이버 등)을 넣을려구 하는데요... 2 다크 2004.11.30 1081
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 65 Next
/ 65