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; ?>