diff --git a/Templates/Alliance/Forum/forum_10.tpl b/Templates/Alliance/Forum/forum_10.tpl index f361ad85..612c7f56 100644 --- a/Templates/Alliance/Forum/forum_10.tpl +++ b/Templates/Alliance/Forum/forum_10.tpl @@ -5,89 +5,382 @@ ## FIX BY RONIX ## ## TRAVIANZ ## ############################################################ -if($session->access!=BANNED){ -$topic_id = $_GET['pod']; -$post_id = $_GET['pod']; -$topics = $database->ShowTopic($topic_id); -$posts = $database->ShowPostEdit($post_id); -foreach($topics as $top) { - $title = stripslashes($top['title']); +if($session->access!=BANNED) { + $topic_id = $_GET['pod']; + $post_id = $_GET['pod']; + $topics = $database->ShowTopic( $topic_id ); + $posts = $database->ShowPostEdit( $post_id ); + foreach ( $topics as $top ) { + $title = stripslashes( $top['title'] ); + } + foreach ( $posts as $pos ) { + $poss = stripslashes( $pos['post'] ); + $poss = preg_replace( '/\[message\]/', '', $poss ); + $poss = preg_replace( '/\[\/message\]/', '', $poss ); + $alliance0 = $pos['alliance0']; + $player0 = $pos['player0']; + $owner = $pos['owner']; + $coor0 = $pos['coor0']; + $report0 = $pos['report0']; + } + + if ( $owner == $session->uid ) { + ?> +
+ Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. + - -Warning: you can't use the values [message] or [/message] in your post because it can cause problem with bbcode system. - \ No newline at end of file diff --git a/Templates/Alliance/Forum/forum_2.tpl b/Templates/Alliance/Forum/forum_2.tpl index 5b45d575..693da4c4 100644 --- a/Templates/Alliance/Forum/forum_2.tpl +++ b/Templates/Alliance/Forum/forum_2.tpl @@ -52,7 +52,7 @@ foreach($forumcat as $arr) { } } echo '




';
}else{
echo '
';
@@ -168,7 +168,7 @@ foreach($forumcat as $arr) {
}
}
echo '


';
}else{
echo '
';
@@ -223,7 +223,7 @@ if($closed1 != 0){
}
}
echo '


';
}else{
echo '
';
diff --git a/Templates/Alliance/Forum/forum_4.tpl b/Templates/Alliance/Forum/forum_4.tpl
index d31f2f26..0c9db803 100644
--- a/Templates/Alliance/Forum/forum_4.tpl
+++ b/Templates/Alliance/Forum/forum_4.tpl
@@ -38,7 +38,7 @@ if($ChckTopic){
}
echo '
';
}else{
@@ -72,7 +72,7 @@ if($ChckTopic){
}
echo '
';
}else{
diff --git a/Templates/Alliance/Forum/forum_6.tpl b/Templates/Alliance/Forum/forum_6.tpl
index 73e52195..8f6130cc 100644
--- a/Templates/Alliance/Forum/forum_6.tpl
+++ b/Templates/Alliance/Forum/forum_6.tpl
@@ -61,7 +61,7 @@ $bbcode_topic = stripslashes(nl2br($bbcoded));