mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-14 16:46:08 +00:00
delete more change of songeriux (i prefer that users can register in any language), improve forum and BBcode (not 100%, but fix some bugs)
This commit is contained in:
@@ -12,7 +12,7 @@ foreach($posts as $pos) {
|
||||
$poss = $pos['post'];
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['idt']; ?>">
|
||||
<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']; ?>">
|
||||
<input type="hidden" name="s" value="2">
|
||||
<input type="hidden" name="pod" value="<?php echo $_GET['pod']; ?>">
|
||||
<input type="hidden" name="editpost" value="1">
|
||||
|
||||
@@ -46,9 +46,9 @@ 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&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'].'">'.$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&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 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&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'].'">'.$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>';
|
||||
|
||||
@@ -96,7 +96,7 @@ echo '<div class="clear dotted"></div><div class="text">'.$bbcode_post.'</div></
|
||||
</tbody></table><div style="margin-top: 15px;">
|
||||
<?php
|
||||
if(empty($arr[close])){
|
||||
echo '<a href="allianz.php?s=2&pid='.$arr['alliance'].'&tid='.$arr['id'].'&ac=newpost"><img id="fbtn_reply" class="dynamic_img"src="img/x.gif" alt="Replies" /></a>';
|
||||
echo '<a href="allianz.php?s=2&fid2='.$arr['cat'].'&pid='.$arr['alliance'].'&tid='.$arr['id'].'&ac=newpost"><img id="fbtn_reply" class="dynamic_img"src="img/x.gif" alt="Replies" /></a>';
|
||||
}
|
||||
if($opt[opt5] == 1){
|
||||
echo '<a href="allianz.php?s=2&pid='.$aid.'&tid='.$arr['id'].'&admin=switch_admin" title="Toggle Admin mode"><img class="switch_admin dynamic_img" src="img/x.gif" alt="Toggle Admin mode" /></a>';
|
||||
|
||||
@@ -7,7 +7,7 @@ foreach($topics as $arr) {
|
||||
$title = $arr['title'];
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['tid']; ?>">
|
||||
<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']; ?>">
|
||||
<input type="hidden" name="s" value="2">
|
||||
<input type="hidden" name="pid" value="<?php echo $_GET['pid']; ?>">
|
||||
<input type="hidden" name="tid" value="<?php echo $_GET['tid']; ?>">
|
||||
|
||||
@@ -8,7 +8,7 @@ foreach($topics as $top) {
|
||||
$ans = $top['post'];
|
||||
}
|
||||
?>
|
||||
<form method="post" name="post" action="allianz.php?s=2&pid=<?php echo $_GET['pid']; ?>&tid=<?php echo $_GET['idt']; ?>">
|
||||
<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']; ?>">
|
||||
<input type="hidden" name="s" value="2">
|
||||
<input type="hidden" name="tid" value="<?php echo $_GET['idt']; ?>">
|
||||
<input type="hidden" name="editans" value="1">
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
//////////////// made by TTMTT ////////////////
|
||||
if(isset($aid)) {
|
||||
$aid = $aid;
|
||||
}
|
||||
else {
|
||||
}else if($_GET['fid']){
|
||||
$aid = $database->ForumCatAlliance($_GET['fid']);
|
||||
}else if($_GET['fid2']){
|
||||
$aid = $database->ForumCatAlliance($_GET['fid2']);
|
||||
}else{
|
||||
$aid = $session->alliance;
|
||||
}
|
||||
|
||||
$allianceinfo = $database->getAlliance($aid);
|
||||
$opt = $database->getAlliPermissions($session->uid, $aid);
|
||||
echo "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>";
|
||||
@@ -55,9 +59,10 @@ if(isset($_POST['newpost'])){
|
||||
$post = htmlspecialchars($post);
|
||||
$tids = $_POST['tid'];
|
||||
$owner = $session->uid;
|
||||
|
||||
if($post != ""){
|
||||
$database->UpdatePostDate($tids);
|
||||
$database->CreatPost($post,$tids,$owner);
|
||||
}
|
||||
}
|
||||
if(isset($_POST['editans'])){
|
||||
$post = $_POST['text'];
|
||||
|
||||
Reference in New Issue
Block a user