묻고답하기

dchat 라고 아시나요? -_-

2002.07.18 21:45

sisazz

우움..채팅창 인데 말이죱..; 실시간 채팅이요..

http://sisazz.encia.net/dchat/dchat.htm
이걸 보아주세요 >ㅇ<;;


여기서..딴거는 다 상관 없구..
저 이름이랑..오른쪽 부분에 글씨 들 있죠?
저것두 글씨체를 바꾸고 싶은데 못하겠어용 -_ㅠ

오른쪽 들어가는 파일 부분이 php 파일인데

---------------------------------------------------------------------------------------------
<html>



<head>

<title>http://d-3-b.com - Made by Donghanee</title>



<!--

Dchat Ver 2.0

제작자 홈페이지:http://d-3-b.com

제작자 메일:donghanee@hanmail.net

메일로는 질문을 받지 않습니다.

위의 저작권을 삭제하지 않는한에서 수정/배포는 자유입니다.

-->

<style type="text/css">
<!--
@font-face {font-family:웹정;src:url(http://sisazz.encia.net/jung9.mwf);}

-->
</style>

<style type='text/css'>

<!--

A:link {color:black;text-decoration:none;}

A:visited {color:black;text-decoration:none;}

A:active {color:red;text-decoration:underline;}

A:hover {color:blue;text-decoration:underline;}

.ver8 {font-family:Verdana,Arial,웹정;font-size:8pt}

p,br,body,td,select,input,form,textarea,option {font-size:9pt;}

.ad{border:1 solid black}

.cont{line-height:140%}

  .editbox  { border:1 solid black; background-color:white; }

-->

</style>

<style type="text/css">
BODY { background: white url(bg.gif) no-repeat fixed right center}
</style>

<base target="_self"></head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">



<?

$line="::";     //이름과 메세지 사이에 들어갈 문자

$time="10";             //리플레시 타임 10정도가 적당



//-----채팅부분

$nowdate=date("H:i::");

$data=$nowdate.$name.$line.$comment;



$filename=fopen("data/data.txt","r");

$line=fread($filename,10000);

$arr=explode("*^@&#&@^*",$line);

while(list($key,$val) = each($arr)) {

if($key==0) { $word0=$val; }

if($key==1) { $word1=$val; }

if($key==2) { $word2=$val; }

if($key==3) { $word3=$val; }

if($key==4) { $word4=$val; }

}

fclose($filename);



$datasave=$word1."*^@&#&@^*".$word2."*^@&#&@^*".$word3."*^@&#&@^*".$word4."*^@&#&@^*".$data;



if($comment) {

$filename=fopen("data/data.txt","w");

fwrite($filename,$datasave);

fclose($filename);

}



$filename=fopen("data/data.txt","r");

$line=fread($filename,10000);

$arr=explode("*^@&#&@^*",$line);

while(list($key,$val) = each($arr)) {

if($key==0) { $word0=$val; }

if($key==1) { $word1=$val; }

if($key==2) { $word2=$val; }

if($key==3) { $word3=$val; }

if($key==4) { $word4=$val; }

}

fclose($filename);



$word0=htmlspecialchars($word0);

$word1=htmlspecialchars($word1);

$word2=htmlspecialchars($word2);

$word3=htmlspecialchars($word3);

$word4=htmlspecialchars($word4);



//-----채팅부분 끝



//-----현재 접속자 부분

$w_time = $time+5;

$FILE = @fopen("data/$REMOTE_ADDR","w");

$info = time();

@fputs($FILE,$info);

@fclose($FILE);

$user[] = $REMOTE_ADDR;

$USER1 = opendir("data");

while($entry=readdir($USER1)) if($entry!="."&&$entry!=".."&&$entry!="data.txt") {

if ($REMOTE_ADDR != $entry) {

$info = file("data/$entry");

if((time()-$w_time)>chop($info[0])) @unlink("data/$entry");

else   $user[] = $entry;

}

}

$total_user = count($user);

//$ip = implode("n",$user);

// 현재 접속자 부분 끝



//---이름쓰기

if ($name) {

$fp=fopen("cfg/$REMOTE_ADDR","w");

fputs($fp,$name);

fclose($fp);

}

//--이름쓰기끝



if(file_exists("cfg/$REMOTE_ADDR.mes")) {

echo("<script language='Javascript'>");

echo("window.open('send.php?view=$REMOTE_ADDR','','width=500,height=400,resizable=yes,scrollbars=yes,status=1')");

echo("</script>");

}



$nowdate=date("m월d일H시i분");

echo("<table border='0' width='100%'>");

echo("    <tr>");

echo("        <td valign=top>");



function auto_link($text)

{

$ret = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<a href="\1://\2\3" target="_blank">\1://\2\3</a>", $text);

$ret = eregi_replace("(([a-z0-9_]|\-|\.)+@([^[:space:]]*)([[:alnum:]-]))", "<a href="mailto:\1" target="_new">\1</a>", $ret);

return($ret);

}



$word4=auto_link($word4);

echo ("$word4");

$word3=auto_link($word3);

echo ("<br>$word3");

$word2=auto_link($word2);

echo ("<br>$word2");

$word1=auto_link($word1);

echo ("<br>$word1");

$word0=auto_link($word0);

echo ("<br>$word0");



echo("        </td>");

echo("        <td nowrap valign=top>");

echo("            <p align='right'><font size=2>$nowdate 현재접속자수:<b><font color=blue>$total_user

</font></b>명<br>접속IP:$REMOTE_ADDR</font><a href='javascript:location.reload()' title='새로 고칠려면 누르세요...^^'>새로고침</a><a href='chatoff.htm' target='_self' title='채팅창을 끌려면 버튼을 누르세요.'>채팅끄기</a></p>");

echo("        </td>");

echo("    </tr>");

echo("</table>");

echo ("<meta http-equiv='refresh' content='$time; url=$PHP_SELF'>");

?>



</body>



</html>

---------------------------------------------------------------------------------------------

이곳저곳에 끼워넣어보긴 했는데..안되욤 -_ㅠ
도와주세요..T_T
저거 만드신 님 게 메일이 안가요 ;;
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
배상윤 소스 좀봐주세요........[급........함]  
이은경 으.... 팝업창 말인데여~ [2] 2007.08.10
공병호 자바관련 메뉴인데요..... 아무리 해도.... 흑흑.... 제발부탁드립니다. [1] 2007.08.10
김수혜 레이어 사용한 하위메뉴 나타나기....-_-;; [7] 2007.08.10
최원혁 [re] 최근게시물 어떻게 다는건지..  
이호한 [re] 에러페이지를 지정한 페이지로 할 때...  
Eccen [re] 깔끔한 새창띄우기를 하고 싶은데...이상해서요  
sunart 깔끔한 새창띄우기를 하고 싶은데...이상해서요  
Eccen [re] 트래픽이 모에욤??? ■▦▩▥▧▨▤▒™ file  
임현 자바스크립트 잘아시는부운~ 팝업창 땜에..ㅠㅜ [5] 2007.08.10
아시카 한달을 헤메도..... 알려주실분 급구 [5] 2007.08.10
sisazz dchat 라고 아시나요? -_-  
곽상율 도와주세염~  
군인 노프레임.. 알려주세요.. -.- [1] 2007.08.10
LibsNet Jsp 에서 디비에다가 한글 값을 입력하고싶은데.. [2] 2007.08.10
NetPia [612번글 답변] 마우스 over시에 우측에 해당이미지 보여주기 스크립트  
신검랑 이몸이 초보라..도저히 답답해서 질문요..가르쳐주세영. [1] 2007.08.10
성병학 카운터의 어제방문자가 계속 ''0''으로 나타나는군요. [2] 2007.08.10
이호한 [re] GD에서 외부 png이미지를 여러개 불러오는 방법 [1] 2007.08.10
방제천 페이지에 오류가 있습니다 ???? [1] 2007.08.10