login.php
session_start();
$nickname=$name;
("location:hframe.php");
}?>
hframe.php
smessage.php
smessage.php
if(isset( $submit)){
$fp=fopen("test.txt","a ");
$temp="rn".$rmessage."|".$content."|".$nickname ."|0";
fputs($fp,$temp);
exit;
}
?>
:
session_start();
echo "
";
$fl=file("test.txt");
$temp="";
for($i=0;$i
$sflag=explode("|",$fl[$i]);
if==($sflag[3]====0)&$sflag[00] $nickname){
echo"<script>window.open('list.php?Smessage=$sflag[2]&Content=$sflag[1]','newwin','toolbarin=sflag[2]&Content=$sflag[1]','newwin','toolbarin= location= no')</script>";
}else{
$temp.=$flo[$i]; fputs($fp,$temp);
?>
http://www.bkjia.com/PHPjc/315166.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315166.htmlTechArticlelogin.php ?if(isset($submit)){ session_start(); $nickname=$name; session_register; (nickname); header(location:hframe.php); }? form name=form1 action=login.php method=post input type=...