query("DELETE FROM ".C_USR_TBL." WHERE user LIKE '$U' AND room LIKE '$E'"); } if(isset($U)) { if($U != "") { $Temp = new DB; $Temp->query("SELECT user FROM ".C_USR_TBL." WHERE user LIKE '$U'"); if($Temp->num_rows() > 0) { $Error = L_ERR_USR_1; } setcookie("CookieUsername", $U, time() + 60*60*24*365); // cookie expires in one year $CookieUsername = $U; } else { $Error = L_ERR_USR_2; } } if(!isset($Error)) { if(isset($R2)) $R2 = ereg_replace("[ ,;*]", "_", $R2); if(((isset($R0) && $R0 != "") || (isset($R1) && $R1 != "") || (isset($R2) && $R2 != "")) && isset($N) && $N != "") { if($R2 != "") { $R = htmlentities($R2); $Liste = new DB; $Liste->query("SELECT DISTINCT type FROM ".C_MSG_TBL." WHERE room LIKE '$R'"); if($Liste->num_rows() > 0) { list($T) = $Liste->next_record(); } } else { $T = 1; $R = htmlentities(($R0 != "") ? $R0 : $R1); } setcookie("CookieRoom", $R, time() + 60*60*24*365); // cookie expires in one year $CookieRoom = $R; setcookie("CookieRoomType", $T, time() + 60*60*24*365); // cookie expires in one year $CookieRoomType = $T; ?> <?php echo(APP_NAME." ".APP_VERSION); ?> " NAME="messages" MARGINWIDTH=3 MARGINHEIGHT=3> " NAME="input" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING="NO" NORESIZE> " NAME="users" MARGINWIDTH=3 MARGINHEIGHT=3> <?php echo(APP_NAME." ".APP_VERSION); ?>

query("SELECT DISTINCT user FROM ".C_USR_TBL." ORDER BY user")) { $Nb = $Liste->num_rows(); echo(L_CUR_1." ".$Nb." ".($Nb > 1 ? L_USERS : L_USER)." ".L_CUR_2."

"); } if(isset($Error)) { echo("

$Error

"); } ?>
: ">
:
:
 
:
:
: >

...

© 2000 Nicolas HOIZEY - phpHeaven