mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-13 08:06:06 +00:00
some fix for ally forum
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&fid2=<?php echo $_GET['fid2']; ?>&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['idt']; ?>">
|
||||
|
||||
@@ -54,7 +54,7 @@ if($database->CheckEditRes($aid)=="1"){
|
||||
}else{
|
||||
echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
|
||||
}
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.$arr['forum_name'].'">'.$arr['forum_name'].'</a><br />'.$arr['forum_des'].'</td>
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.stripslashes($arr['forum_name']).'">'.stripslashes($arr['forum_name']).'</a><br />'.stripslashes($arr['forum_des']).'</td>
|
||||
<td class="cou">'.$countop.'</td>
|
||||
<td class="last">'.$lpost.'</span><span><br /><a href="spieler.php?uid='.$owner['id'].'">'.$owner['username'].'</a> <img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></td>
|
||||
</tr>';
|
||||
@@ -105,7 +105,7 @@ if($database->CheckEditRes($aid)=="1"){
|
||||
}else{
|
||||
echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
|
||||
}
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.$arr['forum_name'].'">'.$arr['forum_name'].'</a><br />'.$arr['forum_des'].'</td>
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.stripslashes($arr['forum_name']).'">'.stripslashes($arr['forum_name']).'</a><br />'.stripslashes($arr['forum_des']).'</td>
|
||||
<td class="cou">'.$countop.'</td>
|
||||
<td class="last">'.$lpost.'</span><span><br /><a href="spieler.php?uid='.$owner['id'].'">'.$owner['username'].'</a> <img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></td>
|
||||
</tr>';
|
||||
@@ -156,7 +156,7 @@ if($database->CheckEditRes($aid)=="1"){
|
||||
}else{
|
||||
echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
|
||||
}
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.$arr['forum_name'].'">'.$arr['forum_name'].'</a><br />'.$arr['forum_des'].'</td>
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.stripslashes($arr['forum_name']).'">'.stripslashes($arr['forum_name']).'</a><br />'.stripslashes($arr['forum_des']).'</td>
|
||||
<td class="cou">'.$countop.'</td>
|
||||
<td class="last">'.$lpost.'</span><span><br /><a href="spieler.php?uid='.$owner['id'].'">'.$owner['username'].'</a> <img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></td>
|
||||
</tr>';
|
||||
@@ -207,7 +207,7 @@ if($database->CheckEditRes($aid)=="1"){
|
||||
}else{
|
||||
echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
|
||||
}
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.$arr['forum_name'].'">'.$arr['forum_name'].'</a><br />'.$arr['forum_des'].'</td>
|
||||
echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$aid.'" title="'.stripslashes($arr['forum_name']).'">'.stripslashes($arr['forum_name']).'</a><br />'.stripslashes($arr['forum_des']).'</td>
|
||||
<td class="cou">'.$countop.'</td>
|
||||
<td class="last">'.$lpost.'</span><span><br /><a href="spieler.php?uid='.$owner['id'].'">'.$owner['username'].'</a> <img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></td>
|
||||
</tr>';
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
?>
|
||||
<form method="post" action="allianz.php?s=2&fid=<?php echo $_GET['idf']; ?>&pid=<?php echo $aid; ?>">
|
||||
@@ -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 '<option value="'.$cats['id'].'" selected>'.$cats['forum_name'].'</option>';
|
||||
echo '<option value="'.$cats['id'].'" selected>'.stripslashes($cats['forum_name']).'</option>';
|
||||
}else{
|
||||
echo '<option value="'.$cats['id'].'">'.$cats['forum_name'].'</option>';
|
||||
echo '<option value="'.$cats['id'].'">'.stripslashes($cats['forum_name']).'</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -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 '<img class="folder_sticky" src="img/x.gif" alt="Important Thread without new posts" title="Important Thread without new posts" />';
|
||||
}
|
||||
echo '</td>
|
||||
<td class="tit"><a href="allianz.php?s=2&fid2='.$arrs['cat'].'&pid='.$aid.'&tid='.$arrs['id'].'">'.$arrs['title'].'</a><br></td>
|
||||
<td class="tit"><a href="allianz.php?s=2&fid2='.$arrs['cat'].'&pid='.$aid.'&tid='.$arrs['id'].'">'.stripslashes($arrs['title']).'</a><br></td>
|
||||
<td class="cou">'.$CountPosts.'</td>
|
||||
<td class="last">'.$post_dates.'<br /><a href="spieler.php?uid='.$arrs[owner].'">'.$owner_topics['username'].'</a> <a href="allianz.php?s=2&fid2='.$arrs['cat'].'&pid='.$aid.'&tid='.$arrs['id'].'&seite=max"><img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></a>
|
||||
</td></tr>';
|
||||
@@ -80,7 +80,7 @@ if($ChckTopic){
|
||||
echo '<img class="folder" src="img/x.gif" title="Thread without new posts" alt="Thread without new posts">';
|
||||
}
|
||||
echo '</td>
|
||||
<td class="tit"><a href="allianz.php?s=2&fid2='.$arr['cat'].'&pid='.$aid.'&tid='.$arr['id'].'">'.$arr['title'].'</a><br></td>
|
||||
<td class="tit"><a href="allianz.php?s=2&fid2='.$arr['cat'].'&pid='.$aid.'&tid='.$arr['id'].'">'.stripslashes($arr['title']).'</a><br></td>
|
||||
<td class="cou">'.$CountPost.'</td>
|
||||
<td class="last">'.$post_date.'<br /><a href="spieler.php?uid='.$arr['owner'].'">'.$owner_topic['username'].'</a> <a href="allianz.php?s=2&aid='.$aid.'&tid='.$arr['id'].'&seite=max"><img class="latest_reply" src="img/x.gif" alt="Show last post" title="Show last post" /></a>
|
||||
</td></tr>';
|
||||
|
||||
@@ -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));
|
||||
?>
|
||||
<h4><a href="allianz.php?s=2&pid=<?php echo $arr['alliance']; ?>">Alliance</a> -> <a href="allianz.php?s=2&pid=<?php echo $arr['alliance']; ?>&fid=<?php echo $arr['cat']; ?>"><?php echo $CatName; ?></a></h4><table cellpadding="1" cellspacing="1" id="posts"><thead>
|
||||
<tr>
|
||||
<th colspan="2"><?php echo $arr['title']; ?></th>
|
||||
<th colspan="2"><?php echo stripslashes($arr['title']); ?></th>
|
||||
|
||||
</tr><tr>
|
||||
<td>Author</td>
|
||||
@@ -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 '<tr><td class="pinfo"><a class="name" href="spieler.php?uid='.$po['owner'].'">'.$owner['username'].'</a><br /><a href="allianz.php?aid='.$allianceinfo['id'].'">'.$allianceinfo['tag'].'</a><br />
|
||||
Posts: '.$countAu.'<br />
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&fid2=<?php echo $_GET['fid2']; ?>&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['tid']; ?>">
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
?>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
@@ -4,8 +4,8 @@ if($session->access!=BANNED){
|
||||
$topic_id = $_GET['idt'];
|
||||
$topics = $database->ShowTopic($topic_id);
|
||||
foreach($topics as $top) {
|
||||
$title = $top['title'];
|
||||
$ans = $top['post'];
|
||||
$title = stripslashes($top['title']);
|
||||
$ans = stripslashes($top['post']);
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&fid2=<?php echo $_GET['fid2']; ?>&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['idt']; ?>">
|
||||
|
||||
Reference in New Issue
Block a user