PHPÉè¼ÆÁÄÌìÊÒ²½²½Í¨

5年以前  |  阅读数:953 次  |  编程语言:PHP 

¡¡¡¡ÁÄÌiÊÒ¿ÉÒÔ²ÉÓÃÍeÈ«×ÔÓɵĽʽÔËÐÐ,Äa¿ÉÒÔËaeÒaÊaÈeÄسÆ,²»ÓÃÃÜÂe,²»±£´aeÄaµÄÁÄÌi״̬,ÓŵaÊÇ:×ÔÓÉ,dz£ÊʺÏÓÚÓοÍ!ÁiÍaÒ»¸o½¨ÊÇ×¢²aÁÄÌiÊÒ,ÿ¸o½øÈeÁÄÌiÊÒµÄÈ˶¼ÒªÊaÈe×Ô¼ºµÄÓû§ÃuºÍÃÜÂe²ÅÄܽøÈe!Óŵa:³aÖÌaÏÖ¸oÐÔ,dz£ÊʺÏÓÚÀÏÅoÓÑ,ËuÃǵÄÄسƲ»»a±»È˶ñÒaÇÖռʹÓÃ.ÎÒµÄÁÄÌiÊÒʹÓÃ×¢²a½¨!

¡¡¡¡×¢²aͨ³£²ÉÓÃ2ÖÖ½¨:

¡¡¡¡1¡¢ÏÈ×¢²aÈ»ºo½øÈeÁÄÌi
¡¡¡¡
¡¡¡¡2¡¢×Ô¶¯×¢²a

¡¡¡¡È»ºoÔÚÀiÃaeÐÞ¸Ä×Ô¼ºµÄ×ÊÁÏ!ÎÒ²ÉÓõÚ2ÖÖ½¨!!ÿ¸oнøÈeµÄÁÄÓѵÄÓû§Ãu»a±»×Ô¶¯±£´aeµ½×¢²aµ½Êý¾Ý¿aÄÚ,Ï´εǽ±ØÐeÊaÈe×¼È*µÄÃÜÂe²ÅÄܽøÈe!

¡¡¡¡ÏÂÃaeÊÇÅжϲ¿*Ö!±¾³ÌÐoʹÓÃÎı¾Êý¾Ý¿a!

//$useronlineΪÔÚÏßÈ˵ÄÊý¾ÝÎļþÃu³Æ
//$useronlinelockΪÔÚÏßÈ˵ÄËø¶¨±eÖ¾
//$registerΪÒѾ­×¢²aµÄÊý¾ÝÎļþÃu³Æ
//$registerlockΪע²aÎļþµÄËø¶¨±eÖ¾
//$splitΪָou

//µÇ½²ÎÊý enter
if($action == "enter")
{
//µ±Ç°Ê±¼aÃeÊý
$timecurrent = date("U");

//Ëø¶¨ÔÚÏßÈËÊýÎļþ,*ÀֹͬʱÐÞ¸Äͬһ¸oÎļþ
while( file_exists($useronlinelock))
{
if(!file_exists($useronlinelock))
{
break;
}
}

//´´½¨ÁÙʱÎļþ
fclose(fopen($useronlinelock,"w"));

//¶ÁÈeÔÚÏßÓû§ºÍÒѾ­×¢²aÓû§µÄÐÅÏ¢:ÃÜÂe,edzÆ,¸uÐÂʱ¼a
$useronline = file($useronline);
$register = file($register);

//ÓÃÓÚÅжϵǽÊÇ*ñ³É¹¦µÄ±eÖ¾
$namesign=0;

//ÅжÏÓû§Ãu,ÃÜÂeµÄ´iÎo,Óû§Ãu²»ÔÊÐiΪ¿Õ,²»ÔÊÐi³¬¹ý10¸o×Öu,ÃÜÂe²»ÔÊÐi³¬¹ý20¸o×Öu
if(($name =="") || (strlen($name) £¾ 10) || (strlen($pass) £¾ 20) )
{
print("ûÓÐedzƻoÃÜÂe¹ý³¤");
//µÇ½ʧ°Ü
$namesign=1;
//ɾ³ýÁÙʱÎļþ
unlink($useronlinelock);
}
else
{
//²eÕÒÊÇñÒѾ­ÓÐÈË×¢²a»oÕßÃÜÂe´iÎo
$foundsign=0;
for($i=0;$i£¼count($register);$i++)
{
//
Ö¸i
$tempregister = split($split,$register[$i],99);
//ÕÒµ½ÒѾ­×¢²aµÄÓû§Ãu
if( $name == $tempregister[0] )
{
//ÒѾ­ÕÒµ½±eÖ¾
$foundsign=1;
//ÃÜÂeÕýÈ*Âð
if($pass != $tempregister[1])
print("ÃÜÂe´iÁË!");
//µÇ½ʧ°Ü
$namesign=1;
unlink($useronlinelock);
break;
}
else
{
//ÀÏÓû§µÇ½³É¹¦
$namesign=0;
break;
}
}

}

//Èç¹uûÓÐÕÒµ½Õa¸oÓû§Ãu,ÄÇô¾Í×Ô¶¯×¢²a
if(!$foundsign)
{
//±£´aeÓû§ÃuºÍÃÜÂe
$handle = fopen($register,"a");
fputs($handle,"$name$split$pass$splitrn");
fclose($handle);
//ÐÂÓû§µÇ½³É¹¦
$namesign=0;
}
}
}
if(!$namesign)
{
//¸uÐÂÔÚÏßÈ˵ÄÃuµ¥
$useronlinehandle = fopen($useronline,"w");

//ÅжÏÊÇ*ñÒѾ­ÔÚÀiÃae,Ö»ÊÇË¢ÐÂÒ³Ãae
$updatesign = 0;
for($i=0;$i£¼count($useronline);$i++)
{
$usertemp=split($split,chop($useronline[$i]),99);
if($name == $usertemp[0])
{
//¸uбeÖ¾
$updatesign = 1;
fputs($useronlinehandle,$useronline[$i]);
}
else
{
fputs($useronlinehandle,$useronline[$i]);
}
}
//Èç¹uûÓÐÔÚÀiÃae,ÔoÔo¼Óµ½ÀiÃae
if(!$updatesign)
fputs($useronlinehandle,"$name$split$level$split$pass$split$timecurren
trn");
fclose($useronlinehandle);

//È¥µoËo¶¨
unlink($useronlinelock);

//µÇ½³É¹¦
}

¡¡¡¡µ½ÕaÀi,Óû§µÄÑeÖ¤ÒѾ­Íe³É,ÁÄÓÑÒѾ­ºÏ*¨µÄ½øÈeÁËÁÄÌiÊÒ,Я´øÕßÄسƺÍÃÜÂe

¡¡¡¡µÇ¼

¡¡¡¡1¡¢Ò³ÃaeµÇ½µÄ»u±¾ÒªËØ

¡¡¡¡Äa¿ÉÒÔÔÚÎÒµÄÖñÒ¶¿´µ½µÇ½µÄ±iµ¥,ÕaÀiÌa¹(C)ÁË×i»u±¾µÄµÇ½±iµ¥Ïi

¡¡¡¡(1)µÇ½±iµ¥

£¼form method=POST name=chatform action=chat/login.php?action=enter onSubmit="b1_submit();return true;" target="howtodo"£¾

¡¡¡¡(a)ÁÄÌi±iµ¥µÄÃu×ÖΪchatform,ÎÒʹÓÃaction=enter×÷Ϊ½øÈeÁÄÌiÊÒµÄÈe¿Ú,Èç¹uûÓÐÕa¸o²ÎÊý,ÔoÏÔʾµÇ½ҳÃae.

¡¡¡¡(b)ÔÚ±iµ¥Ìa½»Ê±,Ïȵ÷ÓÃb1_submit()½¨Á¢ÁÄÌiµÄ´°¿Ú

¡¡¡¡(c)ÁÄÌiµÄÄ¿±e´°¿ÚΪb1_submit()½¨Á¢µÄhowtodo´°¿Ú

¡¡¡¡(2)±iµ¥Ïi

edzÆ:£¼input type=text name=name size=15 maxlength="10"£¾
ÃÜÂe:£¼input type=password name=pass size=15 maxlength="10"£¾
£¼input type=submit name=submit value=µÇ½ style="width:100"£¾
£¼input type=reset name=reset value=ÖØÌi style="width:50"£¾

(a)¸÷±iµ¥ÏiÒ»¶¨ÒªÉe¶¨×i´oÔÊÐi³¤¶È maxlength

¡¡¡¡(3)½¨Á¢ÁÄÌi´°¿ÚµÄjs

£¼script LANGUAGE="javascript"£¾
function b1_submit(){
chat=window.open('',"howtodo",'Status=no,scrollbars=no,resizable=no');

chat.moveTo(0,0);
chat.resizeTo(screen.availWidth,screen.availHeight);
chat.outerWidth=screen.availWidth;
chat.outerHeight=screen.availHeight;
}

¡¡¡¡Õa¶Î´uÂeÏÈ´o¿ªÒ»¸oûÓÐ״̬À¸,¹o¶¯Ìo,¿Éµ÷Õu³ß´çµÄhowtodo´°¿Ú!È»ºoÒƶ¯µ½ÆÁÄ»×oÉϽÇ,È»ºo*Å´oµ½ÔÊÐiµÄÆÁÄ»´oС.

¡¡¡¡ÔÚÏßÈËÊý

¡¡¡¡ÎÒ¸u¾ÝÍøÒ×ÁÄÌiÊÒµÄÔÚÏßÈËÊýµÄ½¨,ÏÔʾµ±Ç°µÄÔÚÏßÈËÊý,´uÂe½aÊÍÈçÏÂ:
¡¡¡¡1¡¢µÇ½ʱ½¨Á¢ÔÚÏßÈËÃuµ¥µÄÊý×e,*ÅÔÚbodyºoÃae

£¼?
//Ëø¶¨ÔÚÏßÈËÊýÎļþ
while(file_exists($useronlinelock)){$pppp++;}
fclose(fopen($useronlinelock,"w"));

//¶ÁÈeÔÚÏßÈËÃuµ¥
$useronline = file($useronline);
unlink($useronlinelock);

//½¨Á¢Êý×e list
print("document.writeln("list=new Array(");
$k=count($useronline);
if($k£¾1)
{
for($i=0;$i£¼($k-1);$i++)
{
$usercurrent = split($split,$useronline[$i],99);
// ÐÕÃu+,
print("'$usercurrent[0]',");
}
$i=$k-1;
// ´¦Ài×iºoÒ»¸oÐÕÃu
$usercurrent = split($split,$useronline[$i],99);
print("'$usercurrent[0]'");
}
// Êý×e½aÊø
print(")");n");
?£¾

¡¡¡¡2¡¢ÏÔʾÔÚÏßÈËÊýµÄjs

document.writeln('[ÔÚÏßÈËÊý£¼font color=red£¾'+count+'£¼/font£¾]£¼br£¾');
document.writeln("[£¼a href="javascript:parent.cs('ËuÓÐÈË')"£¾ËuÓÐÈË£¼/
a£¾]£¼br£¾");
document.writeln("£¼font class='p9'£¾");
var j,name,club;
for(var i=0;i£¼list.length;i=i+1)
{
if(list[i]!=null){

//ÏÔʾÿ¸oÔÚÏßÈ˵ÄÃu×Ö
document.writeln("£¼a href="javascript:parent.cs('"+list[i]+"')" titl
e='"+list[i]+"'£¾"+list[i]+"£¼/a£¾£¼br£¾");
}
}
this.r.document.writeln('£¼/font£¾£¼hr£¾');

¡¡¡¡3¡¢¸Ä±aÁÄÌi¶ÔÏo

function cs(name)
{
if(this.d.document==null)return;
if(name=='ËuÓÐÈË')
{
this.d.add('ËuÓÐÈË');
this.d.document.inputform.talkto.value='ËuÓÐÈË';

//¸Ä±a½¹µa
this.d.document.inputform.msg.focus();
return;
}
for(var i=0;i£¼list.length;i=i+1)
{
if(list[i]==name)
{

//¸u¸Ä*¢Ë͵Ä̸»°¶ÔÏo
this.d.document.inputform.talkto.value=list[i];
this.d.document.inputform.msg.focus();
return;
}
}

//´iÎo
alert('´ËÓû§ÒÑÀeÏß»oÒѸÄÁËedzơ£');
}

¡¡¡¡4¡¢É¾³ýÒ»¸oÓû§

function del(str)
{
for(var i=0;i£¼list.length;i=i+1)
if(list[i]==str)
{
delete list[i];
count--;
}
}

¡¡¡¡5¡¢Ôo¼ÓÒ»¸oÓû§

function add(str1,str2)
{
var l=list.length;
for(var i=0;i£¼list.length;i=i+1)

//Èç¹uÒѾ­ÔÚÊý×eÀiÃaeÔo*µ»Ø
if(list[i]==str1)
return;

//Ôo¼ÓÒ»¸oÓû§
list[l]=str1;
count++;
}

¡¡¡¡6¡¢¸uÐÂÁÄÌiÈËÊýµÄ½¨,¶¨Ê±Æ÷µÄʹÓÃ

var timerID=null;
var timerRunning=false;

function stop()
{
//Í£Ö¹
if(timerRunning)clearTimeout(timerID);
timerRunning=false;
}
function start()
{
stop();
//µ÷ÓøuÐÂÔÚÏßÈËÊýµÄ³ÌÐo
write1();
}

function write1()
{
... ... ... ...
//Ée¶¨¸uÐÂʱ¼a,
timerID=setTimeout("start()",30000);
timerRunning=true;
}

¡¡¡¡ÕaÖÖ½¨±È½Ï¼oµ¥µÄʵÏÖÁËÔÚÏßÈËÊýµÄÏÔʾ,µ±È»Ò²¿ÉÒÔʹÓöÁÈeÔÚÏßÈËÎļþµÄ½¨ÏÔʾÔÚÏßÈËÊý,²»¹ýÔڸıaÁÄÌi¶ÔÏoÊÇ»a±È½ÏÂe*³.

¡¡¡¡ÏÔʾ

¡¡¡¡ÏÖÔÚµÄwwwÁÄÌiÊÒ»u±¾È«²¿²ÉÓÿo¼Ü½Ê½,¿ÉÒÔÓÃframeÒ²¿ÉÒÔÓÃiframe¿´¸oÈËϲ»¶ÁË,ÎҵIJÉÓÃframeµÄ´«Í³½Ê½

print("£¼frameset rows=",110,0,0,0" border=0£¾n");
print("£¼frameset cols="660,118" rows="
"£¾n");

//Ö÷ÏÔʾÆÁÄ»,¸ºÔðÏÔʾÁÄÌiÄÚÈÝ
print("£¼frame name=u src=about:blank frameborder="NO" noresize£¾n");

//ÔÚÏßÈËÊýÆÁÄ»
print("£¼frame name=r src="about:blank" frameborder="NO"£¾");
print("£¼/frameset£¾n");

//¢ËÍÐÅÏ¢µÄÆÁÄ»,ÐÅÏ¢Ö¸»ÓÖÐÐÄ,ËuÓÐÖ¸Ái¶¼ÒªÓÉÕaÀi¢³o
print("£¼frame name=d src=send.php?name=$name&&pass;=$pass scrolling='no
' frameborder="NO" noresize£¾n");

//±»¶¯¸uÐÂÆÁÄ»,´¦Ài*¢Ë͵ÄÐÅÏ¢
print("£¼frame src="about:blank" name="bl"£¾n");

/Ö÷¶¯¸uÐÂÆÁÄ»,ÏÔʾ×Ô¼ººÍÆaËuÁÄÓѵÄÁÄÌiÐÅÏ¢
print("£¼frame src="about:blank" name="flush"£¾n");

//¼i²aÊÇ*ñÔÚÏßµÄÆÁÄ»,¶ÔÓÚÒi³£Àe¿ª,ÈçËÀ»u,µoÏߵȵĴ¦Ài
print("£¼frame src="about:blank" name="check"£¾n");
print("£¼/frameset£¾n");

¡¡¡¡ÒoΪ¸÷¸oÒ³ÃaeÖ®¼aµÄ³ÌÐoÓÐÁªÏµ,ËuÒÔÏÔʾ˳ÐoºÜÖØÒª,¿ÉÒÔ¿´µ½,ÎÒÕaÀiÖ»ÓТËÍÒ³Ãae²»ÊÇabout:blank,ÆaËuÒ³ÃaeµÄÏÔʾ¶¼ÒªÏÈͨ¹ý¢ËÍÒ³ÃaeµÄµ÷ÓòÅÄÜ¿ªÊ¼.

¡¡¡¡Ö¸»ÓÖÐÐÄ

¡¡¡¡ÕaÀiÊÇÁÄÌiÊÒµÄÖ¸»ÓÖÐÐÄ,ËuÓеÄÖ¸Ái¶¼ÒªÔÚÕaÀi¢³o
¡¡¡¡1¡¢ÏÂÃaeÊÇ»u±¾µÄ
¢Ëͱiµ¥´uÂe

£¼form name=inputform action='messagesend.php' target='bl' onsubmit='return(checksay());' method=POST£¾

£¼?
//ÏÂÃaeµÄ2¸o²ÎÊýÓÃÓÚÑeÖ¤ÐÅÏ¢µÄÕýÈ*ÐÔ
print("£¼input type='hidden' name='name' value='$name'£¾n");
print("£¼input type='hidden' name='pass' value='$pass'£¾n");
?£¾

//ÁÄÌi¶ÔÏo,×¢Òa¼ÓÉÏ readonly ÊoÐÔ
£¼input type="text" name="talkto" size="10" maxlength="20" readonly value="ËuÓÐÈË"£¾

//ÉÏ´ÎÁÄÌiµÄ*¢ËÍÄÚÈÝ
£¼input type='hidden' name='message' value=''£¾

//*¢Ë͵ıiµ¥Îı¾¿o
£¼input type="text" name="msg" maxlength="120" size="34"£¾

£¼input type="submit" name="Submit" value="*¢ËÍ"£¾

£¼/form£¾

¡¡¡¡2 ¼i²e*¢ËÍÄÚÈݵÄjs

var dx ='';
function checksay( )
{

//²»ÔÊÐi¢ËͿյĢÑÔ
if(document.inputform.msg.value=='')
{
document.inputform.msg.focus();
return false;
}

//²»ÔÊÐiÖظ´¢ÑÔ,ÄÚÈÝÏaͬ£¬¶ÔÏoÏaͬ
if ((document.inputform.msg.value==document.inputform.message.value)
&&(document.inputform.talkto.value==dx))
{
alert('
¢ÑÔ²»ÄÜÖظ´');
document.inputform.msg.focus();
return false;
}

//Á½´Î¢ÑÔÄÚÈݵļa¸o²»ÄÜСÓÚ1Ãe£¬»oÕߢÑÔ×ÖÊý´oÓÚ¼a¸o3
t2=(new Date()).getTime()/1000;
if(((t2-t1)£¼1)||((t2-t1)
3£¼document.inputform.msg.value.length))
{
document.inputform.msg.focus();
return false;
}

//¸uÐÂʱ¼a
t1=t2;

document.inputform.showsign.value=1;

//±£´aeÉÏ´Î*¢ÑÔÄÚÈÝ
document.inputform.message.value =document.inputform.msg.value;

//Ça¿Õ*¢ÑÔÄÚÈÝ
document.inputform.msg.value ='';

//±£´ae*¢ÑÔ¶ÔÏo
dx=document.inputform.talkto.value;

//¶¨Î»½¹µa
document.inputform.msg.focus();

//*µ»Ø
return(true);
}

¡¡¡¡3¡¢µ÷ÓÃÐÅÏ¢¢ËͳÌÐo,¢²¼ÁÄÌiÕßÒѾ­½øÈeµÄÐÅÏ¢

£¼script£¾
parent.bl.document.open();
parent.bl.document.write("£¼meta http-equiv='refresh' content='0;url=messagesend.php?name=£¼? print($name); ?£¾&&action;=enter&&pass;=£¼? print($pass); ?£¾'£¾")
parent.bl.document.close();
£¼/script£¾

¡¡¡¡¢ÑÔÓÉmessagesend.php´¦ÀiÍe³É,×¢ÒaÊa³o¶ÔÏoΪbl,Ò²¾ÍÊÇ´¦Ài¢ÑԵĿo¼ÜÃu³Æ,ÕaÑu±£Ö¤*¢ÑÔ¿o¼ÜµÄÒ³ÃaeÄÚÈݵÄÍeÕu

¡¡¡¡±iÇeºÍ¶¯×÷

¡¡¡¡±iÇeºÍ¶¯×÷¼«´oµÄa¸»ÁËÁÄÌiµÄÀÖȤ,Ò»°aµÄÁÄÌiÊÒÖ÷Ҫͨ¹ý2ÖÖ½¨¢ËÍ

¡¡¡¡(1) °´Å¥²Ëµ¥µÄ½¨

¡¡¡¡Í¨¹ýÔÚÒ»¸o¹Ì¶¨µÄÏÂÀ­²Ëµ¥ÀiÃae½øÐÐÑ¡Ôñ,ÕÒµ½×Ô¼ºÂuÒaµÄ±iÇe,È»ºoÑ¡ÖÐ,°´¢ËÍ°´Å¥¢³o

¡¡¡¡(2) ͨ¹ýÊÖ¹¤ÊaÈe´uºÅ

¡¡¡¡±ÈÈçÍøÒ×µÄÒÔÊÖ¹¤ÊaÈe //hello ´u±i»¶Ó­µÄÒ»¶Î¶¯×÷,ÒÔ //bye ´u±iÔÙ¼uµÄÒ»¶Î¶¯×÷±iÇe
¡¡¡¡ÎÒÃÇÕaÀi½eÉܲ˵¥µÄ¾ßÌaʵÏÖ½¨,ÊÖ¹¤ÊaÈeµÄ²»ÓýeÉÜÁË°É! ¹þ¹þ!³ý*ÇÄa¼Ç²»×¡ÄÇÐ(C)...

¡¡¡¡1 ÏÂÀ­²Ëµ¥Ñ¡Ôñ±iÇe¶¯×÷µÄʵÏÖ

¡¡¡¡ÎªÁËÀ(C)³a½±a,ÎÒÃÇÖÆ×÷Á˱iÇe¶¯×÷µÄÊý¾ÝÎļþ,ÕaÑuÔÚÒÔºoÀ(C)³aʱ½«»adz£*½±a.

¡¡¡¡±iÇe¶¯×÷ÎļþµÄ¸ñʽÈçÏÂ($split´u±iÖ¸iu):

//1234$split¡°£±£²£³£´£µ£¶£,ÎÒµÄÅoÓÑÔÚÄÄÀi1234£¡£¡£¡£¡£¡¡±
//?$splitºÜÒÉ»oµÄ¿´×ŶÔÏo...
//??$splitץѽץ£¬°ÑÍ
Ƥ¶¼×¥ÆÆÁË£¬Ò²Ã»ÓÐÏe³o¸oËuÒÔÈ»À´¡£
//???$splitÔoô»ØÊ£¿Õaµ½µ×ÊÇÔoô»ØÊÂ

¡¡¡¡Ç°ÃaeµÄ//1234´u±i±iÇe¶¯×÷´uÂe,Ö¸ouºoÃaeµÄ´u±iÏÔʾµÄ±iÇe¶¯×÷×¢ÒaÆaÖÐµÄ ¶ÔÏo Á½¸o×Ö½«»aÔÚÏÔʾʱÌae»»³ÉΪ*¢ÑÔ¶ÔÏoµÄÃu×Ö

¡¡¡¡Õa¶Î´uÂeÓÃÓڰѲ˵¥Ñ¡ÔñµÄ¶ÔÓ¦µÄ±iÇe¶¯×÷´uÂeдµ½*¢ËÍÀ¸ÀiÃae

£¼script£¾
function changemote($newemote)
{
document.inputform.msg.value = $newemote
}
£¼/script£¾

¡¡¡¡Õa¶Î´uÂeÉu³É¶¯Ì¬ÏÂÀ´²Ëµ¥

£¼select name="select" onchange="changemote(this.options[this.selectedIndex].value)"£¾
£¼option value="0" selected£¾¶¯×÷£¼/option£¾
£¼?
$emotemsg = file($emotefilename);
for($i=0;$i£¼count($emotemsg);$i++)
{
$msg = split($split,$emotemsg[$i],99);
print("£¼option value=$msg[0]£¾$msg[1]£¼/option£¾");
}
?£¾
£¼/select£¾

¡¡¡¡ÕaÑu¾ÍÍe³ÉÁ˴Ӳ˵¥Ñ¡¶¯×÷±iÇeµÄ¹ý³Ì

¡¡¡¡2 ±iÇe¶¯×÷ÔÚ*¢ÑÔ´¦Ài³ÌÐoÀiµÄ´¦Ài¹ý³Ì

messagesend.php

£¼?

//¶ÁÈe±iÇe¶¯×÷Îļþ
$emote3 = file($emotefilename);
$emote3number = count($emote3);
for($kk=0;$kk£¼$emote3number;$kk++)
{

//*Ö¸iÿ¸o±iÇe¶¯×÷
$emote=split($split,chop($emote3[$kk]),99);

//Èç¹u*¢ÑÔÄÚÈݵÈÓÚ±iÇe¶¯×÷
if($message == $emote[0])
{

//Ìae»»±iÇe¶¯×÷ÀiÃaeµÄ ¶ÔÏo Ϊʵ¼ÊµÄÁÄÌi¶ÔÏoÃu×Ö
$emote[1]=ereg_replace("¶ÔÏo","£¼font color=red£¾$talkto£¼/font£¾",$emote[1]);

//*¢ÑÔÄÚÈݸÄΪ¶¯×÷±iÇeµÄÄÚÈÝ
$message = "£¼a href=javascript:parent.cs('$name') target=d£¾$name£¼/a
£¾".$emote[1];
break;
}
}
?£¾

¡¡¡¡ÕaÑuÎÒÃǾÍʵÏÖÁ˱iÇeºÍ¶¯×÷,Èç¹u×oÒ»¸o×Ô¶¯Ìi¼Ó¶¯×÷±iÇeµÄ³ÌÐo¹¦ÄÜ,¸u»aÔo¼ÓÁÄÌiµÄÓeÀÖÐÔ!

¡¡¡¡Ìuͼ

¡¡¡¡Èç¹uÔÚÁÄÌiÎÄ×ÖÖÐÄÜÔo¼ÓÒ»Ð(C)ÃÀÀoµÄͼƬ.......
¡¡¡¡Í¼Æ¬´uÂeµÄÉu³ÉºÍ±iÇe¶¯×÷Ò»Ñu,¿ÉÒԲ˵¥Ñ¡ÔñÒ²¿ÉÒÔÊÖ¹¤ÊaÈe,ÕaÀiÖ»¸ø³o¸ñʽºÍ´uÂe,²»ÔÙ½aÊÍ,Çe²i¿´ ±iÇeÓÚ¶¯×÷²¿*Ö

¡¡¡¡1 Îļþ¸ñʽ

//$picturefilename

1$split¿§ÈÉ«Î÷þ$splitxw20151.jpg$split
2$splitºÚÉ«Ñaβ*þ$splitxw201534.jpg$split

¡¡¡¡±aºÅ+Ãu³Æ+ͼƬÃu³Æ+

¡¡¡¡2 ³ÌÐo

¡¡¡¡ÎÒµÄÁÄÌiÊÒ²ÉÓà ///gift+±aºÅµÄ½¨ÏÔʾͼƬ,×¢ÒaÊÇÈý¸o*´Ð±¸Ü,Çø±ðÓÚ±iÇe¶¯×÷

£¼?
//ÅжϢÑÔµÄÄÚÈÝ×iÇ°ÃaeµÄ7¸o×ÖuÊÇ*ñÊÇ ///gift
if(substr($message,0,7) == "///gift")
{

//È¡µÃͼƬµÄ±aºÅ,´ÓµÚ7¸o×Öu¿ªÊ¼µÄ2¸o×Öu(×¢Òa,×Ö*u´Ó0¿ªÊ¼±aºÅ)
$id = substr($message,7,2)-1;

//¶ÁÈeͼƬÎļþ
$giftmsg = file($picturefilename);

//ÅжÏÊÇñ±aºÅºÏ¨
if(($id £¾= 0) && ($id £¼ count($giftmsg)) )
{
//*Ö¸iͼƬÐÐ
$gift=split($split,$giftmsg[$id],99);

//Éu³ÉͼƬµÄ*¢ÑÔÄÚÈÝ
$message ="£¼a href=javascript:parent.cs('$name') target=d£¾£¼font col
or=$namecolor£¾$name£¼/font£¾£¼/a£¾Ë͸ø£¼a href=javascript:parent.cs('$talkt
o') target=d£¾$talkto£¼/a£¾Ò»¸o$gift[1]£¼img src='images/$gift[2]' width=6
0 height=60 border=0£¾£¼/font£¾";

//ͼƬÉu³É³É¹¦±eÖ¾
$specialsign = 1;
}

}

¡¡¡¡ÃÜ̸µÄʵÏÖ

¡¡¡¡Ã¿¸oÁÄÌiÊÒ¶¼Ìa¹(C)ÁËÃÜ̸¹¦ÄÜ,À´ÎªÄÇÐ(C)ÐeҪ˽ÏÂÀi½øÐн»Á÷µÄÁÄÓÑÌa¹(C)½±a,ÕaÀi°ÑÎÒµÄÁÄÌiÊÒʵÏÖ˽ÁĵĽ*¨½eÉÜÈçÏÂ:

¡¡¡¡1 ¶Ô*¢ËÍÐÅÏ¢µÄ´¦Ài

¡¡¡¡Ã¿¾a˽ÁĶ¼ÒªÏÔʾÔÚ×Ô¼ººÍ˽ÁĶÔÏoµÄÆÁÄ»ÉÏ,¶øÆaËuÈ˲»Äܹ»¿´µ½.ÕaÀiÏȶԢÑÔÄÚÈݽøÐд¦Ài,È»ºoÔÙ±£´aeµ½¢ÑÔÎļþÀiÃae!

//$splitΪָouºÅ

messagesend.php

£¼?
//ÅжÏÊÇñ˽ÁÄ¢ÑÔ
if($secret == "on")
{
//ÔÚ¢ÑÔÇ°Ãae¼ÓÉϱe¼Ç£¼!--+˽Áıe¼Ç+¶ÔÏo+¢ÑÔÕß+--£¾ ÆaÖÐ+´u±iÖ¸ou

//µÚÒ»¸o±e¼ÇΪ secret ±iʾΪ˽ÁÄ,ºoÃaeµÄÊÇÁÄÌi¶ÔÏoºÍ×Ô¼ºµÄÃu×Ö,±£Ö¤ÕaÁ½¸oÈËÄÜ¿´µ½
$message = "£¼!--$splitsecret$split$talkto$split$name$split--£¾£¼font c
olor=ff0000£¾ÃÜ̸£¼/font£¾$message";
}
else
{

//Èç¹uµÚÒ»¸o±e¼ÇΪ open ±iʾ¹«¿ª,ºoÃaeͬÑuΪ¶ÔÏoºÍ×Ô¼ºµÄÃu×Ö
$message = "£¼!--$splitopen$split$talkto$split$name$split--£¾$message"

}

//È»ºo±£´aeµ½ÎļþÖÐ
?£¾

¡¡¡¡2 ÏÔʾ˽ÁĵĽ¨

¡¡¡¡¶Ôÿ¸oеÄ*¢ÑÔ¶ÁÈeºoÏȽøÐд¦ÀiÅжÏ,ÔÚÖ÷¶¯Ë¢Ð³ÌÐoÀiÃae½øÐÐ.

messageflush.php

£¼?
//Ö¸i¢ÑÔÄÚÈÝ
$tempmessage = split($split,$message[0],99);

//Èç¹u¢ÑÔ²»ÊÇÃÜ̸,»oÕß˽ÁĶÔÏoÊÇ×Ô¼º,»oÕߢËÍÕa¾a˽ÁĵÄÊÇ×Ô¼º,ÄǾÍÏÔʾÕa¾a»°,*ñÔo²»ÏÔʾ
if( ($tempmessage[1] != "secret") || ($tempmessage[2] == $name) || (
$tempmessage[3] == $name) )
{

//ÏÔʾ˽ÁÄ
print("parent.u.document.writeln("$message[0]");rn");
}
?£¾

¡¡¡¡Í¨¹ýÕaÖÖ¼oµ¥µÄ½¨,ÎÒÃÇʵÏÖÁË˽ÁÄ,

¡¡¡¡×¢Òa:

¡¡¡¡Ç°ÃaeµÄ±£´aeÎļþ´¦Àiʱ,¶Ô*¢ÑÔµÄÅжÏÎÄ×ÖÇ°ºoÓУ¼!-- ºÍ --£¾ÕaÑuÔÚÆÁÄ»ÏÔʾʱ¾Í¿ÉÒÔ²»ÓÃÌØÊa´¦ÀiÁË!

 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例