General fixes

+Medals can now be deleted correctly
This commit is contained in:
iopietro
2018-06-11 01:21:12 +02:00
parent 8c2bedb164
commit e3632b9aa1
4 changed files with 73 additions and 94 deletions
+5 -14
View File
@@ -21,20 +21,14 @@ if(isset($id))
$varray = $database->getProfileVillages($id);
$refreshiconfrm = "../img/admin/refresh.png";
$refreshicon = "<img src=\"".$refreshiconfrm."\">";
if($user)
{
if($user){
$totalpop = 0;
foreach($varray as $vil)
{
$totalpop += $vil['pop'];
}
foreach($varray as $vil) $totalpop += $vil['pop'];
include('search2.tpl');
echo "<br />";
$deletion = false;
if($deletion)
{
include("playerdeletion.tpl");
}
if($deletion) include("playerdeletion.tpl");
include("playerinfo.tpl");
include("playerheroinfo.tpl");
@@ -88,9 +82,6 @@ if(isset($id))
</table>
<?php
}
else
{
include("404.tpl");
}
else include("404.tpl");
}
?>