Fixed some report bugs

+Added the report type 23, which indicates a defence during festive days
+Festive reports in the alliance no longer duplicates
+Festive reports in the village view no longer duplicates
+Fixed a bug that didn't permit to read an allied report

General:
-Removed the possibility to view an inexistent village
+Some minor improovements
This commit is contained in:
iopietro
2018-04-21 17:28:20 +02:00
parent 65f7ad1721
commit 996f011666
9 changed files with 92 additions and 87 deletions
+4 -5
View File
@@ -78,11 +78,10 @@ else{
<?php include("Templates/header.tpl"); ?>
<div id="mid">
<?php include("Templates/menu.tpl");
if(isset($_GET['d']) && isset($_GET['c'])) {
if($generator->getMapCheck($_GET['d']) == $_GET['c']) {
include("Templates/Map/vilview.tpl");
}
else {
if(isset($_GET['d']) && !empty($_GET['d']) && isset($_GET['c']) && !empty($_GET['c'])) {
if($generator->getMapCheck($_GET['d']) == $_GET['c']) include("Templates/Map/vilview.tpl");
else
{
header("Location: dorf1.php");
exit;
}