diff --git a/Admin/Mods/addTroops.php b/Admin/Mods/addTroops.php new file mode 100644 index 00000000..bf9f4f43 --- /dev/null +++ b/Admin/Mods/addTroops.php @@ -0,0 +1,106 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['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']); +$fdata = $database->getResourceLevel($village['wref']); +$units = $database->getUnit($village['wref']); + +$u1 = $_POST['u1']; +$u2 = $_POST['u2']; +$u3 = $_POST['u3']; +$u4 = $_POST['u4']; +$u5 = $_POST['u5']; +$u6 = $_POST['u6']; +$u7 = $_POST['u7']; +$u8 = $_POST['u8']; +$u9 = $_POST['u9']; +$u10 = $_POST['u10']; +//////////////////// +$u11 = $_POST['u11']; +$u12 = $_POST['u12']; +$u13 = $_POST['u13']; +$u14 = $_POST['u14']; +$u15 = $_POST['u15']; +$u16 = $_POST['u16']; +$u17 = $_POST['u17']; +$u18 = $_POST['u18']; +$u19 = $_POST['u19']; +$u20 = $_POST['u20']; +//////////////////// +$u21 = $_POST['u21']; +$u22 = $_POST['u22']; +$u23 = $_POST['u23']; +$u24 = $_POST['u24']; +$u25 = $_POST['u25']; +$u26 = $_POST['u26']; +$u27 = $_POST['u27']; +$u28 = $_POST['u28']; +$u29 = $_POST['u29']; +$u30 = $_POST['u30']; +//////////////////// +$u31 = $_POST['u31']; +$u32 = $_POST['u32']; +$u33 = $_POST['u33']; +$u34 = $_POST['u34']; +$u35 = $_POST['u35']; +$u36 = $_POST['u36']; +$u37 = $_POST['u37']; +$u38 = $_POST['u38']; +$u39 = $_POST['u39']; +$u40 = $_POST['u40']; +//////////////////// +$u41 = $_POST['u41']; +$u42 = $_POST['u42']; +$u43 = $_POST['u43']; +$u44 = $_POST['u44']; +$u45 = $_POST['u45']; +$u46 = $_POST['u46']; +$u47 = $_POST['u47']; +$u48 = $_POST['u48']; +$u49 = $_POST['u49']; +$u50 = $_POST['u50']; + +if($user['tribe'] == 1){ +$q = "UPDATE ".TB_PREFIX."units SET u1 = $u1, u2 = $u2, u3 = $u3, u4 = $u4, u5 = $u5, u6 = $u6, u7 = $u7, u8 = $u8, u9 = $u9, u10 = $u10 WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 2){ +$q = "UPDATE ".TB_PREFIX."units SET u11 = '$u11', u12 = '$u12', u13 = '$u13', u14 = '$u14', u15 = '$u15', u16 = '$u16', u17 = '$u17', u18 = '$u18', u19 = '$u19', u20 = '$u20' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 3){ +$q = "UPDATE ".TB_PREFIX."units SET u21 = '$u21', u22 = '$u22', u23 = '$u23', u24 = '$u24', u25 = '$u25', u26 = '$u26', u27 = '$u27', u28 = '$u28', u29 = '$u29', u30 = '$u30' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 4){ +$q = "UPDATE ".TB_PREFIX."units SET u31 = '$u31', u32 = '$u32', u33 = '$u33', u34 = '$u34', u35 = '$u35', u36 = '$u36', u37 = '$u37', u38 = '$u38', u39 = '$u39', u40 = '$u40' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 5){ +$q = "UPDATE ".TB_PREFIX."units SET u41 = '$u41', u42 = '$u42', u43 = '$u43', u44 = '$u44', u45 = '$u45', u46 = '$u46', u47 = '$u47', u48 = '$u48', u49 = '$u49', u50 = '$u50' WHERE vref = $id"; +mysql_query($q); +} + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed troop anmount in village $id ',".time().")"); + +header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d"); + +?> diff --git a/Templates/Admin/gold.tpl b/Admin/Mods/cp.php similarity index 50% rename from Templates/Admin/gold.tpl rename to Admin/Mods/cp.php index c90eefe4..54c77539 100644 --- a/Templates/Admin/gold.tpl +++ b/Admin/Mods/cp.php @@ -1,4 +1,5 @@ -access < ADMIN) die("Access Denied: You are not Admin!"); -if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); +$id = $_POST['id']; +$admid = $_POST['admid']; +mysql_query("UPDATE ".TB_PREFIX."users SET cp = cp + ".$_POST['cp']." WHERE id = ".$id.""); -?> - -
- -








-
How much gold do you want to give to the users?
-

 Gold  insert number and press 'enter'
-getUserField($id,"username",0); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Cultural Points to user $name ',".time().")"); - echo '

Gold Added'; - } - ?> \ No newline at end of file +header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&cp=ok"); +?> \ No newline at end of file diff --git a/Admin/Mods/deletemedalbyuser.php b/Admin/Mods/deletemedalbyuser.php new file mode 100644 index 00000000..82b72ed5 --- /dev/null +++ b/Admin/Mods/deletemedalbyuser.php @@ -0,0 +1,23 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + + + +$userid = $_POST['userid']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$userid.""); +?> \ No newline at end of file diff --git a/Admin/Mods/deletemedalbyweek.php b/Admin/Mods/deletemedalbyweek.php new file mode 100644 index 00000000..76183dda --- /dev/null +++ b/Admin/Mods/deletemedalbyweek.php @@ -0,0 +1,23 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + + + +$deleteweek = $_POST['medalweek']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delmedal"); +?> \ No newline at end of file diff --git a/Admin/Mods/editUser.php b/Admin/Mods/editUser.php new file mode 100644 index 00000000..a0187c64 --- /dev/null +++ b/Admin/Mods/editUser.php @@ -0,0 +1,24 @@ +getUserArray($id,1); +mysql_query("UPDATE ".TB_PREFIX."users SET email = '".$_POST['email']."', tribe = ".$_POST['tribe'].", location = '".$_POST['location']."', desc1 = '".$_POST['desc1']."', `desc2` = '".$_POST['desc2']."' WHERE id = ".$_POST['id'].""); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed ".$user['username']."\'s profile',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/Admin/Mods/gold.php b/Admin/Mods/gold.php new file mode 100644 index 00000000..a2656428 --- /dev/null +++ b/Admin/Mods/gold.php @@ -0,0 +1,26 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$gold = $_POST['gold']; + + $q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; + mysql_query($q); + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $gold gold to all users',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=gold&g"); +?> \ No newline at end of file diff --git a/Admin/Mods/gold_1.php b/Admin/Mods/gold_1.php new file mode 100644 index 00000000..0f71d61a --- /dev/null +++ b/Admin/Mods/gold_1.php @@ -0,0 +1,25 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$admid = $_POST['admid']; +mysql_query("UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id = ".$id.""); + +$name = $database->getUserField($id,"username",0); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['gold']." gold to user $name ',".time().")"); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&g=ok"); +?> \ No newline at end of file diff --git a/Admin/Mods/medals.php b/Admin/Mods/medals.php new file mode 100644 index 00000000..0a2cdbad --- /dev/null +++ b/Admin/Mods/medals.php @@ -0,0 +1,34 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$medalid = $_POST['medalid']; +$uid = $_POST['uid']; + +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE id = ".$medalid.""); + +$name = mysql_query("SELECT name FROM ".TB_PREFIX."users WHERE id= ".$uid.""); +$name = mysql_result($name, 0); + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Deleted medal id [#".$medalid."] from the user $name ',".time().")"); + + +$deleteweek = $_POST['medalweek']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/Admin/Mods/renameVillage.php b/Admin/Mods/renameVillage.php new file mode 100644 index 00000000..7ff3c77b --- /dev/null +++ b/Admin/Mods/renameVillage.php @@ -0,0 +1,25 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$did = $_POST['did']; +$name = $_POST['villagename']; +$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did"; + +mysql_query($sql); + +header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name.""); +?> \ No newline at end of file diff --git a/Admin/Mods/sendMessage.php b/Admin/Mods/sendMessage.php new file mode 100644 index 00000000..82ec74cb --- /dev/null +++ b/Admin/Mods/sendMessage.php @@ -0,0 +1,26 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$uid = $_POST['uid']; +$topic = $_POST['topic']; +$message = $_POST['message']; +$time = time(); + +$query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')"; + +mysql_query($query); + +header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); +?> \ No newline at end of file diff --git a/Admin/Templates/404.tpl b/Admin/Templates/404.tpl new file mode 100644 index 00000000..af7953cb --- /dev/null +++ b/Admin/Templates/404.tpl @@ -0,0 +1,19 @@ + +
+
+

404 - File not found

+ Not Found
+

We looked 404 times already but can't find anything, Not even an X marking the spot.

+

This system is not complete yet. So the page probably does not exist.


+
+
\ No newline at end of file diff --git a/Admin/Templates/Newmessage.tpl b/Admin/Templates/Newmessage.tpl new file mode 100644 index 00000000..5001d0fd --- /dev/null +++ b/Admin/Templates/Newmessage.tpl @@ -0,0 +1,82 @@ +getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $varmedal = $database->getProfileMedal($id); ?> + + + + +

Compose New Message to

+ +
+
+
+
+ + +
+ +
+
+
+
+
+
+
+
+
+
+ +
+

+ +

+
+
+


+
+ Message Sent
"; + } + else + { + echo ''; + } +} +else +{ + echo "

Not found. Go Back"; +}?> \ No newline at end of file diff --git a/Admin/Templates/[]inactive.tpl b/Admin/Templates/[]inactive.tpl new file mode 100644 index 00000000..88a72368 --- /dev/null +++ b/Admin/Templates/[]inactive.tpl @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + getUserField($active[$i]['username'],'id',1); + $varray = $database->getProfileVillages($uid); + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } + if($active[$i]['tribe'] == 1) + { + $tribe = "Roman"; + $img = ""; + } + else if($active[$i]['tribe'] == 2) + { + $tribe = "Teuton"; + $img = "1"; + } + else if($active[$i]['tribe'] == 3) + { + $tribe = "Gaul"; + $img = "2"; + } + echo " + + + + + + + + + "; + } + ?> + +
Inactive users
Name [access]TimeTribePopulationVillagesGold
".$active[$i]['username']." [".$active[$i]['access']."]".date("H:i:s",$active[$i]['timestamp'])."\"$tribe\"".$totalpop."".count($varray)."\"Gold\" ".$active[$i]['gold']."
\ No newline at end of file diff --git a/Templates/Admin/addTroops.tpl b/Admin/Templates/addTroops.tpl similarity index 72% rename from Templates/Admin/addTroops.tpl rename to Admin/Templates/addTroops.tpl index 7e9c78b9..670a53b0 100644 --- a/Templates/Admin/addTroops.tpl +++ b/Admin/Templates/addTroops.tpl @@ -10,83 +10,75 @@ ## ## ################################################################################# -include("GameEngine/Lang/".LANG.".php"); +include("../GameEngine/Lang/".LANG.".php"); if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); - - $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']); -$fdata = $database->getResourceLevel($village['wref']); -$units = $database->getUnit($village['wref']); - -?> - +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']); + $fdata = $database->getResourceLevel($village['wref']); + $units = $database->getUnit($village['wref']); ?> + - - - - - + - + - + - + - + - + - + - + - + - + @@ -94,215 +86,215 @@ $units = $database->getUnit($village['wref']); else if($user['tribe'] == 2){ ?> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
Edit troops
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:

-
+


Troops edited'; - } ?>
+ } ?> \ No newline at end of file diff --git a/Admin/Templates/add_village.tpl b/Admin/Templates/add_village.tpl new file mode 100644 index 00000000..cc07c358 --- /dev/null +++ b/Admin/Templates/add_village.tpl @@ -0,0 +1,41 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Add Village
Coordinates (X|Y)
X:
Y:
+
\ No newline at end of file diff --git a/Admin/Templates/admin_log.tpl b/Admin/Templates/admin_log.tpl new file mode 100644 index 00000000..87424b29 --- /dev/null +++ b/Admin/Templates/admin_log.tpl @@ -0,0 +1,56 @@ + + + + + + <?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - TravianX'; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - TravianX'; } ?> + + + + + + + + + + + + + + + + + + + + +getAdminLog()); + $log = $database->getAdminLog(); + for($i=0;$i<$no;$i++) { + $admid = $log[$i]['user']?> + ------------------------------------
+ Log ID:
+ Admin: getUserField($admid,"username",0); + if($user == 'Multihunter') { + echo 'CONTROL PANEL'; + } else { echo ''.$user.''; } + ?>
+ Log:
+ Date:
+ + + + diff --git a/Admin/Templates/alliance.tpl b/Admin/Templates/alliance.tpl new file mode 100644 index 00000000..dbe30331 --- /dev/null +++ b/Admin/Templates/alliance.tpl @@ -0,0 +1,371 @@ +getAlliance($_GET['aid']); + $aliusers = $database->getAllMember($_GET['aid']); + if($alidata and $aliusers) + { + foreach($aliusers as $member) + { + $totalpop += $database->getVSumField($member['id'],"pop"); + } ?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Alliance
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + +
Tag
Name
Rank???
Points
Members
Alliance FoundergetUserField($alidata['leader'],"username",0); ?>
Alliance Positions
Position:'.$player['username'].'
'.$row['rank'].'
+ +
Capacity + $max) + { + $color = "red"; + } + else + { + $color = "blue"; + } + echo "($now/$max)"; + ?> +
» Edit Alliance
» Delete Alliance
+
+ +
+
+
+
+ +
+
+ + + + + + + + + + + + + + getVSumField($user['id'],"pop"); + $TotalVillages = $database->getProfileVillages($user['id']); + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + if($aid == $session->alliance) + { + if ((time()-600) < $user['timestamp']) + { + // 0 Min - 10 Min + echo ""; + } + elseif ((time()-86400) < $user['timestamp'] && (time()-600) > $user['timestamp']) + { + // 10 Min - 1 Days + echo ""; + } + elseif ((time()-259200) < $user['timestamp'] && (time()-86400) > $user['timestamp']) + { + // 1-3 Days + echo ""; + } + elseif ((time()-604800) < $user['timestamp'] && (time()-259200) > $user['timestamp']) + { + echo ""; + } + else + { + echo ""; + } + } + echo " "; + } + ?> + +
 PlayerPopulationVillages 
".$rank.".".$user['username']."".$TotalUserPop."".count($TotalVillages)."nownownownownow
+

+ + + + + + + + + + + + + + + '; + } + ?> + +
Alliance News
EventTime
'.$row['comment'].''.date('d:m:Y H:i', $row['date']).'
+

+ +

Not Sure this Diplomacy is correct, but I think it is

+
+ + + + + + + + + + + + "; } + if($row['accepted'] ==1) { $accepted = ""; } + + $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Diplomacy Sent
Recipient AllianceTypeAccepted
'.$ally['tag'].''.$type.''.$accepted.'
+

+ + + + + + + + + + + + + "; } + if($row['accepted'] ==1) { $accepted = ""; } + + $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Diplomacy Recieved
From AllianceTypeAccepted
'.$ally['tag'].''.$type.''.$accepted.'
+ +

+ + + + + + + + + + + + + "; } + if($row['accepted'] == 1) { $accepted = ""; } + + $ally1 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1']."")); + $ally2 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Relationships
AllianceType
'.$ally1['tag'].' & '.$ally2['tag'].''.$type.'
+ +

+ + Back"; + } +} +?> \ No newline at end of file diff --git a/Admin/Templates/allymedals.tpl b/Admin/Templates/allymedals.tpl new file mode 100644 index 00000000..2ac6d0f8 --- /dev/null +++ b/Admin/Templates/allymedals.tpl @@ -0,0 +1,87 @@ +getProfileMedalAlly($_GET['aid']) +?> +
+ + + + + + + + + + + + + + + + + + 0) + { + foreach($varmedal as $medal) + { + $titel="Bonus"; + switch ($medal['categorie']) + { + case "1": $titel="Attackers"; break; + case "2": $titel="Defenders"; break; + case "3": $titel="Climbers"; break; + case "4": $titel="Robbers"; break; + } + $title = $titel; + $rank = $medal['plaats']; + if($rank == '0') { $rank = "

Bonus

"; } else { $rank = $rank; } + $week = $medal['week']; + $points = $medal['points']; + if($points == '') { $points = "

Bonus

"; } else { $points = $points; } + + echo" + + + + + + + + "; + } + + $averagerank = 0; + foreach($varmedal as $medal) + { + $rank = $medal['plaats']; + if($rank > 0) + { + if(is_numeric($rank)) + { + $i = $i + 1; + $averagerank = $averagerank + $medal['plaats']; + } + else + { + $averagerank = $averagerank + 0; + } + } + } + $average = $averagerank / $i; + echo ""; + } + ?> + + +
Alliance Medals ()
CategoryRankWeekPointsMedal
This alliance has no medals yet
$title$rank$week$points + +
Average Rank$averageDelete All +
+ + + +
+
\ No newline at end of file diff --git a/Templates/Admin/backup/admin_menu.tpl b/Admin/Templates/backup/admin_menu.tpl similarity index 100% rename from Templates/Admin/backup/admin_menu.tpl rename to Admin/Templates/backup/admin_menu.tpl diff --git a/Templates/Admin/backup/bug_report.tpl b/Admin/Templates/backup/bug_report.tpl similarity index 100% rename from Templates/Admin/backup/bug_report.tpl rename to Admin/Templates/backup/bug_report.tpl diff --git a/Templates/Admin/backup/config.tpl b/Admin/Templates/backup/config.tpl similarity index 100% rename from Templates/Admin/backup/config.tpl rename to Admin/Templates/backup/config.tpl diff --git a/Templates/Admin/backup/edit_ally.tpl b/Admin/Templates/backup/edit_ally.tpl similarity index 100% rename from Templates/Admin/backup/edit_ally.tpl rename to Admin/Templates/backup/edit_ally.tpl diff --git a/Templates/Admin/backup/edit_user.tpl b/Admin/Templates/backup/edit_user.tpl similarity index 100% rename from Templates/Admin/backup/edit_user.tpl rename to Admin/Templates/backup/edit_user.tpl diff --git a/Templates/Admin/backup/intro.tpl b/Admin/Templates/backup/intro.tpl similarity index 100% rename from Templates/Admin/backup/intro.tpl rename to Admin/Templates/backup/intro.tpl diff --git a/Templates/Admin/backup/online_players.tpl b/Admin/Templates/backup/online_players.tpl similarity index 100% rename from Templates/Admin/backup/online_players.tpl rename to Admin/Templates/backup/online_players.tpl diff --git a/Templates/Admin/backup/results.tpl b/Admin/Templates/backup/results.tpl similarity index 100% rename from Templates/Admin/backup/results.tpl rename to Admin/Templates/backup/results.tpl diff --git a/Templates/Admin/backup/search.tpl b/Admin/Templates/backup/search.tpl similarity index 96% rename from Templates/Admin/backup/search.tpl rename to Admin/Templates/backup/search.tpl index 98a06f96..162f31de 100644 --- a/Templates/Admin/backup/search.tpl +++ b/Admin/Templates/backup/search.tpl @@ -41,6 +41,6 @@ Search
\ No newline at end of file diff --git a/Templates/Admin/backup/show_user.tpl b/Admin/Templates/backup/show_user.tpl similarity index 100% rename from Templates/Admin/backup/show_user.tpl rename to Admin/Templates/backup/show_user.tpl diff --git a/Templates/Admin/backup/show_village.tpl b/Admin/Templates/backup/show_village.tpl similarity index 100% rename from Templates/Admin/backup/show_village.tpl rename to Admin/Templates/backup/show_village.tpl diff --git a/Templates/Admin/backup/user_log_login.tpl b/Admin/Templates/backup/user_log_login.tpl similarity index 100% rename from Templates/Admin/backup/user_log_login.tpl rename to Admin/Templates/backup/user_log_login.tpl diff --git a/Admin/Templates/ban.tpl b/Admin/Templates/ban.tpl new file mode 100644 index 00000000..c9632caa --- /dev/null +++ b/Admin/Templates/ban.tpl @@ -0,0 +1,128 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Ban
User ID + +
Reason + +
Duration + +
+
+ +search_banned(); +?> + + + + + + + + + + + + + + + getUserField($bannedUsers[$i]['uid'],'username',0)=='') + { + $name = $bannedUsers[$i]['name']; + $link = "[".$name."]"; + } + else + { + $name = $database->getUserField($bannedUsers[$i]['uid'],'username',0); + $link = ''.$name.''; + } + if($bannedUsers[$i]['end']) + { + $end = date("d.m.y H:i",$bannedUsers[$i]['end']); + } + else + { + $end = '*'; + } + echo ' + + + + + + '; + } + } + else + { + echo ''; + } + ?> + +
Bannned Players ()
UsernameLength (from/to)Reason
'.$link.''.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.''.$bannedUsers[$i]['reason'].'cancel
No Players are Banned
\ No newline at end of file diff --git a/Admin/Templates/cleanban.tpl b/Admin/Templates/cleanban.tpl new file mode 100644 index 00000000..c3d24bde --- /dev/null +++ b/Admin/Templates/cleanban.tpl @@ -0,0 +1,16 @@ + +
+ + Clean Banlist Data (TRUNCATE) +
+
\ No newline at end of file diff --git a/Admin/Templates/config.tpl b/Admin/Templates/config.tpl new file mode 100644 index 00000000..894aeeca --- /dev/null +++ b/Admin/Templates/config.tpl @@ -0,0 +1,280 @@ + +








Access Denied: You are not admin
"); +?> + + +

Made by Dzoki

+ + + + + + +
~ Server Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Server Name
Server Started
Language
Server Speed
Map Sizex
Troop Speedx
Village Expanding Speed
Beginners Protection hour/s
Activation MailEnabled"; } else if(AUTH_EMAIL == false){ echo "Disabled"; } ?>
QuestEnabled"; } else if(QUEST == false) { echo "Disabled"; } ?>
Demolish - Level required
World Wonder - StatisticsEnabled"; } else if(WW == false) { echo "Disabled"; } ?>
Plus account duration= 86400){ echo ''.(PLUS_TIME/86400).' Days'; } else if(PLUS_TIME < 86400){ echo ''.(PLUS_TIME/3600).' Hours'; } ?>
+25% production duration= 86400){ echo ''.(PLUS_PRODUCTION/86400).' Days'; } else if(PLUS_PRODUCTION < 86400){ echo ''.(PLUS_PRODUCTION/3600).' Hours'; } ?>
+ + + + + + + +
~ Log Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Log BuildEnabled"; } else if(LOG_BUILD == false){ echo "Disabled"; } ?>
Log TechnologyEnabled"; } else if(LOG_TECH == false){ echo "Disabled"; } ?>
Log LoginEnabled"; } else if(LOG_LOGIN == false){ echo "Disabled"; } ?>
Log GoldEnabled"; } else if(ALOG_GOLD_FIN == false){ echo "Disabled"; } ?>
Log AdminEnabled"; } else if(LOG_ADMIN == false){ echo "Disabled"; } ?>
Log WarEnabled"; } else if(LOG_WAR == false){ echo "Disabled"; } ?>
Log MarketEnabled"; } else if(LOG_MARKET == false){ echo "Disabled"; } ?>
Log IllegalEnabled"; } else if(LOG_ILLEGAL == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ Newsbox Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Newsbox 1Enabled"; } else if(NEWSBOX1 == false){ echo "Disabled"; } ?>
Newsbox 2Enabled"; } else if(NEWSBOX2 == false){ echo "Disabled"; } ?>
Newsbox 3Enabled"; } else if(NEWSBOX3 == false){ echo "Disabled"; } ?>
Home 1Enabled"; } else if(HOME1 == false){ echo "Disabled"; } ?>
Home 2Enabled"; } else if(HOME2 == false){ echo "Disabled"; } ?>
Home 3Enabled"; } else if(HOME3 == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ SQL Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Hostname
DB Username
DB Password*********
DB Name
Table Prefix
DB Type
+ + + + + + + +
~ Extra Settings ~
+ + + + + + + + + + + + + + + + + + +
VariableValue
Limit MailboxEnabled"; } else if(LIMIT_MAILBOX == false){ echo "Disabled"; } ?>
Max number of mailsLimit mailbox disabled"; } ?>
Include Admin in rankEnabled"; } else if(INCLUDE_ADMIN == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ Admin Information ~
+ + + + + + + + + + + + + +
VariableValue
Admin EmailNo admin email defined!"; } else if(ADMIN_EMAIL != ''){ echo ADMIN_EMAIL; } ?>
Admin NameNo admin name defined!"; } else if(ADMIN_NAME != ''){ echo ADMIN_NAME; } ?>
+ + $value ) + { + $keyname = ($keys ? $keys . "_" : "") . $key; + if( is_array( $array[$key] ) ) + define_array( $array[$key], $keyname ); + else + define( $keyname, $value ); + } +} +//define_array($array); +?> diff --git a/Admin/Templates/delallymedal.tpl b/Admin/Templates/delallymedal.tpl new file mode 100644 index 00000000..4a336bbd --- /dev/null +++ b/Admin/Templates/delallymedal.tpl @@ -0,0 +1,151 @@ + + + + + + + + + + +
Medal Information
+ + + + + + + + + 0){ + $week = mysql_result($sql, 0); + echo ""; + }else{ + echo ""; + } + ?> + +
WeekMedals
$week
$tot
0
$tot
+
+
+ + + +
+ + + + + + + +
Medal Week by Week
+ + + + + + + + + + + + + "; + } + ?> + +
WeekMedals
$newweek$tot
+
+
+
+ + + + + + + +
All Medals ()
+ + + + + + + + + + + + + + '.$allyname.''; + echo" + + + + + + + + + "; + } + ?> + +
MedalBB-CodeTypePlayerRankWeekPoints
$i[#$bb]$alliance$rank$week$points
\ No newline at end of file diff --git a/Admin/Templates/deletion.tpl b/Admin/Templates/deletion.tpl new file mode 100644 index 00000000..ea9e611c --- /dev/null +++ b/Admin/Templates/deletion.tpl @@ -0,0 +1,123 @@ +getUserArray($_GET['uid'],1); + $varray = $database->getProfileVillages($_GET['uid']); + if($user) + { + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } ?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete player
Name:Gold:
Rank:???.Population:
Villages: + + Plus: + +
Alliance:getAllianceName($user['alliance']);?>Status:-
Password:
+

NOTICE: DELETE ALL PLAYER VILLAGES BELLOW BEFORE DELETING PLAYER!

+ + + + + + + + + + getCoor($varray[$i]['wref']); + if($varray[$i]['capital']) + { + $capital = '(Capital)'; + $delLink = ''; + } + else + { + $capital = ''; + $delLink = ''; + } echo ' + + + + + + '; + } + ?> + +
NamePopulationCoordinates
'.$varray[$i]['name'].' '.$capital.''.$varray[$i]['pop'].' Check('.$coorproc['x'].'|'.$coorproc['y'].')'.$delLink.'
+
diff --git a/Admin/Templates/delmedal.tpl b/Admin/Templates/delmedal.tpl new file mode 100644 index 00000000..e9493464 --- /dev/null +++ b/Admin/Templates/delmedal.tpl @@ -0,0 +1,164 @@ + + + + + + + + + + +
Medal Information
+ + + + + + + + + 0){ + $week = mysql_result($sql, 0); + echo ""; + }else{ + echo ""; + } + ?> + +
WeekMedals
$week
$tot
0
$tot
+
+
+ + + +
+ + + + + + + +
Medal Week by Week
+ + + + + + + + + + "; + } + ?> + +
WeekMedals
$newweek$tot
+
+
+
+ + + + + + + + + + + + +
All Medals ()
+ + + + + + + + + + + + + + $username"; + echo" + + + + + + + + + "; + } + ?> + +
MedalBB-CodeTypePlayerRankWeekPoints
$i[#$bb]$player$rank$week$points
\ No newline at end of file diff --git a/Admin/Templates/editAccess.tpl b/Admin/Templates/editAccess.tpl new file mode 100644 index 00000000..ce010c7e --- /dev/null +++ b/Admin/Templates/editAccess.tpl @@ -0,0 +1,71 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + +
Edit 's access
+
+ Change Access +
+
+
+ +
+
+
+ +
+
+

Players Access Changed'; + } +} +else +{ + include("404.tpl"); +} +?> \ No newline at end of file diff --git a/Admin/Templates/editOverall.tpl b/Admin/Templates/editOverall.tpl new file mode 100644 index 00000000..0af72057 --- /dev/null +++ b/Admin/Templates/editOverall.tpl @@ -0,0 +1,53 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + + + + + +
Edit Overall Attack and Defence Points For:
Edit Attack Points + Points +
Edit Defence Points + Points +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editPassword.tpl b/Admin/Templates/editPassword.tpl new file mode 100644 index 00000000..fc86d0c6 --- /dev/null +++ b/Admin/Templates/editPassword.tpl @@ -0,0 +1,45 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Player
New Password
Password + +
+
+ +
+
+
\ No newline at end of file diff --git a/Admin/Templates/editPlus.tpl b/Admin/Templates/editPlus.tpl new file mode 100644 index 00000000..b5d92f1c --- /dev/null +++ b/Admin/Templates/editPlus.tpl @@ -0,0 +1,89 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +

+ + + + + +
+ + + + + + + + + +
Plus and Resource Bonuses for:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Plus & Bonus
Give Plus Bonus + Days +
Give +25% Wood + Days +
Give +25% Clay + Days +
Give +25% Iron + Days +
Give +25% Crop + Days +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editProtection.tpl b/Admin/Templates/editProtection.tpl new file mode 100644 index 00000000..0d9d6cde --- /dev/null +++ b/Admin/Templates/editProtection.tpl @@ -0,0 +1,47 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + +
Edit Protection For:
Give Protection For + Days +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editResources.tpl b/Admin/Templates/editResources.tpl new file mode 100644 index 00000000..cf3b870c --- /dev/null +++ b/Admin/Templates/editResources.tpl @@ -0,0 +1,80 @@ +getVillage($id); +$user = $database->getUserArray($village['owner'],1); +$coor = $database->getCoor($village['wref']); +$varray = $database->getProfileVillages($village['owner']); +$type = $database->getVillageType($village['wref']); +$fdata = $database->getResourceLevel($village['wref']); +if(isset($id)) +{ + include("search2.tpl"); ?> + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modify Resources
ResourceAmountMaximum Capacity
Wood + +
Clay + +
Iron + +
Crop + + + +
+ +

+
+
\ No newline at end of file diff --git a/Admin/Templates/editSitter.tpl b/Admin/Templates/editSitter.tpl new file mode 100644 index 00000000..fa9d4835 --- /dev/null +++ b/Admin/Templates/editSitter.tpl @@ -0,0 +1,78 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+

To change sitters, you must use their "uid" you can find this using the search. Delete a sitter, put 0 as sitter.

+
+ + + + + + + + + + + + + + + + + +
Edit Sitters For:
Sitter 1 +
+ getUserArray($user['sit1'], 1); + if($user['sit1'] ==0) + { + echo 'No Sitter'; + } + else + { + echo ''.$sitter1['username'].''; + } + ?> +
Sitter 2 +
+ getUserArray($user['sit2'], 1); + if($user['sit2'] ==0) + { + echo 'No Sitter'; + } + else + { + echo ''.$sitter2['username'].''; + } + ?> +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editUser.tpl b/Admin/Templates/editUser.tpl new file mode 100644 index 00000000..21154e5a --- /dev/null +++ b/Admin/Templates/editUser.tpl @@ -0,0 +1,171 @@ +getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $varmedal = $database->getProfileMedal($id); ?> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Player
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Tribe + +
Location
E-mail
Quest
» Go back
+
+ +
+ + + + + + + + + + + + + + + + + + + + "; + } + ?> + + + + + + + + + + + + + + + + + + +
Medals
CategoryRankWeekBB-Code
".$titel."".$medal['plaats']."".$medal['week']."[#".$medal['id']."]
Beginners Protection[#0]
+
+ +
+
+

Not found. Go Back"; +} +?> \ No newline at end of file diff --git a/Admin/Templates/editVillage.tpl b/Admin/Templates/editVillage.tpl new file mode 100644 index 00000000..865bafcf --- /dev/null +++ b/Admin/Templates/editVillage.tpl @@ -0,0 +1,205 @@ +getVillage($id); +$user = $database->getUserArray($village['owner'],1); +$coor = $database->getCoor($village['wref']); +$varray = $database->getProfileVillages($village['owner']); +$type = $database->getVillageType($village['wref']); +$fdata = $database->getResourceLevel($village['wref']); +if(isset($id)) +{ + include("search2.tpl"); ?> + +
+ + +
+ + Show Instructions +
+ + + + + + + + + + + + + procResType($i); + echo ' + + + + '; + } + ?> + + + + + +
Buildings
GIDName
'.$i.'.'.$bu.'
41.Horse Drinking Trough
+ Hide Instructions + + +
+ + + + + + + + + + + + + + + procResType($fdata['f'.$i.'t']); + } + echo ' + + + + + + '; + } + ?> + +
Modify Buildings
IDGIDNameLevel
'.$i.''.$bu.'
+ +

+
+ +
+
+
+ "; + } + ?> +
+
+ +
+ +

+ +
+

+
+ 0) + { + echo ""; + } + elseif($gid ==0) + { + echo ""; + } + } + $rp=16; + $rplevel = $fdata['f'.$rp]; + if($rplevel > 0) + { + echo ""; + } + elseif($rplevel ==0) + { + echo ""; + } + ?> +
+ 0) + { + echo "
$level
"; + } + } + if($rplevel >0) + { + echo "
".$fdata['f'.($b + 18)]."
"; + } + ?> +
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editWeek.tpl b/Admin/Templates/editWeek.tpl new file mode 100644 index 00000000..9ad2c7c9 --- /dev/null +++ b/Admin/Templates/editWeek.tpl @@ -0,0 +1,59 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + + + + + + + + + +
Edit Off, Def, Raid Points This Week For:
Edit Attack Points + Points +
Edit Defence Points + Points +
Edit Resources Raided + Points +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/givePlus.tpl b/Admin/Templates/givePlus.tpl new file mode 100644 index 00000000..f8c2b78d --- /dev/null +++ b/Admin/Templates/givePlus.tpl @@ -0,0 +1,56 @@ + + +
+ + + + + + + + + + + + + + + + + + + + +
Give Everyone Free Plus
+
+ How Long? +
+
+
+ Day +
+
+
+ +
+
+
+ +
Plus Given'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/givePlusRes.tpl b/Admin/Templates/givePlusRes.tpl new file mode 100644 index 00000000..ba9073e5 --- /dev/null +++ b/Admin/Templates/givePlusRes.tpl @@ -0,0 +1,95 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Give Everyone Free Res Bonus
Resource BonusDuration
+
+ Wood +
+
+
+ Day +
+
+
+ Clay +
+
+
+ Day +
+
+
+ Iron +
+
+
+ Day +
+
+
+ Crop +
+
+
+ Day +
+
+
+ +
+
+
+ +
Resource Bonuses Given'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/gold.tpl b/Admin/Templates/gold.tpl new file mode 100644 index 00000000..77280141 --- /dev/null +++ b/Admin/Templates/gold.tpl @@ -0,0 +1,57 @@ + + +
+ + + + + + + + + + + + + + + + + + + + +
Give Everyone Free gold
Amount
+
+ How much gold? +
+
+
+   + Gold +
+
+
+ +
+
+
+ +
Gold Added'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/home.tpl b/Admin/Templates/home.tpl new file mode 100644 index 00000000..71704d62 --- /dev/null +++ b/Admin/Templates/home.tpl @@ -0,0 +1,44 @@ + + + +
+ WELCOME TO + + CONTROL PANEL +
+
+
+ + +



+ + Hello , You are logged in as: Administrator +


+ +




+ + + + Credits: Akakori & Elmar
+ Fixed, remade and new features added by Dzoki
+ Reworked by aggenkeech +
\ No newline at end of file diff --git a/Admin/Templates/login.tpl b/Admin/Templates/login.tpl new file mode 100644 index 00000000..ccfaeb25 --- /dev/null +++ b/Admin/Templates/login.tpl @@ -0,0 +1,52 @@ + +
+ +
+ + + +
+ +

+ + + + + + + + + + + + + + + + + + + +
Server Admin Login
Username + +
Password: + +
+
+ +
+
+

+ +
\ No newline at end of file diff --git a/Admin/Templates/maintenenceResetGold.tpl b/Admin/Templates/maintenenceResetGold.tpl new file mode 100644 index 00000000..775454c4 --- /dev/null +++ b/Admin/Templates/maintenenceResetGold.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Gold
+
+All Players Gold Reset'; +} +?> \ No newline at end of file diff --git a/Admin/Templates/maintenenceResetPlus.tpl b/Admin/Templates/maintenenceResetPlus.tpl new file mode 100644 index 00000000..07db194e --- /dev/null +++ b/Admin/Templates/maintenenceResetPlus.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Resource Bonus
+
+All Players Plus Reset'; +} +?> \ No newline at end of file diff --git a/Admin/Templates/maintenenceResetPlusBonus.tpl b/Admin/Templates/maintenenceResetPlusBonus.tpl new file mode 100644 index 00000000..08a98564 --- /dev/null +++ b/Admin/Templates/maintenenceResetPlusBonus.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Plus
+
+All Players Plus Resource Bonus Reset'; +} +?> \ No newline at end of file diff --git a/Templates/Admin/map.tpl b/Admin/Templates/map.tpl similarity index 100% rename from Templates/Admin/map.tpl rename to Admin/Templates/map.tpl diff --git a/Templates/Admin/message.tpl b/Admin/Templates/message.tpl similarity index 68% rename from Templates/Admin/message.tpl rename to Admin/Templates/message.tpl index 89bc06f5..2e950626 100644 --- a/Templates/Admin/message.tpl +++ b/Admin/Templates/message.tpl @@ -10,8 +10,9 @@ ################################################################################# ?> + @@ -20,18 +21,24 @@ - + - + -
IGM ID
Report ID

+ +
+ \ No newline at end of file +elseif($_GET['bid'] and ereg('^[0-9]', $_GET['bid'])) +{ + include('report.tpl'); +} +?> + diff --git a/Admin/Templates/msg.tpl b/Admin/Templates/msg.tpl new file mode 100644 index 00000000..a861be06 --- /dev/null +++ b/Admin/Templates/msg.tpl @@ -0,0 +1,51 @@ +getMessage($_GET['nid'],3);; +if($msg) +{ ?> + + + + + + +
+ + Send To: getUserField($msg[0]['target'],'username',0);?>
+ +
+

Messages

+
+
+ +
+
getUserField($msg[0]['owner'],'username',0);?>
+
+
+
+
+
+
+
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/Templates/Admin/natarbuildingplan.tpl b/Admin/Templates/natarbuildingplan.tpl similarity index 94% rename from Templates/Admin/natarbuildingplan.tpl rename to Admin/Templates/natarbuildingplan.tpl index 63f17464..34f511a8 100644 --- a/Templates/Admin/natarbuildingplan.tpl +++ b/Admin/Templates/natarbuildingplan.tpl @@ -36,7 +36,7 @@ if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
Create WW Buildingplan villages?
-

 insert number of Villages and press 'enter'
+

 insert number of Villages and press 'enter'
Create World Wonder villages? -

 insert number of Wonders and press 'enter'
+

 insert number of Wonders and press 'enter'
+ + + Players Not Activated + + + # + ID + Username + Email + Tribe + Activation Code + Act 2?? + Time + + + + + ".$i." + ".$row['id']." + ".$row['username']." + ".$row['email']." + ".$tribe." + ".$row['act']." + ".$row['act2']." + ".date('d:m:Y H:i', $row['timestamp'])." + "; + } + ?> + + \ No newline at end of file diff --git a/Admin/Templates/oasis.tpl b/Admin/Templates/oasis.tpl new file mode 100644 index 00000000..c2bf873a --- /dev/null +++ b/Admin/Templates/oasis.tpl @@ -0,0 +1,31 @@ + +
+ + + + + + + + + + + +
Populate Oases
+
+Oases Populated
'; +} +?> \ No newline at end of file diff --git a/Templates/Admin/online.tpl b/Admin/Templates/online.tpl similarity index 87% rename from Templates/Admin/online.tpl rename to Admin/Templates/online.tpl index a18e5353..1d1536bd 100644 --- a/Templates/Admin/online.tpl +++ b/Admin/Templates/online.tpl @@ -45,10 +45,6 @@ foreach($varray as $vil) { $tribe = "Teuton"; } else if($active[$i]['tribe'] == 3){ $tribe = "Gaul"; - } else if($active[$i]['tribe'] == 4){ - $tribe = "Nature"; - } else if($active[$i]['tribe'] == 5){ - $tribe = "Natar"; } echo ' @@ -57,7 +53,7 @@ echo ' '.$tribe.' '.$totalpop.' '.count($varray).' - Gold '.$active[$i]['gold'].' + Gold '.$active[$i]['gold'].' '; } @@ -68,4 +64,4 @@ echo 'No online users'; ?> - + \ No newline at end of file diff --git a/Admin/Templates/player.tpl b/Admin/Templates/player.tpl new file mode 100644 index 00000000..98529b97 --- /dev/null +++ b/Admin/Templates/player.tpl @@ -0,0 +1,98 @@ +getProfileMedal($id); + $user = $database->getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $refreshicon = ""; + if($user) + { + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } + include('search2.tpl'); + echo "
"; + $deletion = false; + if($deletion) + { + include("playerdeletion.tpl"); + } + + include("playerinfo.tpl"); + include("playeradditionalinfo.tpl"); + echo "
"; + include("playermedals.tpl"); + include ("villages.tpl"); ?> + +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + '; + } + ?> + +
Ban History ()
StartEndDurationReason
'.date('d:m:Y H:i', $row['time']).''.date('d:m:Y H:i', $row['end']).''.round((($row['end'] - $row['time']) / 3600), 2).' minutes'.$row['reason'].'
+ \ No newline at end of file diff --git a/Admin/Templates/playeradditionalinfo.tpl b/Admin/Templates/playeradditionalinfo.tpl new file mode 100644 index 00000000..b5ed042d --- /dev/null +++ b/Admin/Templates/playeradditionalinfo.tpl @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "; + } + else + { + $ends = date('d.m.Y H:i',$user['protect']+3600*2); + $now = date('d.m.Y H:i'); + if($now>$ends) + { + echo "$ends"; + } + else + { + echo "NO!"; + } + } */ + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Additional Information
Access + Multihunter"; + } + else if($user['access'] == 9) + { + echo "Administrator"; + } + ?> +
Gold +
Give how much Gold? + + +
Sitter 1 + = 1) + { + echo ''.$database->getUserField($user['sit1'],"username",0).''; + } + else if($user['sit1'] == 0) + { + echo 'No Sitter'; + } + ?> +
Sitter 2 + = 1) + { + echo ''.$database->getUserField($user['sit2'],"username",0).''; + } + else if($user['sit2'] == 0) + { + echo 'No Sitter'; + } + ?> +
Beginners Protection + '; + echo " No Protection"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Protection"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['protect']) == '01.01.1970 00:00') + { + echo "Not enabled!
Culture Points + + +
Add how many CP? + + + +
Last Activity + +
Attack Points ("This "Week") + +
Defence Points ("This Week") + +
Resources Raided ("This Week") + +
Total Attack Points + +
Total Defence Points + +
\ No newline at end of file diff --git a/Admin/Templates/playerdeletion.tpl b/Admin/Templates/playerdeletion.tpl new file mode 100644 index 00000000..374bc4b3 --- /dev/null +++ b/Admin/Templates/playerdeletion.tpl @@ -0,0 +1,8 @@ + + + + +
+ The account will be deleted in 79:56:11 + +
\ No newline at end of file diff --git a/Admin/Templates/playerinfo.tpl b/Admin/Templates/playerinfo.tpl new file mode 100644 index 00000000..b7c9a787 --- /dev/null +++ b/Admin/Templates/playerinfo.tpl @@ -0,0 +1,263 @@ + + + + + + + + + + + + + + + + + + +
Player
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> + + + + + + + + + + '; + } + else if($_SESSION['access'] == MULTIHUNTER) + { + echo ''; + } + if($_SESSION['access'] == ADMIN) + { + echo ' + + + '; + } + else if($_SESSION['access'] == MULTIHUNTER) + { + echo ''; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Rank????searchRank($user['id'], "rank");*/ ?>
Tribe + +
Alliance + ".$database->getAllianceName($user['alliance']).""; + } + ?> +
Villages
Population
Age + + Not Available"; + } + ?> +
Gender + + Not Available"; + } + ?> +
Username +
+ + + +
Location + +
Password + Change +
Email + +
Send + ".$user['email'].""; + echo $link; + ?> +
Quest + + +
+ » Edit User +
+ » Delete User +
» Ban User
» Send Message
» Edit Plus & Bonus
» Edit Sitters
» Edit Overall Off & Def
» Edit Weekly Off, Def, Raid
» User Login Log
» User Illegal Log
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/Admin/Templates/playermedals.tpl b/Admin/Templates/playermedals.tpl new file mode 100644 index 00000000..e61730ee --- /dev/null +++ b/Admin/Templates/playermedals.tpl @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + 0) + { + foreach($varmedal as $medal) + { + $titel="Bonus"; + switch ($medal['categorie']) + { + case "1": $titel="Attackers"; break; + case "2": $titel="Defenders"; break; + case "3": $titel="Climbers"; break; + case "4": $titel="Robbers"; break; + case "5": $titel="Top 10 Att and Def"; break; + case "6": $titel="Top 3 Att, ".$medal['points']." in a row"; break; + case "7": $titel="Top 3 Def,".$medal['points']." in a row"; break; + case "8": $titel="Top 3 Climber, ".$medal['points']." in a row"; break; + case "9": $titel="Top 3 Robber, ".$medal['points']." in a row"; break; + case "10": $titel="Climber of the week"; break; + case "11": $titel="Top 3 Climber, ".$medal['points']." in a row"; break; + case "12": $titel="Top 10 Attacker, ".$medal['points']." in a row"; break; + } + $title = $titel; + $rank = $medal['plaats']; + if($rank == '0') { $rank = "

Bonus

"; } else { $rank = $rank; } + $week = $medal['week']; + $points = $medal['points']; + if($points == '') { $points = "

Bonus

"; } else { $points = $points; } + + echo" + + + + + + + + "; + } + + $averagerank = 0; + foreach($varmedal as $medal) + { + $rank = $medal['plaats']; + if($rank > 0) + { + if(is_numeric($rank)) + { + $i = $i + 1; + $averagerank = $averagerank + $medal['plaats']; + } + else + { + $averagerank = $averagerank + 0; + } + } + } + $average = $averagerank / $i; + echo ""; + } + ?> + + +
Player Medals ()
CategoryRankWeekPointsMedal
This player has no medals yet
$title$rank$week$points + +
Average Rank$averageDelete All +
+ + +
+
\ No newline at end of file diff --git a/Admin/Templates/playerplusbonus.tpl b/Admin/Templates/playerplusbonus.tpl new file mode 100644 index 00000000..7974001f --- /dev/null +++ b/Admin/Templates/playerplusbonus.tpl @@ -0,0 +1,187 @@ +Plus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['plus']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['plus']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['b1']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b1']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b2']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b2']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b3']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b3']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b4']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b4']+3600*2).""; + } */ + ?> + + \ No newline at end of file diff --git a/Admin/Templates/punish.tpl b/Admin/Templates/punish.tpl new file mode 100644 index 00000000..0b0dfa80 --- /dev/null +++ b/Admin/Templates/punish.tpl @@ -0,0 +1,92 @@ +getUserActive(); +?> + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Punish Player
+
+ +
+
+
+ + +
+
+ Delete Troops +
+
+ + +
+
+ Empty Warehouses +
+
+ +
+
+ \ No newline at end of file diff --git a/Admin/Templates/renameVillage.tpl b/Admin/Templates/renameVillage.tpl new file mode 100644 index 00000000..534297c0 --- /dev/null +++ b/Admin/Templates/renameVillage.tpl @@ -0,0 +1,38 @@ +getVillage($id); +$user = $database->getUserArray($village['owner'],1); +$coor = $database->getCoor($village['wref']); +$varray = $database->getProfileVillages($village['owner']); +$type = $database->getVillageType($village['wref']); +$fdata = $database->getResourceLevel($village['wref']); +$units = $database->getUnit($village['wref']); +?> + + + + + + + + + + + +
Edit Village Name
\ No newline at end of file diff --git a/Templates/Admin/report.tpl b/Admin/Templates/report.tpl similarity index 58% rename from Templates/Admin/report.tpl rename to Admin/Templates/report.tpl index 95127e7f..11235596 100644 --- a/Templates/Admin/report.tpl +++ b/Admin/Templates/report.tpl @@ -2,11 +2,30 @@ ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## -## Filename report.tpl ## +## Filename msg.tpl ## ## Developed by: Dzoki ## ## License: TravianX Project ## ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## ## ################################################################################# -?> -comming soon \ No newline at end of file + +$sql = "SELECT * FROM ".TB_PREFIX."ndata WHERE id = ".$_GET['bid'].""; +$result = mysql_query($sql); +$rep = mysql_fetch_assoc($result); +if($rep) +{ + $att = $database->getUserArray($rep['uid'],1); + ?> +

Under Construction

+
+ +
+ \ No newline at end of file diff --git a/Admin/Templates/report/0.tpl b/Admin/Templates/report/0.tpl new file mode 100644 index 00000000..c02ac025 --- /dev/null +++ b/Admin/Templates/report/0.tpl @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + + "; + } + echo ""; + for($i=3;$i<=12;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=13;$i<=22;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + if ($dataarray[139]!='' and $dataarray[140]!='') + { //ram ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
Information + Ram + +
Information + Catapult + +
Information + Chief + +
Information + +
Bounty +
+ Lumber | Clay | Iron | Crop
carry +
+
+ + + + + + + + + + + + "; + } + echo ""; + for($i=35;$i<=44;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=45;$i<=54;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=56;$i<=65;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=66;$i<=75;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=77;$i<=86;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=87;$i<=96;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=98;$i<=107;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=108;$i<=117;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=119;$i<=128;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=129;$i<=138;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ +
\ No newline at end of file diff --git a/Admin/Templates/report/1.tpl b/Admin/Templates/report/1.tpl new file mode 100644 index 00000000..75444a84 --- /dev/null +++ b/Admin/Templates/report/1.tpl @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + +"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
Information + Ram + +
Information + Catapult + +
Information + Chief + +
Information + + +
Bounty +
Lumber | Clay | Iron | Crop
carry
+
+ + + + + + + + + + + + + "; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + + + +"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + + + + "; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + + + + + "; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + + + + + "; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + +
\ No newline at end of file diff --git a/Admin/Templates/report/2.tpl b/Admin/Templates/report/2.tpl new file mode 100644 index 00000000..b5fc5c37 --- /dev/null +++ b/Admin/Templates/report/2.tpl @@ -0,0 +1,373 @@ + + + + + + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + + + "; + } + echo ""; + for($i=3;$i<=12;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=13;$i<=22;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + if ($dataarray[139]!='' and $dataarray[140]!='') + { //ram ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
Information + Ram + +
Information + Catapult + +
Information + Chief + +
Information + +
Bounty +
+ Lumber | Clay | Iron | Crop
carry +
+
+ + + + + + + + + + + "; + } + echo ""; + for($i=35;$i<=44;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=45;$i<=54;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=56;$i<=65;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=66;$i<=75;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=77;$i<=86;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=87;$i<=96;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=98;$i<=107;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=108;$i<=117;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+ + + + + + + + + + "; + } + echo ""; + for($i=119;$i<=128;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + echo ""; + for($i=129;$i<=138;$i++) + { + if($dataarray[$i] == 0) + { + echo ""; + } + else + { + echo ""; + } + } + ?> + + +
Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$i]."
+
\ No newline at end of file diff --git a/Admin/Templates/resetPlus.tpl b/Admin/Templates/resetPlus.tpl new file mode 100644 index 00000000..70e35316 --- /dev/null +++ b/Admin/Templates/resetPlus.tpl @@ -0,0 +1,40 @@ + + +
+ + + + + + + + + + + + +
Reset Everyone's Plus
+
+ +
+
+
+ +
Plus For Everyone Reset'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/resetPlusBonus.tpl b/Admin/Templates/resetPlusBonus.tpl new file mode 100644 index 00000000..9925c9b2 --- /dev/null +++ b/Admin/Templates/resetPlusBonus.tpl @@ -0,0 +1,40 @@ + + +
+ + + + + + + + + + + + +
Reset Everyone's Resource Bonuses
+
+ +
+
+
+ +
Plus Resource Bonuses For Everyone Reset'; + } +?> \ No newline at end of file diff --git a/Templates/Admin/results_alliances.tpl b/Admin/Templates/results_alliances.tpl similarity index 100% rename from Templates/Admin/results_alliances.tpl rename to Admin/Templates/results_alliances.tpl diff --git a/Templates/Admin/results_email.tpl b/Admin/Templates/results_email.tpl similarity index 100% rename from Templates/Admin/results_email.tpl rename to Admin/Templates/results_email.tpl diff --git a/Templates/Admin/results_ip.tpl b/Admin/Templates/results_ip.tpl similarity index 100% rename from Templates/Admin/results_ip.tpl rename to Admin/Templates/results_ip.tpl diff --git a/Templates/Admin/results_player.tpl b/Admin/Templates/results_player.tpl similarity index 100% rename from Templates/Admin/results_player.tpl rename to Admin/Templates/results_player.tpl diff --git a/Admin/Templates/results_villages.tpl b/Admin/Templates/results_villages.tpl new file mode 100644 index 00000000..7939ebe8 --- /dev/null +++ b/Admin/Templates/results_villages.tpl @@ -0,0 +1,91 @@ +search_village($_POST['s']); +?> + + + + + + + + + + + + + + + + + + + + + + + '; + echo ' + + + + + + + '; + } + echo ' + + + + + + + + '; + } + else + { + echo ' + + + + + + + + '; + } + ?> + +
+ Found villages () +
1 «» 100
ID + Village Name + Village Owner + Population + +
'.$result[$i]["wref"].''.$result[$i]["name"].''.$database->getUserField($result[$i]["owner"],'username',0).''.$result[$i]["pop"].''.$delLink.'
+
+ '.count($result).' Villages Found "'.$_POST['s'].'" +
+
+
+ No Villages Called '.$_POST['s'].' +
+
diff --git a/Admin/Templates/search.tpl b/Admin/Templates/search.tpl new file mode 100644 index 00000000..30fa80ed --- /dev/null +++ b/Admin/Templates/search.tpl @@ -0,0 +1,53 @@ + +
+
+ + + + + + + + + + + +
Search v1.0
+ + + + + +
+
+ +
'; + if($_GET['msg'] == 'ursdel') + { + echo "User was deleted."; + + } + echo '
'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/search2.tpl b/Admin/Templates/search2.tpl new file mode 100644 index 00000000..12121a3d --- /dev/null +++ b/Admin/Templates/search2.tpl @@ -0,0 +1,66 @@ +search_player($user['username']); +$numsimplayers = count($searchresults); +$id = $user['id']; +$varray = $database->getProfileVillages($id); +$totalpop = 0; +foreach($varray as $vil) +{ + $totalpop += $vil['pop']; +} +?> +
+ + + + + + +
Search ("" = Similar)
+
+
+
Player: (uid: )
+
Tribe: | Villages: | Inhabitants:
+
+ + +
+
Village: (did: )
+
Coordinates: (|) | Inhabitants: +
+
+
\ No newline at end of file diff --git a/Admin/Templates/server_info.tpl b/Admin/Templates/server_info.tpl new file mode 100644 index 00000000..28e9f3e8 --- /dev/null +++ b/Admin/Templates/server_info.tpl @@ -0,0 +1,182 @@ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Player Information
Registered players
Active players
Players online +
Players Banned +
Villages settled +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Player Information
TribeRegisteredPercent
Romans
Teutons
Gauls
+ +
+ + + + + + + + + + + + + + + + + +
Server Information
TotalAverage
Gold Gold
+ + + + + + + '; + } + echo ''; + for($i=1; $i<11; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=11; $i<21; $i++) + { + echo ''; + } + echo ''; + for($i=11; $i<21; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=21; $i<31; $i++) + { + echo ''; + } + echo ''; + for($i=21; $i<31; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=31; $i<41; $i++) + { + echo ''; + } + echo ''; + for($i=31; $i<41; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=41; $i<51; $i++) + { + echo ''; + } + echo ''; + for($i=41; $i<51; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + ?> + +
Troops on the Server
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
+
\ No newline at end of file diff --git a/Admin/Templates/troopUpgrades.tpl b/Admin/Templates/troopUpgrades.tpl new file mode 100644 index 00000000..8bb8b385 --- /dev/null +++ b/Admin/Templates/troopUpgrades.tpl @@ -0,0 +1,45 @@ + + + + + + + + + + + + +
'; + } + for($i=1; $i<9; $i++) + { + echo ''; + } + ?> + + + + +
'.$aupgrades['$i.'].'
'; + } ##B + for($i=1; $i<9; $i++) + { + echo ''; + } + ?> + + +
Troop Upgrades
ArmouryBlacksmith
'.$bupgrades['$i'].'
+Edit Troop Upgrades \ No newline at end of file diff --git a/Admin/Templates/troops.tpl b/Admin/Templates/troops.tpl new file mode 100644 index 00000000..c2d08a8a --- /dev/null +++ b/Admin/Templates/troops.tpl @@ -0,0 +1,276 @@ + + + + + '.$units['u1'].'';} + else if($units['u1'] > 0){$u1 = ''.$units['u1'].'';} + if($units['u2'] == 0){$u2 = ''.$units['u2'].'';} + else if($units['u2'] > 0){$u2 = ''.$units['u2'].'';} + if($units['u3'] == 0){$u3 = ''.$units['u3'].'';} + else if($units['u3'] > 0){$u3 = ''.$units['u3'].'';} + if($units['u4'] == 0){$u4 = ''.$units['u4'].'';} + else if($units['u4'] > 0){$u4 = ''.$units['u4'].'';} + if($units['u5'] == 0){$u5 = ''.$units['u5'].'';} + else if($units['u5'] > 0){$u5 = ''.$units['u5'].'';} + if($units['u6'] == 0){$u6 = ''.$units['u6'].'';} + else if($units['u6'] > 0){$u6 = ''.$units['u6'].'';} + if($units['u7'] == 0){$u7 = ''.$units['u7'].'';} + else if($units['u7'] > 0){$u7 = ''.$units['u7'].'';} + if($units['u8'] == 0){$u8 = ''.$units['u8'].'';} + else if($units['u8'] > 0){$u8 = ''.$units['u8'].'';} + if($units['u9'] == 0){$u9 = ''.$units['u9'].'';} + else if($units['u9'] > 0){$u9 = ''.$units['u9'].'';} + if($units['u10'] == 0){$u10 = ''.$units['u10'].'';} + else if($units['u10'] > 0){$u10 = ''.$units['u10'].'';} + ## Teuton + if($units['u11'] == 0){$u11 = ''.$units['u11'].'';} + else if($units['u11'] > 0){$u11 = ''.$units['u11'].'';} + if($units['u12'] == 0){$u12 = ''.$units['u12'].'';} + else if($units['u12'] > 0){$u12 = ''.$units['u12'].'';} + if($units['u13'] == 0){$u13 = ''.$units['u13'].'';} + else if($units['u13'] > 0){$u13 = ''.$units['u13'].'';} + if($units['u14'] == 0){$u14 = ''.$units['u14'].'';} + else if($units['u14'] > 0){$u14 = ''.$units['u14'].'';} + if($units['u15'] == 0){$u15 = ''.$units['u15'].'';} + else if($units['u15'] > 0){$u15 = ''.$units['u15'].'';} + if($units['u16'] == 0){$u16 = ''.$units['u16'].'';} + else if($units['u16'] > 0){$u16 = ''.$units['u16'].'';} + if($units['u17'] == 0){$u17 = ''.$units['u17'].'';} + else if($units['u17'] > 0){$u17 = ''.$units['u17'].'';} + if($units['u18'] == 0){$u18 = ''.$units['u18'].'';} + else if($units['u18'] > 0){$u18 = ''.$units['u18'].'';} + if($units['u19'] == 0){$u19 = ''.$units['u19'].'';} + else if($units['u19'] > 0){$u19 = ''.$units['u19'].'';} + if($units['u20'] == 0){$u20 = ''.$units['u20'].'';} + else if($units['u20'] > 0){$u20 = ''.$units['u20'].'';} + ## Gaul + if($units['u21'] == 0){$u21 = ''.$units['u21'].'';} + else if($units['u21'] > 0){$u21 = ''.$units['u21'].'';} + if($units['u22'] == 0){$u22 = ''.$units['u22'].'';} + else if($units['u22'] > 0){$u22 = ''.$units['u22'].'';} + if($units['u23'] == 0){$u23 = ''.$units['u23'].'';} + else if($units['u23'] > 0){$u23 = ''.$units['u23'].'';} + if($units['u24'] == 0){$u24 = ''.$units['u24'].'';} + else if($units['u24'] > 0){$u24 = ''.$units['u24'].'';} + if($units['u25'] == 0){$u25 = ''.$units['u25'].'';} + else if($units['u25'] > 0){$u25 = ''.$units['u25'].'';} + if($units['u26'] == 0){$u26 = ''.$units['u26'].'';} + else if($units['u26'] > 0){$u26 = ''.$units['u26'].'';} + if($units['u27'] == 0){$u27 = ''.$units['u27'].'';} + else if($units['u27'] > 0){$u27 = ''.$units['u27'].'';} + if($units['u28'] == 0){$u28 = ''.$units['u28'].'';} + else if($units['u28'] > 0){$u28 = ''.$units['u28'].'';} + if($units['u29'] == 0){$u29 = ''.$units['u29'].'';} + else if($units['u29'] > 0){$u29 = ''.$units['u29'].'';} + if($units['u30'] == 0){$u30 = ''.$units['u30'].'';} + else if($units['u30'] > 0){$u30 = ''.$units['u30'].'';} + ## Nature + if($units['u31'] == 0){$u31 = ''.$units['u31'].'';} + else if($units['u31'] > 0){$u31 = ''.$units['u31'].'';} + if($units['u32'] == 0){$u32 = ''.$units['u32'].'';} + else if($units['u32'] > 0){$u32 = ''.$units['u32'].'';} + if($units['u33'] == 0){$u33 = ''.$units['u33'].'';} + else if($units['u33'] > 0){$u33 = ''.$units['u33'].'';} + if($units['u34'] == 0){$u34 = ''.$units['u34'].'';} + else if($units['u34'] > 0){$u34 = ''.$units['u34'].'';} + if($units['u35'] == 0){$u35 = ''.$units['u35'].'';} + else if($units['u35'] > 0){$u35 = ''.$units['u35'].'';} + if($units['u36'] == 0){$u36 = ''.$units['u36'].'';} + else if($units['u36'] > 0){$u36 = ''.$units['u36'].'';} + if($units['u37'] == 0){$u37 = ''.$units['u37'].'';} + else if($units['u37'] > 0){$u37 = ''.$units['u37'].'';} + if($units['u38'] == 0){$u38 = ''.$units['u38'].'';} + else if($units['u38'] > 0){$u38 = ''.$units['u38'].'';} + if($units['u39'] == 0){$u39 = ''.$units['u39'].'';} + else if($units['u39'] > 0){$u39 = ''.$units['u39'].'';} + ## Natars + if($units['u40'] == 0){$u40 = ''.$units['u40'].'';} + else if($units['u40'] > 0){$u40 = ''.$units['u40'].'';} + if($units['u41'] == 0){$u41 = ''.$units['u41'].'';} + else if($units['u41'] > 0){$u41 = ''.$units['u41'].'';} + if($units['u42'] == 0){$u42 = ''.$units['u42'].'';} + else if($units['u42'] > 0){$u42 = ''.$units['u42'].'';} + if($units['u43'] == 0){$u43 = ''.$units['u43'].'';} + else if($units['u43'] > 0){$u43 = ''.$units['u43'].'';} + if($units['u44'] == 0){$u44 = ''.$units['u44'].'';} + else if($units['u44'] > 0){$u44 = ''.$units['u44'].'';} + if($units['u45'] == 0){$u45 = ''.$units['u45'].'';} + else if($units['u45'] > 0){$u45 = ''.$units['u45'].'';} + if($units['u46'] == 0){$u46 = ''.$units['u46'].'';} + else if($units['u46'] > 0){$u46 = ''.$units['u46'].'';} + if($units['u47'] == 0){$u47 = ''.$units['u47'].'';} + else if($units['u47'] > 0){$u47 = ''.$units['u47'].'';} + if($units['u48'] == 0){$u48 = ''.$units['u48'].'';} + else if($units['u48'] > 0){$u48 = ''.$units['u48'].'';} + if($units['u49'] == 0){$u49 = ''.$units['u49'].'';} + else if($units['u49'] > 0){$u49 = ''.$units['u49'].'';} + if($units['u50'] == 0){$u50 = ''.$units['u50'].'';} + else if($units['u50'] > 0){$u50 = ''.$units['u50'].'';} + if($_SESSION['access'] == ADMIN) + { + if($user['tribe'] == 1) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // TEUTON UNITS + else if($user['tribe'] == 2) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // GAUL UNITS + else if($user['tribe'] == 3) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // Nature UNITS + else if($user['tribe'] == 4) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // Natar Units + else if($user['tribe'] == 5) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + } + ?> + +
Troops in village
'.$u1.'
'.$u2.'
'.$u3.'
'.$u4.'
'.$u5.'
'.$u6.'
'.$u7.'
'.$u8.'
'.$u9.'
'.$u10.'
'.$u11.'
'.$u12.'
'.$u13.'
'.$u14.'
'.$u15.'
'.$u16.'
'.$u17.'
'.$u18.'
'.$u19.'
'.$u20.'
'.$u21.'
'.$u22.'
'.$u23.'
'.$u24.'
'.$u25.'
'.$u26.'
'.$u27.'
'.$u28.'
'.$u29.'
'.$u30.'
'.$u31.'
'.$u32.'
'.$u33.'
'.$u34.'
'.$u35.'
'.$u36.'
'.$u37.'
'.$u38.'
'.$u39.'
'.$u40.'
'.$u41.'
'.$u42.'
'.$u43.'
'.$u44.'
'.$u45.'
'.$u46.'
'.$u47.'
'.$u48.'
'.$u49.'
'.$u50.'
+ Edit Troops'; + } + + ?> \ No newline at end of file diff --git a/Admin/Templates/userillegallog.tpl b/Admin/Templates/userillegallog.tpl new file mode 100644 index 00000000..ec1200e9 --- /dev/null +++ b/Admin/Templates/userillegallog.tpl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + '; + } + ?> + +
's Illegals Log
OffenceIDDescription
'.$i.''.$row['id'].''.$row['log'].'
\ No newline at end of file diff --git a/Admin/Templates/userlogin.tpl b/Admin/Templates/userlogin.tpl new file mode 100644 index 00000000..238e00f0 --- /dev/null +++ b/Admin/Templates/userlogin.tpl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + '; + } + ?> + +
Login Log
Login AttemptIDIP
'.$i.''.$row['id'].''.$row['ip'].'
\ No newline at end of file diff --git a/Admin/Templates/village.tpl b/Admin/Templates/village.tpl new file mode 100644 index 00000000..446bdf98 --- /dev/null +++ b/Admin/Templates/village.tpl @@ -0,0 +1,503 @@ +getVillage($id); + $user = $database->getUserArray($village['owner'],1); + $coor = $database->getCoor($village['wref']); + $varray = $database->getProfileVillages($village['owner']); + $type = $database->getVillageType($village['wref']); + $fdata = $database->getResourceLevel($village['wref']); + $units = $database->getUnit($village['wref']); + if($type == 1){ $typ = array(3,3,3,9); } + elseif($type == 2){ $typ = array(3,4,5,6); } + elseif($type == 3){ $typ = array(4,4,4,6); } + elseif($type == 4){ $typ = array(4,5,3,6); } + elseif($type == 5){ $typ = array(5,3,4,6); } + elseif($type == 6){ $typ = array(1,1,1,15); } + elseif($type == 7){ $typ = array(4,4,3,7); } + elseif($type == 8){ $typ = array(3,4,4,7); } + elseif($type == 9){ $typ = array(4,3,4,7); } + elseif($type == 10){ $typ = array(3,5,4,6); } + elseif($type == 11){ $typ = array(4,5,3,6); } + elseif($type == 12){ $typ = array(5,4,3,6); } + $refreshicon = ""; + $refreshiconfrm = "data:image/png;base64, + iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACx + jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEQSURBVChTY/gPBkevHfRrtjMsU9bJ05+5eylE + kAGI117fKFsqYzhTNeSQY8xhP8vJJmVrK3eeP8Bw58kt03rTkHnRxdvrnKd4m83SCTtsaLZI1K7H + mGH2xpnHLh+GGPL7/7/S1dVKU2Usd6roTZBh+Pj3M0QCCL78+Fw6v1ooR1myWU2zzpjBb2Ko8xwf + 91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd + 9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3 + Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg=="; + class Generator + { + public function getMapCheck($wref) + { + return substr(md5($wref),5,2); + } + }; + $generator = new Generator; + if($village and $user) + { + include("search2.tpl"); ?> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Village Information
Village owner: +
+ + + Owner(uid): +
+
Village name:
+ +
Population
Coordinates:(|)
Village ID
Field type + | '; + } + else + { + echo $typ[$i].'x '; + } + } + ?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Resources
Resource
Warehouse Production
Lumber
???
Clay
???
Iron
???
Crop
???
+ + + + + + + + + + + + + + + + + + + '; + } + else + { + $vill = $database->getVillage($exp); + $link = ''.$vill['name'].''; + echo ' + + + + + '; + } + } + ?> + + + +
Village Expansion
VillageInhabitantsCP Production
-
-
-
'.$link.'
'.$vill['pop'].'
'.$vill['cp'].'
+ + + + + + + + + + + + + + + + getOasis($id); + $oases = count($oasisarray); + for($o=0; $o<$oases; $o++) + { + $oasiscoor = $database->getCoor($oasisarray['$o']['wref']); + $type = $oasisarray['type']; + if($type==1) { $type = ' + 25%'; } + elseif($type==2) { $type = ' + 25%'; } + elseif($type==3) { $type = ' + 25%
+ 25%'; } + elseif($type==4) { $type = ' + 25%'; } + elseif($type==5) { $type = ' + 25%'; } + elseif($type==6) { $type = ' + 25%
+ 25%'; } + elseif($type==7) { $type = ' + 25%'; } + elseif($type==8) { $type = ' + 25%'; } + elseif($type==9) { $type = ' + 25%
+ 25%'; } + elseif($type==10){ $type = ' + 25%'; } + elseif($type==11){ $type = ' + 25%'; } + elseif($type==12){ $type = ' + 50%'; } + echo ' + + + + + + + '; + } */ + ?> + getOasis($village['wref']); + $isthere = count($oasisarray); + if($isthere >0) + { + $query = "SELECT * FROM ".TB_PREFIX."odata WHERE conqured = ".$village['wref'].""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + $oasiswref = $row['wref']; + $oasisx = mysql_result(mysql_query("SELECT x FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); + $oasisy = mysql_result(mysql_query("SELECT y FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); + + $type = $row['type']; + if($type==1) { $type = ' + 25%'; } + elseif($type==2) { $type = ' + 25%'; } + elseif($type==3) { $type = ' + 25%
+ 25%'; } + elseif($type==4) { $type = ' + 25%'; } + elseif($type==5) { $type = ' + 25%'; } + elseif($type==6) { $type = ' + 25%
+ 25%'; } + elseif($type==7) { $type = ' + 25%'; } + elseif($type==8) { $type = ' + 25%'; } + elseif($type==9) { $type = ' + 25%
+ 25%'; } + elseif($type==10){ $type = ' + 25%'; } + elseif($type==11){ $type = ' + 25%'; } + elseif($type==12){ $type = ' + 50%'; } + echo " + + + + + + + "; + } ## + } + elseif($isthere ==0) + { + echo ''; + } + ?> + +
Oases
NameCoordinatesLoyaltyResources
'.$oasisarray['name'].'('.$oasiscoor['x'].'|'.$oasiscoor['y'].')'.$oasisarray['loyalty'].''.$type.'
".$row['name']."getMapCheck($row['wref'])."\" target=\"blank\">(".$oasisx."|".$oasisy.")".$row['loyalty']."%$type
".$row['wood']."
".$row['clay']."
".$row['iron']."
".$row['crop']."
This village has no oases
+ + + + + + + +
+
+ "; + } + ?> +
+
+ +
+
+
+

+
+ 0) + { + echo ""; + } + elseif($gid ==0) + { + echo ""; + } + } + $rp=16; + $rplevel = $fdata['f'.$rp]; + if($rplevel > 0) + { + echo ""; + } + elseif($rplevel ==0) + { + echo ""; + } + ?> +
+ 0) + { + echo "
$level
"; + } + } + if($rplevel >0) + { + echo "
".$fdata['f'.($b + 18)]."
"; + } + ?> +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + procResType($fdata['f'.$i.'t']); + } + echo ' + + + + + + + '; + } + ?> + +
Buildings
IDGIDNameLevelEdit
'.$i.''.$fdata['f'.$i.'t'].''.$bu.''.$fdata['f'.$i].'
+ +

+ + Village Build Log +
+
+ \ No newline at end of file diff --git a/Admin/Templates/villagelog.tpl b/Admin/Templates/villagelog.tpl new file mode 100644 index 00000000..df0dae5f --- /dev/null +++ b/Admin/Templates/villagelog.tpl @@ -0,0 +1,38 @@ +getVillage($id); + ?> +

+ + + + + + + + + + + + + + '; + } + ?> + +
's Build Log
#Event
'.$j.''.$row['log'].'
\ No newline at end of file diff --git a/Templates/Admin/villages.tpl b/Admin/Templates/villages.tpl similarity index 90% rename from Templates/Admin/villages.tpl rename to Admin/Templates/villages.tpl index 0a7a32ae..e541eed5 100644 --- a/Templates/Admin/villages.tpl +++ b/Admin/Templates/villages.tpl @@ -32,13 +32,13 @@ for ($i = 0; $i <= count($varray)-1; $i++) { $coorproc = $database->getCoor($varray[$i]['wref']); if($varray[$i]['capital']){ $capital = '(Capital)'; -$delLink = ''; +$delLink = ''; }else{ $capital = ''; if($_SESSION['access'] == ADMIN){ -$delLink = ''; +$delLink = ''; }else if($_SESSION['access'] == MULTIHUNTER){ - $delLink = ''; + $delLink = ''; } } diff --git a/Admin/admin.php b/Admin/admin.php new file mode 100644 index 00000000..9f4c89ef --- /dev/null +++ b/Admin/admin.php @@ -0,0 +1,210 @@ += 60): $time -= 60; $min += 1; endwhile; + while ($min >= 60): $min -= 60; $hr += 1; endwhile; + while ($hr >= 24): $hr -= 24; $days +=1; endwhile; + if ($min < 10) + { + $min = "0".$min; + } + if($time < 10) + { + $time = "0".$time; + } + return $days ." day ".$hr."h ".$min."m ".$time."s"; + } +}; +$timeformat = new timeFormatGenerator; +?> + + + + + Admin Panel + + + + + + + + + + + +
+
+ +
+
+
+
+ +
+
+ CheckLogin()) + { + if($_POST or $_GET) + { + if($_GET['p'] and $_GET['p']!="search") + { + $filename = 'Templates/'.$_GET['p'].'.tpl'; + if(file_exists($filename)) + { + include($filename); + } + else + { + include('Templates/404.tpl'); + } + } + else + { + include('Templates/search.tpl'); + } + if($_POST['p'] and $_POST['s']) + { + $filename = 'Templates/results_'.$_POST['p'].'.tpl'; + if(file_exists($filename)) + { + include($filename); + } + else + { + include('Templates/404.tpl'); + } + } + } + else + { + include('Templates/home.tpl'); + } + } + else + { + include('Templates/login.tpl'); + } + ?> +
+
+
+
+
+
+ + + diff --git a/Admin/ajax.js b/Admin/ajax.js new file mode 100644 index 00000000..808d42ef --- /dev/null +++ b/Admin/ajax.js @@ -0,0 +1,63 @@ +var http_request = false; + +function macheRequest(url, id) +{ + http_request = false; + if (window.XMLHttpRequest) + { // Mozilla, Safari,... + http_request = new XMLHttpRequest(); + if (http_request.overrideMimeType) + { + http_request.overrideMimeType('text/xml'); + // zu dieser Zeile siehe weiter unten + } + } + else if (window.ActiveXObject) + { // IE + try + { + http_request = new ActiveXObject("Msxml2.XMLHTTP"); + } + catch (e) + { + try + { + http_request = new ActiveXObject("Microsoft.XMLHTTP"); + } + catch (e) + { + } + } + } + if (!http_request) + { + alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); + return false; + } + http_request.onreadystatechange = function() + { + alertInhalt2(id); + }; + http_request.open('GET', url, true); + http_request.send(null); +} + +function alertInhalt2(id) +{ + if (http_request.readyState == 4) + { + if (http_request.status == 200) + { + // alert(http_request.responseText); + myElement = document.getElementById(id); + if (myElement != null) + { + myElement.innerHTML = http_request.responseText; + } + } + else + { + alert('Bei dem Request ist ein Problem aufgetreten.'); + } + } +} \ No newline at end of file diff --git a/Admin/index.php b/Admin/index.php new file mode 100644 index 00000000..9e5a2dde --- /dev/null +++ b/Admin/index.php @@ -0,0 +1,68 @@ + + + + + + Admin Panel + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+
+
+
+

+ + + + + + + + + + + + +
Who are you?
+
Server Admin
+
+
Multihunter
+
+
+
+
+
+
+
+
+ + + diff --git a/GameEngine/Admin/Mods/addTroops.php b/GameEngine/Admin/Mods/addTroops.php index 8901af93..bf9f4f43 100644 --- a/GameEngine/Admin/Mods/addTroops.php +++ b/GameEngine/Admin/Mods/addTroops.php @@ -1,20 +1,13 @@ $id ',".time().")"); -header("Location: ../../../admin.php?p=addTroops&did=".$id."&d"); +header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d"); ?> diff --git a/GameEngine/Admin/Mods/cp.php b/GameEngine/Admin/Mods/cp.php index f27ac957..1080f9d2 100644 --- a/GameEngine/Admin/Mods/cp.php +++ b/GameEngine/Admin/Mods/cp.php @@ -1,33 +1,29 @@ access < ADMIN) die("Access Denied: You aren't Admin!"); $id = $_POST['id']; $admid = $_POST['admid']; + +$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$admid.""); +$access = mysql_fetch_array($sql); +$sessionaccess = $access['access']; + +if($sessionaccess != 9) die("

Access Denied: You are not Admin!

"); + mysql_query("UPDATE ".TB_PREFIX."users SET cp = cp + ".$_POST['cp']." WHERE id = ".$id.""); -$name = $database->getUserField($id,"username",0); -mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Culture Points to user $name ',".time().")"); - -header("Location: ../../../admin.php?p=player&uid=".$id."&cp=ok"); +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); ?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedal.php b/GameEngine/Admin/Mods/delallymedal.php new file mode 100644 index 00000000..254058ff --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedal.php @@ -0,0 +1,30 @@ +Access Denied: You are not Admin!"); + +mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE id = ".$delete.""); + +header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedalbyaid.php b/GameEngine/Admin/Mods/delallymedalbyaid.php new file mode 100644 index 00000000..ca9eeaa6 --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedalbyaid.php @@ -0,0 +1,30 @@ +Access Denied: You are not Admin!"); + +mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE allyid = ".$aid.""); + +header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedalbyweek.php b/GameEngine/Admin/Mods/delallymedalbyweek.php new file mode 100644 index 00000000..0f9e4311 --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedalbyweek.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("DELETE FROM ".TB_PREFIX."allimedal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delallymedal"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/deletemedalbyuser.php b/GameEngine/Admin/Mods/deletemedalbyuser.php new file mode 100644 index 00000000..9f5bcfdc --- /dev/null +++ b/GameEngine/Admin/Mods/deletemedalbyuser.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$userid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/deletemedalbyweek.php b/GameEngine/Admin/Mods/deletemedalbyweek.php new file mode 100644 index 00000000..96e6ee26 --- /dev/null +++ b/GameEngine/Admin/Mods/deletemedalbyweek.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delmedal"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editAccess.php b/GameEngine/Admin/Mods/editAccess.php new file mode 100644 index 00000000..deeb1e6a --- /dev/null +++ b/GameEngine/Admin/Mods/editAccess.php @@ -0,0 +1,33 @@ +Access Denied: You are not Admin!"); + +$access = $_POST['access']; + +mysql_query("UPDATE ".TB_PREFIX."users SET + access = ".$access." + WHERE id = ".$id."") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editBuildings.php b/GameEngine/Admin/Mods/editBuildings.php new file mode 100644 index 00000000..f3cb3891 --- /dev/null +++ b/GameEngine/Admin/Mods/editBuildings.php @@ -0,0 +1,110 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."fdata SET + f1 = '".$_POST['id1level']."', + f1t = '".$_POST['id1gid']."', + f2 = '".$_POST['id2level']."', + f2t = '".$_POST['id2gid']."', + f3 = '".$_POST['id3level']."', + f3t = '".$_POST['id3gid']."', + f4 = '".$_POST['id4level']."', + f4t = '".$_POST['id4gid']."', + f5 = '".$_POST['id5level']."', + f5t = '".$_POST['id5gid']."', + f6 = '".$_POST['id6level']."', + f6t = '".$_POST['id6gid']."', + f7 = '".$_POST['id7level']."', + f7t = '".$_POST['id7gid']."', + f8 = '".$_POST['id8level']."', + f8t = '".$_POST['id8gid']."', + f9 = '".$_POST['id9level']."', + f9t = '".$_POST['id9gid']."', + f10 = '".$_POST['id10level']."', + f10t = '".$_POST['id10gid']."', + f11 = '".$_POST['id11level']."', + f11t = '".$_POST['id11gid']."', + f12 = '".$_POST['id12level']."', + f12t = '".$_POST['id12gid']."', + f13 = '".$_POST['id13level']."', + f13t = '".$_POST['id13gid']."', + f14 = '".$_POST['id14level']."', + f14t = '".$_POST['id14gid']."', + f15 = '".$_POST['id15level']."', + f15t = '".$_POST['id15gid']."', + f16 = '".$_POST['id16level']."', + f16t = '".$_POST['id16gid']."', + f17 = '".$_POST['id17level']."', + f17t = '".$_POST['id17gid']."', + f18 = '".$_POST['id18level']."', + f18t = '".$_POST['id18gid']."', + f19 = '".$_POST['id19level']."', + f19t = '".$_POST['id19gid']."', + f20 = '".$_POST['id20level']."', + f20t = '".$_POST['id20gid']."', + f21 = '".$_POST['id21level']."', + f21t = '".$_POST['id21gid']."', + f22 = '".$_POST['id22level']."', + f22t = '".$_POST['id22gid']."', + f23 = '".$_POST['id23level']."', + f23t = '".$_POST['id23gid']."', + f24 = '".$_POST['id24level']."', + f24t = '".$_POST['id24gid']."', + f25 = '".$_POST['id25level']."', + f25t = '".$_POST['id25gid']."', + f26 = '".$_POST['id26level']."', + f26t = '".$_POST['id26gid']."', + f27 = '".$_POST['id27level']."', + f27t = '".$_POST['id27gid']."', + f28 = '".$_POST['id28level']."', + f28t = '".$_POST['id28gid']."', + f29 = '".$_POST['id29level']."', + f29t = '".$_POST['id29gid']."', + f30 = '".$_POST['id30level']."', + f30t = '".$_POST['id30gid']."', + f31 = '".$_POST['id31level']."', + f31t = '".$_POST['id31gid']."', + f32 = '".$_POST['id32level']."', + f32t = '".$_POST['id32gid']."', + f33 = '".$_POST['id33level']."', + f33t = '".$_POST['id33gid']."', + f34 = '".$_POST['id34level']."', + f34t = '".$_POST['id34gid']."', + f35 = '".$_POST['id35level']."', + f35t = '".$_POST['id35gid']."', + f36 = '".$_POST['id36level']."', + f36t = '".$_POST['id36gid']."', + f37 = '".$_POST['id37level']."', + f37t = '".$_POST['id37gid']."', + f38 = '".$_POST['id38level']."', + f38t = '".$_POST['id38gid']."', + f39 = '".$_POST['id39level']."', + f39t = '".$_POST['id39gid']."', + f40 = '".$_POST['id40level']."', + f40t = '".$_POST['id40gid']."' + WHERE vref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?action=recountPop&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editOverall.php b/GameEngine/Admin/Mods/editOverall.php new file mode 100644 index 00000000..f1605e7e --- /dev/null +++ b/GameEngine/Admin/Mods/editOverall.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + apall = '".$_POST['off']."', + dpall = '".$_POST['def']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editPassword.php b/GameEngine/Admin/Mods/editPassword.php new file mode 100644 index 00000000..fd342fc4 --- /dev/null +++ b/GameEngine/Admin/Mods/editPassword.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + password = '".$pass."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editPlus.php b/GameEngine/Admin/Mods/editPlus.php new file mode 100644 index 00000000..71293555 --- /dev/null +++ b/GameEngine/Admin/Mods/editPlus.php @@ -0,0 +1,49 @@ +Access Denied: You are not Admin!"); + +$pdur = $_POST['plus'] * 86400; +$b1dur = $_POST['wood'] * 86400; +$b2dur = $_POST['clay'] * 86400; +$b3dur = $_POST['iron'] * 86400; +$b4dur = $_POST['crop'] * 86400; +$quest = $_POST['quest']; + +if($pdur > 1){ $plus = (time() + $pdur); } else { $pdur = 'plus'; } +if($b1dur > 1){ $wood = (time() + $b1dur); } else { $wood = 'b1'; } +if($b2dur > 1){ $clay = (time() + $b2dur); } else { $clay = 'b2'; } +if($b3dur > 1){ $iron = (time() + $b3dur); } else { $iron = 'b3'; } +if($b4dur > 1){ $crop = (time() + $b4dur); } else { $crop = 'b4'; } + +mysql_query("UPDATE ".TB_PREFIX."users SET + plus = '".$plus."', + b1 = '".$wood."', + b2 = '".$clay."', + b3 = '".$iron."', + b4 = '".$crop."', + quest = '".$quest."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editProtection.php b/GameEngine/Admin/Mods/editProtection.php new file mode 100644 index 00000000..862b00e9 --- /dev/null +++ b/GameEngine/Admin/Mods/editProtection.php @@ -0,0 +1,34 @@ +Access Denied: You are not Admin!"); + +$dur = $_POST['protect'] * 86400; +$protection = (time() + $dur); + +mysql_query("UPDATE ".TB_PREFIX."users SET + protect = '".$protection."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editResources.php b/GameEngine/Admin/Mods/editResources.php new file mode 100644 index 00000000..d53479bb --- /dev/null +++ b/GameEngine/Admin/Mods/editResources.php @@ -0,0 +1,36 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."vdata SET + wood = '".$_POST['wood']."', + clay = '".$_POST['clay']."', + iron = '".$_POST['iron']."', + crop = '".$_POST['crop']."', + maxstore = '".$_POST['maxstore']."', + maxcrop = '".$_POST['maxcrop']."' + WHERE wref = '".$id."'") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=village&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editSitter.php b/GameEngine/Admin/Mods/editSitter.php new file mode 100644 index 00000000..ae77131a --- /dev/null +++ b/GameEngine/Admin/Mods/editSitter.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + sit1 = '".$_POST['sitter1']."', + sit2 = '".$_POST['sitter2']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editUser.php b/GameEngine/Admin/Mods/editUser.php index c4e52a9b..bb162898 100644 --- a/GameEngine/Admin/Mods/editUser.php +++ b/GameEngine/Admin/Mods/editUser.php @@ -1,31 +1,36 @@ getUserArray($id,1); -mysql_query("UPDATE ".TB_PREFIX."users SET email = '".$_POST['email']."', tribe = ".$_POST['tribe'].", location = '".$_POST['location']."', desc1 = '".$_POST['desc1']."', `desc2` = '".$_POST['desc2']."' WHERE id = ".$_POST['id'].""); -mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed ".$user['username']."\'s profile',".time().")"); -header("Location: ../../../admin.php?p=player&uid=".$id.""); +$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$session.""); +$access = mysql_fetch_array($sql); +$sessionaccess = $access['access']; + +if($sessionaccess != 9) die("

Access Denied: You are not Admin!

"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + email = '".$_POST['email']."', + tribe = ".$_POST['tribe'].", + location = '".$_POST['location']."', + desc1 = '".$_POST['desc1']."', + desc2 = '".$_POST['desc2']."', + quest = '".$_POST['quest']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); ?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editUsername.php b/GameEngine/Admin/Mods/editUsername.php new file mode 100644 index 00000000..289c3fa4 --- /dev/null +++ b/GameEngine/Admin/Mods/editUsername.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET username = '".$_POST['username']."' WHERE id = ".$uid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editVillageOwner.php b/GameEngine/Admin/Mods/editVillageOwner.php new file mode 100644 index 00000000..66edca28 --- /dev/null +++ b/GameEngine/Admin/Mods/editVillageOwner.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."vdata SET + owner = '".$_POST['newowner']."' + WHERE wref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$_POST['newowner'].""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editWeek.php b/GameEngine/Admin/Mods/editWeek.php new file mode 100644 index 00000000..0d0094e2 --- /dev/null +++ b/GameEngine/Admin/Mods/editWeek.php @@ -0,0 +1,33 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + ap = '".$_POST['off']."', + dp = '".$_POST['def']."', + RR = '".$_POST['res']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/givePlus.php b/GameEngine/Admin/Mods/givePlus.php new file mode 100644 index 00000000..f1de5133 --- /dev/null +++ b/GameEngine/Admin/Mods/givePlus.php @@ -0,0 +1,44 @@ +Access Denied: You are not Admin!"); + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +$plusdur = $_POST['plus'] * 86400; + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + if($row['plus'] < time()) { $plusbefore = time(); $addplus = $plusbefore + $plusdur; } elseif($row['plus'] > time()) { $plusbefore = $row['plus']; $addplus = $plusbefore + $plusdur; } + mysql_query("UPDATE ".TB_PREFIX."users SET + plus = '".$addplus."' + WHERE id = '".$row['id']."'"); + } +} + +header("Location: ../../../Admin/admin.php?p=givePlus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/givePlusRes.php b/GameEngine/Admin/Mods/givePlusRes.php new file mode 100644 index 00000000..61fe0acb --- /dev/null +++ b/GameEngine/Admin/Mods/givePlusRes.php @@ -0,0 +1,53 @@ +Access Denied: You are not Admin!"); + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +$wood = $_POST['wood'] * 86400; +$clay = $_POST['clay'] * 86400; +$iron = $_POST['iron'] * 86400; +$crop = $_POST['crop'] * 86400; + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + if($row['b1'] < time()) { $b1before = time(); $addb1 = $b1before + $wood; } elseif($row['b1'] > time()) { $b1before = $row['b1']; $addb1 = $b1before + $wood; } + if($row['b2'] < time()) { $b2before = time(); $addb2 = $b1before + $clay; } elseif($row['b2'] > time()) { $b2before = $row['b2']; $addb2 = $b1before + $clay; } + if($row['b3'] < time()) { $b3before = time(); $addb3 = $b1before + $iron; } elseif($row['b3'] > time()) { $b3before = $row['b3']; $addb3 = $b1before + $iron; } + if($row['b4'] < time()) { $b4before = time(); $addb4 = $b1before + $crop; } elseif($row['b4'] > time()) { $b4before = $row['b4']; $addb4 = $b1before + $crop; } + mysql_query("UPDATE ".TB_PREFIX."users SET + b1 = '".$addb1."', + b2 = '".$addb2."', + b3 = '".$addb3."', + b4 = '".$addb4."' + WHERE id = '".$row['id']."'"); + } +} + +header("Location: ../../../Admin/admin.php?p=givePlusRes&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/giveResBonus.php b/GameEngine/Admin/Mods/giveResBonus.php new file mode 100644 index 00000000..aac82464 --- /dev/null +++ b/GameEngine/Admin/Mods/giveResBonus.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; +mysql_query($q) or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=maintenenceResetPlusBonus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/gold.php b/GameEngine/Admin/Mods/gold.php index b40c2946..5130195b 100644 --- a/GameEngine/Admin/Mods/gold.php +++ b/GameEngine/Admin/Mods/gold.php @@ -1,30 +1,31 @@ access < ADMIN) die("Access Denied: You aren't Admin!"); -$id = $_POST['id']; -$gold = $_POST['gold']; + +$session = $_POST['admid']; + +$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$session.""); +$access = mysql_fetch_array($sql); +$sessionaccess = $access['access']; + +if($sessionaccess != 9) die("

Access Denied: You are not Admin!

"); + $q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; -mysql_query($q); -mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $gold gold to all users',".time().")"); -header("Location: ../../../admin.php?p=give&g=$gold"); +mysql_query($q) or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=gold&g"); ?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/gold_1.php b/GameEngine/Admin/Mods/gold_1.php index ae04e287..a0b67a40 100644 --- a/GameEngine/Admin/Mods/gold_1.php +++ b/GameEngine/Admin/Mods/gold_1.php @@ -1,33 +1,29 @@ access < ADMIN) die("Access Denied: You are not Admin!"); +$session = $_POST['admid']; $id = $_POST['id']; -$admid = $_POST['admid']; + +$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$session.""); +$access = mysql_fetch_array($sql); +$sessionaccess = $access['access']; + +if($sessionaccess != 9) die("

Access Denied: You are not Admin!

"); + mysql_query("UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id = ".$id.""); -$name = $database->getUserField($id,"username",0); -mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['gold']." gold to user $name ',".time().")"); - -header("Location: ../../../admin.php?p=player&uid=".$id."&g=ok"); +header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&g=ok"); ?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceCleanBanData.php b/GameEngine/Admin/Mods/mainteneceCleanBanData.php new file mode 100644 index 00000000..e4b6347b --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceCleanBanData.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("TRUNCATE ".TB_PREFIX."banlist"); + +header("Location: ../../../Admin/admin.php?p=ban"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetGold.php b/GameEngine/Admin/Mods/mainteneceResetGold.php new file mode 100644 index 00000000..aabcaeb8 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetGold.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET gold = '0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=maintenenceResetGold&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetPlus.php b/GameEngine/Admin/Mods/mainteneceResetPlus.php new file mode 100644 index 00000000..b5664f38 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetPlus.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET plus = '0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=resetPlusBonus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php new file mode 100644 index 00000000..de9a654d --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET b1 = '0', b2 = '0', b3='0', b4='0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=givePlus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/medals.php b/GameEngine/Admin/Mods/medals.php new file mode 100644 index 00000000..0a2cdbad --- /dev/null +++ b/GameEngine/Admin/Mods/medals.php @@ -0,0 +1,34 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$medalid = $_POST['medalid']; +$uid = $_POST['uid']; + +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE id = ".$medalid.""); + +$name = mysql_query("SELECT name FROM ".TB_PREFIX."users WHERE id= ".$uid.""); +$name = mysql_result($name, 0); + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Deleted medal id [#".$medalid."] from the user $name ',".time().")"); + + +$deleteweek = $_POST['medalweek']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/populateOases.php b/GameEngine/Admin/Mods/populateOases.php new file mode 100644 index 00000000..4b4f32f6 --- /dev/null +++ b/GameEngine/Admin/Mods/populateOases.php @@ -0,0 +1,19 @@ +populateOasisUnitsLow(); + +header("Location: ../../../Admin/admin.php?p=server_info"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/recalcWH.php b/GameEngine/Admin/Mods/recalcWH.php new file mode 100644 index 00000000..f3cb3891 --- /dev/null +++ b/GameEngine/Admin/Mods/recalcWH.php @@ -0,0 +1,110 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."fdata SET + f1 = '".$_POST['id1level']."', + f1t = '".$_POST['id1gid']."', + f2 = '".$_POST['id2level']."', + f2t = '".$_POST['id2gid']."', + f3 = '".$_POST['id3level']."', + f3t = '".$_POST['id3gid']."', + f4 = '".$_POST['id4level']."', + f4t = '".$_POST['id4gid']."', + f5 = '".$_POST['id5level']."', + f5t = '".$_POST['id5gid']."', + f6 = '".$_POST['id6level']."', + f6t = '".$_POST['id6gid']."', + f7 = '".$_POST['id7level']."', + f7t = '".$_POST['id7gid']."', + f8 = '".$_POST['id8level']."', + f8t = '".$_POST['id8gid']."', + f9 = '".$_POST['id9level']."', + f9t = '".$_POST['id9gid']."', + f10 = '".$_POST['id10level']."', + f10t = '".$_POST['id10gid']."', + f11 = '".$_POST['id11level']."', + f11t = '".$_POST['id11gid']."', + f12 = '".$_POST['id12level']."', + f12t = '".$_POST['id12gid']."', + f13 = '".$_POST['id13level']."', + f13t = '".$_POST['id13gid']."', + f14 = '".$_POST['id14level']."', + f14t = '".$_POST['id14gid']."', + f15 = '".$_POST['id15level']."', + f15t = '".$_POST['id15gid']."', + f16 = '".$_POST['id16level']."', + f16t = '".$_POST['id16gid']."', + f17 = '".$_POST['id17level']."', + f17t = '".$_POST['id17gid']."', + f18 = '".$_POST['id18level']."', + f18t = '".$_POST['id18gid']."', + f19 = '".$_POST['id19level']."', + f19t = '".$_POST['id19gid']."', + f20 = '".$_POST['id20level']."', + f20t = '".$_POST['id20gid']."', + f21 = '".$_POST['id21level']."', + f21t = '".$_POST['id21gid']."', + f22 = '".$_POST['id22level']."', + f22t = '".$_POST['id22gid']."', + f23 = '".$_POST['id23level']."', + f23t = '".$_POST['id23gid']."', + f24 = '".$_POST['id24level']."', + f24t = '".$_POST['id24gid']."', + f25 = '".$_POST['id25level']."', + f25t = '".$_POST['id25gid']."', + f26 = '".$_POST['id26level']."', + f26t = '".$_POST['id26gid']."', + f27 = '".$_POST['id27level']."', + f27t = '".$_POST['id27gid']."', + f28 = '".$_POST['id28level']."', + f28t = '".$_POST['id28gid']."', + f29 = '".$_POST['id29level']."', + f29t = '".$_POST['id29gid']."', + f30 = '".$_POST['id30level']."', + f30t = '".$_POST['id30gid']."', + f31 = '".$_POST['id31level']."', + f31t = '".$_POST['id31gid']."', + f32 = '".$_POST['id32level']."', + f32t = '".$_POST['id32gid']."', + f33 = '".$_POST['id33level']."', + f33t = '".$_POST['id33gid']."', + f34 = '".$_POST['id34level']."', + f34t = '".$_POST['id34gid']."', + f35 = '".$_POST['id35level']."', + f35t = '".$_POST['id35gid']."', + f36 = '".$_POST['id36level']."', + f36t = '".$_POST['id36gid']."', + f37 = '".$_POST['id37level']."', + f37t = '".$_POST['id37gid']."', + f38 = '".$_POST['id38level']."', + f38t = '".$_POST['id38gid']."', + f39 = '".$_POST['id39level']."', + f39t = '".$_POST['id39gid']."', + f40 = '".$_POST['id40level']."', + f40t = '".$_POST['id40gid']."' + WHERE vref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?action=recountPop&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/renameVillage.php b/GameEngine/Admin/Mods/renameVillage.php new file mode 100644 index 00000000..f597b9d3 --- /dev/null +++ b/GameEngine/Admin/Mods/renameVillage.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did"; +mysql_query($sql); + +header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/sendMessage.php b/GameEngine/Admin/Mods/sendMessage.php new file mode 100644 index 00000000..b139cb64 --- /dev/null +++ b/GameEngine/Admin/Mods/sendMessage.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')"; + +mysql_query($query); + +header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/database.php b/GameEngine/Admin/database.php index e032514c..135b0e0d 100644 --- a/GameEngine/Admin/database.php +++ b/GameEngine/Admin/database.php @@ -17,8 +17,8 @@ ## ## ################################################################################# -include("GameEngine/config.php"); -include("GameEngine/Data/buidata.php"); +include("../GameEngine/config.php"); +include("../GameEngine/Data/buidata.php"); class adm_DB { var $connection; diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 9a8caa2f..e4e24ed4 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -45,6 +45,19 @@ class Automation { } } + private function checkWWLevel() { + global $database; + $q = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE wwlevel != 0"); + $ww = mysql_fetch_array($q); + for ($i = 1; $i <= 40; $i++) { + if(mysql_num_rows($q) > 0){ + if($ww['f99t'] != 40 && $ww['f'.$i.'t'] != 40){ + $database->setVillageLevel($ww['vref'], "wwlevel", 0); + } + } + } + } + public function procResType($ref) { global $session; switch($ref) { @@ -181,6 +194,7 @@ class Automation { } $this->updateStore(); $this->getWWRankInfo(); + $this->checkWWLevel(); } function activeCropDead(){ diff --git a/Templates/Admin/404.tpl b/Templates/Admin/404.tpl deleted file mode 100644 index bcd9d501..00000000 --- a/Templates/Admin/404.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
-
-

404 - File not found

- This admin system is not finished yet or page doesn't exist.
-
-
-
\ No newline at end of file diff --git a/Templates/Admin/add_village.tpl b/Templates/Admin/add_village.tpl deleted file mode 100644 index 145ccfe2..00000000 --- a/Templates/Admin/add_village.tpl +++ /dev/null @@ -1,44 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Add Village
Coordinates (X|Y)
X:>
Y:>
>
-
\ No newline at end of file diff --git a/Templates/Admin/admin_log.tpl b/Templates/Admin/admin_log.tpl deleted file mode 100644 index c643199c..00000000 --- a/Templates/Admin/admin_log.tpl +++ /dev/null @@ -1,42 +0,0 @@ -getAdminLog()); - $log = $database->getAdminLog(); - for($i=0;$i<$no;$i++) { - $admid = $log[$i]['user'] -?> ----------------------------------------- -
-Log ID: -
-Admin: getUserField($admid,"username",0); - if($user == 'Multihunter') { - echo 'CONTROL PANEL'; - } else { echo ''.$user.''; } - ?> -
-Log: -
-Date: -
- \ No newline at end of file diff --git a/Templates/Admin/alliance.tpl b/Templates/Admin/alliance.tpl deleted file mode 100644 index 32287b0c..00000000 --- a/Templates/Admin/alliance.tpl +++ /dev/null @@ -1,139 +0,0 @@ -getAlliance($_GET['aid']); -$aliusers = $database->getAllMember($_GET['aid']); -$alirank = $ranking/* ->getAllianceRank($_GET['aid']) */; -if($alidata and $aliusers){ - -foreach($aliusers as $member) { - $totalpop += $database->getVSumField($member['id'],"pop"); -} -?> -
- - - - - - - - - - - - - - - - - - -
Alliance
DetailsDescription
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Tag
Name
Rank?
Points
Members
alliance foundergetUserField($alidata['leader'],"username",0); ?>
- » Edit Alliance -
- » Delete Alliance -
bb
-
aa
- - - - - - - - - -getVSumField($user['id'],"pop"); - $TotalVillages = $database->getProfileVillages($user['id']); - - echo " "; - echo " "; - echo " "; - echo " "; - echo " "; - - if($aid == $session->alliance){ - if ((time()-600) < $member['timestamp']){ // 0 Min - 10 Min - echo ""; - }elseif ((time()-86400) < $member['timestamp'] && (time()-600) > $member['timestamp']){ // 10 Min - 1 Days - echo ""; - }elseif ((time()-259200) < $member['timestamp'] && (time()-86400) > $member['timestamp']){ // 1-3 Days - echo ""; - }elseif ((time()-604800) < $member['timestamp'] && (time()-259200) > $member['timestamp']){ // 3-7 Days - echo ""; - }else{ // More than 7 days - echo ""; - } - } - echo " "; -} -?> - -
 PlayerPopulationVillages 
".$rank.".".$user['username']."".$TotalUserPop."".count($TotalVillages)."OnlineMax. 24 hoursLast 3 daysLast 7 daysOffline
- -Back"; -} -} -?> \ No newline at end of file diff --git a/Templates/Admin/ban.tpl b/Templates/Admin/ban.tpl deleted file mode 100644 index ee427834..00000000 --- a/Templates/Admin/ban.tpl +++ /dev/null @@ -1,104 +0,0 @@ - - -
- - - - - - - - - - - - - - - - - - - - - - -
Ban
User ID - -
Reason - -
Time - -
-
-search_banned(); ?> -
- - - - - - - - - - - - - getUserField($bannedUsers[$i]['uid'],'username',0)==''){ - $name = $bannedUsers[$i]['name']; - $link = "[".$name."]"; - }else{ - $name = $database->getUserField($bannedUsers[$i]['uid'],'username',0); - $link = ''.$name.''; - } - if($bannedUsers[$i]['end']){$end = date("d.m.y H:i",$bannedUsers[$i]['end']);}else{$end = '*';} - echo ' - - - - - - - '; - } - }else{ - echo ''; - } - ?> - -
Ban List
UsernameLength (from/to)Reason
'.$link.''.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.''.$bannedUsers[$i]['reason'].'cancel
No results...
\ No newline at end of file diff --git a/Templates/Admin/ban_msg.tpl b/Templates/Admin/ban_msg.tpl deleted file mode 100644 index b3437ec1..00000000 --- a/Templates/Admin/ban_msg.tpl +++ /dev/null @@ -1,39 +0,0 @@ -uid."'"); -$ban1 = mysql_fetch_array($ban); -?> - -


-Hello ! -You have been banned due to a violation of the rules. -
-Your banning reason is . -
- -

To ensure that you won't get banned again in the future, you shuold read the rules carefully: -

» Game rules"; ?>
-


-To continue playing contact the Multihunter and put things straight with him/her -

» Write Message"; ?>
-

-Heed the following advice when writing your message: -

-● There is always a reason for a ban. Try to think about possible reasons for this ban and put things straight with the Multihunter. -
-● Multihunters can review enormous amounts of information about accounts. Stick to the truth and do not make excuses to justify your violation of the rules. -
-● Be cooperative and insightful, this might reduce the punishment. -
-● If the Multihunter does not answer immediately, then he/she is probably not online. The issue will not be resolved any faster by sending multiple messages, especially if he/she did not even read the first one yet. -
-● If you have really been banned unjustly, try to stay calm and polite while talking to the Multihunter and telling him/her about your point of view. -

\ No newline at end of file diff --git a/Templates/Admin/config.tpl b/Templates/Admin/config.tpl deleted file mode 100644 index ad01b272..00000000 --- a/Templates/Admin/config.tpl +++ /dev/null @@ -1,303 +0,0 @@ -








Access Denied: You aren't Admin
"); -?> - -

Made by Dzoki & Improved by ZZJHONS

- - - - - - -
~ Server Settings ~
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
Server Name
Server Version
Server Started ( days ago)
Language
Server Speed
Map Sizex
Graphic PackEnabled";} else if(GP_ENABLE == false){echo "Disabled";} ?>
Graphic Pack Location
Storage Multiplier
Trader Capacity
Troop Speedx
Village Expanding Speed
Beginners Protection hour(s)
Activation MailEnabled";} else if(AUTH_EMAIL == false){echo "Disabled";} ?>
QuestEnabled";} else if(QUEST == false){echo "Disabled";} ?>
Demolish - Level required
World Wonder - StatisticsEnabled";} else if(WW == false){echo "Disabled";} ?>
Plus account duration= 86400){echo (PLUS_TIME/86400).' Days';} else if(PLUS_TIME < 86400){echo (PLUS_TIME/3600).' Hour(s)';} ?>
+25% production duration= 86400){echo (PLUS_PRODUCTION/86400).' Days';} else if(PLUS_PRODUCTION < 86400){echo (PLUS_PRODUCTION/3600).' Hour(s)';} ?>
Great WorkshopEnabled";} else if(GREAT_WKS == false){echo "Disabled";} ?>
Tourn threshold
- - - - - - -
~ Log Settings ~
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
Log BuildEnabled";} else if(LOG_BUILD == false){echo "Disabled";} ?>
Log TechnologyEnabled";} else if(LOG_TECH == false){echo "Disabled";} ?>
Log LoginEnabled";} else if(LOG_LOGIN == false){echo "Disabled";} ?>
Log GoldEnabled";} else if(ALOG_GOLD_FIN == false){echo "Disabled";} ?>
Log AdminEnabled";} else if(LOG_ADMIN == false){echo "Disabled";} ?>
Log WarEnabled";} else if(LOG_WAR == false){echo "Disabled";} ?>
Log MarketEnabled";} else if(LOG_MARKET == false){echo "Disabled";} ?>
Log IllegalEnabled";} else if(LOG_ILLEGAL == false){echo "Disabled";} ?>
- - - - - - -
~ Newsbox Settings ~
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
Newsbox 1Enabled";} else if(NEWSBOX1 == false){echo "Disabled";} ?>
Newsbox 2Enabled";} else if(NEWSBOX2 == false){echo "Disabled";} ?>
Newsbox 3Enabled";} else if(NEWSBOX3 == false){echo "Disabled";} ?>
Home 1Enabled";} else if(HOME1 == false){echo "Disabled";} ?>
Home 2Enabled";} else if(HOME2 == false){echo "Disabled";} ?>
Home 3Enabled";} else if(HOME3 == false){echo "Disabled";} ?>
- - - - - - -
~ SQL Settings ~
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
VariableValue
DB Host Name
DB Name
DB Username
DB Password
DB Table Prefix
DB Type
- - - - - - -
~ Extra Settings ~
- - - - - - - - - - - - - - - - - -
VariableValue
Limit MailboxEnabled";} else if(LIMIT_MAILBOX == false){echo "Disabled";} ?>
Max number of mailsLimit mailbox disabled";} ?>
Include Admin in rankEnabled";} else if(INCLUDE_ADMIN == false){echo "Disabled";} ?>
- - - - - - -
~ Admin Information ~
- - - - - - - - - - - - - -
VariableValue
Admin EmailNo admin email defined!";} else if(ADMIN_EMAIL != ''){echo ADMIN_EMAIL;} ?>
Admin NameNo admin name defined!";} else if(ADMIN_NAME != ''){echo ADMIN_NAME;} ?>
- $value ) - { - $keyname = ($keys ? $keys . "_" : "") . $key; - if( is_array( $array[$key] ) ) - define_array( $array[$key], $keyname ); - else - define( $keyname, $value ); - } -} -//define_array($array); -?> \ No newline at end of file diff --git a/Templates/Admin/deletion.tpl b/Templates/Admin/deletion.tpl deleted file mode 100644 index aee50e76..00000000 --- a/Templates/Admin/deletion.tpl +++ /dev/null @@ -1,114 +0,0 @@ - - - -getUserArray($_GET['uid'],1); -$varray = $database->getProfileVillages($_GET['uid']); -if($user){ -$totalpop = 0; -foreach($varray as $vil) { - $totalpop += $vil['pop']; -} - -?> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Delete player
Name:Gold:
Rank:???.Population:
Villages:Plus:
Alliance:getAllianceName($user['alliance']);?>Status:-
Password:
-

NOTICE: DELETE ALL PLAYER VILLAGES BELLOW BEFORE DELETING PLAYER!

- - - - - - - -getCoor($varray[$i]['wref']); -if($varray[$i]['capital']){ -$capital = '(Capital)'; -$delLink = ''; -}else{ -$capital = ''; -$delLink = ''; - -} - -echo ' - - - - - - -'; -} - -?> - - diff --git a/Templates/Admin/editUser.tpl b/Templates/Admin/editUser.tpl deleted file mode 100644 index 5320070f..00000000 --- a/Templates/Admin/editUser.tpl +++ /dev/null @@ -1,125 +0,0 @@ - -getUserArray($id,1); -$varray = $database->getProfileVillages($id); -$varmedal = $database->getProfileMedal($id); -?> -
- - - -
NamePopulationCoordinates
'.$varray[$i]['name'].' '.$capital.''.$varray[$i]['pop'].' Check('.$coorproc['x'].'|'.$coorproc['y'].')'.$delLink.'
- - - - - - - - - - - - - - - - - - -
Player
DetailsDescription
- - - - - "; - echo ""; - echo ''; - echo ''; - echo ''; - echo ''; - ?> - - -
Tribe
Location
Email
» Go back
-
- -
- -

- - - - - - - - - - - - - - "; - } ?> - - - - - - -
Medals
CategoryRangWeekBB-Code
".$titel."".$medal['plaats']."".$medal['week']."[#".$medal['id']."]
Beginners Protection[#0]

- - -

-
- \ No newline at end of file diff --git a/Templates/Admin/give.tpl b/Templates/Admin/give.tpl deleted file mode 100644 index 50f8ee57..00000000 --- a/Templates/Admin/give.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
-

Here you can give gold to all players of this server.

-
-

Gold

-
- - How much gold do you want to give to all players? -
-  Gold  Insert a number and press enter Enter. -
-
- - Gold added - -
\ No newline at end of file diff --git a/Templates/Admin/home.tpl b/Templates/Admin/home.tpl deleted file mode 100644 index b2ef3af4..00000000 --- a/Templates/Admin/home.tpl +++ /dev/null @@ -1,60 +0,0 @@ - -
- - -
- WELCOME TO CONTROL PANEL -
-
-
-
-
-
-
-Hello : -
-
-
- You are logged in as Multihunter'; } else if($_SESSION['access'] == ADMIN){ echo 'Administrator'; } ?> -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - Credits: Akakori, Elmar, Dzoki & ZZJHONS -
- Fixed, remade and new features added by Dzoki -
- Reworked by ZZJHONS -
\ No newline at end of file diff --git a/Templates/Admin/homenews.tpl b/Templates/Admin/homenews.tpl deleted file mode 100644 index f05cf96c..00000000 --- a/Templates/Admin/homenews.tpl +++ /dev/null @@ -1,84 +0,0 @@ - -
- - - - - - - - - - - - - - - - - - - - - -
Home News Editor
Home News: -
- Home 1 Home 2 Home 3 -
-
Text(HTML): -
- -
-
-
- -
-
-
- -
-
-
-
-
-

Press submit to clear only
Otherwise enter the text

-'.$text.''); - echo '
Newsbox edited correctly'; - include ("Templates/News/home/home".$ti.".tpl"); - echo '
'; - } -?> diff --git a/Templates/Admin/login.tpl b/Templates/Admin/login.tpl deleted file mode 100644 index 536cd5e1..00000000 --- a/Templates/Admin/login.tpl +++ /dev/null @@ -1,38 +0,0 @@ - -
-

Login to Admin Control Panel:

-
- - - - - - - - -
Username:  -
Password:  -
-

- - -

-
\ No newline at end of file diff --git a/Templates/Admin/login_log.tpl b/Templates/Admin/login_log.tpl deleted file mode 100644 index dcf32820..00000000 --- a/Templates/Admin/login_log.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - <?php - - if($_SESSION['access'] == ADMIN) { - echo 'Admin Control Panel - TravianX'; - } else - if($_SESSION['access'] == MULTIHUNTER) { - echo 'Multihunter Control Panel - TravianX'; - } - -?> - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -getLoginLog()); - $log = $database->getLoginLog(); - for ($i = 0; $i < $no; $i++) { - $userid = $log[$i]['uid']; - $username = $database->getUserField($userid, "username", 0); - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } - echo "
User login log
IDUsernameIPTime
".$log[$i]['id']."".$username.""; - echo "".$log[$i]['ip']."".date("d.m.Y H:i", $log[$i]['time'])."
\n"; - -?> diff --git a/Templates/Admin/menu.tpl b/Templates/Admin/menu.tpl deleted file mode 100644 index d24cc9ef..00000000 --- a/Templates/Admin/menu.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - \ No newline at end of file diff --git a/Templates/Admin/msg.tpl b/Templates/Admin/msg.tpl deleted file mode 100644 index 913a2576..00000000 --- a/Templates/Admin/msg.tpl +++ /dev/null @@ -1,42 +0,0 @@ - -getMessage($_GET['nid'],3);; -if($msg){ -?> -
-

Messages

- -
-
- -
-
From: getUserField($msg[0]['owner'],'username',0);?>
-
To: getUserField($msg[0]['target'],'username',0);?>
-
Topic: -
-
-
-
-
-
- -
-
-
- -
- \ No newline at end of file diff --git a/Templates/Admin/news.tpl b/Templates/Admin/news.tpl deleted file mode 100644 index ac4b5f6a..00000000 --- a/Templates/Admin/news.tpl +++ /dev/null @@ -1,96 +0,0 @@ - -
- - - - - - - - - - - - - - - - - - - - - - - -
Game News Editor
Newsbox: -
- Newsbox 1 News box 2 Newsbox 3 -
-
Title: -
- -
-
Text(HTML): -
- -
-
-
- -
-
-
- -
-
-
-
-
-

Press submit to clear only
Otherwise enter the text

-'.$title.'';} - - unlink ('Templates/News/newsbox'.$ti.'.tpl'); - $f=fopen('Templates/News/newsbox'.$ti.'.tpl','w+'); - fwrite($f,$st.'
'.$text.'
'); - echo '
Newsbox edited correctly'; - include ("Templates/News/newsbox".$ti.".tpl"); - echo '
'; - } -?> \ No newline at end of file diff --git a/Templates/Admin/other.tpl b/Templates/Admin/other.tpl deleted file mode 100644 index 5fd4824d..00000000 --- a/Templates/Admin/other.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
-

Other Admin Options

-
-
-
- Empty all atacks and movements -
-
- Finish all movements -
-
- Create Natars account -
\ No newline at end of file diff --git a/Templates/Admin/player.tpl b/Templates/Admin/player.tpl deleted file mode 100644 index 0cb45c7f..00000000 --- a/Templates/Admin/player.tpl +++ /dev/null @@ -1,253 +0,0 @@ - -getUserArray($id,1); -$varray = $database->getProfileVillages($id); -if($user){ -$totalpop = 0; -foreach($varray as $vil) { - $totalpop += $vil['pop']; -} -include('search2.tpl'); -?> - - - - - -
The account will be deleted in 79:56:11 - -
- -
- - - - - - - - - - - - - - - - - - - -
Player
DetailsDescription
- - - - - - - - - - - - - - - - - - - - - - - - - "; - } - if(isset($user['gender']) && $user['gender'] != 0) { - $gender = ($user['gender']== 1)? "Male" : "Female"; - echo ""; - } - - echo ""; - echo ""; - } else { echo "".date('d.m.Y H:i',$user['plus']+3600*2).""; } - echo ""; - echo ''; - - if($_SESSION['access'] == ADMIN){ - echo ''; - } else if($_SESSION['access'] == MULTIHUNTER){ - echo ''; - } - echo ''; - - if($_SESSION['access'] == ADMIN){ - echo ''; - } else if($_SESSION['access'] == MULTIHUNTER){ - echo ''; - } - - echo ''; - echo ''; - ?> -
RanksearchRank($displayarray['username'],"username"); ?>
Tribe
Alliance - ".$database->getAllianceName($user['alliance']).""; - } ?> -
Villages
Population Recount
Age$age
Gender".$gender."
Location
Plus"; - if(date('d.m.Y H:i',$user['plus']) == '01.01.1970 00:00') { - echo "Not enabled!
Email
» Change profile
» Write message
» Delete player
» Ban
'.nl2br($user['desc1']).'
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Additional Information
AccessMultihunter"; - } - else if($user['access'] == 9){ - echo "Administrator"; - }?>
Remaining gold - This user has no gold! (Gold gold'/> ) Give gold - 0){ ?> - Gold gold'/>
Insert number and press 'enter'
Sitter 1= 1){ - echo ''.$database->getUserField($user['sit1'],"username",0).''; - } - else if($user['sit1'] == 0){ - echo 'No sitter'; - } - ?> -
Sitter 2= 1){ - echo ''.$database->getUserField($user['sit2'],"username",0).''; - } - else if($user['sit2'] == 0){ - echo 'No sitter'; - } - ?> -
Beginners Protection -
Cultural Points -
Insert number and press 'enter'
Last activity -
-
-Back"; -} -} -?> \ No newline at end of file diff --git a/Templates/Admin/punish.tpl b/Templates/Admin/punish.tpl deleted file mode 100644 index 30406364..00000000 --- a/Templates/Admin/punish.tpl +++ /dev/null @@ -1,82 +0,0 @@ - -getUserActive(); - -?> - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Punish Player
- -
\ No newline at end of file diff --git a/Templates/Admin/results_villages.tpl b/Templates/Admin/results_villages.tpl deleted file mode 100644 index 12acf7fc..00000000 --- a/Templates/Admin/results_villages.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -search_village($_POST['s']); -?> - - - - - - - -
1 «Found villages ()» 100
- - - - - - - - -'; - }else if($_SESSION['access'] == MULTIHUNTER){ - $delLink = ''; - } -echo ' - - - - - - - -'; -}} -else{ -echo ' - - - -'; -} -?> - -
IDNameOwnerPop
'.$result[$i]["wref"].''.$result[$i]["name"].''.$database->getUserField($result[$i]["owner"],'username',0).''.$result[$i]["pop"].''.$delLink.'
No results
diff --git a/Templates/Admin/search.tpl b/Templates/Admin/search.tpl deleted file mode 100644 index 1917b297..00000000 --- a/Templates/Admin/search.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
- - - - - - - - - - - -
Search v1.01
- - - - - -
-
-
'; - if($_GET['msg'] == 'ursdel'){ - echo "User was deleted."; - } - echo '
'; - } -?> \ No newline at end of file diff --git a/Templates/Admin/search2.tpl b/Templates/Admin/search2.tpl deleted file mode 100644 index 7b152345..00000000 --- a/Templates/Admin/search2.tpl +++ /dev/null @@ -1,51 +0,0 @@ - -
- - - - - - -
Information
-
- -
Player
: (uid: ) -
-
- - Tribe: | Villages:

-
-
- -
- - Village: (did: ) - -
- - Coordinates: (|) | Inhabitants: - - -
- -
\ No newline at end of file diff --git a/Templates/Admin/server_info.tpl b/Templates/Admin/server_info.tpl deleted file mode 100644 index 068470ea..00000000 --- a/Templates/Admin/server_info.tpl +++ /dev/null @@ -1,170 +0,0 @@ - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Players Stadistics
Registered players
Active players - -
Players online - -
Players Banned - -
Villages settled - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Player Information
TribeRegisteredPercent
Romans - 0){ - $percents = 100*($tribes[0] / $users); - } else { - $percents = 0; - } - echo $percents = intval ($percents); - echo "%"; - ?> -
Teutons - 0){ - $percents = 100*($tribes[1] / $users); - } else { - $percents = 0; - } - echo $percents = intval ($percents); - echo "%"; - ?> -
Gauls - 0){ - $percents = 100*($tribes[2] / $users); - } else { - $percents = 0; - } - echo $percents = intval ($percents); - echo "%"; - ?> -
Nature - 0){ - $percents = 100*($tribes[3] / $users); - } else { - $percents = 0; - } - echo $percents = intval ($percents); - echo "%"; - ?> -
Natars - 0){ - $percents = 100*($tribes[4] / $users); - } else { - $percents = 0; - } - echo $percents = intval ($percents); - echo "%"; - ?> -
\ No newline at end of file diff --git a/Templates/Admin/village.tpl b/Templates/Admin/village.tpl deleted file mode 100644 index dbfe6ca6..00000000 --- a/Templates/Admin/village.tpl +++ /dev/null @@ -1,960 +0,0 @@ - - - -getVillage($id); - -$user = $database->getUserArray($village['owner'],1); - -$coor = $database->getCoor($village['wref']); - -$varray = $database->getProfileVillages($village['owner']); - -$type = $database->getVillageType($village['wref']); - -$fdata = $database->getResourceLevel($village['wref']); - -$units = $database->getUnit($village['wref']); - - - -if($type == 3){ - -$typ = array(4,4,4,6); - -}elseif($type == 6){ - -$typ = array(1,1,1,15); - -} - - - - - -if($village and $user){ -?> - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Village Information
Village name:
Population
Coordinates:(|)
Village ID
Field type| '; - - }else{ - - echo $typ[$i].'x '; - - } - - } - - ?>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Resources
ResourceWarehouse
Lumber
Clay
Iron
Crop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Oasis
NameCoordinatesLoyaltyResource
Cooming soonCooming soonCooming soonCooming soon
- - - - - - - - - - - '.$units['u1'].''; -} -else if($units['u1'] > 0){ -$u1 = ''.$units['u1'].''; -} -#======================================== -if($units['u2'] == 0){ -$u2 = ''.$units['u2'].''; -} -else if($units['u2'] > 0){ -$u2 = ''.$units['u2'].''; -} -#======================================== -if($units['u3'] == 0){ -$u3 = ''.$units['u3'].''; -} -else if($units['u3'] > 0){ -$u3 = ''.$units['u3'].''; -} -#======================================== -if($units['u4'] == 0){ -$u4 = ''.$units['u4'].''; -} -else if($units['u4'] > 0){ -$u4 = ''.$units['u4'].''; -} -#======================================== -if($units['u5'] == 0){ -$u5 = ''.$units['u5'].''; -} -else if($units['u5'] > 0){ -$u5 = ''.$units['u5'].''; -} -#======================================== -if($units['u6'] == 0){ -$u6 = ''.$units['u6'].''; -} -else if($units['u6'] > 0){ -$u6 = ''.$units['u6'].''; -} -#======================================== -if($units['u7'] == 0){ -$u7 = ''.$units['u7'].''; -} -else if($units['u7'] > 0){ -$u7 = ''.$units['u7'].''; -} -#======================================== -if($units['u8'] == 0){ -$u8 = ''.$units['u8'].''; -} -else if($units['u8'] > 0){ -$u8 = ''.$units['u8'].''; -} -#======================================== -if($units['u9'] == 0){ -$u9 = ''.$units['u9'].''; -} -else if($units['u9'] > 0){ -$u9 = ''.$units['u9'].''; -} -#======================================== -if($units['u10'] == 0){ -$u10 = ''.$units['u10'].''; -} -else if($units['u10'] > 0){ -$u10 = ''.$units['u10'].''; -} -#======================================== -#== Teuotons ==# -#======================================== -if($units['u11'] == 0){ -$u11 = ''.$units['u11'].''; -} -else if($units['u11'] > 0){ -$u11 = ''.$units['u11'].''; -} -#======================================== -if($units['u12'] == 0){ -$u12 = ''.$units['u12'].''; -} -else if($units['u12'] > 0){ -$u12 = ''.$units['u12'].''; -} -#======================================== -if($units['u13'] == 0){ -$u13 = ''.$units['u13'].''; -} -else if($units['u13'] > 0){ -$u13 = ''.$units['u13'].''; -} -#======================================== -if($units['u14'] == 0){ -$u14 = ''.$units['u14'].''; -} -else if($units['u14'] > 0){ -$u14 = ''.$units['u14'].''; -} -#======================================== -if($units['u15'] == 0){ -$u15 = ''.$units['u15'].''; -} -else if($units['u15'] > 0){ -$u15 = ''.$units['u15'].''; -} -#======================================== -if($units['u16'] == 0){ -$u16 = ''.$units['u16'].''; -} -else if($units['u16'] > 0){ -$u16 = ''.$units['u16'].''; -} -#======================================== -if($units['u17'] == 0){ -$u17 = ''.$units['u17'].''; -} -else if($units['u17'] > 0){ -$u17 = ''.$units['u17'].''; -} -#======================================== -if($units['u18'] == 0){ -$u18 = ''.$units['u18'].''; -} -else if($units['u18'] > 0){ -$u18 = ''.$units['u18'].''; -} -#======================================== -if($units['u19'] == 0){ -$u19 = ''.$units['u19'].''; -} -else if($units['u19'] > 0){ -$u19 = ''.$units['u19'].''; -} -#======================================== -if($units['u20'] == 0){ -$u20 = ''.$units['u20'].''; -} -else if($units['u20'] > 0){ -$u20 = ''.$units['u20'].''; -} -#======================================== -#== Gauls ==# -#======================================== -if($units['u21'] == 0){ -$u21 = ''.$units['u21'].''; -} -else if($units['u21'] > 0){ -$u21 = ''.$units['u21'].''; -} -#======================================== -if($units['u22'] == 0){ -$u22 = ''.$units['u22'].''; -} -else if($units['u22'] > 0){ -$u22 = ''.$units['u22'].''; -} -#======================================== -if($units['u23'] == 0){ -$u23 = ''.$units['u23'].''; -} -else if($units['u23'] > 0){ -$u23 = ''.$units['u23'].''; -} -#======================================== -if($units['u24'] == 0){ -$u24 = ''.$units['u24'].''; -} -else if($units['u24'] > 0){ -$u24 = ''.$units['u24'].''; -} -#======================================== -if($units['u25'] == 0){ -$u25 = ''.$units['u25'].''; -} -else if($units['u25'] > 0){ -$u25 = ''.$units['u25'].''; -} -#======================================== -if($units['u26'] == 0){ -$u26 = ''.$units['u26'].''; -} -else if($units['u26'] > 0){ -$u26 = ''.$units['u26'].''; -} -#======================================== -if($units['u27'] == 0){ -$u27 = ''.$units['u27'].''; -} -else if($units['u27'] > 0){ -$u27 = ''.$units['u27'].''; -} -#======================================== -if($units['u28'] == 0){ -$u28 = ''.$units['u28'].''; -} -else if($units['u28'] > 0){ -$u28 = ''.$units['u28'].''; -} -#======================================== -if($units['u29'] == 0){ -$u29 = ''.$units['u29'].''; -} -else if($units['u29'] > 0){ -$u29 = ''.$units['u29'].''; -} -#======================================== -if($units['u30'] == 0){ -$u30 = ''.$units['u30'].''; -} -else if($units['u30'] > 0){ -$u30 = ''.$units['u30'].''; -} -#======================================== -#== Nature ==# -if($units['u31'] == 0){ -$u31 = ''.$units['u31'].''; -} -else if($units['u31'] > 0){ -$u31 = ''.$units['u31'].''; -} -#======================================== -if($units['u32'] == 0){ -$u32 = ''.$units['u32'].''; -} -else if($units['u32'] > 0){ -$u32 = ''.$units['u32'].''; -} -#======================================== -if($units['u33'] == 0){ -$u33 = ''.$units['u33'].''; -} -else if($units['u33'] > 0){ -$u33 = ''.$units['u33'].''; -} -#======================================== -if($units['u34'] == 0){ -$u34 = ''.$units['u34'].''; -} -else if($units['u34'] > 0){ -$u34 = ''.$units['u34'].''; -} -#======================================== -if($units['u35'] == 0){ -$u35 = ''.$units['u35'].''; -} -else if($units['u35'] > 0){ -$u35 = ''.$units['u35'].''; -} -#======================================== -if($units['u36'] == 0){ -$u36 = ''.$units['u36'].''; -} -else if($units['u36'] > 0){ -$u36 = ''.$units['u36'].''; -} -#======================================== -if($units['u37'] == 0){ -$u37 = ''.$units['u37'].''; -} -else if($units['u37'] > 0){ -$u37 = ''.$units['u37'].''; -} -#======================================== -if($units['u38'] == 0){ -$u38 = ''.$units['u38'].''; -} -else if($units['u38'] > 0){ -$u38 = ''.$units['u38'].''; -} -#======================================== -if($units['u39'] == 0){ -$u39 = ''.$units['u39'].''; -} -else if($units['u39'] > 0){ -$u39 = ''.$units['u39'].''; -} -#======================================== -#== Natars ==# -if($units['u40'] == 0){ -$u40 = ''.$units['u40'].''; -} -else if($units['u40'] > 0){ -$u40 = ''.$units['u40'].''; -} -#======================================== -if($units['u41'] == 0){ -$u41 = ''.$units['u41'].''; -} -else if($units['u41'] > 0){ -$u41 = ''.$units['u41'].''; -} -#======================================== -if($units['u42'] == 0){ -$u42 = ''.$units['u42'].''; -} -else if($units['u42'] > 0){ -$u42 = ''.$units['u42'].''; -} -#======================================== -if($units['u43'] == 0){ -$u43 = ''.$units['u43'].''; -} -else if($units['u43'] > 0){ -$u43 = ''.$units['u43'].''; -} -#======================================== -if($units['u44'] == 0){ -$u44 = ''.$units['u44'].''; -} -else if($units['u44'] > 0){ -$u44 = ''.$units['u44'].''; -} -#======================================== -if($units['u45'] == 0){ -$u45 = ''.$units['u45'].''; -} -else if($units['u45'] > 0){ -$u45 = ''.$units['u45'].''; -} -#======================================== -if($units['u46'] == 0){ -$u46 = ''.$units['u46'].''; -} -else if($units['u46'] > 0){ -$u46 = ''.$units['u46'].''; -} -#======================================== -if($units['u47'] == 0){ -$u47 = ''.$units['u47'].''; -} -else if($units['u47'] > 0){ -$u47 = ''.$units['u47'].''; -} -#======================================== -if($units['u48'] == 0){ -$u48 = ''.$units['u48'].''; -} -else if($units['u48'] > 0){ -$u48 = ''.$units['u48'].''; -} -#======================================== -if($units['u49'] == 0){ -$u49 = ''.$units['u49'].''; -} -else if($units['u49'] > 0){ -$u49 = ''.$units['u49'].''; -} -#======================================== -if($units['u50'] == 0){ -$u50 = ''.$units['u50'].''; -} -else if($units['u50'] > 0){ -$u50 = ''.$units['u50'].''; -} -#======================================== -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // TEUTON UNITS - else if($user['tribe'] == 2){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // GAUL UNITS - else if($user['tribe'] == 3){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // Nature UNITS - else if($user['tribe'] == 4){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // Natras UNITS - else if($user['tribe'] == 5){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - -} else if($_SESSION['access'] == MULTIHUNTER){ - -if($user['tribe'] == 1){ -echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // TEUTON UNITS - else if($user['tribe'] == 2){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - // GAUL UNITS - else if($user['tribe'] == 3){ - echo ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - } - } - ?> -
Troops in village
'.$u1.'
'.$u2.'
'.$u3.'
'.$u4.'
'.$u5.'
'.$u6.'
'.$u7.'
'.$u8.'
'.$u9.'
'.$u10.'
'.$u11.'
'.$u12.'
'.$u13.'
'.$u14.'
'.$u15.'
'.$u16.'
'.$u17.'
'.$u18.'
'.$u19.'
'.$u20.'
'.$u21.'
'.$u22.'
'.$u23.'
'.$u24.'
'.$u25.'
'.$u26.'
'.$u27.'
'.$u28.'
'.$u29.'
'.$u30.'
'.$u31.'
'.$u32.'
'.$u33.'
'.$u34.'
'.$u35.'
'.$u36.'
'.$u37.'
'.$u38.'
'.$u39.'
'.$u40.'
'.$u41.'
'.$u42.'
'.$u43.'
'.$u44.'
'.$u45.'
'.$u46.'
'.$u47.'
'.$u48.'
'.$u49.'
'.$u50.'
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
-Edit troops'; - } else if($_SESSION['access'] == MULTIHUNTER){ echo '
Edit troops
'; } - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - procResType($fdata['f'.$i.'t']); - - } - - echo ' - - - - - - - - - - - - - - '; - - } - - ?> - - - -
Buildings
IDGIDNameLevel
'.$i.''.$fdata['f'.$i.'t'].''.$bu.''.$fdata['f'.$i].'
- - - -Back"; - -} - -} - -?> - - - diff --git a/Templates/menu.tpl b/Templates/menu.tpl index 660170d0..eb556051 100644 --- a/Templates/menu.tpl +++ b/Templates/menu.tpl @@ -40,7 +40,7 @@ div.c1 {text-align: center} echo "Multihunter Panel"; } ?> access == ADMIN) { - echo "Admin Panel"; + echo "Admin Panel"; echo "Mass Message"; echo "Update Top 10"; echo "System message"; diff --git a/admin.php b/admin.php deleted file mode 100644 index b790adf5..00000000 --- a/admin.php +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - <?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - '.SERVER_NAME; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - '.SERVER_NAME; } ?> - - - - - - - - - - - - - - - -
- -
- -
- -
-
- CheckLogin()){ - if($_POST or $_GET){ - if($_GET['p'] and $_GET['p']!="search"){ - $filename = 'Templates/Admin/'.$_GET['p'].'.tpl'; - if(file_exists($filename)){ - include($filename); - }else{ - include('Templates/Admin/404.tpl'); - } - }else{ - include('Templates/Admin/search.tpl'); - } - if($_POST['p'] and $_POST['s']){ - $filename = 'Templates/Admin/results_'.$_POST['p'].'.tpl'; - if(file_exists($filename)){ - include($filename); - }else{ - include('Templates/Admin/404.tpl'); - } - } - }else{ - include('Templates/Admin/home.tpl'); - } - }else{ - include('Templates/Admin/login.tpl'); - } - ?> -
-
- -
-
-
- -
-
-

This ACP has been reworked by ZZJHONS

-
-
-
-
- - \ No newline at end of file