mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-15 09:06:08 +00:00
+55
-49
@@ -20,19 +20,19 @@ $message->noticeType($_GET);
|
||||
$message->procNotice($_POST);
|
||||
if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['t'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']);
|
||||
exit;
|
||||
}else if(isset($_GET['vill']) && isset($_GET['id'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']."&vill=".$_GET['vill']."");
|
||||
exit;
|
||||
}else if($_GET['id']!=0) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']);
|
||||
exit;
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
exit;
|
||||
}
|
||||
if ( isset( $_GET['t'] ) ) {
|
||||
header( "Location: " . $_SERVER['PHP_SELF'] . "?t=" . $_GET['t'] );
|
||||
exit;
|
||||
} else if ( isset( $_GET['vill'] ) && isset( $_GET['id'] ) ) {
|
||||
header( "Location: " . $_SERVER['PHP_SELF'] . "?id=" . $_GET['id'] . "&vill=" . $_GET['vill'] . "" );
|
||||
exit;
|
||||
} else if ( $_GET['id'] != 0 ) {
|
||||
header( "Location: " . $_SERVER['PHP_SELF'] . "?id=" . $_GET['id'] );
|
||||
exit;
|
||||
} else {
|
||||
header( "Location: " . $_SERVER['PHP_SELF'] );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
@@ -92,44 +92,50 @@ if(isset($_GET['t'])) {
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if(isset($_GET['aid'])){
|
||||
if($_GET['aid']!=0){
|
||||
if($session->alliance==$_GET['aid']){
|
||||
if ( isset( $_GET['aid'] ) ) {
|
||||
|
||||
if(isset($_GET['id'])) {
|
||||
$ally = $database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'ally');
|
||||
if($session->alliance==$ally){
|
||||
$type = $database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'ntype');
|
||||
if($type!=10 or $type!=11 or $type!=12 or $type!=13 or $type!=14 or $type!=15 or $type!=16 or $type!=17){
|
||||
include("Templates/Notice/".$type."x.tpl");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( $_GET['aid'] != 0 ) {
|
||||
|
||||
if ( $session->alliance == $_GET['aid'] ) {
|
||||
|
||||
if ( isset( $_GET['id'] ) ) {
|
||||
$ally = $database->getNotice2( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ), 'ally' );
|
||||
|
||||
if ( $session->alliance == $ally ) {
|
||||
$type = $database->getNotice2( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ), 'ntype' );
|
||||
|
||||
if ( $type != 10 or $type != 11 or $type != 12 or $type != 13 or $type != 14 or $type != 15 or $type != 16 or $type != 17 ) {
|
||||
include( "Templates/Notice/" . $type . "x.tpl" );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ( isset( $_GET['vill'] ) ) {
|
||||
|
||||
if ( isset( $_GET['id'] ) ) {
|
||||
$ally = $database->getNotice2( $_GET['id'], 'ally' );
|
||||
|
||||
if ( $database->getNotice2( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ), 'uid' ) == $session->uid ) {
|
||||
$type = ( $message->readingNotice['ntype'] == 9 ) ? $message->readingNotice['archive'] : $message->readingNotice['ntype'];
|
||||
include( "Templates/Notice/" . $type . ".tpl" );
|
||||
} else if ( $session->alliance == $ally ) {
|
||||
$type = $database->getNotice2( $_GET['id'], 'ntype' );
|
||||
|
||||
if ( $type != 10 or $type != 11 or $type != 12 or $type != 13 or $type != 14 or $type != 15 or $type != 16 or $type != 17 ) {
|
||||
include( "Templates/Notice/" . $type . "x.tpl" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else if ( isset( $_GET['id'] ) ) {
|
||||
if ( $database->getNotice2( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ), 'uid' ) == $session->uid ) {
|
||||
$type = ( $message->readingNotice['ntype'] == 9 ) ? $message->readingNotice['archive'] : $message->readingNotice['ntype'];
|
||||
include( "Templates/Notice/" . $type . ".tpl" );
|
||||
}
|
||||
} else {
|
||||
include( "Templates/Notice/all.tpl" );
|
||||
}
|
||||
}else if(isset($_GET['vill'])){
|
||||
|
||||
if(isset($_GET['id'])) {
|
||||
$ally = $database->getNotice2($_GET['id'], 'ally');
|
||||
if($database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'uid') == $session->uid){
|
||||
$type = ($message->readingNotice['ntype'] == 9)? $message->readingNotice['archive'] : $message->readingNotice['ntype'];
|
||||
include("Templates/Notice/".$type.".tpl");
|
||||
}else if($session->alliance==$ally){
|
||||
$type = $database->getNotice2($_GET['id'], 'ntype');
|
||||
if($type!=10 or $type!=11 or $type!=12 or $type!=13 or $type!=14 or $type!=15 or $type!=16 or $type!=17){
|
||||
include("Templates/Notice/".$type."x.tpl");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}else if(isset($_GET['id'])) {
|
||||
if($database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'uid') == $session->uid){
|
||||
$type = ($message->readingNotice['ntype'] == 9)? $message->readingNotice['archive'] : $message->readingNotice['ntype'];
|
||||
include("Templates/Notice/".$type.".tpl");
|
||||
}
|
||||
} else {
|
||||
include("Templates/Notice/all.tpl");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user