fix ban system 100% + replace the previous fix with better one + new admin panel by ZravianX version

This commit is contained in:
unknown
2012-04-02 01:39:38 +03:00
parent d0f05e0e9a
commit 786e240c90
107 changed files with 2883 additions and 1583 deletions
-142
View File
@@ -1,142 +0,0 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename admin.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
session_start();
include("../GameEngine/Database.php");
include("../GameEngine/Admin/database.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<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>
<body>
<script language="javascript">
function aktiv() {this.srcElement.className='fl1'; }
function inaktiv() {event.srcElement.className='fl2'; }
function del(e,id){
if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
if(conf){return true;}else{return false;}
}
</script>
<div id="ltop1">
<div style="position:relative; width:231px; height:100px; float:left;">
<img src="http://forum.ragezone.com/f583/img/x.gif" width="1" height="1">
</div>
<img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x1.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x2.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x3.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x4.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x5.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></div>
<div id="lmidall">
<div id="lmidlc">
<div id="lleft">
<a href="<?php echo HOMEPAGE; ?>"><img src="http://forum.ragezone.com/f583/img/en/a/travian0.gif" class="logo_plus" width="116" height="60" border="0"></a>
<table id="navi_table" cellspacing="0" cellpadding="0">
<tr>
<td class="menu">
<?php
if($funct->CheckLogin()){?>
<?php if($_SESSION['access'] == ADMIN){ ?>
<a href="admin.php">ACP Home</a>
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
<a href="#"></a><a href="#"></a>
<a href="?p=server_info">Server Info</a>
<a href="?p=online">Online users</a>
<a href="?p=search">Search</a>
<a href="?p=message">Msg/Rep</a>
<a href="?p=ban">Ban</a>
<a href="?p=gold">Give Gold</a>
<a href="?p=natarstart">Add Natar Villages</a>
<a href="?p=natarend">Add World Wonder Villages</a>
<a href="?p=admin_log"><font color="Red"><b>Admin Log</font></b></a>
<a href="?p=config">Config</a>
<a href="#"></a><a href="#"></a><a href="#"></a>
<a href="?action=logout">Logout</a>
<?php } else if($_SESSION['access'] == MULTIHUNTER){ ?>
<a href="admin.php">MCP Home</a>
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
<a href="#"></a><a href="#"></a>
<a href="?p=server_info">Server Info</a>
<a href="?p=online">Online users</a>
<a href="?p=search">Search</a>
<a href="?p=message">Msg/Rep</a>
<a href="?p=ban">Ban</a>
<a href="#"></a><a href="#"></a><a href="#"></a>
<a href="?action=logout">Logout</a>
<?php } }?>
</td>
</tr>
</table></div>
<div id="lmid1">
<div id="lmid3">
<?php
if($funct->CheckLogin()){
if($_POST or $_GET){
if($_GET['p'] and $_GET['p']!="search"){
$filename = '../Templates/Admin/'.$_GET['p'].'.tpl';
if(file_exists($filename)){
include($filename);
}else{
include('../Templates/Admin/404.tpl');
}
}else{
include('../Templates/Admin/search.tpl');
}
if($_POST['p'] and $_POST['s']){
$filename = '../Templates/Admin/results_'.$_POST['p'].'.tpl';
if(file_exists($filename)){
include($filename);
}else{
include('../Templates/Admin/404.tpl');
}
}
}else{
include('../Templates/Admin/home.tpl');
}
}else{
include('../Templates/Admin/login.tpl');
}
?>
</div>
</div>
</div>
<div id="lright1"></div>
<div id="ce"></div>
</body>
</html>
-70
View File
@@ -1,70 +0,0 @@
var http_request = false;
function macheRequest(url, id)
{
http_request = false;
if (window.XMLHttpRequest)
{ // Mozilla, Safari,...
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType)
{
http_request.overrideMimeType('text/xml');
// zu dieser Zeile siehe weiter unten
}
}
else if (window.ActiveXObject)
{ // IE
try
{
http_request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
}
}
}
if (!http_request)
{
alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
return false;
}
http_request.onreadystatechange = function()
{
alertInhalt2(id);
};
http_request.open('GET', url, true);
http_request.send(null);
}
function alertInhalt2(id)
{
if (http_request.readyState == 4)
{
if (http_request.status == 200)
{
// alert(http_request.responseText);
myElement = document.getElementById(id);
if (myElement != null)
{
myElement.innerHTML = http_request.responseText;
}
}
else
{
alert('Bei dem Request ist ein Problem aufgetreten.');
}
}
}
+14 -7
View File
@@ -1,13 +1,20 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename addTroops.php ##
## Developed by: Dzoki & Advocatie ##
## License: TravianX Project ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: GameEngine/Admin/Mods/addTroops.php ##
## Developed by: Dzoki & Advocaite ##
## Thanks to: Dzoki & itay2277 (edit troops) ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
@@ -101,6 +108,6 @@ 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");
header("Location: ../../../admin.php?p=addTroops&did=".$id."&d");
?>
+16 -8
View File
@@ -1,25 +1,33 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: GameEngine/Admin/Mods/cp.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
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!");
if ($session->access < ADMIN) die("Access Denied: You aren't 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().")");
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Culture 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");
header("Location: ../../../admin.php?p=player&uid=".$id."&cp=ok");
?>
+15 -8
View File
@@ -1,24 +1,31 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename editUser.php ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: GameEngine/Admin/Mods/editUser.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
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!");
if ($_SESSION['access'] < ADMIN) die("Access Denied: You aren't 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."");
header("Location: ../../../admin.php?p=player&uid=".$id."");
?>
+18 -14
View File
@@ -1,26 +1,30 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename gold.php ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: GameEngine/Admin/Mods/gold.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
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!");
if ($session->access < ADMIN) die("Access Denied: You aren't 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");
$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.php?p=give&g=$gold");
?>
+14 -6
View File
@@ -1,14 +1,22 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename gold_1.php ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: GameEngine/Admin/Mods/gold_1.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
include_once("../../Account.php");
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
mysql_select_db(SQL_DB);
@@ -21,5 +29,5 @@ mysql_query("UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHER
$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");
header("Location: ../../../admin.php?p=player&uid=".$id."&g=ok");
?>
+29
View File
@@ -0,0 +1,29 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: GameEngine/Admin/Mods/silver.php ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
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 aren't Admin!");
$id = $_POST['id'];
$silver = $_POST['silver'];
$q = "UPDATE ".TB_PREFIX."users SET silver = silver + ".$_POST['silver']." WHERE id != '0'";
mysql_query($q);
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added <b>$silver</b> silver to all users',".time().")");
header("Location: ../../../admin.php?p=give&s=$silver");
?>
+32
View File
@@ -0,0 +1,32 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: GameEngine/Admin/Mods/silver_1.php ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
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 silver = silver + ".$_POST['silver']." WHERE id = ".$id."");
$name = $database->getUserField($id,"username",0);
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added <b>".$_POST['silver']."</b> silver to user <a href=\'admin.php?p=player&uid=$id\'>$name</a> ',".time().")");
header("Location: ../../../admin.php?p=player&uid=".$id."&s=ok");
?>
+15 -7
View File
@@ -1,16 +1,24 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename database.php ##
## ##
## Project: ZravianX ##
## Version: 2011.11.07 ##
## Filename: GameEngine/Admin/database.php ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
include("../GameEngine/config.php");
include("../GameEngine/Data/buidata.php");
include("GameEngine/config.php");
include("GameEngine/Data/buidata.php");
class adm_DB {
var $connection;
@@ -21,7 +29,7 @@ class adm_DB {
mysql_select_db(SQL_DB, $this->connection) or die(mysql_error());
}
function Login($username,$password) {
function Login($username,$password){
$q = "SELECT password FROM ".TB_PREFIX."users where username = '$username' and access >= ".MULTIHUNTER;
$result = mysql_query($q, $this->connection);
$dbarray = mysql_fetch_array($result);
+1 -1
View File
@@ -12,7 +12,7 @@
class funct {
function CheckLogin(){
if($_SESSION['access'] >= MULTIHUNTER && isset($_SESSION['id'])){
if($_SESSION['access'] >= MULTIHUNTER and $_SESSION['id']){
return true;
}else{
return false;
+1
View File
@@ -2,6 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Edited by: ZZJHONS ##
## Filename Database.php ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
+36 -2
View File
@@ -33,29 +33,51 @@
}
public function procMessage($post) {
global $session;
if(isset($post['ft'])) {
switch($post['ft']) {
case "m1":
if($session->access!=BANNED){
$this->quoteMessage($post['id']);
}else{
header("Location: banned.php");
}
break;
case "m2":
if($session->access!=BANNED or $post['an']==strtolower("multihunter")){
if ($post['an'] == "[ally]"){
$this->sendAMessage($post['an'],$post['be'],$post['message']);
}else{
$this->sendMessage($post['an'],$post['be'],$post['message']);
}header("Location: nachrichten.php?t=2");
}
header("Location: nachrichten.php?t=2");
}else{
header("Location: banned.php");
}
break;
case "m3":
case "m4":
case "m5":
if(isset($post['delmsg_x'])) {
if($session->access!=BANNED){
$this->removeMessage($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['archive_x'])) {
if($session->access!=BANNED){
$this->archiveMessage($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['start_x'])) {
if($session->access!=BANNED){
$this->unarchiveMessage($post);
}else{
header("Location: banned.php");
}
}
break;
case "m6":
@@ -63,7 +85,7 @@
break;
}
}
}
}
public function noticeType($get) {
global $session, $database;
@@ -94,13 +116,25 @@
public function procNotice($post) {
if(isset($post["del_x"])) {
if($session->access != BANNED){
$this->removeNotice($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['archive_x'])) {
if($session->access != BANNED){
$this->archiveNotice($post);
}else{
header("Location: banned.php");
}
}
if(isset($post['start_x'])) {
if($session->access != BANNED){
$this->unarchiveNotice($post);
}else{
header("Location: banned.php");
}
}
}
+64 -2
View File
@@ -13,43 +13,70 @@
class Profile {
public function procProfile($post) {
global $session;
if(isset($post['ft'])) {
switch($post['ft']) {
case "p1":
if($session->access!=BANNED){
$this->updateProfile($post);
}else{
header("Location: banned.php");
}
break;
case "p3":
if($session->access!=BANNED){
$this->updateAccount($post);
}else{
header("Location: banned.php");
}
break;
}
}
if(isset($post['s'])) {
switch($post['s']) {
case "4":
if($session->access!=BANNED){
$this->gpack($post);
}else{
header("Location: banned.php");
}
break;
}
}
}
public function procSpecial($get) {
global $session;
if(isset($get['e'])) {
switch($get['e']) {
case 2:
if($session->access!=BANNED){
$this->removeMeSit($get);
}else{
header("Location: banned.php");
}
break;
case 3:
if($session->access!=BANNED){
$this->removeSitter($get);
}else{
header("Location: banned.php");
}
break;
case 4:
if($session->access!=BANNED){
$this->cancelDeleting($get);
}else{
header("Location: banned.php");
}
break;
}
}
}
private function updateProfile($post) {
global $database;
global $database,$session;
if($session->access!=BANNED){
$birthday = $post['jahr'].'-'.$post['monat'].'-'.$post['tag'];
$database->submitProfile($database->RemoveXSS($post['uid']),$database->RemoveXSS($post['mw']),$database->RemoveXSS($post['ort']),$database->RemoveXSS($birthday),$database->RemoveXSS($post['be2']),$database->RemoveXSS($post['be1']));
$varray = $database->getProfileVillages($post['uid']);
@@ -57,12 +84,19 @@ class Profile {
$database->setVillageName($database->RemoveXSS($varray[$i]['wref']),$database->RemoveXSS($post['dname'.$i]));
}
header("Location: ?uid=".$post['uid']);
}else{
header("Location: banned.php");
}
}
private function gpack($post) {
global $database, $session;
if($session->access!=BANNED){
$database->gpack($database->RemoveXSS($session->uid),$database->RemoveXSS($post['custom_url']));
header("Location: ?uid=".$session->uid);
}else{
header("Location: banned.php");
}
}
private function updateAccount($post) {
global $database,$session,$form;
@@ -78,7 +112,11 @@ class Profile {
$form->addError("pw",PASS_MISMATCH);
}
if($post['email_alt'] == $session->userinfo['email']) {
if($session->access!=BANNED){
$database->updateUserField($post['uid'],"email",$post['email_neu'],1);
}else{
header("Location: banned.php");
}
}
else {
$form->addError("email",EMAIL_ERROR);
@@ -88,7 +126,11 @@ class Profile {
$form->addError("del",ALLI_OWNER);
}
else {
if($session->access!=BANNED){
$database->setDeleting($post['uid'],0);
}else{
header("Location: banned.php");
}
}
}
else {
@@ -101,19 +143,32 @@ class Profile {
}
else {
if($session->userinfo['sit1'] == 0) {
if($session->access!=BANNED){
$database->updateUserField($post['uid'],"sit1",$sitid,1);
}else{
header("Location: banned.php");
}
}
else if($session->userinfo['sit2'] == 0) {
if($session->access!=BANNED){
$database->updateUserField($post['uid'],"sit2",$sitid,1);
}else{
header("Location: banned.php");
}
}
}
}
$_SESSION['errorarray'] = $form->getErrors();
if($session->access!=BANNED){
header("Location: spieler.php?s=3");
}else{
header("Location: banned.php");
}
}
private function removeSitter($get) {
global $database,$session;
if($session->access!=BANNED){
if($get['a'] == $session->checker) {
if($session->userinfo['sit'.$get['type']] == $get['id']) {
$database->updateUserField($session->uid,"sit".$get['type'],0,1);
@@ -121,21 +176,28 @@ class Profile {
$session->changeChecker();
}
header("Location: spieler.php?s=".$get['s']);
}else{
header("Location: banned.php");
}
}
private function cancelDeleting($get) {
global $database;
global $database,$session;
$database->setDeleting($get['id'],1);
header("Location: spieler.php?s=".$get['s']);
}
private function removeMeSit($get) {
global $database,$session;
if($session->access!=BANNED){
if($get['a'] == $session->checker) {
$database->removeMeSit($get['id'],$session->uid);
$session->changeChecker();
}
header("Location: spieler.php?s=".$get['s']);
}else{
header("Location: banned.php");
}
}
};
$profile = new Profile;
+14 -12
View File
@@ -1,24 +1,26 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename 404.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/Admin/404.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<div style="margin-top: 50px;">
<center>
<h1>404 - File not found</h1>
This system is not finished yet or page does not exist.<br>
This admin system is not finished yet or page doesn't exist.<br>
<br>
</center>
</div>
+54 -57
View File
@@ -9,10 +9,8 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
include("../GameEngine/Lang/".LANG.".php");
include("GameEngine/Lang/".LANG.".php");
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
@@ -28,9 +26,8 @@ $type = $database->getVillageType($village['wref']);
$fdata = $database->getResourceLevel($village['wref']);
$units = $database->getUnit($village['wref']);
?>
<form action="../GameEngine/Admin/Mods/addTroops.php" method="POST">
<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">
@@ -44,52 +41,52 @@ $units = $database->getUnit($village['wref']);
<?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"><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><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><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><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><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><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><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><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><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><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>
@@ -97,215 +94,215 @@ $units = $database->getUnit($village['wref']);
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"><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><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><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><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><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><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><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><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><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><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"><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><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><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><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><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><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><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><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><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><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="../gpack/travian_default/img/u/31.gif"></img> <?php echo U31; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/32.gif"></img> <?php echo U32; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/33.gif"></img> <?php echo U33; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/34.gif"></img> <?php echo U34; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/35.gif"></img> <?php echo U35; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/36.gif"></img> <?php echo U36; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/37.gif"></img> <?php echo U37; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/38.gif"></img> <?php echo U38; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/39.gif"></img> <?php echo U39; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/40.gif"></img> <?php echo U40; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/41.gif"></img> <?php echo U41; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/42.gif"></img> <?php echo U42; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/43.gif"></img> <?php echo U43; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/44.gif"></img> <?php echo U44; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/45.gif"></img> <?php echo U45; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/46.gif"></img> <?php echo U46; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/47.gif"></img> <?php echo U47; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/48.gif"></img> <?php echo U48; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/49.gif"></img> <?php echo U49; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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="../gpack/travian_default/img/u/50.gif"></img> <?php echo U50; ?></td>
<td class="addTroops"><img src="gpack/travian_default/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">
<div align="right"><input type="image" border="0" src="img/admin/b/ok1.gif"></div>
</form>
<?php } ?>
<br /><br /><div align="right"><?php if(isset($_GET['d'])) { echo '<font color="Red"><b>Troops edited</font></b>';
} ?>
} ?></div>
+35 -49
View File
@@ -1,56 +1,42 @@
<!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
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename admin_log.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/Adminadmin_log.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); ?>
if($_SESSION['access'] < ADMIN) die("Access Denied: You aren't 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 } ?>
$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>&nbsp;<?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 } ?>
+15 -16
View File
@@ -8,11 +8,11 @@
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
<?php
if($_GET['aid']){
$alidata = $database->getAlliance($_GET['aid']);
$aliusers = $database->getAllMember($_GET['aid']);
$alirank = $ranking/* ->getAllianceRank($_GET['aid']) */;
if($alidata and $aliusers){
foreach($aliusers as $member) {
@@ -51,7 +51,7 @@ foreach($aliusers as $member) {
</tr>
<tr>
<th>Rank</th>
<td>???</td>
<td><?php /* echo $alirank; */ ?>?</td>
</tr>
<tr>
<th>Points</th>
@@ -112,20 +112,19 @@ foreach($aliusers as $user) {
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>";
}
if($aid == $session->alliance){
if ((time()-600) < $member['timestamp']){ // 0 Min - 10 Min
echo "<td class=on><img class=online1 src=img/x.gif title='Online' alt='Online' /></td>";
}elseif ((time()-86400) < $member['timestamp'] && (time()-600) > $member['timestamp']){ // 10 Min - 1 Days
echo "<td class=on><img class=online2 src=img/x.gif title='Max. 24 hours' alt='Max. 24 hours' /></td>";
}elseif ((time()-259200) < $member['timestamp'] && (time()-86400) > $member['timestamp']){ // 1-3 Days
echo "<td class=on><img class=online3 src=img/x.gif title='Last 3 days' alt='Last 3 days' /></td>";
}elseif ((time()-604800) < $member['timestamp'] && (time()-259200) > $member['timestamp']){ // 3-7 Days
echo "<td class=on><img class=online4 src=img/x.gif title='Last 7 days' alt='Last 7 days' /></td>";
}else{ // More than 7 days
echo "<td class=on><img class=online5 src=img/x.gif title='Offline' alt='Offline' /></td>";
}
}
echo " </tr>";
}
?>
@@ -1,70 +0,0 @@
<table id="player" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="15">Results in <?php echo $_POST['search_in'];?></th>
</tr>
</thead><tbody>
<?php
if($_POST['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>';
for ($i = 0; $i <= count($search)-1; $i++) {
$search[$i]['totalvillage'] = count($database->getVillagesID($search[$i]['id']));
$search[$i]['totalpop'] = $database->getVSumField($search[$i]['id'],"pop");
$search[$i]['aname'] = $database->getAllianceName($search[$i]['alliance']);
if($search[$i]['id']==0 or $search[$i]['id']==1){
$del = "<td></td>";
}else{
$del = '<td ><a href="?delete='.$search[$i]['id'].'"><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="vil">'.date("H:m d.m.y",$search[$i]['timestamp']).'</td>
'.$del.'
</tr>
';
}
}
if($_POST['search_in']=="village"){
echo '<tr><td></td><td>Village</td><td>Owner</td><td><img src="img/x.gif" class="r1">Wood</td><td><img src="img/x.gif" class="r2">Clay</td><td><img src="img/x.gif" class="r3">Iron</td><td>Max store</td><td><img src="img/x.gif" class="r4">Crop</td><td>Max Crop</td><td>Pop</td><td>Capital</td></tr>';
for ($i = 0; $i <= count($search)-1; $i++) {
$owner = $database->getUserField($search[$i]['owner'],'username',0);
echo '<tr>
<td class="fc">'.($i+1).'.</td>
<td class="vil"><a href="?uid='.$search[$i]['wref'].'">'.$search[$i]['name'].'</a></td>
<td class="vil"><a href="?uid='.$search[$i]['owner'].'">'.$owner.'</td>
<td class="vil">'.$search[$i]['wood'].'</td>
<td class="vil">'.$search[$i]['clay'].'</td>
<td class="vil">'.$search[$i]['iron'].'</td>
<td class="vil">'.$search[$i]['maxstore'].'</td>
<td class="vil">'.$search[$i]['crop'].'</td>
<td class="vil">'.$search[$i]['maxcrop'].'</td>
<td class="vil">'.$search[$i]['pop'].'</td>
<td class="vil">'.$search[$i]['capital'].'</td>
</tr>';
//echo $search[$i]['name'].$search[$i]['owner']."<br>";
}
}
?>
</tbody>
</table>
+1 -1
View File
@@ -41,6 +41,6 @@ Search
<br>
<?php
if($_GET['search'] or $_GET['search_in']){
include('templates/admin/results.tpl');
include('Templates/Admin/backup/results.tpl');
}
?>
+3 -116
View File
@@ -10,208 +10,95 @@
#################################################################################
?>
<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>
<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>Time</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="submit" value="Save"></td>
</tr>
</table>
</form>
<?php
$bannedUsers = $admin->search_banned();
?>
<?php $bannedUsers = $admin->search_banned(); ?>
<br>
<table id="member" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Ban List</th>
</tr>
</thead><tbody>
<tr>
<td><b>Username</b></td>
<td><b>Length (from/to)</b></td>
<td><b>Reason</b></td>
<td></td>
</tr>
<?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>
<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 results...</td></tr>';
}
?>
</tbody>
</table>
</table>
+18 -17
View File
@@ -15,24 +15,25 @@ $ban1 = mysql_fetch_array($ban);
<p></br>
Hello <?php echo $ban1['name']; ?>!
You have been banned due to a violation of the rules.
</br><?php
if ($ban1['reason']=='Pushing') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Cheat') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Hack') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Bug') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Bad Name') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Multi Account') {
echo "Every player may only own and play one account on each server."; }
if ($ban1['reason']=='Swearing') {
echo "Every player may only own and play one account on each server."; }
?>
</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> <?php echo "<a class=\"rules\" href=\"rules.php\">» Game rules"; ?>
</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>
+226 -429
View File
@@ -1,494 +1,293 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename config.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.12.04 ##
## Filename: Templates/Admin/config.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Improved by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<?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>");
if ($_SESSON['access'] == MULTIHUNTER) die("<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><b><font color='Red'><center>Access Denied: You aren't Admin</b></font></center>");
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<h2><center>Made by Dzoki</center></h2>
<h2><center>Made by Dzoki & Improved by ZZJHONS</center></h2>
<table id="member">
<thead>
<tr>
<th>~ Server Settings ~</th>
</tr>
</thead>
<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>
<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 Version</td>
<td><font color='Red'><?php include ("Templates/version.tpl"); ?></font></td>
</tr>
<tr>
<td>Server Started</td>
<td><?php echo date("d.m.y H:i",COMMENCE);?> (<?php echo round((time()-COMMENCE)/86400); ?> days ago)</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>
<td><?php if(LANG == en){echo "English";} else if(LANG == es){echo "Spanish";} ?></td>
</tr>
<tr>
<td>Server Speed</td>
<td><?php echo SPEED.'x';?></td>
</tr>
<tr>
<td>Troop Speed</td>
<td><?php echo INCREASE_SPEED;?>x</td>
<td>Map Size</td>
<td><?php echo WORLD_MAX;?>x<?php echo WORLD_MAX;?></td>
</tr>
<tr>
<td>Graphic Pack</td>
<td><b><?php if(GP_ENABLE == true){echo "<font color='Green'>Enabled</font>";} else if(GP_ENABLE == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
<tr>
<td>Graphic Pack Location</td>
<td><?php echo GP_LOCATE; ?></td>
</tr>
<tr>
<td>Storage Multiplier</td>
<td><?php echo STORAGE_MULTIPLIER; ?></td>
</tr>
<tr>
<td>Trader Capacity</td>
<td><?php echo TRADER_CAPACITY; ?></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>
<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>
<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>
<td>Activation Mail</td>
<td><b><?php if(AUTH_EMAIL == true){echo "<font color='Green'>Enabled</font>";} else if(AUTH_EMAIL == false){echo "<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>
<td>Quest</td>
<td><b><?php if(QUEST == true){echo "<font color='Green'>Enabled</font>";} else if(QUEST == false){echo "<font color='Red'>Disabled</font>";} ?></td>
</tr>
<tr>
<td>Demolish - Level required</td>
<td><?php echo DEMOLISH_LEVEL_REQ; ?></td>
</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>
<td>World Wonder - Statistics</td>
<td><b><?php if(WW == true){echo "<font color='Green'>Enabled</font>";} else if(WW == false){echo "<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>
<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).' Hour(s)';} ?></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>
<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).' Hour(s)';} ?></td>
</tr>
<tr>
<td>Great Workshop</td>
<td><b><?php if(GREAT_WKS == true){echo "<font color='Green'>Enabled</font>";} else if(GREAT_WKS == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
</table>
<tr>
<td>Tourn threshold</td>
<td><b><?php echo TS_THRESHOLD; ?></b></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Log Settings ~</th>
</tr>
</thead>
<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>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>Log Build</td>
<td><b><?php if(LOG_BUILD == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_BUILD == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
<tr>
<td>Log Technology</td>
<td><b><?php if(LOG_TECH == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_TECH == false){echo "<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>
<td>Log Login</td>
<td><b><?php if(LOG_LOGIN == true){echo "<b><font color='Green'>Enabled</font></b>";} else if(LOG_LOGIN == false){echo "<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>
<td>Log Gold</td>
<td><b><?php if(LOG_GOLD_FIN == true){echo "<font color='Green'>Enabled</font>";} else if(ALOG_GOLD_FIN == false){echo "<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>
<td><b><?php if(LOG_ADMIN == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_ADMIN == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
<tr>
<td>Log War</td>
<td><b><?php if(LOG_WAR == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_WAR == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
<tr>
<td>Log Market</td>
<td><b><?php if(LOG_MARKET == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_MARKET == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
<tr>
<td>Log Illegal</td>
<td><b><?php if(LOG_ILLEGAL == true){echo "<font color='Green'>Enabled</font>";} else if(LOG_ILLEGAL == false){echo "<font color='Red'>Disabled</font>";} ?></td>
</tr>
</table>
<table id="member">
<thead>
<tr>
<th>~ Newsbox Settings ~</th>
</tr>
</thead>
<thead>
<tr>
<th>~ Newsbox Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<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>
<td><b><?php if(NEWSBOX1 == true){echo "<font color='Green'>Enabled</font>";} else if(NEWSBOX1 == false){echo "<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>
<td><b><?php if(NEWSBOX2 == true){echo "<font color='Green'>Enabled</font>";} else if(NEWSBOX2 == false){echo "<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>
<td><b><?php if(NEWSBOX3 == true){echo "<font color='Green'>Enabled</font>";} else if(NEWSBOX3 == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</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>
<td>Home 1</td>
<td><b><?php if(HOME1 == true){echo "<font color='Green'>Enabled</font>";} else if(HOME1 == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</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>
<td>Home 2</td>
<td><b><?php if(HOME2 == true){echo "<font color='Green'>Enabled</font>";} else if(HOME2 == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</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>
<td>Home 3</td>
<td><b><?php if(HOME3 == true){echo "<font color='Green'>Enabled</font>";} else if(HOME3 == false){echo "<font color='Red'>Disabled</font>";} ?></b></td>
</tr>
</table>
</table>
<table id="member">
<thead>
<tr>
<th>~ SQL Settings ~</th>
</tr>
</thead>
<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>
<thead>
<tr>
<th>~ SQL Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<tr>
<td>DB Username</td>
<td><?php echo SQL_USER;?></td>
<td class="b">Variable</td>
<td class="b">Value</td>
</tr>
<tr>
<td>DB Host Name</td>
<td><?php echo SQL_SERVER;?></td>
</tr>
<tr>
<td>DB Name</td>
<td><?php echo SQL_DB;?></td>
</tr>
<tr>
<td>DB Password</td>
<td>*********</td>
</tr>
<td>DB Username</td>
<td><?php echo SQL_USER;?></td>
</tr>
<tr>
<td>DB Name</td>
<td><?php echo SQL_DB;?></td>
</tr>
<td>DB Password</td>
<td><?php echo md5(SQL_PASS);?></td>
</tr>
<tr>
<td>Table Prefix</td>
<td><?php echo TB_PREFIX;?></td>
</tr>
<td>DB 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>
<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 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>
<thead>
<tr>
<th>~ Extra Settings ~</th>
</tr>
</thead>
</table>
<table id="profile">
<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>
<td class="b">Variable</td>
<td class="b">Value</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 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>
<td>Limit Mailbox</td>
<td><b><?php if(LIMIT_MAILBOX == true){echo "<font color='Green'>Enabled</font>";} else if(LIMIT_MAILBOX == false){echo "<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><b><?php if(INCLUDE_ADMIN == true){echo "<font color='Green'>Enabled</font>";} else if(INCLUDE_ADMIN == false){echo "<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 )
@@ -500,7 +299,5 @@ function define_array( $array, $keys = NULL )
define( $keyname, $value );
}
}
//define_array($array);
?>
?>
+2 -2
View File
@@ -89,10 +89,10 @@ 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>';
$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>';
$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>';
}
+1 -1
View File
@@ -17,7 +17,7 @@ $varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id);
?>
<br />
<form action="../GameEngine/Admin/Mods/editUser.php" method="POST">
<form action="GameEngine/Admin/Mods/editUser.php" method="POST">
<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" >
+48
View File
@@ -0,0 +1,48 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: Templates/Admin/give.tpl ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
if($_SESSION['access'] < ADMIN) die("Access Denied: You aren't Admin!");
$id = $_SESSION['id'];
?>
<center>
<h1>Here you can give gold <?php if(ZRAVIANX4 == true){echo 'or silver ';} ?>to all players of this server.</h1>
<br />
<h2>Gold</h2>
<form action="GameEngine/Admin/Mods/gold.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<b>How much gold do you want to give to all players?</b>
<br />
<input class="give_gold" name="gold" id="gold" value="20" maxlength="4">&nbsp;<img src="img/admin/gold.gif" width="10" height="" class="gold" alt="Gold" title="Gold"/>&nbsp;&nbsp;<font color="gray" size="1">Insert a number and press enter <img src="img/admin/enter.gif" class="enter" alt="Enter" title="Enter"/>.</font>
</form>
<br />
<?php if(isset($_GET['g'])){ ?>
<font color="Red" size="+6"><b><?php echo $_GET['g']; ?> Gold added</b></font>
<?php } ?>
<?php if(ZRAVIANX4 == true){ ?>
<br />
<h2>Silver</h2>
<form action="GameEngine/Admin/Mods/silver.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
<b>How much silver do you want to give to all players?</b>
<br />
<input class="give_gold" name="silver" id="silver" value="20" maxlength="4">&nbsp;<img src="img/admin/silver.gif" class="silver" alt="Silver" title="Silver"/>&nbsp;&nbsp;<font color="gray" size="1">Insert a number and press enter <img src="img/admin/enter.gif" class="enter" alt="Enter" title="Enter"/>.</font>
</form>
<?php if(isset($_GET['s'])){ ?>
<font color="Red" size="+6"><b><?php echo $_GET['s']; ?> Silver added</b></font>
<?php }} ?>
</center>
+2 -2
View File
@@ -13,11 +13,11 @@ if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
?>
<?php $id = $_SESSION['id']; ?>
<form action="../GameEngine/Admin/Mods/gold.php" method="POST">
<form action="GameEngine/Admin/Mods/gold.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>How much gold do you want to give to the users?</b></center>
<center><br /><input class="give_gold" name="gold" id="gold" value="20" maxlength="4">&nbsp;<img src="../img/admin/gold.gif" class="gold" alt="Gold" title="Gold"/>&nbsp;&nbsp;<font color="gray" size="1">insert number and press 'enter'</center></form>
<center><br /><input class="give_gold" name="gold" id="gold" value="20" maxlength="4">&nbsp;<img src="img/admin/gold.gif" class="gold" alt="Gold" title="Gold"/>&nbsp;&nbsp;<font color="gray" size="1">insert number and press 'enter'</center></form>
<?php
if(isset($_GET['g'])) {
+53 -22
View File
@@ -1,29 +1,60 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename home.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/Admin/home.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<br />
<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>,<br /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You are logged in as: <?php if($_SESSION['access'] == MULTIHUNTER) { echo '<b><font color="Blue">Multihunter</font></b>';
} else if($_SESSION['access'] == ADMIN){ echo '<b><font color="Red">Administrator</font></b>'; } ?></center>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></b>
<font color="#c5c5c5" size="1">Credits: Akakori & Elmar<br />
Fixed, remade and new features added by <b>Dzoki</b>
</font>
<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>:
<br />
<br />
<center>
You are logged in as <b><?php if($_SESSION['access'] == MULTIHUNTER) { echo '<font color="Blue">Multihunter</font>'; } else if($_SESSION['access'] == ADMIN){ echo '<font color="Red">Administrator</font>'; } ?></b>
</center>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<font color="#c5c5c5" size="1">
Credits: Akakori, Elmar, Dzoki & ZZJHONS
<br />
Fixed, remade and new features added by <b>Dzoki</b>
<br />
Reworked by <b>ZZJHONS</b>
</font>
+84
View File
@@ -0,0 +1,84 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.13 ##
## Filename: Templates/Admin/homenews.tpl ##
## Developed by: Mauroalt ##
## Reworked by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<form action="" method="POST">
<input name="action" type="hidden" value="addBan">
<table width="504" cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th height="21" colspan="2" valign="top">Home News Editor</th>
</tr>
</thead>
<tbody>
<tr>
<td width="222" height="24"><strong>Home News:</strong></td>
<td width="271" valign="top">
<center>
<font size=4>Home 1<input type="radio" name="n" value="1" checked="checked"/> Home 2<input type="radio" name="n" value="2"/> Home 3<input type="radio" name="n" value="3"/></font>
</center>
</td>
</tr>
<tr>
<td height="165"><strong>Text(HTML):</strong></td>
<td valign="top">
<center>
<textarea name="txt" cols="60" rows="20"></textarea>
</center>
</td>
</tr>
<tr>
<td height="26" valign="top" class="on">
<center>
<input name="submit" type="reset" value="Reset" />
</center>
</td>
<td valign="top">
<center>
<input type="submit" value="Submit">
</center>
</td>
</tr>
</tbody>
</table>
<br />
<br />
</form>
<center><h1>Press submit to clear only<br />Otherwise enter the text</h1></center>
<?php
$ti=$_POST['n'];
$text=$_POST['txt'];
$delete=$_POST['delete'];
if ($ti or $text or $delete){
if (!$text){
unlink ('Templates/News/home/home'.$ti.'.tpl');
$f=fopen('Templates/News/home/home'.$ti.'.tpl','w+');
fwrite($f,$st,$text);
exit;
}
unlink ('Templates/News/home/home'.$ti.'.tpl');
$f=fopen('Templates/News/home/home'.$ti.'.tpl','w+');
fwrite($f,'<div class="news">'.$text.'</div>');
echo '<center><font size=5>Newsbox edited correctly</font>';
include ("Templates/News/home/home".$ti.".tpl");
echo '</center>';
}
?>
+31 -46
View File
@@ -1,53 +1,38 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename login.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/Admin/login.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<div align="center"><img src="../img/admin/admin.gif" width="468" height="60" border="0"></div>
<p>Login to control panel:</p>
<div align="center"><img src="img/admin/admin.gif" width="468" height="60" border="0"></div>
<p>Login to Admin Control Panel:</p>
<form method="post" action="admin.php">
<input type="hidden" name="action" value="login">
<p class="old_p1">
<table width="100%" cellspacing="1" cellpadding="0">
<tr><td><label>Username:</label>
<input class="fm fm110" type="text" name="name" value="<?php echo $_SESSION['username']?>" maxlength="15"> <span class="e f7"></span>
</td></tr>
<tr><td><label>Password:</label>
<input class="fm fm110" type="password" name="pw" value="" maxlength="20"> <span class="e f7"></span>
</td></tr>
</table>
</p>
<p align="center"><input type="image" border="0" src="../img/admin/b/l1.gif" width="80" height="20">
<img align="right" src="../img/admin/senator_roemer.png" width="450" height="620">
</form>
<input type="hidden" name="action" value="login">
<table cellspacing="0">
<tr>
<td>Username:&nbsp;<input class="fm fm110" type="text" name="name" value="<?php echo $_SESSION['username']?>" maxlength="15"> <span class="e f7"></span>
</td>
</tr>
<tr>
<td>Password:&nbsp;<input class="fm fm110" type="password" name="pw" value="" maxlength="20"> <span class="e f7"></span>
</td>
</tr>
</table>
<p align="center">
<input type="image" border="0" src="img/admin/b/l1.gif" width="80" height="20">
<img align="right" src="img/admin/senator_roemer.png" width="450" height="500">
</p>
</form>
+75
View File
@@ -0,0 +1,75 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: Templates/admin_menu.tpl ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://www.xtravian.com & http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
include_once ("GameEngine/Database/db_MYSQL.php");
include_once ("GameEngine/Ranking.php");
?>
<div id="side_navi">
<a id="logo" href="<?php echo HOMEPAGE; ?>" name="logo"><img src="img/x.gif" class="logo" alt="Travian"></a>
<?php
if($funct->CheckLogin()){ ?>
<?php if($_SESSION['access'] == ADMIN){ ?>
<p>
<a href="admin.php"><b>ACP Home</b></a>
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
<a href="login.php">Server</a>
</p>
<p>
<a href="?p=server_info">Statistics</a>
<a href="?p=online">Online users</a>
<a href="?p=news">Game News</a>
<a href="?p=homenews">Home News</a>
<a href="?p=search">Search</a>
<a href="?p=message">Msg/Rep</a>
<a href="?p=ban">Ban</a>
<a href="?p=gold">Give gold</a>
<a href="?p=config">Server config</a>
<a href="massmessage.php">Mass message</a>
<a href="sysmsg.php">System message</a>
<a href="medal.php">Update top 10</a>
<a href="?p=natarend">Add World Wonder Villages</a>
</p>
<p>
<a href="?p=admin_log"><font color="Red"><b>Admin Log</b></font></a>
</p>
<p>
<a href="?action=logout">Logout</a>
</p>
<?php } else if($_SESSION['access'] == MULTIHUNTER){ ?>
<p>
<a href="admin.php">MCP Home</a>
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
<a href="dorf1.php">Server</a>
</p>
<p>
<a href="?p=server_info">Server Info</a>
<a href="?p=online">Online users</a>
<a href="?p=search">Search</a>
<a href="?p=message">Msg/Rep</a>
<a href="?p=ban">Ban</a>
</p>
<p>
<a href="?action=logout">Logout</a>
</p>
<?php } } if(!$funct->CheckLogin()){ ?>
<p>
<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
<a href="login.php">Server</a>
</p>
<?php }?>
</div>
+1 -31
View File
@@ -10,58 +10,28 @@
#################################################################################
?>
<style>
.del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
</style>
<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="submit" value="ok"></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="submit" value="ok"></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');
}
?>
?>
+96
View File
@@ -0,0 +1,96 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.13 ##
## Filename: Templates/Admin/news.tpl ##
## Developed by: Mauroalt ##
## Reworked by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<form action="" method="POST">
<input name="action" type="hidden" value="addBan">
<table width="504" cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th height="21" colspan="2" valign="top">Game News Editor</th>
</tr>
</thead>
<tr>
<td width="222" height="24"><strong>Newsbox:</strong></td>
<td width="271" valign="top">
<center>
<font size=4>Newsbox 1<input type="radio" name="n" value="1" checked="checked"/> News box 2<input type="radio" name="n" value="2"/> Newsbox 3<input type="radio" name="n" value="3"/></font>
</center>
</td>
</tr>
<tr>
<td height="24"><strong>Title:</strong></td>
<td valign="top">
<center>
<input type="text" class="fm" name="title" value="" size=60>
</center>
</td>
</tr>
<tr>
<td height="165"><strong>Text(HTML):</strong></td>
<td valign="top">
<center>
<textarea name="txt" cols="60" rows="20"></textarea>
</center>
</td>
</tr>
<tr>
<td height="26" valign="top" class="on">
<center>
<input name="submit" type="reset" value="Reset" />
</center>
</td>
<td valign="top">
<center>
<input type="submit" value="Submit">
</center>
</td>
</tr>
</table>
<br />
<br />
</form>
<center><h1>Press submit to clear only<br />Otherwise enter the text</h1></center>
<?php
$ti=$_POST['n'];
$title=$_POST['title'];
$text=$_POST['txt'];
$delete=$_POST['delete'];
if ($ti or $title or $text or $delete){
if (!$text){
unlink ('Templates/News/newsbox'.$ti.'.tpl');
$f=fopen('Templates/News/newsbox'.$ti.'.tpl','w+');
fwrite($f,$st,$text);
exit;
}
if (!$title){
$st="";
}
else{$st='<h5>'.$title.'</h5>';}
unlink ('Templates/News/newsbox'.$ti.'.tpl');
$f=fopen('Templates/News/newsbox'.$ti.'.tpl','w+');
fwrite($f,$st.'<div class="news">'.$text.'</div>');
echo '<center><font size=5>Newsbox edited correctly</font>';
include ("Templates/News/newsbox".$ti.".tpl");
echo '</center>';
}
?>
+5 -1
View File
@@ -45,6 +45,10 @@ foreach($varray as $vil) {
$tribe = "Teuton";
} else if($active[$i]['tribe'] == 3){
$tribe = "Gaul";
} else if($active[$i]['tribe'] == 4){
$tribe = "Nature";
} else if($active[$i]['tribe'] == 5){
$tribe = "Natar";
}
echo '
<tr>
@@ -53,7 +57,7 @@ echo '
<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>
<td><img src="img/admin/gold.gif" class="gold" alt="Gold" title="This user has: '.$active[$i]['gold'].' gold"/> '.$active[$i]['gold'].'</td>
</tr>
';
}
+31
View File
@@ -0,0 +1,31 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.08 ##
## Filename: Templates/Admin/other.tpl ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<center>
<h1>Other Admin Options</h1>
<br />
<br />
<br />
<a href="empty-db.php">Empty all atacks and movements</a>
<br />
<br />
<a href="finishmovements.php">Finish all movements</a>
<br />
<br />
<a href="create_account.php">Create Natars account</a>
</center>
+25 -149
View File
@@ -11,249 +11,135 @@
?>
<?php
$id = $_GET['uid'];
if(isset($id)){
$user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
if($user){
$totalpop = 0;
foreach($varray as $vil) {
$totalpop += $vil['pop'];
}
include('search2.tpl');
?>
<?php
$deletion = false;
if($deletion){
?>
<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>
<?php
}
?>
<br>
<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($displayarray['username'],"username"); ?></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";
} ?></td>
</tr>
<tr>
<th>Alliance</th>
<td>
<?php if($user['alliance'] == 0) {
echo "-";
echo "Nature";
}
else {
echo "<a href=\"?p=alliance&aid=".$user['alliance']."\">".$database->getAllianceName($user['alliance'])."</a>";
} ?>
</td>
else if($user['tribe'] == 5) {
echo "Natars";
} ?></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'];?>">Recount</a></td>
</tr>
<?php
if(isset($user['birthday']) && $user['birthday'] != 0) {
$age = date("Y")-substr($user['birthday'],0,4);
echo "<tr><th>Age</th><td>$age</td></tr>";
}
if(isset($user['gender']) && $user['gender'] != 0) {
$gender = ($user['gender']== 1)? "Male" : "Female";
echo "<tr><th>Gender</th><td>".$gender."</td></tr>";
}
echo "<tr><th>Location</th><td><input disabled class=\"fm\" name=\"location\" value=\"".$user['location']."\"></td></tr>";
echo "<tr><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>";
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>"; }
echo "<tr><th>Email</th><td><input disabled class=\"fm\" name=\"email\" value=\"".$user['email']."\"></td></tr>";
echo '<tr><td colspan="2" class="empty"></td></tr>';
if($_SESSION['access'] == ADMIN){
echo '<tr><td colspan="2"><a href="?p=editUser&uid='.$user['id'].'">&raquo; Change profile</a></td></tr>';
} else if($_SESSION['access'] == MULTIHUNTER){
echo '';
}
echo '<tr><td colspan="2"> <a href="nachrichten.php?t=1&id='.$user['id'].'">&raquo; Write message</a></td></tr>';
echo '<tr><td colspan="2"> <a href="?p=Newmessage&uid='.$user['id'].'">&raquo; Write message</a></td></tr>';
if($_SESSION['access'] == ADMIN){
echo '<tr><td colspan="2"> <a class="rn3" href="?p=deletion&uid='.$user['id'].'">&raquo; Delete player</a></td></tr>';
} else if($_SESSION['access'] == MULTIHUNTER){
echo '';
}
echo '<tr><td colspan="2"> <a href="?p=ban&uid='.$user['id'].'">&raquo; Ban</a></td></tr>';
echo '<tr><td colspan="2" class="desc2"><div class="desc2div"><center>'.nl2br($user['desc1']).'</center></div></td></tr>';
?>
</table>
</td>
<td class="desc1">
<center><?php echo nl2br($user['desc2']); ?></center>
</td>
</tr>
</tbody>
</table>
<!-- ADDITIONAL USER INFORMATION -->
<table id="member">
<thead>
@@ -281,10 +167,10 @@ if($deletion){
<td>Remaining gold</td>
<td><?php
if($user['gold'] == 0){ ?>
This user has no gold! (<img src='../img/admin/gold_g.gif' class='gold' alt='Gold' title='This user has: <?php echo $user['gold']; ?> gold'/> <?php echo $user['gold']; ?>) <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&g'>Give gold <?php } ?></a>
This user has no gold! (<img src='img/admin/gold_g.gif' class='gold' alt='Gold' title='This user has: <?php echo $user['gold']; ?> gold'/> <?php echo $user['gold']; ?>) <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&g'>Give gold <?php } ?></a>
<?php }
else if($user['gold'] > 0){ ?>
<img src='../img/admin/gold.gif' class='gold' alt='Gold' title='This user has: <?php echo $user['gold']; ?> gold'/> <?php echo $user['gold']; ?> <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&g'><img src='../img/admin/edit.gif' title='Give Gold'><?php } ?></a></td>
<img src='img/admin/gold.gif' class='gold' alt='Gold' title='This user has: <?php echo $user['gold']; ?> gold'/> <?php echo $user['gold']; ?> <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&g'><img src='img/admin/edit.gif' title='Give Gold'><?php } ?></a></td>
<?php }
?>
</tr>
@@ -294,12 +180,12 @@ if($deletion){
echo '';
} else {
if(isset($_GET['g'])){ ?>
<form action="../GameEngine/Admin/Mods/gold_1.php" method="POST">
<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>Insert number and press 'enter'</td>
<td><input class="give_gold" name="gold" value="0"> <a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
<td><input class="give_gold" name="gold" value="0"> <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>
@@ -334,19 +220,19 @@ if($deletion){
</tr>
<tr>
<td>Cultural Points</td>
<td><?php echo $user['cp'];?> <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><img src='../img/admin/edit.gif' title='Give Gold'><?php } ?>
<td><?php echo $user['cp'];?> <?php if($_SESSION['access'] == ADMIN){ ?><a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><img src='img/admin/edit.gif' title='Give Gold'><?php } ?>
</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">
<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>Insert number and press 'enter'</td>
<td><input class="give_gold" name="cp" value="0"> <a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
<td><input class="give_gold" name="cp" value="0"> <a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="img/admin/del.gif" title="Cancel"></a></td>
</tr></form>
<?php } } }?>
<tr>
@@ -356,22 +242,12 @@ if($deletion){
?>
</tr>
</table>
<center><?php include ('punish.tpl'); ?></center>
<?php
include ('villages.tpl');
include ('add_village.tpl');
}else{
echo "Not found...<a href=\"javascript: history.go(-1)\">Back</a>";
}
}
?>
+2 -2
View File
@@ -32,9 +32,9 @@ $result = $admin->search_village($_POST['s']);
if($result){
for ($i = 0; $i <= count($result)-1; $i++) {
if($_SESSION['access'] == ADMIN){
$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>';
$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 if($_SESSION['access'] == MULTIHUNTER){
$delLink = '<a href="#"><img src="../img/Admin/del_g.gif" class="del"></a>';
$delLink = '<a href="#"><img src="img/admin/x.gif" class="del"></a>';
}
echo '
<tr>
+22 -57
View File
@@ -1,90 +1,55 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename search.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/Admin/search.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<form action="" method="post">
<table id="member">
<thead>
<tr>
<th colspan="3">Search v1.0</th>
<th colspan="3">Search v1.01</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 player</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-mail</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 $_POST['s'];?>">
</td>
<td>
<input type=submit value=Search class="slr3">
<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>';
}
if($_GET['msg']){
echo '<div style="margin-top: 50px;" class="b"><center>';
if($_GET['msg'] == 'ursdel'){
echo "User was deleted.";
}
echo '</center></div>';
}
?>
+160 -147
View File
@@ -1,157 +1,170 @@
<?php
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## Filename server_info.tpl ##
## ##
## Project: ZravianX ##
## Version: 2011.11.10 ##
## Filename: Templates/Admin/server_info.tpl ##
## Developed by: Dzoki ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## Edited by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
<?php
$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;
$tribe4 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 4");
$tribe5 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 5");
$tribes = Array(mysql_num_rows($tribe1),mysql_num_rows($tribe2),mysql_num_rows($tribe3),mysql_num_rows($tribe4),mysql_num_rows($tribe5));
?>
<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>
<div>
<br />
<table id="profile">
<thead>
<tr>
<th colspan="2">Players Stadistics</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
if ($users > 0){
$percents = 100*($tribes[0] / $users);
} else {
$percents = 0;
}
echo $percents = intval ($percents);
echo "%";
?>
</td>
</tr>
<tr>
<td>Teutons</td>
<td><?php echo $tribes[1]; ?></td>
<td>
<?php
if ($users > 0){
$percents = 100*($tribes[1] / $users);
} else {
$percents = 0;
}
echo $percents = intval ($percents);
echo "%";
?>
</td>
</tr>
<tr>
<td>Gauls</td>
<td><?php echo $tribes[2]; ?></td>
<td>
<?php
if ($users > 0){
$percents = 100*($tribes[2] / $users);
} else {
$percents = 0;
}
echo $percents = intval ($percents);
echo "%";
?>
</td>
</tr>
<tr>
<td>Nature</td>
<td><?php echo $tribes[3]; ?></td>
<td>
<?php
if ($users > 0){
$percents = 100*($tribes[3] / $users);
} else {
$percents = 0;
}
echo $percents = intval ($percents);
echo "%";
?>
</td>
</tr>
<tr>
<td>Natars</td>
<td><?php echo $tribes[4]; ?></td>
<td>
<?php
if ($users > 0){
$percents = 100*($tribes[4] / $users);
} else {
$percents = 0;
}
echo $percents = intval ($percents);
echo "%";
?>
</td>
</tr>
</tbody>
</table>
+7 -7
View File
@@ -113,11 +113,11 @@ if($village and $user){
if($i != 3){
echo $typ[$i].'x <img src="../img/admin/r/'.$a.'.gif">| ';
echo $typ[$i].'x <img src="img/admin/r/'.$a.'.gif">| ';
}else{
echo $typ[$i].'x <img src="../img/admin/r/'.$a.'.gif"> ';
echo $typ[$i].'x <img src="img/admin/r/'.$a.'.gif"> ';
}
@@ -156,7 +156,7 @@ if($village and $user){
<tr>
<td><img src="../img/admin/r/1.gif"> Lumber</td>
<td><img src="img/admin/r/1.gif"> Lumber</td>
<td class="hab"><?php echo floor($village['wood']);?></td>
@@ -166,7 +166,7 @@ if($village and $user){
<tr>
<td><img src="../img/admin/r/2.gif"> Clay</td>
<td><img src="img/admin/r/2.gif"> Clay</td>
<td class="hab"><?php echo floor($village['clay']);?></td>
@@ -175,7 +175,7 @@ if($village and $user){
<tr>
<td><img src="../img/admin/r/3.gif"> Iron</td>
<td><img src="img/admin/r/3.gif"> Iron</td>
<td class="hab"><?php echo floor($village['iron']);?></td>
@@ -183,7 +183,7 @@ if($village and $user){
<tr>
<td><img src="../img/admin/r/4.gif"> Crop</td>
<td><img src="img/admin/r/4.gif"> Crop</td>
<td class="hab"><?php echo floor($village['crop']);?></td>
@@ -230,7 +230,7 @@ if($village and $user){
<tr>
<td><a href="?delOas&oid=" onClick="return del(\'oas\','.$varray[$i]['wref'].');"><img src="../img/admin/del.gif"></a></td>
<td><a href="?delOas&oid=" onClick="return del(\'oas\','.$varray[$i]['wref'].');"><img src="img/admin/del.gif"></a></td>
<td class="hab">Cooming soon</td>
+3 -3
View File
@@ -32,13 +32,13 @@ 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="#"><img src="../img/Admin/del_g.gif" class="del"></a>';
$delLink = '<a href="#"><img src="img/admin/x.gif" class="del"></a>';
}else{
$capital = '';
if($_SESSION['access'] == ADMIN){
$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>';
$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 if($_SESSION['access'] == MULTIHUNTER){
$delLink = '<a href="#"><img src="../img/Admin/del_g.gif" class="del"></a>';
$delLink = '<a href="#"><img src="img/admin/x.gif" class="del"></a>';
}
}
+1 -2
View File
@@ -1,2 +1 @@
<div class="news">
<b><center>TravianX</center></b>
+1 -1
View File
@@ -1 +1 @@
<div class="news">
<b><center>TravianX</center></b>
+1 -12
View File
@@ -1,12 +1 @@
<div class="news">
<b><center>TravianX</center></b><br />
<b>Version: <font color="Red">v4.8.5</font></b><br />
<b>Major Changes:</b> New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!<br />
<b>Minor Changes:</b> Admin panel updated a bit, config updated, installation system updated<br />
<b>Script Price:</b> FREE!<br /><br />
<b><u><center>Released by: Dzoki</u></b><br />
<b>Visit: <a href="http://ragezone.com">RageZone.com</a></b><br /></center>
</div>
<b><center>TravianX</center></b>
+3 -9
View File
@@ -1,10 +1,4 @@
<h5><img src="../img/en/t2/newsbox1.gif" alt="newsbox 1"></h5>
<h5><img src="img/en/t2/newsbox1.gif" alt="newsbox 1"></h5>
<div class="news">
<b><center>TravianX</center></b><br />
<b>Version: <font color="Red">v4.8.5</font></b><br />
<b>Major Changes:</b> New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!<br />
<b>Minor Changes:</b> Admin panel updated a bit, config updated, installation system updated<br />
<b>Script Price:</b> FREE!<br /><br />
<b><u><center>Released by: Dzoki</u></b><br />
<b>Visit: <a href="http://ragezone.com">RageZone.com</a></b><br /></center>
</div>
<b><center>TravianX</center></b>
</div>
+4 -13
View File
@@ -1,13 +1,4 @@
<h5><img src="../img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
<div class="news">
<b><center>TravianX</center></b><br />
<b>Version: <font color="Red">v4.8.5</font></b><br />
<b>Major Changes:</b> New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!<br />
<b>Minor Changes:</b> Admin panel updated a bit, config updated, installation system updated<br />
<b>Script Price:</b> FREE!<br /><br />
<b><u><center>Released by: Dzoki</u></b><br />
<b>Visit: <a href="http://ragezone.com">RageZone.com</a></b><br /></center>
</div>
<h5><img src="img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
<div class="news">
<b><center>TravianX</center></b>
</div>
+4 -2
View File
@@ -1,2 +1,4 @@
<h5><img src="../img/en/t2/newsbox2.gif" alt="newsbox 2"></h5>
<h5><img src="img/en/t2/newsbox3.gif" alt="newsbox 3"></h5>
<div class="news">
<b><center>TravianX</center></b>
</div>
+5 -2
View File
@@ -43,9 +43,12 @@ if($_POST) {
if(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) == '') {
// Add new link
$userid = $session->uid;
if($session->access!=BANNED){
$query = mysql_query('INSERT INTO `' . TB_PREFIX . 'links` (`userid`, `name`, `url`, `pos`) VALUES (' . $userid . ', \'' . $link['linkname'] . '\', \'' . $link['linkziel'] . '\', ' . $link['nr'] . ')');
} elseif(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) != '') {
}else{
header("Location: banned.php");
}
} elseif(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) != '') {
// Update link
$query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']);
$data = mysql_fetch_assoc($query);
+40
View File
@@ -0,0 +1,40 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.05 ##
## Filename: Templates/homenews.tpl ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
if (HOME1 or HOME2 or HOME3){
?>
<div id="news">
<div id="news-head"></div>
<div id="news-content">
<h3 class="news bold"><?php echo NEWS; ?></h3>
<?php
if(HOME1){echo '<div class="news-items"><div class="news">'; include("Templates/News/home/home1.tpl"); echo '</div></div>';};
if(HOME1 & HOME2 == true){echo '<div class="news-divider"></div>';}
else if(HOME1 & HOME3 == true){echo '<div class="news-divider"></div>';}
else echo '';
if(HOME2){echo '<div class="news-items"><div class="news">'; include("Templates/News/home/home2.tpl"); echo '</div></div>';};
if(HOME2 & HOME3 == true){echo '<div class="news-divider"></div>';}
else echo '';
if(HOME3){echo '<div class="news-items"><div class="news">'; include("Templates/News/home/home3.tpl"); echo '</div></div>';};
?>
</div>
<div id="news-bottom"></div>
</div>
<?php } ?>
+1 -1
View File
@@ -40,7 +40,7 @@ div.c1 {text-align: center}
echo "<a href=\"Admin/admin.php\"><font color=\"Blue\">Multihunter Panel</font></a>";
} ?> <?php if($session->access == ADMIN) {
echo "<a href=\"Admin/admin.php\"><font color=\"Red\">Admin Panel</font></a>";
echo "<a href=\"admin.php\"><font color=\"Red\">Admin Panel</font></a>";
echo "<a href=\"massmessage.php\">Mass Message</a>";
echo "<a href=\"medals.php\">Update Top 10</a>";
echo "<a href=\"sysmsg.php\">System message</a>";
+19
View File
@@ -0,0 +1,19 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.11.13 ##
## Filename: Templates/version.tpl ##
## Developed by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
?>
6.0.0
+113
View File
@@ -0,0 +1,113 @@
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: admin.php ##
## Developed by: Dzoki ##
## Reworked by: ZZJHONS ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
session_start();
include("GameEngine/Database.php");
include("GameEngine/Admin/database.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="shortcut icon" href="../favicon.ico" />
<title><?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - '.SERVER_NAME; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - '.SERVER_NAME; } ?></title>
<link href="gpack/travian_default/lang/en/compact.css" rel="stylesheet" type="text/css" />
<link href="gpack/travian_default/lang/en/lang.css" rel="stylesheet" type="text/css" />
<link href="gpack/travian_default/travian.css" rel='stylesheet' type='text/css' />
<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" type="text/javascript"></script>
<script src="GameEngine/Admin/ajax.js" type="text/javascript"></script>
<script src="unx.js" type="text/javascript"></script>
<script src="new.js" type="text/javascript"></script>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="no">
</head>
<body class="v35">
<script language="javascript">
function aktiv() {this.srcElement.className='fl1'; }
function inaktiv() {event.srcElement.className='fl2'; }
function del(e,id){
if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
if(conf){return true;}else{return false;}
}
</script>
<div class="wrapper">
<img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
<div id="dynamic_header"></div>
<div id="header">
<div id="mtop">
<a href="admin.php" title="ACP Home"><img class="fl2" src="img/admin/x1.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></a>
<a href="?p=online" title="Online Users"><img class="fl2" src="img/admin/x2.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></a>
<a href="?p=search" title="Search"><img class="fl2" src="img/admin/x3.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></a>
<a href="?p=message" title="Messages/Reports"><img class="fl2" src="img/admin/x4.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></a>
<a href="?p=config" title="Server Config"><img class="fl2" src="img/admin/x5.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></a>
<div class="clear"></div>
</div>
</div>
<div id="mid">
<?php include ("Templates/Admin/menu.tpl"); ?>
</div>
<div id="content" class="player">
<?php
if($funct->CheckLogin()){
if($_POST or $_GET){
if($_GET['p'] and $_GET['p']!="search"){
$filename = 'Templates/Admin/'.$_GET['p'].'.tpl';
if(file_exists($filename)){
include($filename);
}else{
include('Templates/Admin/404.tpl');
}
}else{
include('Templates/Admin/search.tpl');
}
if($_POST['p'] and $_POST['s']){
$filename = 'Templates/Admin/results_'.$_POST['p'].'.tpl';
if(file_exists($filename)){
include($filename);
}else{
include('Templates/Admin/404.tpl');
}
}
}else{
include('Templates/Admin/home.tpl');
}
}else{
include('Templates/Admin/login.tpl');
}
?>
</div>
<div id="side_info" class="outgame">
<?php include("Templates/news.tpl"); ?>
</div>
<div class="clear"></div>
</div>
<div class="footer-stopper outgame"></div>
<center>
<br />
<p><font color="#999999">This ACP has been reworked by <a href="http://zzjhons.com">ZZJHONS</a></font></p>
<br />
</center>
<div class="clear"></div>
<div id="ce"></div>
</body>
</html>
+3 -1
View File
@@ -64,6 +64,7 @@ include("Templates/Admin/ban_msg.tpl");
include("Templates/quest.tpl");
include("Templates/news.tpl");
include("Templates/multivillage.tpl");
include("Templates/links.tpl");
?>
</div>
<div class="clear"></div>
@@ -72,7 +73,8 @@ include("Templates/multivillage.tpl");
<div class="clear"></div>
<?php
include("Templates/footer.tpl");
include("Templates/footer.tpl");
include("Templates/res.tpl")
?>
<div id="stime">
<div id="ltime">
+1 -7
View File
@@ -14,7 +14,6 @@ include("GameEngine/Village.php");
$start = $generator->pageLoadTimeStart();
$message->noticeType($_GET);
$message->procNotice($_POST);
if($session->access != BANNED){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
@@ -114,9 +113,4 @@ echo round(($generator->pageLoadTimeEnd()-$start)*1000);
<div id="ce"></div>
</body>
</html>
<?php
}else{
header("Location: banned.php");
}
?>
</html>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 642 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 12 KiB

+2 -4
View File
@@ -14,7 +14,7 @@ font-family: Verdana, Arial, Helvetica, sans-serif;
color:#C0C0C0;
}
/*fix*/
/* Fix */
.online1, .online2, .online3, .online4, .online5 {width:12px; height:12px;}
/* Oberer Layer mit Menue ohne Werbung */
#ltop1 {position:relative; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mp.gif); background-repeat:repeat-x; left:0px; top:0px;}
@@ -519,6 +519,4 @@ table#member tbody th, table#member tbody td {text-align:left;}
table#member td.ra {width:5%; text-align:right;}
table#member td.hab {width:25%; text-align:center;}
table#member td.vil {width:20%; text-align:center;}
table#member td.on {width:5%; text-align:center;}
table#member td.on {width:5%; text-align:center;}
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

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