window.location='login.php?redirect=chat&id=".(int)$_REQUEST['id']."&mcid=".(int)$_REQUEST['mcid']."';"; exit(); } ?>
0) { $main_chategory = (int)$_REQUEST['mcid']; $chategory = (int)$_REQUEST['id']; $chatter_id = $s_memberid; $chatter_name = $s_memberusern; $getWordFilter = getSqlResults("user","SELECT * FROM nash_wordfilter"); foreach($getWordFilter as $wordFilter) { if ($_POST['post_body']!="") $_POST['post_body'] = str_replace(addSpecialChars($wordFilter['word']),"~",$_POST['post_body']); } $post_body = $_POST['post_body']; $chatter_ip = getenv("REMOTE_ADDR"); $insertPost = addSqlRow("user","INSERT INTO nash_chats (main_chategory_id, chategory_id, chatter_id, chatter_name, post_body, chatter_ip, date_posted) VALUES ('".$main_chategory."','".$chategory."','".$chatter_id."','".$chatter_name."','".$post_body."','".$chatter_ip."','".$timeNowOffset."')"); echo "

".$lang['nash1096']."
".$lang['nash424']."

"; $link = processLink('chat',array('mcid' => $main_chategory,'id' => $chategory)); echo ""; } else if ($_REQUEST['action']=="delete") { $moderow = getSqlRow("user","SELECT * FROM nash_moderators"); if ($moderow['username']==$s_memberusern) { $main_chategory = $_REQUEST['mcid']; $chategory = $_REQUEST['id']; $chat_id = $_REQUEST['chat']; $delThisPost = removeSqlRow("user","DELETE FROM nash_chats WHERE id='".$chat_id."'"); echo "

".$lang['nash1097']."
".$lang['nash424']."

"; $link = processLink('chat',array('mcid' => $main_chategory,'id' => $chategory)); echo ""; } else { $main_chategory = $_REQUEST['mcid']; $chategory = $_REQUEST['id']; echo "

".$lang['nash1098']." ".$lang['nash1099']."

"; $link = "index.php?option=logout"; echo ""; }} else { ?>
:

".$lang['nash1106']."
".$setts['sitename']." ".$lang['nash1107']." ".$setts['sitename']." ".$lang['nash1108']." ".$setts['sitename']." ".$lang['nash1109']." ".$setts['sitename']."".$lang['nash1110']."
"; } else { foreach($getChat as $Chat) { ?>