diff --git a/Templates/Alliance/Forum/forum_10.tpl b/Templates/Alliance/Forum/forum_10.tpl index bb6c2659..c015ff56 100644 --- a/Templates/Alliance/Forum/forum_10.tpl +++ b/Templates/Alliance/Forum/forum_10.tpl @@ -6,10 +6,10 @@ $post_id = $_GET['pod']; $topics = $database->ShowTopic($topic_id); $posts = $database->ShowPostEdit($post_id); foreach($topics as $top) { - $title = $top['title']; + $title = stripslashes($top['title']); } foreach($posts as $pos) { - $poss = $pos['post']; + $poss = stripslashes($pos['post']); } ?>
diff --git a/Templates/Alliance/Forum/forum_2.tpl b/Templates/Alliance/Forum/forum_2.tpl index cffc62c3..baaf2656 100644 --- a/Templates/Alliance/Forum/forum_2.tpl +++ b/Templates/Alliance/Forum/forum_2.tpl @@ -54,7 +54,7 @@ if($database->CheckEditRes($aid)=="1"){ }else{ echo 'Thread without new posts'; } -echo ''.$arr['forum_name'].'
'.$arr['forum_des'].' +echo ''.stripslashes($arr['forum_name']).'
'.stripslashes($arr['forum_des']).' '.$countop.' '.$lpost.'
'.$owner['username'].' Show last post '; @@ -105,7 +105,7 @@ if($database->CheckEditRes($aid)=="1"){ }else{ echo 'Thread without new posts'; } -echo ''.$arr['forum_name'].'
'.$arr['forum_des'].' +echo ''.stripslashes($arr['forum_name']).'
'.stripslashes($arr['forum_des']).' '.$countop.' '.$lpost.'

'.$owner['username'].' Show last post '; @@ -156,7 +156,7 @@ if($database->CheckEditRes($aid)=="1"){ }else{ echo 'Thread without new posts'; } -echo ''.$arr['forum_name'].'
'.$arr['forum_des'].' +echo ''.stripslashes($arr['forum_name']).'
'.stripslashes($arr['forum_des']).' '.$countop.' '.$lpost.'

'.$owner['username'].' Show last post '; @@ -207,7 +207,7 @@ if($database->CheckEditRes($aid)=="1"){ }else{ echo 'Thread without new posts'; } -echo ''.$arr['forum_name'].'
'.$arr['forum_des'].' +echo ''.stripslashes($arr['forum_name']).'
'.stripslashes($arr['forum_des']).' '.$countop.' '.$lpost.'

'.$owner['username'].' Show last post '; diff --git a/Templates/Alliance/Forum/forum_3.tpl b/Templates/Alliance/Forum/forum_3.tpl index fa1232ce..cb28dad8 100644 --- a/Templates/Alliance/Forum/forum_3.tpl +++ b/Templates/Alliance/Forum/forum_3.tpl @@ -4,7 +4,7 @@ if($session->access!=BANNED){ $topic_id = $_GET['idt']; $show_topic = $database->ShowTopic($topic_id); foreach($show_topic as $topi) { - $title = $topi['title']; + $title = stripslashes($topi['title']); } ?> @@ -29,9 +29,9 @@ foreach($show_topic as $topi) { $show_cat = $database->ForumCat($session->alliance); foreach($show_cat as $cats) { if($cats['id'] == $_GET['idf']){ - echo ''; + echo ''; }else{ - echo ''; + echo ''; } } ?> diff --git a/Templates/Alliance/Forum/forum_4.tpl b/Templates/Alliance/Forum/forum_4.tpl index 20e3cb3d..e8d3af1f 100644 --- a/Templates/Alliance/Forum/forum_4.tpl +++ b/Templates/Alliance/Forum/forum_4.tpl @@ -2,7 +2,7 @@ //////////////// made by TTMTT //////////////// if($session->access!=BANNED){ $cat_id = $_GET['fid']; -$CatName = $database->ForumCatName($cat_id); +$CatName = stripslashes($database->ForumCatName($cat_id)); $ChckTopic = $database->CheckCatTopic($cat_id); $Topics = $database->ForumCatTopic($cat_id); $TopicsStick = $database->ForumCatTopicStick($cat_id); @@ -46,7 +46,7 @@ if($ChckTopic){ echo 'Important Thread without new posts'; } echo ' - '.$arrs['title'].'
+ '.stripslashes($arrs['title']).'
'.$CountPosts.' '.$post_dates.'
'.$owner_topics['username'].' Show last post '; @@ -80,7 +80,7 @@ if($ChckTopic){ echo 'Thread without new posts'; } echo ' - '.$arr['title'].'
+ '.stripslashes($arr['title']).'
'.$CountPost.' '.$post_date.'
'.$owner_topic['username'].' Show last post '; diff --git a/Templates/Alliance/Forum/forum_6.tpl b/Templates/Alliance/Forum/forum_6.tpl index 19e6ae74..8b12916a 100644 --- a/Templates/Alliance/Forum/forum_6.tpl +++ b/Templates/Alliance/Forum/forum_6.tpl @@ -8,7 +8,7 @@ $posts = $database->ShowPost($tid); foreach($topics as $arr) { $cat_id = $arr['cat']; $owner = $database->getUserArray($arr['owner'],1); - $CatName = $database->ForumCatName($cat_id); + $CatName = stripslashes($database->ForumCatName($cat_id)); $allianceinfo = $database->getAlliance($owner['alliance']); } $date = date('m/d/y H:i a',$arr['date']); @@ -29,11 +29,11 @@ if($displayarray['tribe'] == 1) { $input = $arr['post']; $bbcoded = $input; include("GameEngine/BBCode.php"); -$bbcode_topic = nl2br($bbcoded); +$bbcode_topic = stripslashes(nl2br($bbcoded)); ?>

Alliance ->

- + @@ -76,7 +76,7 @@ foreach($posts as $po) { $allianceinfo = $database->getAlliance($owner['alliance']); $input = $po['post']; include("GameEngine/BBCode.php"); - $bbcode_post = nl2br($bbcoded); + $bbcode_post = stripslashes(nl2br($bbcoded)); echo '
Author
'.$owner['username'].'
'.$allianceinfo['tag'].'
Posts: '.$countAu.'
diff --git a/Templates/Alliance/Forum/forum_7.tpl b/Templates/Alliance/Forum/forum_7.tpl index 8a0f7c6b..8328c765 100644 --- a/Templates/Alliance/Forum/forum_7.tpl +++ b/Templates/Alliance/Forum/forum_7.tpl @@ -4,7 +4,7 @@ if($session->access!=BANNED){ $tid = $_GET['tid']; $topics = $database->ShowTopic($tid); foreach($topics as $arr) { - $title = $arr['title']; + $title = stripslashes($arr['title']); } ?> diff --git a/Templates/Alliance/Forum/forum_8.tpl b/Templates/Alliance/Forum/forum_8.tpl index eab35769..5d21c911 100644 --- a/Templates/Alliance/Forum/forum_8.tpl +++ b/Templates/Alliance/Forum/forum_8.tpl @@ -3,8 +3,8 @@ if($session->access!=BANNED){ $forum_data = $database->ForumCatEdit($_GET['idf']); foreach($forum_data as $cats) { - $cat_name = $cats['forum_name']; - $cat_des = $cats['forum_des']; + $cat_name = stripslashes($cats['forum_name']); + $cat_des = stripslashes($cats['forum_des']); } ?>