finish hero_full.php

This commit is contained in:
yi12345
2013-06-16 10:38:34 +03:00
commit 98e94af807
2800 changed files with 115529 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Auto detect text files and perform LF normalization
* text=auto
# Files which should be always normalized
*.php text
*.js text
*.css text
*.htaccess text
*.tpl text
*.html text
# Binaries
*.png binary
*.jpg binary
*.ico binary
*.gif binary
*.zip binary
+8
View File
@@ -0,0 +1,8 @@
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
# Mac crap
.DS_Store
+4
View File
@@ -0,0 +1,4 @@
<Files "*.tpl">
Order Deny,Allow
Deny from all
</Files>
+141
View File
@@ -0,0 +1,141 @@
// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}
return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(id){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
if(flashVer != -1) {
writeFlashTags(id);
}
return flashVer;
}
function writeFlashTags(id)
{
var swfFilename = "stats.swf";
var swfUrlWithGetParameters = swfFilename + "?id=" + id;
document.writeln("<div style=\"position:absolute; z-index:-1; top:0px; left:0px;\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"1\" height=\"1\">");
document.writeln("<param name=\"movie\" value=\""+swfUrlWithGetParameters+"\" />");
document.writeln("<param name=\"quality\" value=\"low\" />");
document.writeln("<param name=\"allowScriptAccess\" value=\"always\" />");
document.writeln("<param name=\"allowNetworking\" value=\"true\" />");
document.writeln("<embed width=\"1\" height=\"1\" src=\""+swfUrlWithGetParameters+"\" ");
document.writeln("quality=\"low\" allowNetworking=\"true\" name=\""+swfFilename+"\" play=\"true\" loop=\"false\" ");
document.writeln("allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" ");
document.writeln("pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> ");
document.writeln("</embed> </object></div>");
}
+1
View File
@@ -0,0 +1 @@
DirectoryIndex admin.php
+106
View File
@@ -0,0 +1,106 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename addTroops.php ##
## Developed by: Dzoki & Advocatie ##
## License: TravianX Project ##
## Thanks to: Dzoki & itay2277 (edit troops) ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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 <a href=\'admin.php?p=village&did=$id\'>$id</a> ',".time().")");
header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d");
?>
+25
View File
@@ -0,0 +1,25 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
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."");
$name = $database->getUserField($id,"username",0);
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Cultural Points to user <a href=\'admin.php?p=player&uid=$id\'>$name</a> ',".time().")");
header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&cp=ok");
?>
+23
View File
@@ -0,0 +1,23 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename medals.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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."");
?>
+23
View File
@@ -0,0 +1,23 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename medals.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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");
?>
+24
View File
@@ -0,0 +1,24 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editUser.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_POST['id'];
$user = $database->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 <a href=\'admin.php?p=village&did=$id\'>".$user['username']."</a>\'s profile',".time().")");
header("Location: ../../../Admin/admin.php?p=player&uid=".$id."");
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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 <b>$gold</b> gold to all users',".time().")");
header("Location: ../../../Admin/admin.php?p=gold&g");
?>
+25
View File
@@ -0,0 +1,25 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold_1.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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 <b>".$_POST['gold']."</b> gold to user <a href=\'admin.php?p=player&uid=$id\'>$name</a> ',".time().")");
header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&g=ok");
?>
+34
View File
@@ -0,0 +1,34 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename medals.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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 <a href=\'admin.php?p=player&uid=$uid\'>$name</a> ',".time().")");
$deleteweek = $_POST['medalweek'];
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek."");
header("Location: ../../../Admin/admin.php?p=player&uid=".$uid."");
?>
+25
View File
@@ -0,0 +1,25 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename renameVillage.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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."");
?>
+26
View File
@@ -0,0 +1,26 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename sendMessage.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
include_once("../../GameEngine/Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($session->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");
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename 404.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<div style="margin-top: 50px;">
<center>
<h1>404 - File not found</h1>
<img src="../../<?php echo GP_LOCATE; ?>img/misc/404.gif" title="Not Found" alt="Not Found"><br />
<p>We looked 404 times already but can't find anything, Not even an X marking the spot.</p>
<p>This system is not complete yet. So the page probably does not exist.</p><br>
</center>
</div>
+82
View File
@@ -0,0 +1,82 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename newmessage.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
error_reporting(E_ALL ^ E_NOTICE);
$id = $_GET['uid'];
if(isset($id))
{
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<style type="text/css">
input.dynamic_img, img.dynamic_img
{
background-position: center top;
height: 20px;
}
input#btn_send
{
width: 97px;
background-image: url(../<?php echo GP_LOCATE; ?>lang/en/b/send.gif);
}
div.messages div#write_content #heading input
{
}
</style>
<h4>Compose New Message to <a href="admin.php?p=player&uid=<?php echo $user['id'] ?>"><?php echo $user['username']; ?></a></h4>
<form method="post" action="../Admin/Mods/sendMessage.php" accept-charset="UTF-8" name="msg">
<div id="content" class="messages">
<div id="read_head" class="msg_head"></div>
<div id="read_content" class="msg_content">
<img src="../../<?php echo GP_LOCATE; ?>lang/en/msg/block_bg24b.gif" id="label" class="read" alt="">
<div id="heading">
<input type="hidden" name="uid" value="<?php echo $id; ?>">
<div><a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></div>
<div><input type="text" value="Message From Admin" name="topic" id="subject" value="" maxlength="35" style="background-image: url('../<?php echo GP_LOCATE; ?>img/msg/underline.gif'); background-position: left -2px; background-repeat: repeat-x; outline: none; border: medium none; width: 267px; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 11px;"></div>
</div>
<div id="time">
<div><?php echo date('d.m.y'); ?></div>
<div><?php echo date('H:i:s'); ?></div>
</div>
<div class="clear"></div>
<div class="line"></div>
<div class="message" style="margin-top: 10px;">
<textarea id="message" name="message" style="background-image: url('../<?php echo GP_LOCATE; ?>img/msg/underline.gif'); background-repeat: repeat; font-size: 12px; border: medium none; height: 258px; line-height: 16px; width: 412px; font-family: Verdana,Arial,Helvetica,sans-serif;">Message Here</textarea>
</div>
<p class="btn">
<input type="image" value="submit" name="s1" id="btn_send" class="dynamic_img clicked" src="../img/admin/x.gif" alt="send" tabindex="4;">
</p>
<div id="read_foot" class="msg_foot"></div>
</div>
<br /><br /><br />
</div>
<?php
if(isset($_GET['msg']))
{
echo "<font color=\"blue\">Message Sent</font>";
}
else
{
echo '';
}
}
else
{
echo "<br /><br />Not found. <a href=\"javascript: history.go(-1)\"> Go Back</a>";
}?>
+77
View File
@@ -0,0 +1,77 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename online.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
error_reporting(0);
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<table id="member">
<thead>
<tr>
<th colspan="7">Inactive users</th>
</tr>
<tr>
<td>Name [access]</td>
<td>Time</td>
<td>Tribe</td>
<td>Population</td>
<td>Villages</td>
<td>Gold</td>
<td></td>
</tr>
</thead>
<tbody>
<?php
$inactivei = time() - 86400;
$q = "SELECT * FROM ".TB_PREFIX."users where timestamp < $inactivei AND access=2";
$result = mysql_query($q);
$active = mysql_fetch_assoc($result);
for ($i = 0; $i <= count($active)-1; $i++)
{
$uid = $database->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 "
<tr>
<td><a href=\"?p=player&uid=".$uid."\">".$active[$i]['username']." [".$active[$i]['access']."]</a></td>
<td>".date("H:i:s",$active[$i]['timestamp'])."</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\"></td>
<td>".$totalpop."</td>
<td>".count($varray)."</td>
<td><img src=\"../img/admin/gold.gif\" class=\"gold\" alt=\"Gold\" title=\"This user has: ".$active[$i]['gold']." gold\"/> ".$active[$i]['gold']."</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/a/online1.gif\"></td>
</tr>";
}
?>
</tbody>
</table>
+300
View File
@@ -0,0 +1,300 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename addTroops.tpl ##
## Developed by: Dzoki & Advocatie ##
## License: TravianX Project ##
## Thanks to: Dzoki & itay2277(Edit troops) ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
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']); ?>
<form action="../GameEngine/Admin/Mods/addTroops.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member">
<thead>
<tr>
<th colspan="2">Edit troops</th>
<?php if($user['tribe'] == 1){ ?>
</tr></thead><tbody>
<tr>
<td class="addTroops"><img src="../img/un/u/1.gif"></img> <?php echo U1; ?></td>
<td class="addTroops"><input class="addTroops" name="u1" id="u1" value="<?php echo $units['u1']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u1']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/2.gif"></img> <?php echo U2; ?></td>
<td><input class="addTroops" name="u2" id="u2" value="<?php echo $units['u2']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u2']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/3.gif"></img> <?php echo U3; ?></td>
<td><input class="addTroops" name="u3" id="u3" value="<?php echo $units['u3']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u3']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/4.gif"></img> <?php echo U4; ?></td>
<td><input class="addTroops" name="u4" id="u4" value="<?php echo $units['u4']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u4']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/5.gif"></img> <?php echo U5; ?></td>
<td><input class="addTroops" name="u5" id="u5" value="<?php echo $units['u5']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u5']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/6.gif"></img> <?php echo U6; ?></td>
<td><input class="addTroops" name="u6" id="u6" value="<?php echo $units['u6']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u6']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/7.gif"></img> <?php echo U7; ?></td>
<td><input class="addTroops" name="u7" id="u7" value="<?php echo $units['u7']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u7']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/8.gif"></img> <?php echo U8; ?></td>
<td><input class="addTroops" name="u8" id="u8" value="<?php echo $units['u8']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u8']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/9.gif"></img> <?php echo U9; ?></td>
<td><input class="addTroops" name="u9" id="u9" value="<?php echo $units['u9']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u9']; ?></b><font></td>
</tr>
<tr>
<td><img src="../img/un/u/10.gif"></img> <?php echo U10; ?></td>
<td><input class="addTroops" name="u10" id="u10" value="<?php echo $units['u10']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u10']; ?></b><font></td>
</tr>
<?php }
else if($user['tribe'] == 2){ ?>
</tr></thead><tbody>
<tr>
<td class="addTroops"><img src="../img/un/u/11.gif"></img> <?php echo U11; ?></td>
<td class="addTroops"><input class="addTroops" name="u11" id="u11" value="<?php echo $units['u11']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u11']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/12.gif"></img> <?php echo U12; ?></td>
<td><input class="addTroops" name="u12" id="u12" value="<?php echo $units['u12']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u12']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/13.gif"></img> <?php echo U13; ?></td>
<td><input class="addTroops" name="u13" id="u13" value="<?php echo $units['u13']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u13']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/14.gif"></img> <?php echo U14; ?></td>
<td><input class="addTroops" name="u14" id="u14" value="<?php echo $units['u14']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u14']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/15.gif"></img> <?php echo U15; ?></td>
<td><input class="addTroops" name="u15" id="u15" value="<?php echo $units['u15']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u15']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/16.gif"></img> <?php echo U16; ?></td>
<td><input class="addTroops" name="u16" id="u16" value="<?php echo $units['u16']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u16']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/17.gif"></img> <?php echo U17; ?></td>
<td><input class="addTroops" name="u17" id="u17" value="<?php echo $units['u17']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u17']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/18.gif"></img> <?php echo U18; ?></td>
<td><input class="addTroops" name="u18" id="u18" value="<?php echo $units['u18']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u18']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/19.gif"></img> <?php echo U19; ?></td>
<td><input class="addTroops" name="u19" id="u19" value="<?php echo $units['u19']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u19']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/20.gif"></img> <?php echo U20; ?></td>
<td><input class="addTroops" name="u20" id="u20" value="<?php echo $units['u20']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u20']; ?></td>
</tr>
<?php }
else if($user['tribe'] == 3){ ?>
</tr></thead><tbody>
<tr>
<td class="addTroops"><img src="../img/un/u/21.gif"></img> <?php echo U21; ?></td>
<td class="addTroops"><input class="addTroops" name="u21" id="u21" value="<?php echo $units['u21']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u21']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/22.gif"></img> <?php echo U22; ?></td>
<td><input class="addTroops" name="u22" id="u22" value="<?php echo $units['u22']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u22']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/23.gif"></img> <?php echo U23; ?></td>
<td><input class="addTroops" name="u23" id="u23" value="<?php echo $units['u23']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u23']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/24.gif"></img> <?php echo U24; ?></td>
<td><input class="addTroops" name="u24" id="u24" value="<?php echo $units['u24']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u24']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/25.gif"></img> <?php echo U25; ?></td>
<td><input class="addTroops" name="u25" id="u25" value="<?php echo $units['u25']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u25']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/26.gif"></img> <?php echo U26; ?></td>
<td><input class="addTroops" name="u26" id="u26" value="<?php echo $units['u26']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u26']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/27.gif"></img> <?php echo U27; ?></td>
<td><input class="addTroops" name="u27" id="u27" value="<?php echo $units['u27']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u27']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/28.gif"></img> <?php echo U28; ?></td>
<td><input class="addTroops" name="u28" id="u28" value="<?php echo $units['u28']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u28']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/29.gif"></img> <?php echo U29; ?></td>
<td><input class="addTroops" name="u29" id="u29" value="<?php echo $units['u29']; ?>"" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u29']; ?></td>
</tr>
<tr>
<td><img src="../img/un/u/30.gif"></img> <?php echo U30; ?></td>
<td><input class="addTroops" name="u30" id="u30" value="<?php echo $units['u30']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u30']; ?></td>
</tr>
<?php }
else if($user['tribe'] == 4){ ?>
</tr></thead><tbody>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img> <?php echo U31; ?></td>
<td class="addTroops"><input class="addTroops" name="u31" id="u31" value="<?php echo $units['u31']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u31']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img> <?php echo U32; ?></td>
<td><input class="addTroops" name="u32" id="u32" value="<?php echo $units['u32']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u32']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img> <?php echo U33; ?></td>
<td><input class="addTroops" name="u33" id="u33" value="<?php echo $units['u33']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u33']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img> <?php echo U34; ?></td>
<td><input class="addTroops" name="u34" id="u34" value="<?php echo $units['u34']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u34']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img> <?php echo U35; ?></td>
<td><input class="addTroops" name="u35" id="u35" value="<?php echo $units['u35']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u35']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img> <?php echo U36; ?></td>
<td><input class="addTroops" name="u36" id="u36" value="<?php echo $units['u36']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u36']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img> <?php echo U37; ?></td>
<td><input class="addTroops" name="u37" id="u37" value="<?php echo $units['u37']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u37']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img> <?php echo U38; ?></td>
<td><input class="addTroops" name="u38" id="u38" value="<?php echo $units['u38']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u38']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/39.gif"></img> <?php echo U39; ?></td>
<td><input class="addTroops" name="u39" id="u39" value="<?php echo $units['u39']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u39']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/40.gif"></img> <?php echo U40; ?></td>
<td><input class="addTroops" name="u40" id="u40" value="<?php echo $units['u40']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u40']; ?></td>
</tr>
<?php }
else if($user['tribe'] == 5){ ?>
</tr></thead><tbody>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img> <?php echo U41; ?></td>
<td class="addTroops"><input class="addTroops" name="u41" id="u41" value="<?php echo $units['u41']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u41']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img> <?php echo U42; ?></td>
<td><input class="addTroops" name="u42" id="u42" value="<?php echo $units['u42']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u42']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img> <?php echo U43; ?></td>
<td><input class="addTroops" name="u43" id="u43" value="<?php echo $units['u43']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u43']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img> <?php echo U44; ?></td>
<td><input class="addTroops" name="u44" id="u44" value="<?php echo $units['u44']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u44']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img> <?php echo U45; ?></td>
<td><input class="addTroops" name="u45" id="u45" value="<?php echo $units['u45']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u45']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img> <?php echo U46; ?></td>
<td><input class="addTroops" name="u46" id="u46" value="<?php echo $units['u46']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u46']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img> <?php echo U47; ?></td>
<td><input class="addTroops" name="u47" id="u47" value="<?php echo $units['u47']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u47']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img> <?php echo U48; ?></td>
<td><input class="addTroops" name="u48" id="u48" value="<?php echo $units['u48']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u48']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/49.gif"></img> <?php echo U49; ?></td>
<td><input class="addTroops" name="u49" id="u49" value="<?php echo $units['u49']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u49']; ?></td>
</tr>
<tr>
<td class="addTroops"><img src="../<?php echo GP_LOCATE; ?>img/u/50.gif"></img> <?php echo U50; ?></td>
<td><input class="addTroops" name="u50" id="u50" value="<?php echo $units['u50']; ?>" maxlength="10">&nbsp;&nbsp;&nbsp;<font color="#bcbcbc" size="1">Currently: <b><?php echo $units['u50']; ?></td>
</tr>
<?php } ?>
</tbody></table>
<br />
<div align="right"><input type="image" border="0" src="../img/admin/b/ok1.gif">
</form>
<?php } ?>
<br /><br /><div align="right"><?php if(isset($_GET['d'])) { echo '<font color="Red"><b>Troops edited</font></b>';
} ?>
+41
View File
@@ -0,0 +1,41 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename add_village.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<form method="post" action="admin.php">
<input name="action" type="hidden" value="addVillage">
<input name="uid" type="hidden" value="<?php echo $user['id'];?>">
<table id="member" style="width: 125px;">
<thead>
<tr>
<th colspan="2">Add Village</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2"><center>Coordinates (<b>X</b>|<b>Y</b>)</center></td>
</tr>
<tr>
<td>X:</td>
<td><input name="x" class="fm" value="" type="input"></td>
</tr>
<tr>
<td>Y:</td>
<td><input name="y" class="fm" value="" type="input"></td>
</tr>
<tr>
<td colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="Add Village"></center></td>
</tr>
</tbody>
</table>
</form>
+55
View File
@@ -0,0 +1,55 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<link REL="shortcut icon" HREF="favicon.ico"/>
<title><?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - TravianX'; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - TravianX'; } ?></title>
<link rel=stylesheet type="text/css" href="../img/admin/admin.css">
<link rel=stylesheet type="text/css" href="../img/admin/acp.css">
<link rel=stylesheet type="text/css" href="../img/../img.css">
<script src="mt-full.js?423cb" type="text/javascript"></script>
<script src="ajax.js" type="text/javascript"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="no">
</head>
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename admin_log.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); ?>
<?php
$no = count($database->getAdminLog());
$log = $database->getAdminLog();
for($i=0;$i<$no;$i++) {
$admid = $log[$i]['user']?>
------------------------------------<br>
<b>Log ID:</b> <?php echo $log[$i]['id']; ?><br />
<b>Admin:</b> <?php $user = $database->getUserField($admid,"username",0);
if($user == 'Multihunter') {
echo '<b>CONTROL PANEL</b>';
} else { echo '<a href="admin.php?p=player&uid='.$admid.'">'.$user.'</a>'; }
?><br />
<b>Log:</b> <?php echo $log[$i]['log']; ?><br />
<b>Date:</b> <?php echo date("d.m.Y H:i:s",$log[$i]['time']+3600*2); ?><br />
<?php } ?>
+371
View File
@@ -0,0 +1,371 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename alliance.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_GET['aid'])
{
$alidata = $database->getAlliance($_GET['aid']);
$aliusers = $database->getAllMember($_GET['aid']);
if($alidata and $aliusers)
{
foreach($aliusers as $member)
{
$totalpop += $database->getVSumField($member['id'],"pop");
} ?>
<br>
<table id="profile" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Alliance <a href="?p=alliance&aid=<?php echo $alidata['id'];?>"><?php echo $alidata['name'];?></a></th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td class="empty"></td>
<td class="empty"></td>
</tr>
<tr>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th>Tag</th>
<td><?php echo $alidata['tag']; ?></td>
</tr>
<tr>
<th>Name</th>
<td><?php echo $alidata['name']; ?></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th>Rank</th>
<td>???</td>
</tr>
<tr>
<th>Points</th>
<td><?php echo $totalpop; ?></td>
</tr>
<tr>
<th>Members</th>
<td><?php echo count($aliusers); ?></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th>Alliance Founder</th>
<td><a href="?p=player&uid=<?php echo $alidata['leader']; ?>"><?php echo $database->getUserField($alidata['leader'],"username",0); ?></a></td>
</tr>
<tr>
<td colspan="2"><b>Alliance Positions</b></td>
</tr>
<?php
error_reporting(0);
$sql = "SELECT * FROM ".TB_PREFIX."ali_permission WHERE alliance = ".$_GET['aid']."";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
$player = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$row['uid'].""));
if($row['opt1'] == 1) { $position1 = "Assign To Position"; } else { $position1 = "No Assigning Positions"; }
if($row['opt2'] == 1) { $position2 = "Kick Players"; } else { $position2 = "No Kicking Players"; }
if($row['opt3'] == 1) { $position3 = "Change Alliance Description"; } else { $position3 = "No Changing Description"; }
if($row['opt4'] == 1) { $position4 = "Invite Players"; } else { $position4 = "No Invitations"; }
if($row['opt5'] == 1) { $position5 = "Manage Forums"; } else { $position5 = "No Forum Management"; }
if($row['opt6'] == 1) { $position6 = "Alliance Diplomacy"; } else { $position6 = "No Diplomacy"; }
if($row['opt7'] == 1) { $position7 = "Mass IGMs (MMs)"; } else { $position7 = "No MMs"; }
if($row['opt8'] == 1) { $position8 = "???"; } else { $position8 = "No ???"; }
echo '
<tr>
<td>Position:</td>
<td><a href="admin.php?p=player&uid='.$row['uid'].'">'.$player['username'].'</a><br /><b>'.$row['rank'].'</b><br />
<select>
<option>Permissions</option>
<option>'.$position1.'</option>
<option>'.$position2.'</option>
<option>'.$position3.'</option>
<option>'.$position4.'</option>
<option>'.$position5.'</option>
<option>'.$position6.'</option>
<option>'.$position7.'</option>
<option>'.$position8.'</option>
</select>
</td>
</tr>
';
}
?>
<tr>
<th>Capacity</th>
<td>
<?php
$now = count($aliusers);
$max = $alidata['max'];
if($now > $max)
{
$color = "red";
}
else
{
$color = "blue";
}
echo "<b><font color=\"$color\">($now/$max)</font></b>";
?>
</td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editAli&aid=<?php echo $alidata['id'];?>">» Edit Alliance</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=DelAli&aid=<?php echo $alidata['id'];?>">» Delete Alliance</a></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td class="desc2" colspan="2">
<center>
<?php echo nl2br($alidata['desc']); ?>
</center>
</td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
</tbody>
</table>
</td>
<td class="desc1">
<center>
<?php echo nl2br($alidata['notice']); ?>
</center>
</td>
</tr>
</tr>
<tr>
<td colspan="4" class="empty"></td>
</tr>
</tbody>
</table>
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>&nbsp;</th>
<th>Player</th>
<th>Population</th>
<th>Villages</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<?php
foreach($aliusers as $user)
{
$rank = $rank + 1;
$TotalUserPop = $database->getVSumField($user['id'],"pop");
$TotalVillages = $database->getProfileVillages($user['id']);
echo "<tr>";
echo "<td class=ra>".$rank.".</td>";
echo "<td class=pla><a href=spieler.php?uid=".$user['id'].">".$user['username']."</a></td>";
echo "<td class=hab>".$TotalUserPop."</td>";
echo "<td class=vil>".count($TotalVillages)."</td>";
if($aid == $session->alliance)
{
if ((time()-600) < $user['timestamp'])
{
// 0 Min - 10 Min
echo "<td class=on><img class=online1 src=img/x.gif title=now online alt=now online /></td>";
}
elseif ((time()-86400) < $user['timestamp'] && (time()-600) > $user['timestamp'])
{
// 10 Min - 1 Days
echo "<td class=on><img class=online2 src=img/x.gif title=now online alt=now online /></td>";
}
elseif ((time()-259200) < $user['timestamp'] && (time()-86400) > $user['timestamp'])
{
// 1-3 Days
echo "<td class=on><img class=online3 src=img/x.gif title=now online alt=now online /></td>";
}
elseif ((time()-604800) < $user['timestamp'] && (time()-259200) > $user['timestamp'])
{
echo "<td class=on><img class=online4 src=img/x.gif title=now online alt=now online /></td>";
}
else
{
echo "<td class=on><img class=online5 src=img/x.gif title=now online alt=now online /></td>";
}
}
echo " </tr>";
}
?>
</tbody>
</table>
<br /><br />
<table id="profile">
<thead>
<tr>
<th colspan="3">Alliance News</th>
</tr>
<tr>
<td>Event</td>
<td>Time</td>
</tr>
</thead>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."ali_log WHERE aid = ".$_GET['aid']."";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
echo '
<tr>
<td>'.$row['comment'].'</td>
<td>'.date('d:m:Y H:i', $row['date']).'</td>
</tr>';
}
?>
</thead>
</table>
<br /><br />
<h3>Not Sure this Diplomacy is correct, but I think it is</h3>
<br />
<table id="profile">
<thead>
<tr>
<th colspan="3">Alliance Diplomacy Sent</th>
</tr>
<tr>
<td>Recipient Alliance</td>
<td>Type</td>
<td>Accepted</td>
</tr>
</thead>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = ".$_GET['aid']."";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
echo '
<tr>
<td><a href="admin.php?p=alliance&aid='.$row['alli1'].'">'.$ally['tag'].'</a></td>
<td>'.$type.'</td>
<td>'.$accepted.'</td>
</tr>';
}
?>
</thead>
</table>
<br /><br />
<table id="profile">
<thead>
<tr>
<th colspan="3">Alliance Diplomacy Recieved</th>
</tr>
<tr>
<td>From Alliance</td>
<td>Type</td>
<td>Accepted</td>
</tr>
</thead>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli2 = ".$_GET['aid']."";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
echo '
<tr>
<td><a href="admin.php?p=alliance&aid='.$row['alli2'].'">'.$ally['tag'].'</a></td>
<td>'.$type.'</td>
<td>'.$accepted.'</td>
</tr>';
}
?>
</thead>
</table>
<br /><br />
<table id="profile">
<thead>
<tr>
<th colspan="3">Alliance Relationships</th>
</tr>
<tr>
<td>Alliance</td>
<td>Type</td>
<td></td>
</tr>
</thead>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = ".$_GET['aid']." OR alli2 = ".$_GET['aid']." AND accepted = 1";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] == 1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
$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 '
<tr>
<td><a href="admin.php?p=alliance&aid='.$row['alli1'].'">'.$ally1['tag'].'</a> & <a href="admin.php?p=alliance&aid='.$row['alli2'].'">'.$ally2['tag'].'</a></td>
<td>'.$type.'</td>
<td><img src="../../<?php echo GP_LOCATE; ?>img/a/acc.gif"></td>
</tr>';
}
?>
</thead>
</table>
<br /><br />
<?php
include("allymedals.tpl");
}
else
{
echo "Not found...<a href=\"javascript: history.go(-1)\">Back</a>";
}
}
?>
+87
View File
@@ -0,0 +1,87 @@
<?php
$varmedal = $database->getProfileMedalAlly($_GET['aid'])
?>
<form action="../GameEngine/Admin/Mods/delallymedal.php" method="POST">
<input type="hidden" name="aid" value="<?php echo $_GET['aid']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="profile">
<thead>
<tr>
<th colspan="6">Alliance Medals (<?php echo sizeof($varmedal); ?>)</th>
</tr>
<tr>
<td>Category</td>
<td>Rank</td>
<td>Week</td>
<td>Points</td>
<td>Medal</td>
<td></td>
</tr>
</thead>
<?php
if(sizeof($varmedal) ==0)
{ ?>
<td colspan="5"><center>This alliance has no medals yet</center></td><?php
}
elseif(sizeof($varmedal) >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 = "<p>Bonus</p>"; } else { $rank = $rank; }
$week = $medal['week'];
$points = $medal['points'];
if($points == '') { $points = "<p>Bonus</p>"; } else { $points = $points; }
echo"
<tr>
<td>$title</td>
<td>$rank</td>
<td>$week</td>
<td>$points</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/t/".$medal['img'].".jpg\"></td>
<td>
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\">
</td>
</tr>";
}
$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 "</form><tr><td><b>Average Rank</b></td><td>$average</td><td></td><td></td><td>Delete All</td>";
}
?>
<td>
<form action="../GameEngine/Admin/Mods/delallymedalbyaid.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="aid" value="<?php echo $_GET['aid']; ?>">
<input type="image" name="allyid" value="<?php echo $id; ?>" style="background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;" src="../<?php echo GP_LOCATE; ?>img/a/x.gif">
</form>
</td>
</tbody>
</table>
+7
View File
@@ -0,0 +1,7 @@
<p>
<a href="admin.php">Homepage</a>
<a href="?page=1">Configuration</a>
<a href="?page=2">Search</a>
<a href="?page=5">Online players</a>
<a href="?page=6">Bug report</a>
</p>
+39
View File
@@ -0,0 +1,39 @@
<?php
$database->BugReportSetViewed();
?>
<table cellpadding="1" cellspacing="1" id="player">
<thead>
<tr>
<th colspan="10">Bug report</th>
</tr>
<tr><td></td><td>Player</td><td>Page</td><td>Report</td><td>Time</td><td>IP</td><td></td></tr>
</thead><tbody>
<?php
$bug = $database->BugReport();
if(count($bug)>0) {
for ($i = 0; $i < count($bug); $i++) {
if($bug[$i]==0){
$del = "<td></td>";
}else{
$del = '<td ><a href="?delete='.$bug[$i]['id'].'&where=bug_report"><img src="img/x.gif" class="del" title="cancel" alt="cancel"></a></td>';
}
$id = $i+1;
echo "<tr><td class=\"ra \" >".$id.".</td>";
echo "<td><a href=\"?uid=".$bug[$i]['user']."\">".$database->getUserField($bug[$i]['user'],'username',0)."</a></td>";
echo "<td>".$bug[$i]['page']."</td>";
echo "<td>".$bug[$i]['report']."</td>";
echo "<td class=\"vil\">".date("H:i d.m.y",$bug[$i]['time'])."</td>";
echo "<td>".$bug[$i]['ip']."</td>";
echo $del;
echo "</tr>";
}
}
else {
echo "<tr><td class=\"none\" colspan=\"7\">No bug report</td></tr>";
}
?>
</tbody>
</table>
+138
View File
@@ -0,0 +1,138 @@
<?
if($_POST){
$database->update_config($_POST);
$database->reload('admin.php?page=1');
}
?>
<form action="" method="post">
<table id="del_acc" class="account" cellpadding="1" cellspacing="1"><thead>
<tr>
<th colspan="2">Server Settings</th>
</tr>
</thead><tbody>
<tr>
<th>Title name:</th>
<td><input class="text" name="SERVER_NAME" value="<?php echo SERVER_NAME;?>" maxlength="20" type="text"></td>
</tr>
<tr>
<th>Language:</th>
<td>
<select class="dropdown" name="LANG"">
<?php
$handle=opendir('GameEngine/lang');
while (false!==($file = readdir($handle)))
{
if (similar_text(".",$file)<1)
{
if(LANG==$file){$sel = "selected";}else{$sel = "";}
echo '<option value="'.$file.'"'.$sel.'>'.$file.'</option>\n';
}
}
closedir($handle);
?>
</select>
</td>
</tr>
<tr>
<th>Speed</th>
<td class="speed">
<input class="radio" name="SPEED" value="1" <?php if(SPEED==1){echo 'checked';}?> type="radio"> 1x
<input class="radio" name="SPEED" value="2" <?php if(SPEED==2){echo 'checked';}?> type="radio"> 2x
<input class="radio" name="SPEED" value="3" <?php if(SPEED==3){echo 'checked';}?> type="radio"> 3x
<input class="radio" name="SPEED" value="5" <?php if(SPEED==5){echo 'checked';}?> type="radio"> 5x
<input class="radio" name="SPEED" value="10" <?php if(SPEED==10){echo 'checked';}?> type="radio"> 10x
</td>
</tr>
<tr>
<th>Graphic pack:</th>
<td>
<input type="radio" name="GP_ENABLE" <?php if(GP_ENABLE==1){echo 'checked';}?> value="1"> On
<input type="radio" name="GP_ENABLE" <?php if(GP_ENABLE==0){echo 'checked';}?> value="0"> Off
</td>
</tr>
<tr>
<th>Server online:</th>
<td>
<input class="checkbox" name="active" value="1" <?php if(active==1){echo 'checked';}?> type="radio"> On
<input class="checkbox" name="active" value="0" <?php if(active==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Censored:</th>
<td>
<input class="checkbox" name="WORD_CENSOR" value="1" <?php if(WORD_CENSOR==1){echo 'checked';}?> type="radio"> On
<input class="checkbox" name="WORD_CENSOR" value="0" <?php if(WORD_CENSOR==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Censored words:</th>
<td><textarea class="text" name="CENSORED" maxlength="100"><?php echo CENSORED;?></textarea></td>
</tr>
<tr>
<th>Log build:</th>
<td>
<input class="radio" name="LOG_BUILD" value="1" <?php if(LOG_BUILD==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_BUILD" value="0" <?php if(LOG_BUILD==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Technology:</th>
<td>
<input class="radio" name="LOG_TECH" value="1" <?php if(LOG_TECH==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_TECH" value="0" <?php if(LOG_TECH==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Login:</th>
<td>
<input class="radio" name="LOG_LOGIN" value="1" <?php if(LOG_LOGIN==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_LOGIN" value="0" <?php if(LOG_LOGIN==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Gold:</th>
<td>
<input class="radio" name="LOG_GOLD_FIN" value="1" <?php if(LOG_GOLD_FIN==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_GOLD_FIN" value="0" <?php if(LOG_GOLD_FIN==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Admin:</th>
<td>
<input class="radio" name="LOG_ADMIN" value="1" <?php if(LOG_ADMIN==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_ADMIN" value="0" <?php if(LOG_ADMIN==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log War:</th>
<td>
<input class="radio" name="LOG_WAR" value="1" <?php if(LOG_WAR==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_WAR" value="0" <?php if(LOG_WAR==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Market:</th>
<td>
<input class="radio" name="LOG_MARKET" value="1" <?php if(LOG_MARKET==1){echo 'checked';}?> type="radio"> On
<input class="radio" name="LOG_MARKET" value="0" <?php if(LOG_MARKET==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Log Illegal:</th>
<td>
<input class="checkbox" name="LOG_ILLEGAL" value="1" <?php if(LOG_ILLEGAL==1){echo 'checked';}?> type="radio"> On
<input class="checkbox" name="LOG_ILLEGAL" value="0" <?php if(LOG_ILLEGAL==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
<tr>
<th>Bug Report:</th>
<td>
<input class="checkbox" name="BUG_REPORT" value="1" <?php if(BUG_REPORT==1){echo 'checked';}?> type="radio"> On
<input class="checkbox" name="BUG_REPORT" value="0" <?php if(BUG_REPORT==0){echo 'checked';}?> type="radio"> Off
</td>
</tr>
</tbody></table>
<input type="submit">
</form>
+47
View File
@@ -0,0 +1,47 @@
<?php
if(!is_numeric($_SESSION['search'])) {
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
$search = 0;
}
else {
$search = $_SESSION['search'];
}
?>
<table cellpadding="1" cellspacing="1" id="player">
<thead>
<tr>
<th colspan="10">Online players</th>
</tr>
<tr><td></td><td>Player</td><td>Access</td><td>Gold</td><td>Email</td><td>Alliance</td><td>Population</td><td>Villages</td><td>Tribe</td></tr>
</thead><tbody>
<?php
$users = $database->getUsersAll();
for ($i = 0; $i < count($users); $i++) {
if(count($users)>0) {
$users[$i]['totalvillage'] = count($database->getVillagesID($users[$i]['id']));
$users[$i]['totalpop'] = $database->getVSumField($users[$i]['id'],"pop");
$users[$i]['aname'] = $database->getAllianceName($users[$i]['alliance']);
$id = $i+1;
echo "<tr><td class=\"ra \" >".$id.".</td>";
echo "<td class=\"pla \" ><a href=\"spieler.php?uid=".$users[$i]['id']."\">".$users[$i]['username']."</a> [".$users[$i]['id']."]</td>";
echo "<td class=\"pla \" >".$users[$i]['access']."</td>";
echo "<td class=\"pla \" >".$users[$i]['gold']."</td>";
echo "<td class=\"pla \" >".$users[$i]['email']."</td>";
echo "<td class=\"al \" ><a href=\"allianz.php?aid=".$users[$i]['alliance']."\">".$users[$i]['aname']."</a></td>";
echo "<td class=\"pop \" >".$users[$i]['totalpop']."</td><td class=\"vil\">".$users[$i]['totalvillage']."</td><td class=\"vil\">".$users[$i]['tribe']."</td></tr>";
}
else {
echo "<td class=\"none\" colspan=\"5\">No users found</td>";
}
}
?>
</tbody>
</table>
+75
View File
@@ -0,0 +1,75 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editUser.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
$uid = $_GET['uid'];
$user = $database->getUser($uid);
if($_POST){
$profile->updateProfil($_POST);
$database->reload('?uid='.$uid);
}
?>
<div id="content" class="player" style="width:100%">
<form action="" method="POST">
<input type="hidden" name="ft" value="p1" />
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<table cellpadding="1" cellspacing="1" id="edit" ><thead>
<tr>
<th colspan="3">Player <?php echo $user['username']; ?> </th>
</tr>
<tr>
<td colspan="2">Details</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" class="empty"></td><td class="empty"></td></tr>
<tr>
<?php
if($user['birthday'] != 0) {
$bday = explode("-",$user['birthday']);
}
else {
$bday = array('','','');
}
?>
<th>Birthday</th><td class="birth"><input tabindex="1" class="text day" type="text" name="tag" value="<?php echo $bday[2]; ?>" maxlength="2" /> <select tabindex="2" name="monat" size="" class="dropdown">
<option value="0"></option><option value="1" <?php if($bday[1] == 1) { echo "selected"; } ?>>Jan</option><option value="2"<?php if($bday[1] == 2) { echo "selected"; } ?>>Feb</option><option value="3"<?php if($bday[1] == 3) { echo "selected"; } ?>>Mar</option><option value="4"<?php if($bday[1] == 4) { echo "selected"; } ?>>Apr</option><option value="5"<?php if($bday[1] == 5) { echo "selected"; } ?>>May</option><option value="6"<?php if($bday[1] == 6) { echo "selected"; } ?>>June</option><option value="7"<?php if($bday[1] == 7) { echo "selected"; } ?>>July</option><option value="8"<?php if($bday[1] == 8) { echo "selected"; } ?>>Aug</option><option value="9"<?php if($bday[1] == 9) { echo "selected"; } ?>>Sep</option><option value="10"<?php if($bday[1] == 10) { echo "selected"; } ?>>Oct</option><option value="11"<?php if($bday[1] == 11) { echo "selected"; } ?>>Nov</option><option value="12"<?php if($bday[1] == 12) { echo "selected"; } ?>>Dec</option></select> <input tabindex="3" type="text" name="jahr" value="<?php echo $bday[0]; ?>" maxlength="4" class="text year"></td>
<td rowspan="100" class="desc1"><textarea tabindex="7" name="be1"><?php echo $user['desc2']; ?></textarea></td></tr>
<tr><th>Gender</th>
<td class="gend">
<label><input class="radio" type="radio" name="mw" value="0" <?php if($user['gender'] == 0) { echo "checked"; } ?> tabindex="4">n/a</label>
<label><input class="radio" type="radio" name="mw" value="1" <?php if($user['gender'] == 1) { echo "checked"; } ?> >m</label>
<label><input class="radio" type="radio" name="mw" value="2" <?php if($user['gender'] == 2) { echo "checked"; } ?> >f</label>
</td></tr>
<tr><th>Location</th><td><input tabindex="5" type="text" name="ort" value="<?php echo $user['location']; ?>" maxlength="30" class="text"></td></tr>
<tr><td colspan="2" class="empty"></td></tr>
<?php
$varray = $database->getProfileVillages($uid);
for($i=0;$i<=count($varray)-1;$i++) {
echo "<tr><th>Village name</th><td><input tabindex=\"6\" type=\"text\" name=\"dname$i\" value=\"".$varray[$i]['name']."\" maxlength=\"20\" class=\"text\"></td></tr>";
}
?>
<tr><td colspan="2" class="empty"></td></tr>
<tr><td colspan="2" class="desc2"><textarea tabindex="8" name="be2"><?php echo $user['desc1']; ?></textarea></td></tr>
</table><p class="btn"><input type="image" value="" tabindex="9" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></p>
</form>
+3
View File
@@ -0,0 +1,3 @@
<h1>Welcome to admin</h1>
heloo
+61
View File
@@ -0,0 +1,61 @@
<?php
$ranking->procRankReq($_GET);
$ranking->procRank($_POST);
if(!is_numeric($_SESSION['search'])) {
echo "<p class=\"error\">The user <b>".$_SESSION['search']."</b> does not exist.</p>";
$search = 0;
}
else {
$search = $_SESSION['search'];
}
?>
<table cellpadding="1" cellspacing="1" id="player">
<thead>
<tr>
<th colspan="10">Online players</th>
</tr>
<tr><td></td><td>Player</td><td>Access</td><td>Gold</td><td>Email</td><td>Alliance</td><td>Population</td><td>Villages</td><td>Tribe</td></tr>
</thead><tbody>
<?php
$users = $database->getUsersAll();
$holder = array();
foreach($users as $value) {
$value['totalvillage'] = count($database->getVillagesID($value['id']));
$value['totalpop'] = $database->getVSumField($value['id'],"pop");
$value['aname'] = $database->getAllianceName($value['alliance']);
array_push($holder,$value);
}
$users = $multisort->sorte($holder, "'totalvillage'", false, 2, "'totalpop'", false, 2);
for ($i = 0; $i < count($users); $i++) {
if(count($users)>0) {
/*
$users[$i]['totalvillage'] = count($database->getVillagesID($users[$i]['id']));
$users[$i]['totalpop'] = $database->getVSumField($users[$i]['id'],"pop");
$users[$i]['aname'] = $database->getAllianceName($users[$i]['alliance']);
*/
$id = $i+1;
echo "<tr><td class=\"ra \" >".$id.".</td>";
echo "<td class=\"pla \" ><a href=\"?uid=".$users[$i]['id']."\">".$users[$i]['username']."</a> [".$users[$i]['id']."]</td>";
echo "<td class=\"pla \" >".$users[$i]['access']."</td>";
echo "<td class=\"pla \" >".$users[$i]['gold']."</td>";
echo "<td class=\"pla \" >".$users[$i]['email']."</td>";
echo "<td class=\"al \" ><a href=\"?aid=".$users[$i]['alliance']."\">".$users[$i]['aname']."</a></td>";
echo "<td class=\"pop \" >".$users[$i]['totalpop']."</td><td class=\"vil\">".$users[$i]['totalvillage']."</td><td class=\"vil\">".$users[$i]['tribe']."</td></tr>";
}
else {
echo "<td class=\"none\" colspan=\"5\">No users found</td>";
}
}
?>
</tbody>
</table>
+104
View File
@@ -0,0 +1,104 @@
<table id="player" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="15">Results in <?php echo $_GET['search_in'];?></th>
</tr>
</thead><tbody>
<?php
if($_GET['search_in']=="player"){
echo '<tr><td></td><td>Player</td><td>Access</td><td>Gold</td><td>Email</td><td>Alliance</td><td>Population</td>
<td>Villages</td><td>Tribe</td><td>Last activity</td><td></td></tr>';
$holder = array();
foreach($search as $value) {
$value['totalvillage'] = count($database->getVillagesID($value['id']));
$value['totalpop'] = $database->getVSumField($value['id'],"pop");
$value['aname'] = $database->getAllianceName($value['alliance']);
array_push($holder,$value);
}
$search = $multisort->sorte($holder, "'totalvillage'", false, 2, "'totalpop'", false, 2);
for ($i = 0; $i <= count($search)-1; $i++) {
if($search[$i]['id']==0 or $search[$i]['id']==1){
$del = "<td></td>";
}else{
$del = '<td ><a href="?delete='.$search[$i]['id'].'&where=user"><img src="img/x.gif" class="del" title="cancel" alt="cancel"></a></td>';
}
echo'<tr>
<td class="ra fc">'.($i+1).'.</td>
<td class="pla "><a href="?uid='.$search[$i]['id'].'">'.$search[$i]['username'].'</a></td>
<td class="vil">'.$search[$i]['access'].'</td>
<td class="vil">'.$search[$i]['gold'].'</td>
<td class="vil">'.$search[$i]['email'].'</td>
<td class="al "><a href="?aid='.$search[$i]['alliance'].'">'.$search[$i]['aname'].'</a></td>
<td class="pop ">'.$search[$i]['totalpop'].'</td>
<td class="vil">'.$search[$i]['totalvillage'].'</td>
<td class="vil">'.$search[$i]['tribe'].'</td>
<td class="pla">'.date("H:i d.m.y",$search[$i]['timestamp']).'</td>
'.$del.'
</tr>
';
}
}
if($_GET['search_in']=="village"){
foreach ($_GET as $value=>$el) {
if($value!="sort"){
$page .= $value."=".$el."&";
}
}
echo '<tr><td></td>
<td><a class="rn3" href="?'.$page.'sort=name">Village</a></td>
<td><a class="rn3" href="?'.$page.'sort=owner">Owner</a></td>
<td><a class="rn3" href="?'.$page.'sort=wood"><img src="img/x.gif" class="r1"> Wood</a></td>
<td><a class="rn3" href="?'.$page.'sort=clay"><img src="img/x.gif" class="r2"> Clay</a></td>
<td><a class="rn3" href="?'.$page.'sort=iron"><img src="img/x.gif" class="r3"> Iron</a></td>
<td><a class="rn3" href="?'.$page.'sort=maxstore">Max store</a></td>
<td><a class="rn3" href="?'.$page.'sort=crop"><img src="img/x.gif" class="r4"> Crop</a></td>
<td><a class="rn3" href="?'.$page.'sort=maxcrop">Max Crop</a></td>
<td><a class="rn3" href="?'.$page.'sort=pop">Pop</a></td>
<td><a class="rn3" href="?'.$page.'sort=capital">Capital</a></td>
</tr>
<tr><td colspan="15"></td></tr>';
$sort = $_GET['sort'];
if(!$sort){
$search = $multisort->sorte($search, "'pop'", false, 2);
}
else{
$search = $multisort->sorte($search, "'$sort'", true, 2);
}
for ($i = 0; $i <= count($search)-1; $i++) {
$owner = $database->getUserField($search[$i]['owner'],'username',0);
$owner_id = $database->getUserField($search[$i]['owner'],'id',0);
echo '<tr>
<td>'.($i+1).'.</td>
<td><a href="?wref='.$search[$i]['wref'].'">'.$search[$i]['name'].'</a></td>
<td><a href="?uid='.$search[$i]['owner'].'">'.$owner.'</a></td>
<td>'.$search[$i]['wood'].'</td>
<td>'.$search[$i]['clay'].'</td>
<td>'.$search[$i]['iron'].'</td>
<td>'.$search[$i]['maxstore'].'</td>
<td>'.$search[$i]['crop'].'</td>
<td>'.$search[$i]['maxcrop'].'</td>
<td>'.$search[$i]['pop'].'</td>
<td>'.$search[$i]['capital'].'</td>
</tr>';
}
}
?>
</tbody>
</table>
+46
View File
@@ -0,0 +1,46 @@
<?php
if($_GET['search_in']){
if(!$_GET['sort']){$sort = $_GET['search_in'];}
else{
$sort = $_GET['sort'];
}
$search = $database->search($_GET['search'],$_GET['search_in'],$sort);
}
?>
<form action="" method="get">
<input type="hidden" name="page" value="2">
<table id="member" >
<thead>
<tr><th colspan="3">
Search
</th></tr>
</thead>
<tbody>
<tr>
<td>
<select class="dropdown" name="search_in">
<option value="player" <?php if($_GET['search_in']=="player"){echo "selected";}?>>Search player</option>
<option value="village" <?php if($_GET['search_in']=="village"){echo "selected";}?>>Search villages</option>
<option value="alliance" <?php if($_GET['search_in']=="alliance"){echo "selected";}?>>Search alliances</option>
<option value="email" <?php if($_GET['search_in']=="email"){echo "selected";}?>>Search E-Mail addresses</option>
<option value="ip" <?php if($_GET['search_in']=="ip"){echo "selected";}?>>Search Ips</option>
<option value="del_players" <?php if($_GET['search_in']=="del_players"){echo "selected";}?>>Search deleted players</option>
</select>
</td>
<td>
<input type="text" class="text" name="search" value="<?php echo $_GET['search'];?>">
</td>
<td>
<input class="text" type="submit" value="Search">
</td>
</tr>
</tbody>
</table>
</form>
<br>
<?php
if($_GET['search'] or $_GET['search_in']){
include('templates/admin/results.tpl');
}
?>
+141
View File
@@ -0,0 +1,141 @@
<?php
$ranking->procRankReq($_GET);
$displayarray = $database->getUserArray($_GET['uid'],1);
$varray = $database->getProfileVillages($_GET['uid']);
$totalpop = 0;
foreach($varray as $vil) {
$totalpop += $vil['pop'];
}
?>
<div id="content" class="player" style="width:100%">
<table id="profile" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Player <?php echo $displayarray['username']; ?> </th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
</tr>
</thead><tbody>
<tr>
<td class="empty"></td><td class="empty"></td>
</tr>
<tr>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Rank</th>
<td><?php echo $ranking->searchRank($displayarray['username'],"username"); ?></td>
</tr>
<tr>
<th>Tribe</th>
<td><?php
if($displayarray['tribe'] == 1) {
echo "Roman";
}
else if($displayarray['tribe'] == 2) {
echo "Teutons";
}
else if($displayarray['tribe'] == 3) {
echo "Gauls";
} ?></td>
</tr>
<tr>
<th>Alliance</th>
<td><?php if($displayarray['alliance'] == 0) {
echo "-";
}
else {
$displayalliance = $database->getAllianceName($displayarray['alliance']);
echo "<a href=\"?aid=".$displayarray['alliance']."\">".$displayalliance."</a>";
} ?></td>
</tr>
<tr>
<th>Villages</th>
<td><?php echo count($varray);?></td>
</tr>
<tr>
<th>Population</th>
<td><?php echo $totalpop; ?></td>
</tr>
<?php
if(isset($displayarray['birthday']) && $displayarray['birthday'] != 0) {
$age = date("Y")-substr($displayarray['birthday'],0,4);
echo "<tr><th>Age</th><td>$age</td></tr>";
}
if(isset($displayarray['gender']) && $displayarray['gender'] != 0) {
$gender = ($displayarray['gender']== 1)? "Male" : "Female";
echo "<tr><th>Gender</th><td>".$gender."</td></tr>";
}
if($displayarray['location'] != "") {
echo "<tr><th>Location</th><td>".$displayarray['location']."</td></tr>";
}
?>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2"> <a href="?edit=user&uid=<?php echo $_GET['uid'];?>">&raquo; Change profile</a></td>
</tr>
<tr>
<td colspan="2"> <a href="?action=message&amp;id=<?php echo $_GET['uid'];?>">&raquo; Write message</a></td>
</tr>
<tr>
<td colspan="2"> <a href="?uid=<?php echo $_GET['uid'];?>&delete=<?php echo $_GET['uid'];?>&where=user">&raquo; Delete player</a></td>
</tr>
<tr>
<td colspan="2"> <a href="?log_login=<?php echo $_GET['uid'];?>">&raquo; Login Log</a></td>
</tr>
<tr>
<td colspan="2" class="desc2">
<div class="desc2div"><?php echo $displayarray['desc1']; ?></div>
</td>
</tr>
</table>
</td>
<td class="desc1" >
<?php echo $displayarray['desc2']; ?>
</td>
</tr>
</tbody>
</table>
<br>
<table cellpadding="1" cellspacing="1" id="villages">
<thead>
<tr>
<th colspan="3">Villages</th>
</tr>
<tr>
<td>Name</td>
<td>Inhabitants</td>
<td>Coordinates</td>
</tr>
</thead><tbody>
<?php
if(count($varray)>0){
foreach($varray as $vil) {
$coor = $database->getCoor($vil['wref']);
echo "<tr><td class=\"nam\"><a href=\"?wref=".$vil['wref']."\">".$vil['name']."</a>";
if($vil['capital'] == 1) {
echo "<span class=\"none3\"> (capital)</span>";
}
echo "</td>";
echo "<td class=\"hab\">".$vil['pop']."</td><td class=\"aligned_coords\">";
echo "<div class=\"cox\">(".$coor['x']."</div><div class=\"pi\">|</div><div class=\"coy\">".$coor['y'].")</div></td></tr>";
}
}
else{
echo "<tr><td colspan=\"3\" class=\"none\">No village</td></tr>";
}
?>
</tbody></table>
+136
View File
@@ -0,0 +1,136 @@
<?php
$village = $database->getVillage($_GET['wref']);
?>
<div id="content" class="player" style="width:100%">
<table id="profile" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Village: <a href="?wref=<?php echo $village['wref']; ?>"><?php echo $village['name']; ?></a> - user '<?php echo $village['owner']; ?>'</th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
</tr>
</thead><tbody>
<tr>
<td class="empty"></td><td class="empty"></td>
</tr>
<tr>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Wood</th>
<td><?php echo $village['wood']; ?></td>
</tr>
<tr>
<th>Clay</th>
<td><?php echo $village['clay']; ?></td>
</tr>
<tr>
<th>Iron</th>
<td><?php echo $village['iron']; ?></td>
</tr>
<tr>
<th>Max store</th>
<td><?php echo $village['maxstore']; ?></td>
</tr>
<tr>
<th>Crop</th>
<td><?php echo $village['crop']; ?></td>
</tr>
<tr>
<th>Max store</th>
<td><?php echo $village['maxcrop']; ?></td>
</tr>
<tr>
<th>Population</th>
<td><?php echo $village['pop']; ?></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2"> <a href="?edit=user&uid=<?php echo $_GET['uid'];?>">&raquo; Change profile</a></td>
</tr>
<tr>
<td colspan="2"> <a href="?action=message&amp;id=<?php echo $_GET['uid'];?>">&raquo; Write message</a></td>
</tr>
<tr>
<td colspan="2"> <a href="#?uid=<?php echo $_GET['uid'];?>&delete=<?php echo $_GET['uid'];?>&where=user">&raquo; Delete player</a></td>
</tr>
</table>
</td>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Capital</th>
<td><?php echo $village['capital']; ?></td>
</tr>
<tr>
<th>Clay</th>
<td><?php echo $village['clay']; ?></td>
</tr>
<tr>
<th>Iron</th>
<td><?php echo $village['iron']; ?></td>
</tr>
<tr>
<th>Max store</th>
<td><?php echo $village['maxstore']; ?></td>
</tr>
<tr>
<th>Crop</th>
<td><?php echo $village['crop']; ?></td>
</tr>
<tr>
<th>Max store</th>
<td><?php echo $village['maxcrop']; ?></td>
</tr>
<tr>
<th>Population</th>
<td><?php echo $village['pop']; ?></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<br>
<table id="villages" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="3">Villages:</th>
</tr>
<tr>
<td>Name</td>
<td>Inhabitants</td>
<td>Coordinates</td>
</tr>
</thead><tbody>
<?php
$villages = $database->getProfileVillages($village['owner']);
foreach($villages as $vil){
$coor = $database->getCoor($vil['wref']);
if($vil['capital']==1) {$cap = '<span class="none3">(capital)</span>';} else{$cap = "";}
echo '
<tr>
<td class="nam"><a href="?wref='.$vil['wref'].'">'.$vil['name'].'</a> '.$cap.'</td>
<td class="hab">'.$vil['pop'].'</td>
<td class="aligned_coords">
<div class="cox">('.$coor['x'].'</div>
<div class="pi">|</div>
<div class="coy">'.$coor['y'].')</div>
</td>
</tr>'; }
?>
</tbody></table>
+35
View File
@@ -0,0 +1,35 @@
<?php
$log = $database->getUser_log($_GET['log_login']);
?>
<table cellpadding="1" cellspacing="1" id="player">
<thead>
<tr>
<th colspan="10">User id <?php echo $_GET['log_login'];?> login log</th>
</tr>
<tr><td></td><td>Player</td><td>IP</td><td>Time</td><td></td></tr>
</thead><tbody>
<?php
if(count($log)>0) {
for ($i = 0; $i < count($log); $i++) {
//$del = '<td class="vil"><a href="?delete='.$log[$i]['id'].'&where=login_log"><img src="img/x.gif" class="del" title="cancel" alt="cancel"></a></td>';
if(!$del){$del = '<td></td>';}
$id = $i+1;
echo "<tr><td class=\"ra \" >".$id.".</td>";
echo "<td><a href=\"?uid=".$log[$i]['id']."\">".$database->getUserField($log[$i]['uid'],'username',0)."</a></td>";
echo "<td>".$log[$i]['ip']."</td>";
echo "<td>".date("d.m.y H:i:s",$log[$i]['time'])."</td>";
echo $del;
echo "</tr>";
}
}
else {
echo "<tr><td class=\"none\" colspan=\"7\">No logs</td></tr>";
}
?>
</tbody>
</table>
+128
View File
@@ -0,0 +1,128 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename ban.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<form action="" method="get">
<input name="action" type="hidden" value="addBan">
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Ban</th>
</tr>
</thead>
<tbody>
<tr>
<td>User ID</td>
<td>
<input type="text" class="fm" name="uid" value="<?php echo $_GET['uid'];?>">
</td>
</tr>
<tr>
<td>Reason</td>
<td>
<select name="reason" class="fm">
<?php
$arr = array('Pushing','Cheat','Hack','Bug','Bad Name','Multi Account','Swearing');
foreach($arr as $r)
{
echo '<option value="'.$r.'">'.$r.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td>Duration</td>
<td>
<select name="time" class="fm">
<?php
$arr = array(1,2,5,10,12);
foreach($arr as $r)
{
echo '<option value="'.($r*3600).'">'.$r.' hour/s</option>';
}
$arr2 = array(1,2,5,10,30,50,90);
foreach($arr2 as $r)
{
echo '<option value="'.($r*3600*24).'">'.$r.' day/s</option>';
}
echo '<option value="">Forever</option>';
?>
</select>
</td>
</tr>
<tr>
<td colspan="2" class="on"><input type="image" src="../img/admin/b/ok1.gif" value="submit"></br>Notice: if player have ' in is name, you need to write his ID to ban him.</td>
</tr>
</tbody>
</table>
</form>
<?php
$bannedUsers = $admin->search_banned();
?>
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Bannned Players (<?php echo count($bannedUsers); ?>)</th>
</tr>
<tr>
<td><b>Username</b></td>
<td><b>Length (from/to)</b></td>
<td><b>Reason</b></td>
<td></td>
</tr>
</thead>
<tbody>
<?php
if($bannedUsers)
{
for ($i = 0; $i <= count($bannedUsers)-1; $i++)
{
if($database->getUserField($bannedUsers[$i]['uid'],'username',0)=='')
{
$name = $bannedUsers[$i]['name'];
$link = "<span class=\"c b\">[".$name."]</span>";
}
else
{
$name = $database->getUserField($bannedUsers[$i]['uid'],'username',0);
$link = '<a href="?p=player&uid='.$bannedUsers[$i]['uid'].'">'.$name.'<a/>';
}
if($bannedUsers[$i]['end'])
{
$end = date("d.m.y H:i",$bannedUsers[$i]['end']);
}
else
{
$end = '*';
}
echo '
<tr>
<td>'.$link.'</td>
<td ><span class="f7">'.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.'</td>
<td>'.$bannedUsers[$i]['reason'].'</td>
<td class="on"><a href="?action=delBan&uid='.$bannedUsers[$i]['uid'].'&id='.$bannedUsers[$i]['id'].'" onClick="return del(\'unban\',\''.$name.'\')"><img src="../img/Admin/del.gif" class="del" title="cancel" alt="cancel"></img></a></td>
</tr>';
}
}
else
{
echo '<tr><td colspan="6" class="on">No Players are Banned</td></tr>';
}
?>
</tbody>
</table>
+39
View File
@@ -0,0 +1,39 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename ban_msq.tpl ##
## Developed by: yi12345 ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
$time = time();
$ban = mysql_query("SELECT * FROM ".TB_PREFIX."banlist WHERE `uid` = '".$session->uid."' and active = 1");
$ban1 = mysql_fetch_array($ban);
?>
<p></br>
Hello <?php echo $ban1['name']; ?>!
You have been banned due to a violation of the rules.
</br>
Your banning reason is <?php echo $ban1['reason']; ?>.
</br>
</br></br> To ensure that you won't get banned again in the future, you shuold read the rules carefully:
</br></br><center> <?php echo "<a class=\"rules\" href=\"rules.php\">» Game rules</a>"; ?> </center>
</br></br></br>
To continue playing contact the Multihunter and put things straight with him/her
</br></br><center> <?php echo "<a class=\"rules\" href=\"nachrichten.php?t=1&id=5\">» Write Message</a>"; ?> </center>
</br></br>
Heed the following advice when writing your message:
</br></br>
● There is always a reason for a ban. <u>Try to think about possible reasons for this ban</u> and put things straight with the Multihunter.
</br>
● Multihunters can review enormous amounts of information about accounts. <u>Stick to the truth</u> and do not make excuses to justify your violation of the rules.
</br>
● Be cooperative and insightful, this might reduce the punishment.
</br>
● 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.
</br>
● If you have really been banned unjustly, try to stay <u>calm and polite</u> while talking to the Multihunter and telling him/her about your point of view.
</p>
+16
View File
@@ -0,0 +1,16 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="../GameEngine/Admin/Mods/mainteneceCleanBanData.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<td class="hab">Clean Banlist Data (TRUNCATE)</td>
<td class="hab"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</form>
+280
View File
@@ -0,0 +1,280 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename config.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
if ($_SESSON['access'] == MULTIHUNTER) die("<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><b><font color='Red'><center>Access Denied: You are not admin</b></font></center>");
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<h2><center>Made by Dzoki</center></h2>
<table id="member">
<thead>
<tr>
<th>~ Server Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Server Name</td>
<td><?php echo SERVER_NAME;?></td>
</tr>
<tr>
<td>Server Started</td>
<td><?php echo date("d.m.y H:i",COMMENCE);?></td>
</tr>
<tr>
<td>Language</td>
<td><?php if(LANG == en){ echo "English"; } ?></td>
</tr>
<tr>
<td>Server Speed</td>
<td><?php echo ''.SPEED.'x';?></td>
</tr>
<tr>
<td>Map Size</td>
<td><?php echo WORLD_MAX;?>x<?php echo WORLD_MAX;?></td>
</tr>
<tr>
<td>Troop Speed</td>
<td><?php echo INCREASE_SPEED;?>x</td>
</tr>
<tr>
<td>Village Expanding Speed</td>
<td><?php if(CP == 0){ echo "Fast"; } else if(CP == 1){ echo "Slow"; } ?></td>
</tr>
<tr>
<td>Beginners Protection</td>
<td><?php echo (PROTECTION/3600);?> hour/s</td>
</tr>
<tr>
<td>Activation Mail</td>
<td><?php if(AUTH_EMAIL == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(AUTH_EMAIL == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Quest</td>
<td><?php if(QUEST == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(QUEST == false) { echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Demolish - Level required</td>
<td><?php echo DEMOLISH_LEVEL_REQ; ?></td>
</tr>
<tr>
<td>World Wonder - Statistics</td>
<td><?php if(WW == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(WW == false) { echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td><b><font color='#71D000'>P</font><font color='#FF6F0F'>l</font><font color='#71D000'>u</font><font color='#FF6F0F'>s</font></b> account duration</td>
<td><?php if(PLUS_TIME >= 86400){ echo ''.(PLUS_TIME/86400).' Days'; } else if(PLUS_TIME < 86400){ echo ''.(PLUS_TIME/3600).' Hours'; } ?></td>
</tr>
<tr>
<td>+25% production duration</td>
<td><?php if(PLUS_PRODUCTION >= 86400){ echo ''.(PLUS_PRODUCTION/86400).' Days'; } else if(PLUS_PRODUCTION < 86400){ echo ''.(PLUS_PRODUCTION/3600).' Hours'; } ?></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Log Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Log Build</td>
<td><?php if(LOG_BUILD == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_BUILD == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Technology</td>
<td><?php if(LOG_TECH == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_TECH == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Login</td>
<td><?php if(LOG_LOGIN == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_LOGIN == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Gold</td>
<td><?php if(LOG_GOLD_FIN == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(ALOG_GOLD_FIN == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Admin</td>
<td><?php if(LOG_ADMIN == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_ADMIN == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log War</td>
<td><?php if(LOG_WAR == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_WAR == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Market</td>
<td><?php if(LOG_MARKET == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_MARKET == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Log Illegal</td>
<td><?php if(LOG_ILLEGAL == true) { echo "<b><font color='Green'>Enabled</font></b>"; } else if(LOG_ILLEGAL == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Newsbox Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Newsbox 1</td>
<td><?php if(NEWSBOX1 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(NEWSBOX1 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
<tr>
<td>Newsbox 2</td>
<td><?php if(NEWSBOX2 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(NEWSBOX2 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
<tr>
<td>Newsbox 3</td>
<td><?php if(NEWSBOX3 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(NEWSBOX3 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
<tr>
<td>Home 1</td>
<td><?php if(HOME1 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(HOME1 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
<tr>
<td>Home 2</td>
<td><?php if(HOME2 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(HOME2 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
<tr>
<td>Home 3</td>
<td><?php if(HOME3 == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(HOME3 == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?> </td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ SQL Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Hostname</td>
<td><?php echo SQL_SERVER;?></td>
</tr>
<tr>
<td>DB Username</td>
<td><?php echo SQL_USER;?></td>
</tr>
<tr>
<td>DB Password</td>
<td>*********</td>
</tr>
<tr>
<td>DB Name</td>
<td><?php echo SQL_DB;?></td>
</tr>
<tr>
<td>Table Prefix</td>
<td><?php echo TB_PREFIX;?></td>
</tr>
<tr>
<td>DB Type</td>
<td><?php if(DB_TYPE == 0) { echo "MYSQL"; } else if(DB_TYPE == 1) { echo "MYSQLi"; } ?></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Extra Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Limit Mailbox</td>
<td><?php if(LIMIT_MAILBOX == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(LIMIT_MAILBOX == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
<tr>
<td>Max number of mails</td>
<td><?php if(LIMIT_MAILBOX == true){ echo MAX_MAIL; } else if(LIMIT_MAILBOX == false){ echo "<font color='Gray'>Limit mailbox disabled</font>"; } ?></td>
</tr>
<tr>
<td>Include Admin in rank</td>
<td><?php if(INCLUDE_ADMIN == true){ echo "<b><font color='Green'>Enabled</font></b>"; } else if(INCLUDE_ADMIN == false){ echo "<b><font color='Red'>Disabled</font></b>"; } ?></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Admin Information ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Admin Email</td>
<td><?php if(ADMIN_EMAIL == ''){ echo "<b><font color='Red'>No admin email defined!</b></font>"; } else if(ADMIN_EMAIL != ''){ echo ADMIN_EMAIL; } ?></td>
</tr>
<tr>
<td>Admin Name</td>
<td><?php if(ADMIN_NAME == ''){ echo "<b><font color='Red'>No admin name defined!</b></font>"; } else if(ADMIN_NAME != ''){ echo ADMIN_NAME; } ?></td>
</tr>
</table>
<?php
function define_array( $array, $keys = NULL )
{
foreach( $array as $key => $value )
{
$keyname = ($keys ? $keys . "_" : "") . $key;
if( is_array( $array[$key] ) )
define_array( $array[$key], $keyname );
else
define( $keyname, $value );
}
}
//define_array($array);
?>
+151
View File
@@ -0,0 +1,151 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Improved: aggenkeech ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
include("../GameEngine/config.php");
$id = $_SESSION['id'];
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."allimedal");
$nummedals = mysql_num_rows($sql);
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<table id="member">
<thead>
<tr>
<th>Medal Information</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Week</td>
<td>Medals</td>
</tr>
</thead>
<tbody>
<?php
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."allimedal");
$tot = mysql_num_rows($sql);
$sql = mysql_query("SELECT week FROM ".TB_PREFIX."allimedal ORDER BY week DESC LIMIT 1");
if(mysql_num_rows($sql) > 0){
$week = mysql_result($sql, 0);
echo "<tr><td><center>$week</center></td><td><center>$tot</center></td></tr>";
}else{
echo "<tr><td><center>0</center></td><td><center>$tot</center></td></tr>";
}
?>
</tbody>
</table>
<br />
<br />
<form action="../GameEngine/Admin/Mods/delallymedalbyweek.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member">
<thead>
<tr>
<th>Medal Week by Week</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Week</td>
<td>Medals</td>
<td></td>
</tr>
</thead>
<tbody>
<?php
for($j = 0; $j<$week; $j++)
{
$newweek = $j+1;
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."allimedal WHERE week = $newweek");
$tot = mysql_num_rows($sql);
echo "<tr>
<td>$newweek</td>
<td>$tot</td>
<td><input type=\"image\" name=\"deleteweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
}
?>
</tbody>
</table>
</form>
<br />
<br />
<table id="member">
<thead>
<tr>
<th>All Medals (<?php echo $nummedals; ?>)</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Medal</td>
<td>BB-Code</td>
<td>Type</td>
<td>Player</td>
<td>Rank</td>
<td>Week</td>
<td>Points</td>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM ".TB_PREFIX."allimedal ORDER BY id DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
$i = $i + 1;
$titel="Bonus";
switch ($row['categorie'])
{
case "1": $titel="Attackers"; break;
case "2": $titel="Defenders"; break;
case "3": $titel="Climbers"; break;
case "4": $titel="Robbers"; break;
}
$title = $titel;
$rank = $row['plaats'];
$week = $row['week'];
$points = $row['points'];
$bb = $row['id'];
$allyid = $row['allyid'];
$unq = "SELECT name FROM ".TB_PREFIX."alidata WHERE id = ".$allyid."";
$user = mysql_result(mysql_query($unq), 0);
$allyname = $user;
$alliance = '<a href="admin.php?p=alliance&aid='.$allyid.'">'.$allyname.'</a>';
echo"
<tr>
<td>$i</td>
<td>[#$bb]</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
<td>$alliance</td>
<td>$rank</td>
<td>$week</td>
<td>$points</td>
</tr>";
}
?>
</tbody>
</table>
+123
View File
@@ -0,0 +1,123 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename deletion.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
if($_GET['uid'])
{
$user = $database->getUserArray($_GET['uid'],1);
$varray = $database->getProfileVillages($_GET['uid']);
if($user)
{
$totalpop = 0;
foreach($varray as $vil)
{
$totalpop += $vil['pop'];
} ?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<form action="" method="post">
<input type="hidden" name="action" value="DelPlayer">
<input type="hidden" name="uid" value="<?php echo $user['id'];?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member">
<thead>
<tr>
<th colspan="4">Delete player</th>
</tr>
</thead>
<tbody>
<tr>
<td>Name:</td>
<td><a href="?p=player&uid=<?php echo $user['id'];?>"><?php echo $user['username'];?></a></td>
<td>Gold:</td>
<td><?php echo $user['gold'];?></td>
</tr>
<tr>
<td>Rank:</td>
<td>???.</td>
<td>Population:</td>
<td><?php echo $totalpop;?></td>
</tr>
<tr>
<td>Villages:</td>
<td>
<?php
$result = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."vdata WHERE owner = ".$user['id']."");
$num_rows = mysql_num_rows($result);
echo $num_rows;
?>
</td>
<td><b><font color='#71D000'>P</font><font color='#FF6F0F'>l</font><font color='#71D000'>u</font><font color='#FF6F0F'>s</font></b>:</td>
<td>
<?php
$plus = date('d.m.Y H:i',$user['plus']);
echo $plus;
?>
</td>
</tr>
<tr>
<td>Alliance:</td>
<td><?php echo $database->getAllianceName($user['alliance']);?></td>
<td>Status:</td>
<td>-</td>
</tr>
<tr>
<td colspan="4" class="empty"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" name="pass"></td>
<td colspan="2"><input type="submit" class="c5" value="Delete player"></td>
</tr>
</tbody>
</table>
<br /><br /><font color="Red"><b>NOTICE: DELETE ALL PLAYER VILLAGES BELLOW BEFORE DELETING PLAYER!</font></b><br /><br />
<table id="profile">
<thead>
<tr>
<th>Name</th>
<th>Population</th>
<th>Coordinates</th>
<th></th>
</tr>
<?php
for ($i = 0; $i <= count($varray)-1; $i++)
{
$coorproc = $database->getCoor($varray[$i]['wref']);
if($varray[$i]['capital'])
{
$capital = '<span class="c">(Capital)</span>';
$delLink = '<a href="?action=delVil&did='.$varray[$i]['wref'].'" onClick="return del(\'did\','.$varray[$i]['wref'].');"><img src="../img/Admin/del.gif" class="del"></a>';
}
else
{
$capital = '';
$delLink = '<a href="?action=delVil&did='.$varray[$i]['wref'].'" onClick="return del(\'did\','.$varray[$i]['wref'].');"><img src="../img/Admin/del.gif" class="del"></a>';
} echo '
<tr>
<td><a href="?p=village&did='.$varray[$i]['wref'].'">'.$varray[$i]['name'].'</a> '.$capital.'</td>
<td>'.$varray[$i]['pop'].' <a href="?action=recountPop&did='.$varray[$i]['wref'].'">Check<a/></td>
<td>('.$coorproc['x'].'|'.$coorproc['y'].')</td>
<td>'.$delLink.' </td>
</tr>';
}
?>
</thead>
</table>
</form><?php
}
}
else
{
include("404.tpl");
}
?>
+164
View File
@@ -0,0 +1,164 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Improved: aggenkeech ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
include("../GameEngine/config.php");
$id = $_SESSION['id'];
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal");
$nummedals = mysql_num_rows($sql);
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<table id="member">
<thead>
<tr>
<th>Medal Information</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Week</td>
<td>Medals</td>
</tr>
</thead>
<tbody>
<?php
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal");
$tot = mysql_num_rows($sql);
$sql = mysql_query("SELECT week FROM ".TB_PREFIX."medal ORDER BY week DESC LIMIT 1");
if(mysql_num_rows($sql) > 0){
$week = mysql_result($sql, 0);
echo "<tr><td><center>$week</center></td><td><center>$tot</center></td></tr>";
}else{
echo "<tr><td><center>0</center></td><td><center>$tot</center></td></tr>";
}
?>
</tbody>
</table>
<br />
<br />
<form action="../GameEngine/Admin/Mods/deletemedalbyweek.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member">
<thead>
<tr>
<th>Medal Week by Week</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Week</td>
<td>Medals</td>
<td></td>
</tr>
</thead>
<tbody>
<?php
for($j = 0; $j<$week; $j++)
{
$newweek = $j+1;
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal WHERE week = $newweek");
$tot = mysql_num_rows($sql);
echo "<tr><td>$newweek</td><td>$tot</td><td><input type=\"image\" name=\"medalweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
}
?>
</tbody>
</table>
</form>
<br />
<br />
<table id="member">
<thead>
<tr>
<th>All Medals (<?php echo $nummedals; ?>)</th>
</tr>
</thead>
</table>
<table id="profile">
<thead>
<tr>
<td>Medal</td>
<td>BB-Code</td>
<td>Type</td>
<td>Player</td>
<td>Rank</td>
<td>Week</td>
<td>Points</td>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM ".TB_PREFIX."medal ORDER BY id DESC";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
$i = $i + 1;
$titel="Bonus";
switch ($row['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 = $row['plaats'];
$week = $row['week'];
$points = $row['points'];
$bb = $row['id'];
$playerid = $row['userid'];
$unq = "SELECT username FROM ".TB_PREFIX."users where id = $playerid";
$user = mysql_result(mysql_query($unq), 0);
$username = $user;
$player = "<a href=\"admin.php?p=player&uid=".$playerid."\">$username</a>";
echo"
<tr>
<td>$i</td>
<td>[#$bb]</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
<td>$player</td>
<td>$rank</td>
<td>$week</td>
<td>$points</td>
</tr>";
}
?>
</tbody>
</table>
+71
View File
@@ -0,0 +1,71 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id'];
if(isset($_GET['uid']))
{
$sql = mysql_query("SELECT access FROM ".TB_PREFIX."users WHERE id = ".$_GET['uid']."");
$curaccess = mysql_result($sql, 0);
$player = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$id.""));
?>
<form action="../GameEngine/Admin/Mods/editAccess.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" id="uid" value="<?php echo $_GET['uid']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Edit <?php echo $player['username']; ?>'s access</th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<b>Change Access</b>
</center>
</td>
<td>
<center>
<select name="access" class="dropdown">
<option value="0" <?php if($curaccess == 0) { echo 'selected="selected"'; } else { echo ''; } ?>>Banned</option>
<option value="2" <?php if($curaccess == 2) { echo 'selected="selected"'; } else { echo ''; } ?>>Normal User</option>
<option value="8" <?php if($curaccess == 8) { echo 'selected="selected"'; } else { echo ''; } ?>>Multihunter</option>
<option value="9" <?php if($curaccess == 9) { echo 'selected="selected"'; } else { echo ''; } ?>>Admin</option>
</select>
</center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
</center>
</td>
</tr>
</tbody>
</table>
</form><?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Players Access Changed</font></b>';
}
}
else
{
include("404.tpl");
}
?>
+53
View File
@@ -0,0 +1,53 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editOverall.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
<form action="../GameEngine/Admin/Mods/editOverall.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<br />
<table id="profile" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">Edit Overall Attack and Defence Points For: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Edit Attack Points</td>
<td>
<input class="fm" name="off" value="<?php echo $user['apall']; ?>" style="width: 60%;"> Points
</td>
</tr>
<tr>
<td>Edit Defence Points</td>
<td>
<input class="fm" name="def" value="<?php echo $user['dpall']; ?>" style="width: 60%;"> Points
</td>
</tr>
</tbody>
</table>
<br />
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
</form>
<?php
}
else
{
include("404.tpl");
}
?>
+45
View File
@@ -0,0 +1,45 @@
<?php
if(isset($_GET['uid']))
{
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$_GET['uid']."")); ?>
<form action="../GameEngine/Admin/Mods/editPassword.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" id="uid" value="<?php echo $_GET['uid']; ?>">
<table id="profile" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Player <a href="admin.php?p=player&uid=<?php echo $user['id'];?>"><?php echo $user['username'];?></a></th>
</tr>
<tr>
<td></td>
<td>New Password</td>
</tr>
</thead>
<tbody>
<tr>
<th>Password</th>
<td>
<input type="text" style="width: 80%;" class="fm" name="newpw" value="new password">
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" value="submit" src="../img/admin/b/ok1.gif" title="Edit Location">
</center>
</td>
</tr>
</tbody>
</table>
</form><?php
}
else
{
include("404.tpl");
}
?>
+89
View File
@@ -0,0 +1,89 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editPlus.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
<form action="../GameEngine/Admin/Mods/editPlus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<br /><br />
<table id="profile">
<tbody>
<td class="details">
<table>
<thead>
<tr>
<th colspan="2">Plus and Resource Bonuses for: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
</thead>
<tbody>
<?php include("playerplusbonus.tpl"); ?>
<tbody>
</table>
</td>
</tbody>
</table>
<br />
<table id="profile" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">Edit Plus & Bonus</th>
</tr>
</thead>
<tbody>
<tr>
<td>Give Plus Bonus</td>
<td>
<input class="fm" name="plus" value="0" style="width: 60%;"> Days
</td>
</tr>
<tr>
<td>Give +25% Wood</td>
<td>
<input class="fm" name="wood" value="0" style="width: 60%;"> Days
</td>
</tr>
<tr>
<td>Give +25% Clay</td>
<td>
<input class="fm" name="clay" value="0" style="width: 60%;"> Days
</td>
</tr>
<tr>
<td>Give +25% Iron</td>
<td>
<input class="fm" name="iron" value="0" style="width: 60%;"> Days
</td>
</tr>
<tr>
<td>Give +25% Crop</td>
<td>
<input class="fm" name="crop" value="0" style="width: 60%;"> Days
</td>
</tr>
</tbody>
</table>
<br />
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
</form>
<?php
}
else
{
include("404.tpl");
}
?>
+47
View File
@@ -0,0 +1,47 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editPlus.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
<form action="../GameEngine/Admin/Mods/editProtection.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<br />
<table id="profile" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">Edit Protection For: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Give Protection For</td>
<td>
<input class="fm" name="protect" value="0" style="width: 60%;"> Days
</td>
</tr>
</tbody>
</table>
<br />
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
</form>
<?php
}
else
{
include("404.tpl");
}
?>
+80
View File
@@ -0,0 +1,80 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editVillage.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['did'];
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$coor = $database->getCoor($village['wref']);
$varray = $database->getProfileVillages($village['owner']);
$type = $database->getVillageType($village['wref']);
$fdata = $database->getResourceLevel($village['wref']);
if(isset($id))
{
include("search2.tpl"); ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<form action="../GameEngine/Admin/Mods/editResources.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="did" id="did" value="<?php echo $_GET['did']; ?>">
<br />
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="4">Modify Resources</th>
</tr>
<tr>
<td class="on">Resource</td>
<td class="hab">Amount</td>
<td class="hab">Maximum Capacity</td>
</tr>
</thead>
<tbody>
<tr>
<td class="on"><img src="../img/admin/r/1.gif"> Wood</td>
<td class="hab"><input class="fm" name="wood" value="<?php echo round($village['wood'], 0); ?>"></td>
<td rowspan="3" class="hab">
<input class="fm" name="maxstore" value="<?php echo round($village['maxstore'], 0); ?>">
</tr>
</tr>
</tr>
<tr>
<td class="on"><img src="../img/admin/r/2.gif"> Clay</td>
<td class="hab">
<input class="fm" name="clay" value="<?php echo round($village['clay'], 0); ?>">
</td>
</tr>
<tr>
<td class="on"><img src="../img/admin/r/3.gif"> Iron</td>
<td class="hab">
<input class="fm" name="iron" value="<?php echo round($village['iron'], 0); ?>">
</td>
</tr>
<tr>
<td class="on"><img src="../img/admin/r/4.gif"> Crop</td>
<td class="hab">
<input class="fm" name="crop" value="<?php echo round($village['crop'], 0); ?>">
</td>
<td class="hab">
<input class="fm" name="maxcrop" value="<?php echo round($village['maxcrop'], 0); ?>">
</td>
</tr>
</tbody>
</table>
<br /><br />
<center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center>
</form><?php
}
else
{
include("404.tpl");
}
?>
+78
View File
@@ -0,0 +1,78 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editPlus.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
<form action="../GameEngine/Admin/Mods/editSitter.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<br />
<p>To change sitters, you must use their "uid" you can find this using the search. Delete a sitter, put 0 as sitter.</p>
<br />
<table id="profile" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">Edit Sitters For: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Sitter 1</td>
<td>
<input class="fm" name="sitter1" value="<?php echo $user['sit1']; ?>"><br />
<?php
$sitter1 = $database->getUserArray($user['sit1'], 1);
if($user['sit1'] ==0)
{
echo 'No Sitter';
}
else
{
echo '<a href="admin.php?p=player&uid='.$sitter1['id'].'">'.$sitter1['username'].'</a>';
}
?>
</td>
</tr>
<tr>
<td>Sitter 2</td>
<td>
<input class="fm" name="sitter2" value="<?php echo $user['sit2']; ?>"><br />
<?php
$sitter2 = $database->getUserArray($user['sit2'], 1);
if($user['sit2'] ==0)
{
echo 'No Sitter';
}
else
{
echo '<a href="admin.php?p=player&uid='.$sitter2['id'].'">'.$sitter2['username'].'</a>';
}
?>
</td>
</td>
</tr>
</tbody>
</table>
<br />
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
</form>
<?php
}
else
{
include("404.tpl");
}
?>
+171
View File
@@ -0,0 +1,171 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editUser.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
if(isset($id))
{
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
<style type="text/css">
select.dropdown
{
border: 1px solid #71D000;
margin: 0;
padding: 1px 1px;
width: 90%;
}
</style>
<form action="../GameEngine/Admin/Mods/editUser.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<table id="profile" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Player <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Tribe</th>
<td>
<select name="tribe" class="dropdown">
<option value="1" <?php if($user['tribe'] == 1) { echo "selected='selected'"; } else {} ?>>Roman</option>
<option value="2" <?php if($user['tribe'] == 2) { echo "selected='selected'"; } else {} ?>>Teuton</option>
<option value="3" <?php if($user['tribe'] == 3) { echo "selected='selected'"; } else {} ?>>Gaul</option>
<option value="4" <?php if($user['tribe'] == 4) { echo "selected='selected'"; } else {} ?>>Nature</option>
<option value="5" <?php if($user['tribe'] == 5) { echo "selected='selected'"; } else {} ?>>Natars</option>
</select>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<th>Location</th>
<td><input class="fm" name="location" value="<?php echo $user['location']; ?>"></td>
</tr>
<tr>
<th>E-mail</th><td><input class="fm" name="email" value="<?php echo $user['email']; ?>"></td></tr>
<tr>
<tr>
<th>Quest</th><td><input class="fm" name="quest" value="<?php echo $user['quest']; ?>"></td></tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2"><a href="?p=player&uid=<?php echo $user['id']; ?>"><span class="rn2" >&raquo;</span> Go back</a></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2" class="desc2"><textarea cols="25" rows="14" tabindex="1" name="desc1"><?php echo nl2br($user['desc1']); ?></textarea></td>
</tr>
</table>
</td>
<td class="desc1">
<textarea tabindex="8" cols="30" rows="20" name="desc2"><?php echo nl2br($user['desc2']); ?></textarea>
</td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
</tbody>
</table>
<table cellspacing="1" cellpadding="2" id="member">
<thead>
<tr>
<th colspan="4">Medals</th>
</tr>
<tr>
<td>Category</td>
<td>Rank</td>
<td>Week</td>
<td>BB-Code</td>
</tr>
</thead>
<tbody>
<?php
foreach($varmedal as $medal)
{
$titel="Bonus";
switch ($medal['categorie'])
{
case "1":
$titel="Attacker of the Week";
break;
case "2":
$titel="Defender of the Week";
break;
case "3":
$titel="Climber of the week";
break;
case "4":
$titel="Robber of the week";
break;
}
echo"
<tr>
<td> ".$titel."</td>
<td>".$medal['plaats']."</td>
<td>".$medal['week']."</td>
<td>[#".$medal['id']."]</td>
</tr>";
}
?>
<tr>
<td>Beginners Protection</td>
<td></td>
<td></td>
<td>[#0]</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</center>
</td>
</tr>
</tfoot>
</table>
</form><?php
}
else
{
echo "<br /><br />Not found. <a href=\"javascript: history.go(-1)\"> Go Back</a>";
}
?>
+205
View File
@@ -0,0 +1,205 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editVillage.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['did'];
$village = $database->getVillage($id);
$user = $database->getUserArray($village['owner'],1);
$coor = $database->getCoor($village['wref']);
$varray = $database->getProfileVillages($village['owner']);
$type = $database->getVillageType($village['wref']);
$fdata = $database->getResourceLevel($village['wref']);
if(isset($id))
{
include("search2.tpl"); ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<form action="../GameEngine/Admin/Mods/editBuildings.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="id" value="<?php echo $_GET['did']; ?>" />
<br />
<a href="#" onclick="showStuff('instructions'); return false;">Show Instructions</a>
<span id="instructions" style="display: none;">
<h4>Building ID's (Position)</h4>
<div id="content" class="village1" style="min-height: 264px;">
<div id="village_map" class="f<?php echo $database->getVillageType($village['wref']); ?>" style="float: left;">
<?php
for($f = 1; $f <19; $f++)
{
##$gid = $fdata['f'.($f).'t'];
##$level = $fdata['f'.($f)];
echo "<img src=\"../img/x.gif\" class=\"reslevel rf".$f." level".$f."\">";
}
?>
</div>
</div>
<div id="content" class="village2" style="padding: 0; margin-left: -20px;">
<div id="village_map" class="d2_0">
<?php
for($b =1; $b <21; $b++)
{
echo "<img src=\"../img/x.gif\" class=\"building d".$b." iso\">";
}
?>
<div id="levels" class="on">
<?php
for($b =1; $b <21; $b++)
{
echo "<div class=\"d$b\">".($b + 18)."</div>";
}
?>
</div>
</div>
</div>
<table id="member">
<thead>
<tr>
<th colspan="2">Buildings</th>
</tr>
<tr>
<td>GID</td>
<td>Name</td>
</tr>
</thead>
<tbody>
<?php
for($i =1; $i<=39; $i++)
{
$bu = $funct->procResType($i);
echo '
<tr>
<td class="on">'.$i.'.</td>
<td class="on">'.$bu.'</td>
</tr>';
}
?>
<tr>
<td class="on">41.</td>
<td class="on">Horse Drinking Trough</td>
</tr>
</tbody>
</table>
<a href="#" onclick="hideStuff('instructions'); return false;">Hide Instructions</a>
</span>
<br />
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="4">Modify Buildings</th>
</tr>
<tr>
<td class="on">ID</td>
<td class="on">GID</td>
<td class="hab">Name</td>
<td class="on">Level</td>
</tr>
</thead>
<tbody>
<?php
for ($i = 1; $i <= 40; $i++)
{
if($fdata['f'.$i.'t'] == 0)
{
$bu = "-";
}
else
{
$bu = $funct->procResType($fdata['f'.$i.'t']);
}
echo '
<tr>
<td class="on">'.$i.'</td>
<td class="on"><input class="fm" name="id'.$i.'gid" value="'.$fdata['f'.$i.'t'].'"></td>
<td class="hab">'.$bu.'</td>
<td class="on"><input class="fm" name="id'.$i.'level" value="'.$fdata['f'.$i].'"></td>
</tr>';
}
?>
</tbody>
</table>
<br /><br />
<center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center>
<br />
<div id="content" class="village1" style="min-height: 264px;">
<div id="village_map" class="f<?php echo $database->getVillageType($village['wref']); ?>" style="float: left;">
<?php
for($f = 1; $f <19; $f++)
{
$gid = $fdata['f'.($f).'t'];
$level = $fdata['f'.($f)];
echo "<img src=\"../img/x.gif\" class=\"reslevel rf".$f." level".$level."\">";
}
?>
</div>
</div>
</div>
<br />
<br /><br />
<div id="content" class="village2">
<h1><?php echo $village['name']; ?></h1>
<div id="village_map" class="d2_0">
<?php
for($b =1; $b <21; $b++)
{
$gid = $fdata['f'.($b + 18).'t'];
if($gid >0)
{
echo "<img src=\"../img/x.gif\" class=\"building d".$b." g".$gid."\">";
}
elseif($gid ==0)
{
echo "<img src=\"../img/x.gif\" class=\"building d".$b." iso\">";
}
}
$rp=16;
$rplevel = $fdata['f'.$rp];
if($rplevel > 0)
{
echo "<img src=\"../img/x.gif\" class=\"dx1 g16\">";
}
elseif($rplevel ==0)
{
echo "<img src=\"../img/x.gif\" class=\"dx1 g16e\">";
}
?>
<div id="levels" class="on">
<?php
for($b =1; $b <21; $b++)
{
$level = $fdata['f'.($b + 18)];
if($level >0)
{
echo "<div class=\"d$b\">$level</div>";
}
}
if($rplevel >0)
{
echo "<div class=\"l39\">".$fdata['f'.($b + 18)]."</div>";
}
?>
</div>
</div>
</div>
</form><?php
}
else
{
include("404.tpl");
}
?>
+59
View File
@@ -0,0 +1,59 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename editOverall.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
$uid = $_GET['uid'];
$user = $database->getUserArray($id,1);
if(isset($id))
{
?>
<form action="../GameEngine/Admin/Mods/editWeek.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" value="<?php echo $uid; ?>" />
<input type="hidden" name="id" value="<?php echo $id; ?>" />
<br />
<table id="profile" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th colspan="2">Edit Off, Def, Raid Points This Week For: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Edit Attack Points</td>
<td>
<input class="fm" name="off" value="<?php echo $user['ap']; ?>" style="width: 60%;"> Points
</td>
</tr>
<tr>
<td>Edit Defence Points</td>
<td>
<input class="fm" name="def" value="<?php echo $user['dp']; ?>" style="width: 60%;"> Points
</td>
</tr>
<tr>
<td>Edit Resources Raided</td>
<td>
<input class="fm" name="res" value="<?php echo $user['RR']; ?>" style="width: 60%;"> Points
</td>
</tr>
</tbody>
</table>
<br />
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
</form>
<?php
}
else
{
include("404.tpl");
}
?>
+56
View File
@@ -0,0 +1,56 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/givePlus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Give Everyone Free Plus</th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<b>How Long?</b>
</center>
</td>
<td>
<center>
<input class="fm" name="plus" value="1" maxlength="4"> Day
</center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Plus Given</font></b>';
}
?>
+95
View File
@@ -0,0 +1,95 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/givePlusRes.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Give Everyone Free Res Bonus</th>
</tr>
<tr>
<td class="hab">Resource Bonus</td>
<td>Duration</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<img src="../img/admin/r/1.gif"> Wood
</center>
</td>
<td>
<center>
<input class="fm" name="wood" value="1" maxlength="4"> Day
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="../img/admin/r/2.gif"> Clay
</center>
</td>
<td>
<center>
<input class="fm" name="clay" value="1" maxlength="4"> Day
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="../img/admin/r/1.gif"> Iron
</center>
</td>
<td>
<center>
<input class="fm" name="iron" value="1" maxlength="4"> Day
</center>
</td>
</tr>
<tr>
<td>
<center>
<img src="../img/admin/r/4.gif"> Crop
</center>
</td>
<td>
<center>
<input class="fm" name="crop" value="1" maxlength="4"> Day
</center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Resource Bonuses Given</font></b>';
}
?>
+57
View File
@@ -0,0 +1,57 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/gold.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Give Everyone Free gold</th>
</tr>
<tr>
<td>Amount</td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<b>How much gold?</b>
</center>
</td>
<td>
<center>
<input class="give_gold" name="gold" value="20" maxlength="4">&nbsp;
<img src="../img/admin/gold.gif" class="gold" alt="Gold" name="gold" title="Gold"/>
</center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Gold Added</font></b>';
}
?>
+44
View File
@@ -0,0 +1,44 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename home.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenekech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<font size="3">
<b>
<center>
WELCOME TO
<?php
if($_SESSION['access'] == MULTIHUNTER)
{
echo 'MULTIHUNTER';
}
else if($_SESSION['access'] == ADMIN)
{
echo 'ADMINISTRATOR';
} ?>
CONTROL PANEL
</center>
</b>
</font>
<br /><br /><br /><br />
Hello <b><?php echo $_SESSION['username']; ?></b>, You are logged in as: <b><font color="Red">Administrator</font></b></center>
<br /><br /><br />
<br /><br /><br /><br /><br />
<font color="#c5c5c5" size="1">
Credits: Akakori & Elmar<br />
Fixed, remade and new features added by <b>Dzoki</b><br />
Reworked by <b>aggenkeech</b>
</font>
+56
View File
@@ -0,0 +1,56 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename login.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
############ Check Update #############
copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
?>
<div align="center">
<img src="../img/admin/admin.gif" width="468" height="60" border="0">
</div>
<img src="../<?php echo GP_LOCATE; ?>lang/en/t1/login.gif">
<form method="post" action="admin.php">
<input type="hidden" name="action" value="login">
<p class="old_p1">
<table width="75%" cellspacing="1" cellpadding="0" id="profile">
<thead>
<tr>
<th colspan="2">Server Admin Login</th>
</td>
</thead>
<tbody>
<tr>
<td>Username</td>
<td>
<input class="fm fm110" type="text" name="name" value="<?php echo $_SESSION['username']?>" maxlength="20">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input class="fm fm110" type="password" name="pw" value="" maxlength="20">
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" border="0" src="../img/admin/b/l1.gif" width="80" height="20">
</center>
</td>
</tr>
</tbody>
</table>
</p>
<img align="right" src="../<?php echo GP_LOCATE; ?>img/new/background_plus.png" width="500">
</form>
+39
View File
@@ -0,0 +1,39 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename maintenence.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Server Maintenence</th>
</tr>
<tr>
<td class="on">Description</td>
<td class="hab">Execute</td>
</tr>
</thead>
<tbody>
<tr>
<td class="hab">Close Server for Maintenece, This will ban all players (Access 2) till you can fix bugs, or a crap version of a ceasefire lol</td>
<td class="hab"><center><a href="admin.php?p=maintenenceBan"><img src="http://forum.ragezone.com/f742/img/admin/b/ok1.gif"></a></center></td>
</tr>
<tr>
<td class="hab">Bring Server Back for Maintenece, This will unban all players (By Banning Reason)</td>
<td class="hab"><center><a href="admin.php?p=maintenenceUnban"><img src="http://forum.ragezone.com/f742/img/admin/b/ok1.gif"></a></center></td>
</tr>
<tr>
<form action="../GameEngine/Admin/Mods/mainteneceCleanBanData.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<td class="hab">Clean Banlist Data (TRUNCATE)</td>
<td class="hab"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</form>
</tr>
</tbody>
</table>
+42
View File
@@ -0,0 +1,42 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename maintenenceBan.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="../GameEngine/Admin/Mods/mainteneceBan.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<br />
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Close Server (Ban Everyone)</th>
</tr>
<tr>
<td class="on">Duration</td>
<td class="hab">Starting</td>
</tr>
</thead>
<tbody>
<tr>
<td class="hab"><input type="text" class="fm" name="duration" value="1"></td>
<td class="hab"><input type="text" class="fm" name="start" value="<?php echo date('d-m-Y H:i:s', strtotime("now")); ?>"></td>
</tr>
<tr>
<td>Default: 1 Hour<br />Value: Hours (0.5) for 30 mins</td>
<td>Default: Now
</tr>
<tr>
<td class="hab" colspan="2"><center><input type="text" class="fm" name="reason" value="Server Downtime"></center></td>
</tr>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
</tbody>
</table>
</form>
+32
View File
@@ -0,0 +1,32 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="../GameEngine/Admin/Mods/mainteneceResetGold.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Reset All Players Gold</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<font color="red">All Players Gold Reset</font>';
}
?>
+32
View File
@@ -0,0 +1,32 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="../GameEngine/Admin/Mods/mainteneceResetPlus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Reset All Players Resource Bonus</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<font color="red">All Players Plus Reset</font>';
}
?>
@@ -0,0 +1,32 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="../GameEngine/Admin/Mods/mainteneceResetPlusBonus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Reset All Players Plus</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<font color="red">All Players Plus Resource Bonus Reset</font>';
}
?>
+91
View File
@@ -0,0 +1,91 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename maintenenceUnban.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$bannedUsers = $admin->search_banned();
?>
<form action="../GameEngine/Admin/Mods/mainteneceUnban.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<br />
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Open Server (Unban Players by Reason)</th>
</tr>
<tr>
<td class="on">Unban "Reason"</td>
<td class="hab">Action</td>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="fm" name="unbanreason" value=""></td>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
</tbody>
</table>
</form>
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Bannned Players (<?php echo count($bannedUsers); ?>)</th>
</tr>
<tr>
<td><b>Username</b></td>
<td><b>Start Ban / End Ban</b></td>
<td><b>Reason</b></td>
<td></td>
</tr>
</thead>
<tbody>
<?php
if($bannedUsers)
{
for ($i = 0; $i <= count($bannedUsers)-1; $i++)
{
if($database->getUserField($bannedUsers[$i]['uid'],'username',0)=='')
{
$name = $bannedUsers[$i]['name'];
$link = "<span class=\"c b\">[".$name."]</span>";
}
else
{
$name = $database->getUserField($bannedUsers[$i]['uid'],'username',0);
$link = '<a href="?p=player&uid='.$bannedUsers[$i]['uid'].'">'.$name.'<a/>';
}
if($bannedUsers[$i]['end'])
{
$end = date("d.m.y H:i",$bannedUsers[$i]['end']);
}
else
{
$end = '*';
}
echo '
<tr>
<td>'.$link.'</td>
<td ><span class="f7">'.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.'</td>
<td>'.$bannedUsers[$i]['reason'].'</td>
<td class="on"><a href="?action=delBan&uid='.$bannedUsers[$i]['uid'].'&id='.$bannedUsers[$i]['id'].'" onClick="return del(\'unban\',\''.$name.'\')"><img src="http://forum.ragezone.com/f742/img/Admin/del.gif" class="del" title="cancel" alt="cancel"></img></a></td>
</tr>';
}
}
else
{
echo '<tr><td colspan="6" class="on">No Players are Banned</td></tr>';
}
?>
</tbody>
</table>
+44
View File
@@ -0,0 +1,44 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename map.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
comming soon
<div>
<img style="border: 1px solid blue;" src="img/x.gif" usemap="#mymap" alt="imagemap" border="0" height="525 width="525">
</div>
<map name="mymap">
<?php
function line($x,$W){
$a = 0;
for ($i = 0; $i <= $x; $i++) {
$X = $W.'-'.$i;
$c += 25;
$d = $W*25+25;
$b = 25*($W-1);
echo '<area shape="rect" coords="'.$a.','.$b.','.$c.','.$d.'" href="?x='.$W.'&y='.$i.'" alt="frames">';
$a += 25;
}
}
function map($x,$y){
for ($i = 0; $i <= $y; $i++) {
line($x,$i);
}
}
map(20,20);
?>
</map>
+44
View File
@@ -0,0 +1,44 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename message.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<table id="member" style="width:225px">
<thead>
<tr>
<th colspan="2">IGM/Reports</th>
</tr>
</thead>
<tr>
<td>IGM ID</td>
<td><form action="" method="get"><input type="hidden" name="p" value="message"><input type="text" class="fm" name="nid" value="<?php echo $_GET['nid'];?>"> <input type="image" value="submit" src="../img/admin/b/ok1.gif"></form></td>
</tr>
<tr>
<td>Report ID</td>
<td><form action="" method="get"><input type="hidden" name="p" value="message"><input type="text" class="fm" name="bid" value="<?php echo $_GET['bid'];?>"> <input type="image" value="submit" src="../img/admin/b/ok1.gif"></form></td>
</tr>
</table>
<br>
<?php
error_reporting(0);
if($_GET['nid'] and ereg('^[0-9]', $_GET['nid']))
{
include('msg.tpl');
}
elseif($_GET['bid'] and ereg('^[0-9]', $_GET['bid']))
{
include('report.tpl');
}
?>
+59
View File
@@ -0,0 +1,59 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename msg.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
$msg = $database->getMessage($_GET['nid'],3);;
if($msg)
{ ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css">
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
<br />
<span class="b">Send To</span>: <?php echo $database->getUserField($msg[0]['target'],'username',0);?><br />
<div id="content" class="messages">
<h1>Messages</h1>
<div id="read_head" class="msg_head"></div>
<div id="read_content" class="msg_content">
<img src="../img/x.gif" id="label" class="read" alt="">
<div id="heading">
<div><?php echo $database->getUserField($msg[0]['owner'],'username',0);?></div>
<div><?php echo $msg[0]['topic'];?></div>
</div>
<div id="time">
<div><?php echo date('d.m.y',$msg[0]['time']);?></div>
<div><?php echo date('H:i:s',$msg[0]['time']);?></div>
</div>
<div class="clear"></div>
<div class="line"></div>
<div class="message" style="min-height: 10px;">
<?php
$input = $msg[0]['message'];
$alliance = $msg[0]['alliance'];
$player = $msg[0]['player'];
$coor = $msg[0]['coor'];
$report = $msg[0]['report'];
include("../GameEngine/BBCode.php");
echo stripslashes(nl2br($bbcoded));
?>
</div>
</div>
<div id="read_foot" class="msg_foot"></div>
</div><?php
}
else
{
echo "Message ID ".$_GET['nid']." doesn't exist!";
}
?>
+57
View File
@@ -0,0 +1,57 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename natarbuildingplan.tpl ##
## Developed by: advocaite ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
?>
<?php $id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/natarbuildingplan.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<center><b>Create WW Buildingplan villages?</b></center>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Villages and press 'enter'</center>
<tr>
<td><label><input class="radio" type="radio" name="kid" value="1" checked>&nbsp;<?php echo NW; ?> <b>(-|+)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="2">&nbsp;<?php echo NE; ?> <b>(+|+)</b></label></td>
<td><label><input class="radio" type="radio" name="kid" value="3">&nbsp;<?php echo SW; ?> <b>(-|-)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="4">&nbsp;<?php echo SE; ?> <b>(+|-)</b></label></td>
</tr>
</form>
<?php
if(isset($_GET['g'])) {
echo '<br /><br /><font color="Red"><b>WW Buidingplan villages Added</font></b>';
}
?>
+57
View File
@@ -0,0 +1,57 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename natarend.tpl ##
## Developed by: advocaite ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
?>
<?php $id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/natarend.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<center><b>Create World Wonder villages?</b></center>
<center><br /><input class="give_gold" name="vill_amount" id="vill_amount" value="20" maxlength="4">&nbsp;<font color="gray" size="1">insert number of Wonders and press 'enter'</center>
<tr>
<td><label><input class="radio" type="radio" name="kid" value="1" checked>&nbsp;<?php echo NW; ?> <b>(-|+)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="2">&nbsp;<?php echo NE; ?> <b>(+|+)</b></label></td>
<td><label><input class="radio" type="radio" name="kid" value="3">&nbsp;<?php echo SW; ?> <b>(-|-)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="4">&nbsp;<?php echo SE; ?> <b>(+|-)</b></label></td>
</tr>
</form>
<?php
if(isset($_GET['g'])) {
echo '<br /><br /><font color="Red"><b>World Wonders Added</font></b>';
}
?>
+41
View File
@@ -0,0 +1,41 @@
<table cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th colspan="10">Players Not Activated</th>
</tr>
<tr>
<td class="on">#</td>
<td class="on">ID</td>
<td class="on">Username</td>
<td class="on">Email</td>
<td class="on">Tribe</td>
<td class="on">Activation Code</td>
<td class="on">Act 2??</td>
<td class="on">Time</td>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."activate";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
$i++;
if($row['tribe'] == 1) {$tribe = "Roman"; }
elseif($row['tribe'] == 2) {$tribe = "Teuton"; }
elseif($row['tribe'] == 3) {$tribe = "Gaul"; }
echo "
<tr>
<td>".$i."</td>
<td>".$row['id']."</td>
<td>".$row['username']."</td>
<td><a href=\"mailto:".$row['email']."\">".$row['email']."</a></td>
<td>".$tribe."</td>
<td>".$row['act']."</td>
<td>".$row['act2']."</td>
<td class=\"hab\">".date('d:m:Y H:i', $row['timestamp'])."</td>
</tr>";
}
?>
</tbody>
</table>
+67
View File
@@ -0,0 +1,67 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename online.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
$active = $admin->getUserActive();
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<table id="member">
<thead>
<tr>
<th colspan="6">Online users (<?php echo count($active);?>)</th>
</tr>
</thead>
<tr>
<td>Name [access]</td>
<td>Time</td>
<td>Tribe</td>
<td>Pop</td>
<td>Villages</td>
<td>Gold</td>
</tr>
<?php
if($active){
for ($i = 0; $i <= count($active)-1; $i++) {
$uid = $database->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";
} else if($active[$i]['tribe'] == 2){
$tribe = "Teuton";
} else if($active[$i]['tribe'] == 3){
$tribe = "Gaul";
}
echo '
<tr>
<td><a href="?p=player&uid='.$uid.'">'.$active[$i]['username'].' ['.$active[$i]['access'].']</a></td>
<td>'.date("d.m.y H:i:s",$active[$i]['timestamp']).'</td>
<td>'.$tribe.'</td>
<td>'.$totalpop.'</td>
<td>'.count($varray).'</td>
<td><img src="../img/admin/gold.gif" class="gold" alt="Gold" title="This user has: '.$active[$i]['gold'].' gold"/> '.$active[$i]['gold'].'</td>
</tr>
';
}
}else{
echo '<tr><td colspan="6" class="hab">No online users</td></tr>';
}
?>
</table>
+98
View File
@@ -0,0 +1,98 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename player.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$id = $_GET['uid'];
if(isset($id))
{
include("../GameEngine/Ranking.php");
$varmedal = $database->getProfileMedal($id);
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$refreshicon = "<img src=\"data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEQSURBVChTY/gPBkevHfRrtjMsU9bJ05+5eylE
kAGI117fKFsqYzhTNeSQY8xhP8vJJmVrK3eeP8Bw58kt03rTkHnRxdvrnKd4m83SCTtsaLZI1K7H
mGH2xpnHLh+GGPL7/7/S1dVKU2Usd6roTZBh+Pj3M0QCCL78+Fw6v1ooR1myWU2zzpjBb2Ko8xwf
91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd
9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3
Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg==\">";
if($user)
{
$totalpop = 0;
foreach($varray as $vil)
{
$totalpop += $vil['pop'];
}
include('search2.tpl');
echo "<br />";
$deletion = false;
if($deletion)
{
include("playerdeletion.tpl");
}
include("playerinfo.tpl");
include("playeradditionalinfo.tpl");
echo "<br />";
include("playermedals.tpl");
include ("villages.tpl"); ?>
<div style="float: left;">
<?php
include ('punish.tpl');
?>
</div>
<div style="float: right;">
<?php
include ('add_village.tpl');
?>
</div>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."banlist WHERE uid = ".$id."";
$numbans = mysql_num_rows(mysql_query($sql));
?>
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Ban History (<?php echo $numbans; ?>)</th>
</tr>
<tr>
<td class="hab"><b>Start</b></td>
<td class="hab"><b>End</b></td>
<td class="hab"><b>Duration</b></td>
<td class="on"><b>Reason</b></td>
</tr>
</thead>
<tbody>
<?php
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
echo '
<tr>
<td class="hab">'.date('d:m:Y H:i', $row['time']).'</td>
<td class="hab">'.date('d:m:Y H:i', $row['end']).'</td>
<td class="hab">'.round((($row['end'] - $row['time']) / 3600), 2).' minutes</td>
<td class="on">'.$row['reason'].'</td>
</tr>';
}
?>
</tbody>
</table>
<?php
}
else
{
include("404.tpl");
}
}
?>
+241
View File
@@ -0,0 +1,241 @@
<table id="member">
<thead>
<tr>
<th colspan="2">Additional Information</th>
</tr>
</thead>
<tbody>
<tr>
<td>Access</td>
<td>
<?php
if($user['access'] == 0)
{
echo "Banned";
}
else if($user['access'] == 2)
{
echo "Normal user";
}
else if($user['access'] == 8)
{
echo "<b>Multihunter</b>";
}
else if($user['access'] == 9)
{
echo "<b>Administrator</b>";
}
?> <a href="admin.php?p=editAccess&uid=<?php echo $_GET['uid']; ?>"><img src="../img/admin/edit.gif" title="Give Gold"></a>
</td>
</tr>
<tr>
<td>Gold</td>
<td><img src="../img/admin/gold.gif"> <?php echo $user['gold']; ?> <a href='admin.php?p=player&uid=<?php echo $id; ?>&g'><img src="../img/admin/edit.gif" title="Give Gold"></a>
</tr>
<?php
if($_SESSION['access'] == ADMIN)
{
if($_GET['g'] == 'ok')
{
echo '';
}
else
{
if(isset($_GET['g']))
{ ?>
<form action="../GameEngine/Admin/Mods/gold_1.php" method="POST">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<tr>
<td>Give how much Gold?</td>
<td>
<input class="give_gold" name="gold" value="0">
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
</tr>
</form><?php
}
}
}
?>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Sitter 1</td>
<td><a href="?p=editSitter&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Sitters"></a>
<?php
if($user['sit1'] >= 1)
{
echo '<a href="admin.php?p=player&uid='.$user['sit1'].'">'.$database->getUserField($user['sit1'],"username",0).'</a>';
}
else if($user['sit1'] == 0)
{
echo 'No Sitter';
}
?>
</td>
</tr>
<tr>
<td>Sitter 2</td>
<td><a href="?p=editSitter&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Sitters"></a>
<?php
if($user['sit2'] >= 1)
{
echo '<a href="admin.php?p=player&uid='.$user['sit2'].'">'.$database->getUserField($user['sit2'],"username",0).'</a>';
}
else if($user['sit2'] == 0)
{
echo 'No Sitter';
}
?>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Beginners Protection</td>
<td>
<?php
$datetime = $user['protect'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Protection</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Protection</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['protect']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*if(date('d.m.Y H:i',$user['protect']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
$ends = date('d.m.Y H:i',$user['protect']+3600*2);
$now = date('d.m.Y H:i');
if($now>$ends)
{
echo "<font color=\"blue\">$ends</font>";
}
else
{
echo "<font color=\"red\">NO!</font>";
}
} */
?>
<a href="admin.php?p=editProtection&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Give Player Protection"></a></td>
</tr>
<tr>
<td>Culture Points</td>
<td><a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><img src="../img/admin/edit.gif" title="Edit Culture Points"></a>
<?php
echo round($user['cp'], 0);
if($_SESSION['access'] == ADMIN)
{ ?>
<a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><?php
}
?>
</td>
</tr>
<?php
if($_SESSION['access'] == ADMIN)
{
if($_GET['cp'] == 'ok')
{
echo '';
}
else
{
if(isset($_GET['cp']))
{ ?>
<form action="../GameEngine/Admin/Mods/cp.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="id" value="<?php echo $id; ?>">
<tr>
<td>Add how many CP?</td>
<td>
<input class="give_gold" name="cp" value="0">
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a>
</td>
</tr>
</form><?php
}
}
}
?>
<tr>
<td>Last Activity</td>
<td>
<?php
echo ''.date('d.m.Y H:i',$user['timestamp']+3600*2).'';
?>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Attack Points ("This "Week")</td>
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
<?php
echo $user['ap'];
?>
</td>
</tr>
<tr>
<td>Defence Points ("This Week")</td>
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
<?php
echo $user['dp'];
?>
</td>
</tr>
<tr>
<td>Resources Raided ("This Week")</td>
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
<?php
echo $user['RR'];
?>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>Total Attack Points</td>
<td><a href="admin.php?p=editOverall&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Overall Points"></a>
<?php
echo $user['apall'];
?>
</td>
</tr>
<tr>
<td>Total Defence Points</td>
<td><a href="admin.php?p=editOverall&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Overall Points"></a>
<?php
echo $user['dpall'];
?>
</td>
</tr>
</tbody>
</table>
+8
View File
@@ -0,0 +1,8 @@
<table id="member" cellpadding="1" cellspacing="1">
<tr>
<td>
The account will be deleted in <span class="c2">79:56:11</span>
<a href="?action=StopDel&uid=<?php echo $user['id'];?>" onClick="return del('stopDel','<?php echo $user['username'];?>');"><img src="img/x.gif" class="del"></a>
</td>
</tr>
</table>
+262
View File
@@ -0,0 +1,262 @@
<table id="profile" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="2">Player <a href="admin.php?p=player&uid=<?php echo $user['id'];?>"><?php echo $user['username'];?></a></th>
</tr>
<tr>
<td>Details</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td class="empty"></td><td class="empty"></td>
</tr>
<tr>
<td class="details">
<table cellpadding="0" cellspacing="0">
<tr>
<th>Rank</th>
<td>????<?php /* echo $ranking->searchRank($user['id'], "rank");*/ ?></td>
</tr>
<tr>
<th>Tribe</th>
<td>
<?php
if($user['tribe'] == 1)
{
echo "Roman";
}
else if($user['tribe'] == 2)
{
echo "Teutons";
}
else if($user['tribe'] == 3)
{
echo "Gauls";
}
else if($user['tribe'] == 4)
{
echo "Natars";
}
else if($user['tribe'] == 5)
{
echo "Nature";
}
?>
</td>
</tr>
<tr>
<th>Alliance</th>
<td>
<?php
if($user['alliance'] == 0)
{
echo "-";
}
else
{
echo "<a href=\"?p=alliance&aid=".$user['alliance']."\">".$database->getAllianceName($user['alliance'])."</a>";
}
?>
</td>
</tr>
<tr>
<th>Villages</th>
<td><?php echo count($varray);?></td>
</tr>
<tr>
<th>Population</th>
<td><?php echo $totalpop;?> <a href="?action=recountPopUsr&uid=<?php echo $user['id'];?>"><?php echo $refreshicon; ?></a></td>
</tr>
<tr>
<th>Age</td>
<td>
<?php
if(isset($user['birthday']) && $user['birthday'] != 0)
{
$age = date("Y")-substr($user['birthday'],0,4);
echo $age;
}
else
{
echo "<font color=\"red\">Not Available</font>";
}
?>
</td>
</tr>
<tr>
<th>Gender</td>
<td>
<?php
if(isset($user['gender']) && $user['gender'] != 0)
{
$gender = ($user['gender']== 1)? "Male" : "Female";
echo $gender;
}
else
{
echo "<font color=\"red\">Not Available</font>";
}
?>
</td>
</tr>
<tr>
<th>Username</th>
<td>
<form action="../GameEngine/Admin/Mods/editUsername.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="uid" id="uid" value="<?php echo $_GET['uid']; ?>">
<input type="text" style="width: 80%;" class="fm" name="username" value="<?php echo $user['username']; ?>"> <input type="image" value="submit" src="../img/admin/edit.gif" title="Edit Username"></a>
</td>
</tr>
<tr>
<th>Location</th>
<td>
<input type="text" style="width: 80%;" disabled="disabled" class="fm" name="location" value="<?php echo $user['location']; ?>"> <a href="admin.php?p=editUser&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Location"></a>
</td>
</tr>
<tr>
<th>Password</th>
<td>
Change <a href="admin.php?p=editPassword&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Change Password"></a>
</td>
</tr>
<tr>
<?php include("playerplusbonus.tpl"); ?>
<tr>
<th>Email</th>
<td>
<input disabled="disabled" style="width: 80%;" class="fm" name="email" value="<?php echo $user['email']; ?>"> <a href="admin.php?p=editUser&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Email"></a>
</td>
</tr>
<?php /*
<tr>
<th>Send</th>
<td>
<?php
$link = "<a href=\"mailto:".$user['email']."\">".$user['email']."</a>";
echo $link;
?>
</td>
</tr> */ ?>
<tr>
<th>Quest</td>
<td>
<?php
## not sure if this is correct
$quest = $user['quest'];
if($quest == 1) { $questname = "Woodcutter"; }
elseif($quest ==2) {$questname = "Crop"; }
elseif($quest ==3) {$questname = "Your Villages Name"; }
elseif($quest ==4) {$questname = "Other Players"; }
elseif($quest ==5) {$questname = "Two Building Order"; }
elseif($quest ==6) {$questname = "Messages"; }
elseif($quest ==7) {$questname = "Huge Army!"; }
elseif($quest ==8) {$questname = "Everything to 1!"; }
elseif($quest ==9) {$questname = "Dove of Peace"; }
elseif($quest ==10) {$questname = "Cranny"; }
elseif($quest ==11) {$questname = "To Two!"; }
elseif($quest ==12) {$questname = "Instruction"; }
elseif($quest ==13) {$questname = "Main Building"; }
elseif($quest ==14) {$questname = "Advanced!" ;}
elseif($quest ==15) {$questname = "Weapons or Dough"; }
elseif($quest ==16) {$questname = "Military: Rally Point"; }
elseif($quest ==17) {$questname = "Military: Barracks"; }
elseif($quest ==18) {$questname = "Military: Train 2 Troops"; }
elseif($quest ==19) {$questname = "Economy: Granary"; }
elseif($quest ==20) {$questname = "Economy: Warehouse"; }
elseif($quest ==21) {$questname = "Economy: Marketplace"; }
elseif($quest ==22) {$questname = "Everything to 2!"; }
else { $questname = "Unknown"; }
$quesst = $quest;
if($quest > 18){
$quesst = $quest - 3;
}
$questinfo = "$quesst - $questname";
?>
<input disabled="disabled" style="width: 80%;" class="fm" name="quest" value="<?php echo $questinfo; ?>"> <a href="admin.php?p=editUser&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Quest"></a></td>
</tr>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<?php
if($_SESSION['access'] == ADMIN)
{
echo '
<tr>
<td colspan="2">
<a href="?p=editUser&uid='.$user['id'].'"><font color="blue">&raquo;</font> Edit User</a>
</td>
</tr>';
}
else if($_SESSION['access'] == MULTIHUNTER)
{
echo '';
}
if($_SESSION['access'] == ADMIN)
{
echo '
<tr>
<td colspan="2">
<a class="rn3" href="?p=deletion&uid='.$user['id'].'"><font color="red">&raquo;</font> Delete User</a>
</td>
</tr>';
}
else if($_SESSION['access'] == MULTIHUNTER)
{
echo '';
}
?>
<tr>
<td colspan="2"><a href="?p=ban&uid=<?php echo $user['id']; ?>">&raquo; Ban User</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=Newmessage&uid=<?php echo $user['id']; ?>">&raquo; Send Message</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editPlus&uid=<?php echo $user['id']; ?>">&raquo; Edit Plus & Bonus</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editSitter&uid=<?php echo $user['id']; ?>">&raquo; Edit Sitters</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editWeek&uid=<?php echo $user['id']; ?>">&raquo; Edit Overall Off & Def</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editOverall&uid=<?php echo $user['id']; ?>">&raquo; Edit Weekly Off, Def, Raid</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=userlogin&uid=<?php echo $user['id']; ?>">&raquo; User Login Log</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=userillegallog&uid=<?php echo $user['id']; ?>">&raquo; User Illegal Log</a></td>
</tr>
<tr>
<td colspan="2" class="desc2">
<div class="desc2div">
<center><?php echo nl2br($user['desc1']); ?></center>
</div>
</td>
</tr>
</table>
<td class="desc1">
<center><?php echo nl2br($user['desc2']); ?></center>
</td>
</tr>
</tbody>
</table>
+91
View File
@@ -0,0 +1,91 @@
<form action="../GameEngine/Admin/Mods/medals.php" method="POST">
<input type="hidden" name="uid" value="<?php echo $_GET['uid']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="profile">
<thead>
<tr>
<th colspan="6">Player Medals (<?php echo sizeof($varmedal); ?>)</th>
</tr>
<tr>
<td>Category</td>
<td>Rank</td>
<td>Week</td>
<td>Points</td>
<td>Medal</td>
<td></td>
</tr>
</thead>
<?php
if(sizeof($varmedal) ==0)
{ ?>
<td colspan="5"><center>This player has no medals yet</center></td><?php
}
elseif(sizeof($varmedal) >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 = "<p>Bonus</p>"; } else { $rank = $rank; }
$week = $medal['week'];
$points = $medal['points'];
if($points == '') { $points = "<p>Bonus</p>"; } else { $points = $points; }
echo"
<tr>
<td>$title</td>
<td>$rank</td>
<td>$week</td>
<td>$points</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/t/".$medal['img'].".jpg\"></td>
<td>
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\">
</td>
</tr>";
}
$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 "</form><tr><td><b>Average Rank</b></td><td>$average</td><td></td><td></td><td>Delete All</td>";
}
?>
<td>
<form action="../GameEngine/Admin/Mods/deletemedalbyuser.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="image" name="userid" value="<?php echo $id; ?>" style="background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;" src="../<?php echo GP_LOCATE; ?>img/a/x.gif">
</form>
</td>
</tbody>
</table>
+187
View File
@@ -0,0 +1,187 @@
<th><b><font color='#71D000'>P</font><font color='#FF6F0F'>l</font><font color='#71D000'>u</font><font color='#FF6F0F'>s</font></b></th>
<td>
<?php
$datetime = $user['plus'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['plus']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*if(date('d.m.Y H:i',$user['plus']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
echo "".date('d.m.Y H:i',$user['plus']+3600*2)."</tr></th>";
} */
?>
<a href="admin.php?p=editPlus&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Plus and Bonus"></a></td>
</tr>
<tr>
<th><img src="../img/admin/r/1.gif"> Bonus</th>
<td>
<?php
$datetime = $user['b1'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b1']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*if(date('d.m.Y H:i',$user['b1']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
echo "".date('d.m.Y H:i',$user['b1']+3600*2)."</tr></th>";
} */
?>
<a href="admin.php?p=editPlus&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Plus and Bonus"></a></td>
</tr>
<tr>
<th><img src="../img/admin/r/2.gif"> Bonus</th>
<td>
<?php
$datetime = $user['b2'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b2']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*
if(date('d.m.Y H:i',$user['b2']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
echo "".date('d.m.Y H:i',$user['b2']+3600*2)."</tr></th>";
} */
?>
<a href="admin.php?p=editPlus&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Plus and Bonus"></a></td>
</tr>
<tr>
<th><img src="../img/admin/r/3.gif"> Bonus</th>
<td>
<?php
$datetime = $user['b3'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b3']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*
if(date('d.m.Y H:i',$user['b3']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
echo "".date('d.m.Y H:i',$user['b3']+3600*2)."</tr></th>";
} */
?>
<a href="admin.php?p=editPlus&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Plus and Bonus"></a></td>
</tr>
<tr>
<th><img src="../img/admin/r/4.gif"> Bonus</th>
<td>
<?php
$datetime = $user['b4'];
$now = time();
if($datetime ==0)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
if($datetime <= $now)
{
echo '<img src="../img/admin/del.gif">';
echo "<font color=\"red\"> No Bonus</font>";
}
else
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b4']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
/*
if(date('d.m.Y H:i',$user['b4']) == '01.01.1970 00:00')
{
echo "Not enabled!</tr></th>";
}
else
{
echo "".date('d.m.Y H:i',$user['b4']+3600*2)."</tr></th>";
} */
?>
<a href="admin.php?p=editPlus&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Plus and Bonus"></a></td>
</tr>
+92
View File
@@ -0,0 +1,92 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename punish.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$active = $admin->getUserActive();
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<form method="post" action="admin.php">
<input name="action" type="hidden" value="punish">
<input name="uid" type="hidden" value="<?php echo $user['id'];?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width: 200px;">
<thead>
<tr>
<th colspan="2">Punish Player</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<select name="punish">
<option name="punish" value="10" selected="selected">10%</option>
<option name="punish" value="20">20%</option>
<option name="punish" value="30">30%</option>
<option name="punish" value="40">40%</option>
<option name="punish" value="50">50%</option>
<option name="punish" value="60">60%</option>
<option name="punish" value="70">70%</option>
<option name="punish" value="80">80%</option>
<option name="punish" value="90">90%</option>
<option name="punish" value="100">100%</option>
</select>
</center>
</td>
</tr>
<tr>
<td>
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</form>
</center>
</td>
</tr>
<tr>
<form method="post" action="admin.php">
<input name="action" type="hidden" value="punish">
<input name="uid" type="hidden" value="<?php echo $user['id'];?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<td colspan="1" style="text-align: center;">
<input type="checkbox" name="del_troop" value="1"> <strike>Delete Troops</strike>
</td>
</tr>
<tr>
<td>
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</form>
</center>
</td>
</tr>
<tr>
<form method="post" action="admin.php">
<input name="action" type="hidden" value="punish">
<input name="uid" type="hidden" value="<?php echo $user['id'];?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<td colspan="1" style="text-align: center;">
<input type="checkbox" name="clean_ware" value="1"> Empty Warehouses
</td>
</tr>
<tr>
<td>
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</center>
</td>
</tr>
</tbody>
</table>
</form>
+38
View File
@@ -0,0 +1,38 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename renameVillage.tpl ##
## Developed by: Dzoki & Advocatie ##
## License: TravianX Project ##
## Thanks to: Dzoki & itay2277(Edit troops) ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
#################################################################################
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']);
?>
<table id="member">
<thead>
<tr>
<th colspan="2">Edit Village Name</th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo $village['name']; ?></td>
</td>
</tbody>
</table>
+31
View File
@@ -0,0 +1,31 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename msg.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
$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);
?>
<h1>Under Construction</h1>
<div id="content" class="reports" style="padding: 0;">
<?php
include("report/".$rep['ntype'].".tpl");
?>
</div>
<?php
}
else
{
echo "Report ID ".$_GET['bid']." doesn't exist!";
}
?>
+374
View File
@@ -0,0 +1,374 @@
<?php
$dataarray = explode(",",$rep['data']);
error_reporting(0);
?>
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
<tr>
<th style="color: black;">Subject:</th>
<th style="color: black;"><?php echo $rep['topic']; ?></th>
</tr>
<tr>
<?php
$date = date('d:h:Y H:m:s', $rep['time']);
?>
<td class="sent">Sent:</td>
<td>on <?php echo $date; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2" class="report_content">
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
<tr>
<td class="role">Attacker</td>
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="admin.php?p=village&did=<?php echo $dataarray[1]; ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
$start = $dataarray[2] == 1? 1 : (($dataarray[2] == 2)? 11 : (($dataarray[2] == 3)? 21 : 31));
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=3;$i<=12;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=13;$i<=22;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!='')
{ //ram ?>
<tbody class="goods">
<tr>
<th style="color: black;">Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[139]; ?>" src="../img/x.gif" alt="Ram" title="Ram" />
<?php
echo $dataarray[140];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[141]!='' and $dataarray[142]!='')
{ //cata ?>
<tbody class="goods">
<tr>
<th style="color: black;">Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[141]; ?>" src="../img/x.gif" alt="Catapult" title="Catapult" />
<?php
echo $dataarray[142];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[143]!='' and $dataarray[144]!='')
{ //chief ?>
<tbody class="goods">
<tr>
<th style="color: black;">Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[143]; ?>" src="../img/x.gif" alt="Chief" title="Chief" />
<?php
echo $dataarray[144];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[145]!='' and $dataarray[146]!='')
{ //spy ?>
<tbody class="goods">
<tr>
<th style="color: black;">Information</th>
<td colspan="10">
<?php
echo $dataarray[146];
?>
</td>
</tr>
</tbody><?php
} ?>
<tbody class="goods">
<tr>
<th style="color: black;">Bounty</th>
<td colspan="10">
<div class="res">
<img class="r1" src="../img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="../img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="../img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="../img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="../img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?>
</div>
</td>
</tr>
</tbody>
</table>
<?php
$targettribe=$dataarray['31'];
if ($dataarray[34]=='1')
{
$start=1; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=35;$i<=44;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=45;$i<=54;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[55]=='1')
{
$start=11;?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=56;$i<=65;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=66;$i<=75;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[76]=='1')
{
$start=21; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=77;$i<=86;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=87;$i<=96;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[97]=='1')
{
$start=31; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=98;$i<=107;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=108;$i<=117;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[118]=='1')
{
$start=41; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"../img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th style=\"color: black;\">Troops</th>";
for($i=119;$i<=128;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr><tr><th style=\"color: black;\">Casualties</th>";
for($i=129;$i<=138;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table>
<?php
}
?>
</td>
</tr>
</tbody>
</table>
+286
View File
@@ -0,0 +1,286 @@
<?php
$dataarray = explode(",",$rep['data']);
?>
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $rep['topic']; ?></th>
</tr>
<tr>
<?php
$date = date('d:m:Y H:i:s', $rep['time']);
?>
<td class="sent">Sent:</td>
<td>on <?php echo $date ?></span></td>
</tr>
</thead>
<tbody>
<tr><td colspan="2" class="empty"></td></tr>
<tr><td colspan="2" class="report_content">
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
<tr>
<td class="role">Attacker</td>
<td colspan="10"><a href="admin.php?p=player&uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&amp;c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
$start = $dataarray[2] == 1? 1 : (($dataarray[2] == 2)? 11 : (($dataarray[2] == 3)? 21 : 31));
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=3;$i<=12;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=13;$i<=22;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
<tbody class="goods"><tr><th>Information</th><td colspan="10">
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
<?php echo $dataarray[140]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
?>
<tbody class="goods"><tr><th>Information</th><td colspan="10">
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
<?php echo $dataarray[142]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
?>
<tbody class="goods"><tr><th>Information</th><td colspan="10">
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="10">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="10">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
</td></tr></tbody></table>
<?php
$targettribe=$dataarray['31'];
if ($dataarray[34]=='1'){
$start=1; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr></thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=35;$i<=44;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=45;$i<=54;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr></tbody></table>
<?php }
if ($dataarray[55]=='1'){
$start=11;?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr></thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=56;$i<=65;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=66;$i<=75;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr></tbody></table>
<?php } ?>
<?php if ($dataarray[76]=='1'){
$start=21; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr></thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=77;$i<=86;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=87;$i<=96;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr></tbody></table>
<?php } ?>
<?php if ($dataarray[97]=='1'){
$start=31; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr></thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=98;$i<=107;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=108;$i<=117;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr></tbody></table>
<?php } ?>
<?php if ($dataarray[118]=='1'){
$start=41; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr></thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=119;$i<=128;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=129;$i<=138;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr></tbody></table>
<?php } ?>
</td></tr></tbody></table>
+373
View File
@@ -0,0 +1,373 @@
<?php
$dataarray = explode(",",$rep['data']);
?>
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
<tr>
<th>Subject:</th>
<th><?php echo $rep['topic']; ?></th>
</tr>
<tr>
<?php
$date = date('d:m:y H:i:s', $rep['time']);
?>
<td class="sent">Sent:</td>
<td>on <?php echo $date; ?></td>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<td colspan="2" class="report_content">
<table cellpadding="1" cellspacing="1" id="attacker">
<thead>
<tr>
<td class="role">Attacker</td>
<td colspan="10"><a href="admin.php?p=player&uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="admin.php?p=village&did=<?php echo $dataarray[1] ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
$start = $dataarray[2] == 1? 1 : (($dataarray[2] == 2)? 11 : (($dataarray[2] == 3)? 21 : 31));
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=3;$i<=12;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=13;$i<=22;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!='')
{ //ram ?>
<tbody class="goods">
<tr>
<th>Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
<?php
echo $dataarray[140];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[141]!='' and $dataarray[142]!='')
{ //cata ?>
<tbody class="goods">
<tr>
<th>Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
<?php
echo $dataarray[142];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[143]!='' and $dataarray[144]!='')
{ //chief ?>
<tbody class="goods">
<tr>
<th>Information</th>
<td colspan="10">
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php
echo $dataarray[144];
?>
</td>
</tr>
</tbody><?php
}
if ($dataarray[145]!='' and $dataarray[146]!='')
{ //spy ?>
<tbody class="goods">
<tr>
<th>Information</th>
<td colspan="10">
<?php
echo $dataarray[146];
?>
</td>
</tr>
</tbody><?php
}
?>
<tbody class="goods">
<tr>
<th>Bounty</th>
<td colspan="10">
<div class="res">
<img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?>
</div>
</td>
</tr>
</tbody>
</table>
<?php
$targettribe=$dataarray['31'];
if ($dataarray[34]=='1')
{
$start=1; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='1'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village$did='.$dataarray[29].'"'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=35;$i<=44;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=45;$i<=54;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[55]=='1')
{
$start=11; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='2'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village?did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=56;$i<=65;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=66;$i<=75;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[76]=='1')
{
$start=21; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='3'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=village&did='.$dataarray[29].'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=77;$i<=86;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=87;$i<=96;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[97]=='1')
{
$start=31; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="admin.php?p=player&uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="admin.php?p=player&did='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=98;$i<=107;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=108;$i<=117;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
if ($dataarray[118]=='1')
{
$start=41; ?>
<table cellpadding="1" cellspacing="1" class="defender">
<thead>
<tr>
<td class="role">Defender</th>
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&amp;c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
</tr>
</thead>
<tbody class="units">
<tr>
<td>&nbsp;</td>
<?php
for($i=$start;$i<=($start+9);$i++)
{
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=119;$i<=128;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
echo "<tr><th>Casualties</th>";
for($i=129;$i<=138;$i++)
{
if($dataarray[$i] == 0)
{
echo "<td class=\"none\">0</td>";
}
else
{
echo "<td>".$dataarray[$i]."</td>";
}
}
?>
</tr>
</tbody>
</table><?php
}
?>
</td>
</tr>
</tbody>
</table>
+40
View File
@@ -0,0 +1,40 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/mainteneceResetPlus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Reset Everyone's Plus</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Plus For Everyone Reset</font></b>';
}
?>
+40
View File
@@ -0,0 +1,40 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/mainteneceResetPlusBonus.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Reset Everyone's Resource Bonuses</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Plus Resource Bonuses For Everyone Reset</font></b>';
}
?>
+51
View File
@@ -0,0 +1,51 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename results_alliances.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
$result = $admin->search_alliance($_POST['s']);
?>
<table id="member">
<thead>
<tr>
<th class="dtbl"><a href="">1 «</a></th><th>Found alliances (<?php echo count($result);?>)</th><th class="dtbl"><a href="">» 100</a></th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">AID</td>
<td class="b">Name</td>
<td class="b">Tag</td>
<td class="b">Founder</td>
</tr>
<?php
if($result){
for ($i = 0; $i <= count($result)-1; $i++) {
echo '
<tr>
<td>'.$result[$i]["id"].'</td>
<td><a href="?p=alliance&aid='.$result[$i]["id"].'">'.$result[$i]["name"].'</a></td>
<td><a href="?p=alliance&aid='.$result[$i]["id"].'">'.$result[$i]["tag"].'</a></td>
<td><a href="?p=player&uid='.$result[$i]["id"].'">'.$database->getUserField($result[$i]["leader"],'username',0).'</a></td>
</tr>
';
}}
else{
echo '
<tr>
<td colspan="4">No results</td>
</tr>
';
}
?>
</table>
+49
View File
@@ -0,0 +1,49 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename resutls_email.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
$result = $admin->search_email($_POST['s']);
?>
<table id="member">
<thead>
<tr>
<th class="dtbl"><a href="">1 «</a></th><th>Found emails (<?php echo count($result);?>)</th><th class="dtbl"><a href="">» 100</a></th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">UID</td>
<td class="b">Name</td>
<td class="b">Email</td>
</tr>
<?php
if($result){
for ($i = 0; $i <= count($result)-1; $i++) {
echo '
<tr>
<td>'.$result[$i]["id"].'</td>
<td><a href="?p=player&uid='.$result[$i]["id"].'">'.$database->getUserField($result[$i]["id"],'username',0).'</a></td>
<td>'.$result[$i]["email"].'</td>
</tr>
';
}}
else{
echo '
<tr>
<td colspan="4">No results</td>
</tr>
';
}
?>
</table>
+63
View File
@@ -0,0 +1,63 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename results_ip.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
$result = $admin->search_ip($_POST['s']);
$newArray = array();
function arr($arr,$el){
global $newArray;
for ($i = 0; $i <= count($arr)-1; $i++) {
if(in_array($el,$newArray)){
return false;
}else{
array_push($newArray,$el);
return true;
}
}
}
?>
<table id="member">
<thead>
<tr>
<th class="dtbl"><a href="">1 «</a></th><th>Found IPs (<?php echo count($newArray);?>)</th><th class="dtbl"><a href="">» 100</a></th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">IP</td>
<td class="b">Name</td>
</tr>
<?php
if($result){
for ($i = 0; $i <= count($result)-1; $i++) {
if(arr($result,$result[$i]["ip"].$result[$i]["uid"])){
echo '
<tr>
<td>'.$result[$i]["ip"].'</td>
<td><a href="?p=player&uid='.$result[$i]["uid"].'">'.$database->getUserField($result[$i]["uid"],'username',0).'</a></td>
</tr>
';
}
}
}
else{
echo '
<tr>
<td colspan="4">No results</td>
</tr>
';
}
?>
</table>
+56
View File
@@ -0,0 +1,56 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename results_player.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
$result = $admin->search_player($_POST['s']);
?>
<table id="member">
<thead>
<tr>
<th class="dtbl"><a href="">1 «</a></th><th>Found player (<?php echo count($result);?>)</th><th class="dtbl"><a href="">» 100</a></th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">UID</td>
<td class="b">Player</td>
<td class="b">Villages</td>
<td class="b">Pop</td>
</tr>
<?php
if($result){
for ($i = 0; $i <= count($result)-1; $i++) {
$varray = $database->getProfileVillages($result[$i]["id"]);
$totalpop = 0;
foreach($varray as $vil) {
$totalpop += $vil['pop'];
}
echo '
<tr>
<td>'.$result[$i]["id"].'</td>
<td><a href="?p=player&uid='.$result[$i]["id"].'">'.$result[$i]["username"].'</a></td>
<td>'.count($varray).'</td>
<td>'.$totalpop.'</td>
</tr>
';
}}
else{
echo '
<tr>
<td colspan="4">No results</td>
</tr>
';
}
?>
</table>
+91
View File
@@ -0,0 +1,91 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename results_villages.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
$result = $admin->search_village($_POST['s']);
?>
<table id="member">
<thead>
<tr>
<th colspan="5">
Found villages (<?php echo count($result);?>)
</th>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td><a href="">1 «</a></td>
<td colspan="2"></td>
<td colspan="2"><a href="">» 100</a></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
</thead>
<thead>
<tr>
<td style="background-color: #F3F3F3;">ID</th>
<td style="background-color: #F3F3F3;">Village Name</th>
<td style="background-color: #F3F3F3;">Village Owner</th>
<td style="background-color: #F3F3F3;">Population</th>
<td style="background-color: #F3F3F3;"></th>
</tr>
</thead>
<tbody>
<?php
if($result)
{
for ($i = 0; $i <= count($result)-1; $i++)
{
$delLink = '<a href="?action=delVil&did='.$result[$i]['wref'].'" onClick="return del(\'did\','.$result[$i]['wref'].');"><img src="../img/Admin/del.gif" class="del"></a>';
echo '
<tr>
<td>'.$result[$i]["wref"].'</td>
<td><a href="?p=village&did='.$result[$i]["wref"].'">'.$result[$i]["name"].'</a></td>
<td><a href="?p=player&uid='.$result[$i]["owner"].'">'.$database->getUserField($result[$i]["owner"],'username',0).'</a></td>
<td>'.$result[$i]["pop"].'</td>
<td>'.$delLink.'</td>
</tr>';
}
echo '
<tr>
<td colspan="5"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
<center>
<font color="red">'.count($result).'</font> Villages Found "<font color="red">'.$_POST['s'].'</font>"
</center>
</td>
</tr>';
}
else
{
echo '
<tr>
<td></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
<center>
<font color="#9F9F90">No Villages Called</font> <font color="red">'.$_POST['s'].'</font>
</center>
</td>
</tr>';
}
?>
</tfoot>
</table>
+53
View File
@@ -0,0 +1,53 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename search.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
?>
<form action="" method="post">
<br />
<table id="member">
<thead>
<tr>
<th colspan="3">Search v1.0</th>
</tr>
</thead>
<tr class="slr3">
<td>
<select name="p" size="1" class="slr3">
<option value="player" <?php if($_POST['p']=='player'){echo "selected";}?>>Search Players</option>
<option value="alliances" <?php if($_POST['p']=='alliances'){echo "selected";}?>>Search Alliances</option>
<option value="villages" <?php if($_POST['p']=='villages'){echo "selected";}?>>Search Villages</option>
<option value="email" <?php if($_POST['p']=='email'){echo "selected";}?>>Search E-mails</option>
<option value="ip" <?php if($_POST['p']=='ip'){echo "selected";}?>>Search IPs</option>
<option value="deleted_players" <?php if($_POST['p']=='deleted_players'){echo "selected";}?>>Search Deleted Players</option>
</select>
</td>
<td>
<input name="s" value="<?php echo stripslashes(stripslashes($_POST['s']));?>">
</td>
<td>
<input type="submit" value="Search" class="slr3">
</td>
</tr>
</table>
</form>
<?php
if($_GET['msg'])
{
echo '<div style="margin-top: 50px;" class="b"><center>';
if($_GET['msg'] == 'ursdel')
{
echo "User was deleted.";
}
echo '</center></div>';
}
?>
+66
View File
@@ -0,0 +1,66 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename search2.tpl ##
## Developed by: Dzoki ##
## Reworked: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($user['tribe'] == 1)
{
$tribename = "Roman";
}
else if($user['tribe'] == 2)
{
$tribename = "Teutons";
}
else if($user['tribe'] == 3)
{
$tribename = "Gauls";
}
else if($user['tribe'] == 4)
{
$tribename = "Nature";
}
else if($user['tribe'] == 5)
{
$tribename ="Natars";
}
$searchresults = $admin->search_player($user['username']);
$numsimplayers = count($searchresults);
$id = $user['id'];
$varray = $database->getProfileVillages($id);
$totalpop = 0;
foreach($varray as $vil)
{
$totalpop += $vil['pop'];
}
?>
<form action="" method="post">
<table id="member">
<thead>
<tr>
<th colspan="3">Search <font color="red">("<?php echo $user['username']; ?>" = <?php echo $numsimplayers; ?> Similar)</font></th>
</tr>
</thead>
</table>
<center>
<div id="s_nav2" >
<div align="left" style="font-size: 10pt;"><b>Player:</b> <a href="?p=player&uid=<?php echo $user['id'];?>"><?php echo $user['username'];?></a> (uid: <?php echo $user['id'];?>)</div>
<div align="left" style="font-size: 9pt;"><b>Tribe:</b> <?php echo $tribename; ?> | <b>Villages:</b> <?php echo count($varray);?> | <b>Inhabitants:</b> <?php echo $totalpop; ?></div>
</div>
<?php
if($_GET['did'])
{ ?>
<div id="s_nav4">
<div align="left" style="font-size: 10pt;"><b>Village:</b> <a href="?p=village&did=<?php echo $village['wref'];?>"><?php echo $village['name'];?></a> (did: <?php echo $village['wref'];?>)</div>
<div align="left" style="font-size: 9pt;"><b>Coordinates:</b> (<?php echo $coor['x'];?>|<?php echo $coor['y'];?>) | <b>Inhabitants</b>: <?php echo $village['pop'];?>
</div><?php
} ?>
</center>
</form>
+182
View File
@@ -0,0 +1,182 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename server_info.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Enhanced: aggenkeech ##
#################################################################################
$tribe1 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 1");
$tribe2 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 2");
$tribe3 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 3");
$tribes = Array(mysql_num_rows($tribe1),mysql_num_rows($tribe2),mysql_num_rows($tribe3));
$users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users")) - 1;
?>
<br /><br />
<table id="profile">
<thead>
<tr>
<th colspan="2">Player Information</th>
</tr>
</thead>
<tbody>
<tr>
<td>Registered players</td>
<td><?php echo $users; ?></td>
</tr>
<tr>
<td>Active players</td>
<td><?php $result = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."active"); $num_rows = mysql_num_rows($result); echo $num_rows; ?></td>
</tr>
<tr>
<td>Players online</td>
<td><?php $t =time();
$result = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE ".$t." - timestamp < 300") or die(mysql_error());;
$num_rows = mysql_num_rows($result);
echo $num_rows;?>
</td>
</tr>
<tr>
<td>Players Banned</td>
<td><?php
$result = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE access = 0");
$num_rows = mysql_num_rows($result);
echo $num_rows;?>
</td>
</tr>
<tr>
<td>Villages settled</td>
<td><?php
$result = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."vdata");
$num_rows = mysql_num_rows($result);
echo $num_rows; ?>
</td>
</tr>
</tbody>
</table>
<br />
<table id="profile">
<thead>
<tr><th colspan="3">Player Information</th></tr>
<td class="b">Tribe</td>
<td class="b">Registered</td>
<td class="b">Percent</td>
</thead>
<tbody>
<tr>
<td>Romans</td>
<td><?php echo $tribes[0]; ?></td>
<td><?php $percents = 100*($tribes[0] / $users); echo $percents = intval ($percents); echo "%"; ?></td>
</tr>
<tr>
<td>Teutons</td>
<td><?php echo $tribes[1]; ?></td>
<td><?php $percents = 100*($tribes[1] / $users); echo $percents = intval ($percents); echo "%";?></td>
</tr>
<tr>
<td>Gauls</td>
<td><?php echo $tribes[2]; ?></td>
<td><?php $percents = 100*($tribes[2] / $users); echo $percents = intval ($percents); echo "%"; ?></td>
</tr>
</tbody>
</table>
<br />
<table id="profile">
<thead>
<tr>
<th colspan="3">Server Information</th>
</tr>
<td class="b"></td>
<td class="b">Total</td>
<td class="b">Average</td>
</thead>
<tbody>
<tr>
<td><img src="../<?php echo GP_LOCATE; ?>img/a/gold.gif" alt="Gold" title="Gold"> Gold</td>
<td><?php $gold = mysql_query("SELECT SUM(gold) AS sumofgold FROM ".TB_PREFIX."users"); $getgold=mysql_fetch_assoc($gold); echo $getgold['sumofgold']; ?></td>
<td><?php $gold = mysql_query("SELECT SUM(gold) AS sumofgold FROM ".TB_PREFIX."users"); $getgold=mysql_fetch_assoc($gold); echo round($getgold['sumofgold'] / $users);?></td>
</tr>
</tbody>
</table>
</div>
<table id="member">
<thead>
<tr>
<th colspan="10">Troops on the Server</th>
</tr>
<?php
for($i=1; $i<11; $i++)
{
echo '<td class="on"><img src="../'.GP_LOCATE.'img/u/'.$i.'.gif"></td>';
}
echo '</thead><tbody>';
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 '<td class="on">'.$troop['sumof'].'</td>';
}
echo "</tr>";
for($i=11; $i<21; $i++)
{
echo '<td class="on"><img src="../'.GP_LOCATE.'img/u/'.$i.'.gif"></td>';
}
echo '</thead><tbody>';
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 '<td class="on">'.$troop['sumof'].'</td>';
}
echo "</tr>";
for($i=21; $i<31; $i++)
{
echo '<td class="on"><img src="../'.GP_LOCATE.'img/u/'.$i.'.gif"></td>';
}
echo '</thead><tbody>';
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 '<td class="on">'.$troop['sumof'].'</td>';
}
echo "</tr>";
for($i=31; $i<41; $i++)
{
echo '<td class="on"><img src="../'.GP_LOCATE.'img/u/'.$i.'.gif"></td>';
}
echo '</thead><tbody>';
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 '<td class="on">'.$troop['sumof'].'</td>';
}
echo "</tr>";
for($i=41; $i<51; $i++)
{
echo '<td class="on"><img src="../'.GP_LOCATE.'img/u/'.$i.'.gif"></td>';
}
echo '</thead><tbody>';
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 '<td class="on">'.$troop['sumof'].'</td>';
}
?>
</tbody>
</table>
<div>
+45
View File
@@ -0,0 +1,45 @@
<table id="member">
<thead>
<tr>
<th colspan="16">Troop Upgrades</th>
</tr>
<tr>
<td colspan="8">Armoury</td>
<td colspan="8">Blacksmith</td>
</tr>
</thead>
<tbody>
<tr>
<?php
$tribe = $user['tribe'];
if($tribe ==1){ $img = ""; }
if($tribe ==2){ $img = "1";}
if($tribe ==3){ $img = "2";}
for($i=1; $i<9; $i++)
{
echo '<td><center><img src="../img/un/u/'.$img.''.$i.'.gif"></center></td>';
}
for($i=1; $i<9; $i++)
{
echo '<td><center><img src="../img/un/u/'.$img.''.$i.'.gif"></center></td>';
}
?>
</tr>
</tbody>
<tfoot>
<tr>
<?php
##A
for($i=1; $i<9; $i++)
{
echo '<td><center>'.$aupgrades['$i.'].'</center></td>';
} ##B
for($i=1; $i<9; $i++)
{
echo '<td><center>'.$bupgrades['$i'].'</center></td>';
}
?>
</tr>
</tfoot>
</table>
<a href="#">Edit Troop Upgrades</a>
+276
View File
@@ -0,0 +1,276 @@
<table id="member">
<thead>
<tr>
<th colspan="10">Troops in village</th>
<?php
## Roman
if($units['u1'] == 0){$u1 = '<font color="gray">'.$units['u1'].'';}
else if($units['u1'] > 0){$u1 = '<font color="black">'.$units['u1'].'';}
if($units['u2'] == 0){$u2 = '<font color="gray">'.$units['u2'].'';}
else if($units['u2'] > 0){$u2 = '<font color="black">'.$units['u2'].'';}
if($units['u3'] == 0){$u3 = '<font color="gray">'.$units['u3'].'';}
else if($units['u3'] > 0){$u3 = '<font color="black">'.$units['u3'].'';}
if($units['u4'] == 0){$u4 = '<font color="gray">'.$units['u4'].'';}
else if($units['u4'] > 0){$u4 = '<font color="black">'.$units['u4'].'';}
if($units['u5'] == 0){$u5 = '<font color="gray">'.$units['u5'].'';}
else if($units['u5'] > 0){$u5 = '<font color="black">'.$units['u5'].'';}
if($units['u6'] == 0){$u6 = '<font color="gray">'.$units['u6'].'';}
else if($units['u6'] > 0){$u6 = '<font color="black">'.$units['u6'].'';}
if($units['u7'] == 0){$u7 = '<font color="gray">'.$units['u7'].'';}
else if($units['u7'] > 0){$u7 = '<font color="black">'.$units['u7'].'';}
if($units['u8'] == 0){$u8 = '<font color="gray">'.$units['u8'].'';}
else if($units['u8'] > 0){$u8 = '<font color="black">'.$units['u8'].'';}
if($units['u9'] == 0){$u9 = '<font color="gray">'.$units['u9'].'';}
else if($units['u9'] > 0){$u9 = '<font color="black">'.$units['u9'].'';}
if($units['u10'] == 0){$u10 = '<font color="gray">'.$units['u10'].'';}
else if($units['u10'] > 0){$u10 = '<font color="black">'.$units['u10'].'';}
## Teuton
if($units['u11'] == 0){$u11 = '<font color="gray">'.$units['u11'].'';}
else if($units['u11'] > 0){$u11 = '<font color="black">'.$units['u11'].'';}
if($units['u12'] == 0){$u12 = '<font color="gray">'.$units['u12'].'';}
else if($units['u12'] > 0){$u12 = '<font color="black">'.$units['u12'].'';}
if($units['u13'] == 0){$u13 = '<font color="gray">'.$units['u13'].'';}
else if($units['u13'] > 0){$u13 = '<font color="black">'.$units['u13'].'';}
if($units['u14'] == 0){$u14 = '<font color="gray">'.$units['u14'].'';}
else if($units['u14'] > 0){$u14 = '<font color="black">'.$units['u14'].'';}
if($units['u15'] == 0){$u15 = '<font color="gray">'.$units['u15'].'';}
else if($units['u15'] > 0){$u15 = '<font color="black">'.$units['u15'].'';}
if($units['u16'] == 0){$u16 = '<font color="gray">'.$units['u16'].'';}
else if($units['u16'] > 0){$u16 = '<font color="black">'.$units['u16'].'';}
if($units['u17'] == 0){$u17 = '<font color="gray">'.$units['u17'].'';}
else if($units['u17'] > 0){$u17 = '<font color="black">'.$units['u17'].'';}
if($units['u18'] == 0){$u18 = '<font color="gray">'.$units['u18'].'';}
else if($units['u18'] > 0){$u18 = '<font color="black">'.$units['u18'].'';}
if($units['u19'] == 0){$u19 = '<font color="gray">'.$units['u19'].'';}
else if($units['u19'] > 0){$u19 = '<font color="black">'.$units['u19'].'';}
if($units['u20'] == 0){$u20 = '<font color="gray">'.$units['u20'].'';}
else if($units['u20'] > 0){$u20 = '<font color="black">'.$units['u20'].'';}
## Gaul
if($units['u21'] == 0){$u21 = '<font color="gray">'.$units['u21'].'';}
else if($units['u21'] > 0){$u21 = '<font color="black">'.$units['u21'].'';}
if($units['u22'] == 0){$u22 = '<font color="gray">'.$units['u22'].'';}
else if($units['u22'] > 0){$u22 = '<font color="black">'.$units['u22'].'';}
if($units['u23'] == 0){$u23 = '<font color="gray">'.$units['u23'].'';}
else if($units['u23'] > 0){$u23 = '<font color="black">'.$units['u23'].'';}
if($units['u24'] == 0){$u24 = '<font color="gray">'.$units['u24'].'';}
else if($units['u24'] > 0){$u24 = '<font color="black">'.$units['u24'].'';}
if($units['u25'] == 0){$u25 = '<font color="gray">'.$units['u25'].'';}
else if($units['u25'] > 0){$u25 = '<font color="black">'.$units['u25'].'';}
if($units['u26'] == 0){$u26 = '<font color="gray">'.$units['u26'].'';}
else if($units['u26'] > 0){$u26 = '<font color="black">'.$units['u26'].'';}
if($units['u27'] == 0){$u27 = '<font color="gray">'.$units['u27'].'';}
else if($units['u27'] > 0){$u27 = '<font color="black">'.$units['u27'].'';}
if($units['u28'] == 0){$u28 = '<font color="gray">'.$units['u28'].'';}
else if($units['u28'] > 0){$u28 = '<font color="black">'.$units['u28'].'';}
if($units['u29'] == 0){$u29 = '<font color="gray">'.$units['u29'].'';}
else if($units['u29'] > 0){$u29 = '<font color="black">'.$units['u29'].'';}
if($units['u30'] == 0){$u30 = '<font color="gray">'.$units['u30'].'';}
else if($units['u30'] > 0){$u30 = '<font color="black">'.$units['u30'].'';}
## Nature
if($units['u31'] == 0){$u31 = '<font color="gray">'.$units['u31'].'';}
else if($units['u31'] > 0){$u31 = '<font color="black">'.$units['u31'].'';}
if($units['u32'] == 0){$u32 = '<font color="gray">'.$units['u32'].'';}
else if($units['u32'] > 0){$u32 = '<font color="black">'.$units['u32'].'';}
if($units['u33'] == 0){$u33 = '<font color="gray">'.$units['u33'].'';}
else if($units['u33'] > 0){$u33 = '<font color="black">'.$units['u33'].'';}
if($units['u34'] == 0){$u34 = '<font color="gray">'.$units['u34'].'';}
else if($units['u34'] > 0){$u34 = '<font color="black">'.$units['u34'].'';}
if($units['u35'] == 0){$u35 = '<font color="gray">'.$units['u35'].'';}
else if($units['u35'] > 0){$u35 = '<font color="black">'.$units['u35'].'';}
if($units['u36'] == 0){$u36 = '<font color="gray">'.$units['u36'].'';}
else if($units['u36'] > 0){$u36 = '<font color="black">'.$units['u36'].'';}
if($units['u37'] == 0){$u37 = '<font color="gray">'.$units['u37'].'';}
else if($units['u37'] > 0){$u37 = '<font color="black">'.$units['u37'].'';}
if($units['u38'] == 0){$u38 = '<font color="gray">'.$units['u38'].'';}
else if($units['u38'] > 0){$u38 = '<font color="black">'.$units['u38'].'';}
if($units['u39'] == 0){$u39 = '<font color="gray">'.$units['u39'].'';}
else if($units['u39'] > 0){$u39 = '<font color="black">'.$units['u39'].'';}
## Natars
if($units['u40'] == 0){$u40 = '<font color="gray">'.$units['u40'].'';}
else if($units['u40'] > 0){$u40 = '<font color="black">'.$units['u40'].'';}
if($units['u41'] == 0){$u41 = '<font color="gray">'.$units['u41'].'';}
else if($units['u41'] > 0){$u41 = '<font color="black">'.$units['u41'].'';}
if($units['u42'] == 0){$u42 = '<font color="gray">'.$units['u42'].'';}
else if($units['u42'] > 0){$u42 = '<font color="black">'.$units['u42'].'';}
if($units['u43'] == 0){$u43 = '<font color="gray">'.$units['u43'].'';}
else if($units['u43'] > 0){$u43 = '<font color="black">'.$units['u43'].'';}
if($units['u44'] == 0){$u44 = '<font color="gray">'.$units['u44'].'';}
else if($units['u44'] > 0){$u44 = '<font color="black">'.$units['u44'].'';}
if($units['u45'] == 0){$u45 = '<font color="gray">'.$units['u45'].'';}
else if($units['u45'] > 0){$u45 = '<font color="black">'.$units['u45'].'';}
if($units['u46'] == 0){$u46 = '<font color="gray">'.$units['u46'].'';}
else if($units['u46'] > 0){$u46 = '<font color="black">'.$units['u46'].'';}
if($units['u47'] == 0){$u47 = '<font color="gray">'.$units['u47'].'';}
else if($units['u47'] > 0){$u47 = '<font color="black">'.$units['u47'].'';}
if($units['u48'] == 0){$u48 = '<font color="gray">'.$units['u48'].'';}
else if($units['u48'] > 0){$u48 = '<font color="black">'.$units['u48'].'';}
if($units['u49'] == 0){$u49 = '<font color="gray">'.$units['u49'].'';}
else if($units['u49'] > 0){$u49 = '<font color="black">'.$units['u49'].'';}
if($units['u50'] == 0){$u50 = '<font color="gray">'.$units['u50'].'';}
else if($units['u50'] > 0){$u50 = '<font color="black">'.$units['u50'].'';}
if($_SESSION['access'] == ADMIN)
{
if($user['tribe'] == 1)
{
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../img/un/u/1.gif"></img></td>
<td><center /><img src="../img/un/u/2.gif"></img></td>
<td><center /><img src="../img/un/u/3.gif"></img></td>
<td><center /><img src="../img/un/u/4.gif"></img></td>
<td><center /><img src="../img/un/u/5.gif"></img></td>
<td><center /><img src="../img/un/u/6.gif"></img></td>
<td><center /><img src="../img/un/u/7.gif"></img></td>
<td><center /><img src="../img/un/u/8.gif"></img></td>
<td><center /><img src="../img/un/u/9.gif"></img></td>
<td><center /><img src="../img/un/u/10.gif"></img></td>
</tr>
<tr>
<td><center />'.$u1.'</td>
<td><center />'.$u2.'</td>
<td><center />'.$u3.'</td>
<td><center />'.$u4.'</td>
<td><center />'.$u5.'</td>
<td><center />'.$u6.'</td>
<td><center />'.$u7.'</td>
<td><center />'.$u8.'</td>
<td><center />'.$u9.'</td>
<td><center />'.$u10.'</td>
</tr>';
}
// TEUTON UNITS
else if($user['tribe'] == 2)
{
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../img/un/u/11.gif"></img></td>
<td><center /><img src="../img/un/u/12.gif"></img></td>
<td><center /><img src="../img/un/u/13.gif"></img></td>
<td><center /><img src="../img/un/u/14.gif"></img></td>
<td><center /><img src="../img/un/u/15.gif"></img></td>
<td><center /><img src="../img/un/u/16.gif"></img></td>
<td><center /><img src="../img/un/u/17.gif"></img></td>
<td><center /><img src="../img/un/u/18.gif"></img></td>
<td><center /><img src="../img/un/u/19.gif"></img></td>
<td><center /><img src="../img/un/u/20.gif"></img></td>
</tr>
<tr>
<td><center />'.$u11.'</td>
<td><center />'.$u12.'</td>
<td><center />'.$u13.'</td>
<td><center />'.$u14.'</td>
<td><center />'.$u15.'</td>
<td><center />'.$u16.'</td>
<td><center />'.$u17.'</td>
<td><center />'.$u18.'</td>
<td><center />'.$u19.'</td>
<td><center />'.$u20.'</td>
</tr>';
}
// GAUL UNITS
else if($user['tribe'] == 3)
{
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../img/un/u/21.gif"></img></td>
<td><center /><img src="../img/un/u/22.gif"></img></td>
<td><center /><img src="../img/un/u/23.gif"></img></td>
<td><center /><img src="../img/un/u/24.gif"></img></td>
<td><center /><img src="../img/un/u/25.gif"></img></td>
<td><center /><img src="../img/un/u/26.gif"></img></td>
<td><center /><img src="../img/un/u/27.gif"></img></td>
<td><center /><img src="../img/un/u/28.gif"></img></td>
<td><center /><img src="../img/un/u/29.gif"></img></td>
<td><center /><img src="../img/un/u/30.gif"></img></td>
</tr>
<tr>
<td><center />'.$u21.'</td>
<td><center />'.$u22.'</td>
<td><center />'.$u23.'</td>
<td><center />'.$u24.'</td>
<td><center />'.$u25.'</td>
<td><center />'.$u26.'</td>
<td><center />'.$u27.'</td>
<td><center />'.$u28.'</td>
<td><center />'.$u29.'</td>
<td><center />'.$u30.'</td>
</tr>';
}
// Nature UNITS
else if($user['tribe'] == 4)
{
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/39.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/40.gif"></img></td>
</tr>
<tr>
<td><center />'.$u31.'</td>
<td><center />'.$u32.'</td>
<td><center />'.$u33.'</td>
<td><center />'.$u34.'</td>
<td><center />'.$u35.'</td>
<td><center />'.$u36.'</td>
<td><center />'.$u37.'</td>
<td><center />'.$u38.'</td>
<td><center />'.$u39.'</td>
<td><center />'.$u40.'</td>
</tr>';
}
// Natar Units
else if($user['tribe'] == 5)
{
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/49.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/50.gif"></img></td>
</tr>
<tr>
<td><center />'.$u41.'</td>
<td><center />'.$u42.'</td>
<td><center />'.$u43.'</td>
<td><center />'.$u44.'</td>
<td><center />'.$u45.'</td>
<td><center />'.$u46.'</td>
<td><center />'.$u47.'</td>
<td><center />'.$u48.'</td>
<td><center />'.$u49.'</td>
<td><center />'.$u50.'</td>
</tr>';
}
}
?>
</tbody>
</table>
<?php
if($_SESSION['access'] == ADMIN)
{
echo '<a href="admin.php?p=addTroops&did='.$_GET['did'].'">Edit Troops</a>';
}
?>
+76
View File
@@ -0,0 +1,76 @@
<?php
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
include('ver.tpl');
if(isset($_GET['c']))
{
copy("http://travian.gamingcrazy.net/Update/update_latest.tpl", "Templates/update_latest.tpl");
}
include('update_latest.tpl');
if(isset($_GET['u']))
{
for ($dl=$ver+1; $dl<=$latest; $dl++)
{
$file = "http://travian.gamingcrazy.net/Update/$dl.zip";
$newfile = "update.zip";
if (!copy($file, $newfile))
{
echo "Update Files of Version $dl were not found.<br />";
}
else
{
$zip = new ZipArchive;
if ($zip->open('update.zip') === TRUE)
{
$zip->extractTo('../');
$zip->close();
unlink('update.zip');
echo "Successfully Updated to Version $dl.<br />";;
}
else
{
echo 'Failed to update to Version $dl.<br />';
}
}
}
}
?>
<table id="member" cellpadding="1" cellspacing="1" >
<thead>
<tr>
<th colspan="3">System Updates</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hab" colspan="2">Current Version :</td>
<td class="hab" colspan="1"><font color="red"><?php include('ver.tpl'); echo "$ver"; ?></font></td>
</tr>
<tr>
<td class="hab" colspan="2">Latest Version :</td>
<td class="hab" colspan="1"><font color="red"><?php echo "$latest"; ?></font></td>
</tr>
<tr>
<td class="hab" colspan="2">Check for Update</td>
<td class="hab" colspan="1"><center><a href="?p=update&c"><img src="../img/admin/b/ok1.gif"></a></center></td>
</tr>
<tr>
<td class="hab" colspan="2">Update</td>
<td class="hab" colspan="1"><?php
if($latest > $ver)
{
echo'<center><a href="?p=update&u"><img src="../img/admin/b/update.png"></a></center>';
}
else
{
echo "No updates Avaiable";
}
?></td>
</tr>
<tr>
<td class="hab" colspan="2">Visit Forum</td>
<td class="hab" colspan="1"><center><a href="http://mmorpgd.tk/"><img src="../img/admin/b/ok1.gif"></a></center></td>
</tr>
</tbody>
</table><br /><br />
<p><font color="red">Guys don`t forget to register at the forum to receive information of the updates</font></p><br><br />
<p><font color="red">Advertise your Server here <a href="http://mmorpgd.tk/forum-10.html">http://mmorpgd.tk/forum-10.html</a></font></p>
+3
View File
@@ -0,0 +1,3 @@
<?php
$latest="15";
?>
+69
View File
@@ -0,0 +1,69 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename gold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
$id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/gold_1.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member" style="width:300px;">
<thead>
<tr>
<th colspan="2">Give Free gold for specific user</th>
</tr>
<tr>
<td>Amount</td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td>
<center>
<b>How much gold?</b>
</center>
</td>
<td>
<center>
<input class="give_gold" name="gold" value="20" maxlength="4">&nbsp;
<img src="../img/admin/gold.gif" class="gold" alt="Gold" name="gold" title="Gold"/>
</center>
</td>
</tr>
<tr>
<td>
<center>
<b>For which user (id)?</b>
</center>
</td>
<td>
<center>
<input class="give_gold" name="id" value="">&nbsp;
</center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
</center>
</td>
</tr>
</tbody>
</table>
</form>
<?php
if(isset($_GET['g']))
{
echo '<br /><br /><font color="Red"><b>Gold Added</font></b>';
}
?>
+40
View File
@@ -0,0 +1,40 @@
<?php
$id = $_GET['uid'];
if(isset($id))
{
$player = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = $id"));
?>
<table cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th colspan="10"><a href="admin.php?p=player&uid=<?php echo $player['id']; ?>"><?php echo $player['username']; ?></a>'s Illegals Log</th>
</tr>
<tr>
<td>Offence</td>
<td>ID</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."illegal_log WHERE user = $id";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
$i++;
echo '
<tr>
<td>'.$i.'</td>
<td>'.$row['id'].'</td>
<td>'.$row['log'].'</td>
</tr>';
}
?>
</tbody>
</table><?php
}
else
{
include("404.tpl");
}
?>
+40
View File
@@ -0,0 +1,40 @@
<?php
$id = $_GET['uid'];
if(isset($id))
{
$player = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = $id"));
?>
<table cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th colspan="10"><a href="admin.php?p=player&uid=<?php echo $player['id']; ?>"><?php echo $player['username']; ?></a> Login Log</th>
</tr>
<tr>
<td>Login Attempt</td>
<td>ID</td>
<td>IP</td>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."login_log WHERE uid = $id";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
$i++;
echo '
<tr>
<td>'.$i.'</td>
<td>'.$row['id'].'</td>
<td>'.$row['ip'].'</td>
</tr>';
}
?>
</tbody>
</table><?php
}
else
{
include("404.tpl");
}
?>
+3
View File
@@ -0,0 +1,3 @@
<?php
$ver="16";
?>

Some files were not shown because too many files have changed in this diff Show More