user);$i++){ if($statusf->user[$i]==$_SESSION['username']){ $userexist=true; break; } if($userexist==true){break;} } $i=0; fwrite($file, ''."\n".''."\n"); $wrote=false; foreach($statusf as $status){ if(($statusf->user[$i]==$_SESSION['username'])||($userexist==false)){ if($userexist==false){ fwrite($file, ' '.$statusf->user[$i]."\n"); } if($wrote==false){fwrite($file, ' '.$_SESSION['username']."\n"); $wrote=true;} } else { fwrite($file, ' '.$statusf->user[$i]."\n"); } $i++; } fwrite($file, ''); fclose($file); } $xml=simplexml_load_file("../account_data/".$_SESSION['username'].".xml"); $ban="false"; for($i=count($xml->history->action);$i>=0;$i--){ if(($xml->history->action[$i]['page']=="simplychat")&&($xml->history->action[$i]['type']=="ban")){ $ban="true"; $reason=strval($xml->history->action[$i]); break; } if($ban=="true"){break;} } ?> welcome <?php echo $_SESSION['username']; ?>
go home
../account_data/guest.png
logged in as