feat: Admin page titles update to reflect subpages

This commit is contained in:
Martin Ambrus
2017-10-20 17:29:34 +02:00
parent 0737b5879d
commit e519826621
20 changed files with 307 additions and 26 deletions
-1
View File
@@ -15,7 +15,6 @@ error_reporting(E_ALL ^ E_NOTICE);
$id = $_GET['uid'];
if(isset($id))
{
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
-2
View File
@@ -14,8 +14,6 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$abtech = $database->getABTech($id); // Armory/blacksmith level
$units = $database->getUnit($village['wref']);
$coor = $database->getCoor($village['wref']);
-2
View File
@@ -14,8 +14,6 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$units = $database->getUnit($village['wref']);
$coor = $database->getCoor($village['wref']);
$tribe = $user['tribe'];
-1
View File
@@ -11,7 +11,6 @@
include_once("../GameEngine/Ranking.php");
if($_GET['uid'])
{
$user = $database->getUserArray($_GET['uid'],1);
$varray = $database->getProfileVillages($_GET['uid']);
if($user)
{
-1
View File
@@ -13,7 +13,6 @@ if (!isset($_SESSION)) {
}
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_GET['uid'];
$user = $database->getUserArray($id,1);
$dur=$user['protect']-time();
$protect=0;
if($dur>43200) {
-1
View File
@@ -12,7 +12,6 @@ if(isset($_GET['uid'])){
$id = (int) $_GET['uid'];
include_once("../GameEngine/Data/hero_full.php");
include_once("../GameEngine/Units.php");
$user = $database->getUserArray($id,1);
$result = mysqli_query($GLOBALS["link"], "SELECT * FROM " . TB_PREFIX . "hero WHERE `uid` = ".$id);
$hero_info = mysqli_fetch_array($result);
$hero = $units->Hero($id,1);
-1
View File
@@ -11,7 +11,6 @@
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
-1
View File
@@ -11,7 +11,6 @@
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
-2
View File
@@ -12,8 +12,6 @@
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$coor = $database->getCoor($village['wref']);
//$varray = $database->getProfileVillages($village['owner']);
//$type = $database->getVillageType($village['wref']);
-1
View File
@@ -11,7 +11,6 @@
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
-1
View File
@@ -13,7 +13,6 @@
$id = $_GET['uid'];
if(isset($id))
{
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
-2
View File
@@ -10,8 +10,6 @@
#################################################################################
$id = $_GET['did'];
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$coor = $database->getCoor($village['wref']);
$varray = $database->getProfileVillages($village['owner']);
$type = $database->getVillageType($village['wref']);
-1
View File
@@ -11,7 +11,6 @@
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
-2
View File
@@ -14,8 +14,6 @@ if(isset($id))
{
include_once("../GameEngine/Ranking.php");
$varmedal = $database->getProfileMedal($id);
$displayarray = $database->getUserArray($id,1);
$user=$displayarray;
$profiel="".$user['desc1']."".md5('skJkev3')."".$user['desc2']."";
$separator="../";
require("../Templates/Profile/medal.php");
-1
View File
@@ -2,7 +2,6 @@
$id = (int) $_GET['uid'];
if(isset($id))
{
$player = mysqli_fetch_assoc(mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."users WHERE id = $id"));
?>
<table cellpadding="1" cellspacing="1" id="member">
<thead>
-1
View File
@@ -2,7 +2,6 @@
$id = (int) $_GET['uid'];
if(isset($id))
{
$player = mysqli_fetch_assoc(mysqli_query($GLOBALS["link"], "SELECT * FROM ".TB_PREFIX."users WHERE id = $id"));
?>
<table cellpadding="1" cellspacing="1" id="member">
<thead>
-2
View File
@@ -15,8 +15,6 @@ error_reporting(0);
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$coor = $database->getCoor($village['wref']);
$varray = $database->getProfileVillages($village['owner']);
$type = $database->getVillageType($village['wref']);
-1
View File
@@ -2,7 +2,6 @@
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
?>
<br /><br />
<table id="profile">