Li1M0ST3Rz
I <3 Bianca
- Sep 13, 2010
- 269
- 166
it wouldn't work
Code:
Code:
PHP:
<?php
if($_POST['usermsg'] == '.clear chatroom' and $row['userlevel'] == 9):
$fp = fopen( "log.html", "w" );
fwrite( $fp, "" );
fclose( $fp );
else:
if($row['userlevel'] == 1):
fwrite($fp, "<div class='msgln'><i>User ". $row['username'] ." had tried to clear the chatroom.</i><br></div>");
endif;
?>