diff --git a/Templates/Alliance/Forum/forum_10.tpl b/Templates/Alliance/Forum/forum_10.tpl index a3027783..9745dfce 100644 --- a/Templates/Alliance/Forum/forum_10.tpl +++ b/Templates/Alliance/Forum/forum_10.tpl @@ -38,7 +38,7 @@ foreach($posts as $pos) { - + @@ -70,6 +70,7 @@ foreach($posts as $pos) {
+Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. access!=BANNED){ - + @@ -122,6 +122,7 @@ if($session->access!=BANNED){ +Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. - + @@ -69,6 +69,7 @@ foreach($topics as $arr) { +Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. - + @@ -65,6 +65,7 @@ foreach($topics as $top) { +Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. CreatTopic($title,$post,$cat,$owner,$alli,$ends); + } } if(isset($_POST['newpost'])){ $post = $_POST['text']; @@ -60,22 +63,29 @@ if(isset($_POST['newpost'])){ $tids = $_POST['tid']; $owner = $session->uid; if($post != ""){ + if(!preg_match('/\[message\]/',$post) && !preg_match('/\[\/message\]/',$post)){ + $post = "[message]".$post."[/message]"; $database->UpdatePostDate($tids); $database->CreatPost($post,$tids,$owner); } + } } if(isset($_POST['editans'])){ $post = $_POST['text']; $topic_id = $_POST['tid']; + if(!preg_match('/\[message\]/',$post) && !preg_match('/\[\/message\]/',$post)){ + $post = "[message]".$post."[/message]"; $database->EditUpdateTopic($topic_id,$post); + } } if(isset($_POST['editpost'])){ $post = $_POST['text']; - $post = htmlspecialchars($post); $posts_id = $_POST['pod']; - + if(!preg_match('/\[message\]/',$post) && !preg_match('/\[\/message\]/',$post)){ + $post = "[message]".$post."[/message]"; $database->EditUpdatePost($posts_id,$post); + } } if(!isset($_GET['admin'])) { $_GET['admin'] = null;