mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-21 20:16:11 +00:00
@@ -62,7 +62,7 @@ $bbcode_topic = stripslashes(nl2br($bbcoded));
|
|||||||
<td class="pcontent"><div class="posted">created: <?php echo $date; ?></div>
|
<td class="pcontent"><div class="posted">created: <?php echo $date; ?></div>
|
||||||
<?php
|
<?php
|
||||||
if($database->CheckEditRes($aid)=="1"){
|
if($database->CheckEditRes($aid)=="1"){
|
||||||
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&pid='.$arr['alliance'].'&idf='.$arr['cat'].'&idt='.$arr['id'].'&admin=editans"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&pid='.$arr['alliance'].'&tid='.$arr['id'].'&admin=deltopic" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
|
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&pid='.$arr['alliance'].'&fid2='.$_GET['fid2'].'&idf='.$arr['cat'].'&idt='.$arr['id'].'&admin=editans"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&pid='.$arr['alliance'].'&tid='.$arr['id'].'&admin=deltopic" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="clear dotted"></div><div class="text"><?php echo $bbcode_topic; ?></div></td>
|
<div class="clear dotted"></div><div class="text"><?php echo $bbcode_topic; ?></div></td>
|
||||||
@@ -155,7 +155,7 @@ echo '<tr><td class="pinfo"><a class="name" href="spieler.php?uid='.$po['owner']
|
|||||||
</td>
|
</td>
|
||||||
<td class="pcontent"><div class="posted">created: '.$date.'</div>';
|
<td class="pcontent"><div class="posted">created: '.$date.'</div>';
|
||||||
if($database->CheckEditRes($aid)=="1"){
|
if($database->CheckEditRes($aid)=="1"){
|
||||||
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&pid='.$arr['alliance'].'&idt='.$_GET['tid'].'&pod='.$po['id'].'&admin=editpost"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&pid='.$arr['alliance'].'&pod='.$po['id'].'&tid='.$_GET['tid'].'&admin=delpost" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
|
echo '<div class="admin"><a class="edit" href="allianz.php?s=2&pid='.$arr['alliance'].'&fid2='.$_GET['fid2'].'&idt='.$_GET['tid'].'&pod='.$po['id'].'&admin=editpost"><img src="img/x.gif" title="edit" alt="edit" /></a><a class="fdel" href="?s=2&pid='.$arr['alliance'].'&pod='.$po['id'].'&tid='.$_GET['tid'].'&admin=delpost" onClick="return confirm(\'confirm delete?\');"><img src="img/x.gif" title="delete" alt="delete" /></a></div><br />';
|
||||||
}
|
}
|
||||||
echo '<div class="clear dotted"></div><div class="text">'.$bbcode_post.'</div></td>
|
echo '<div class="clear dotted"></div><div class="text">'.$bbcode_post.'</div></td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|||||||
@@ -297,10 +297,12 @@ if(isset($_POST['editpost'])){
|
|||||||
$text = preg_replace('/\[coor'.$i.'\]/', '[coor0]', $text);
|
$text = preg_replace('/\[coor'.$i.'\]/', '[coor0]', $text);
|
||||||
$text = preg_replace('/\[\/coor'.$i.'\]/', '[/coor0]', $text);
|
$text = preg_replace('/\[\/coor'.$i.'\]/', '[/coor0]', $text);
|
||||||
}
|
}
|
||||||
for($i=0;$i<=$text['report0'];$i++){
|
if (isset($text['report0'])) {
|
||||||
$text = preg_replace('/\[report'.$i.'\]/', '[report0]', $text);
|
for ( $i = 0; $i <= $text['report0']; $i ++ ) {
|
||||||
$text = preg_replace('/\[\/report'.$i.'\]/', '[/report0]', $text);
|
$text = preg_replace( '/\[report' . $i . '\]/', '[report0]', $text );
|
||||||
}
|
$text = preg_replace( '/\[\/report' . $i . '\]/', '[/report0]', $text );
|
||||||
|
}
|
||||||
|
}
|
||||||
$posts_id = $_POST['pod'];
|
$posts_id = $_POST['pod'];
|
||||||
if($text != ""){
|
if($text != ""){
|
||||||
if(!preg_match('/\[message\]/',$text) && !preg_match('/\[\/message\]/',$text)){
|
if(!preg_match('/\[message\]/',$text) && !preg_match('/\[\/message\]/',$text)){
|
||||||
|
|||||||
Reference in New Issue
Block a user