mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
77136a9784
+Added the "Artifacts" section in the Admin Panel, which contains two options: return a deleted artifact to the Natars and create new Artifacts, assigned to a specified player +Return to Natars coded, in the village section of the Admin Panel +Moved a lot of functions and costants from Automation.php to the "new" class Artifacts.php +Optimized a lot the whole Natars creation process, decreased the number of query of about 600 +Optimized a lot the function which deletes a player's account, it's now executed almost instantly, even with players with a lot of villages +Redesigned the map spawn system, using a more Travian-like village distribution +Fixed a bug that did show a broken village in the artifact chronology, if that village was destroyed +Reduced the amount of redundant code (about 230 lines) for 27_1.tpl/27_2.tpl and 27_3.tpl +Fixed a bug that permitted to build the Great Granary and the Great Warehouse in the whole account, with only a village effect artifact +Fixed a bug in the Admin Panel map that didn't permit to show village informations, if that village contained single quotes in its name
120 lines
5.0 KiB
PHP
Executable File
120 lines
5.0 KiB
PHP
Executable File
<?php
|
|
#################################################################################
|
|
## ##
|
|
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## ##
|
|
## Project: TravianZ ##
|
|
## Version: 05.03.2014 ##
|
|
## Filename: Admin/admin.php ##
|
|
## Developed by: Dzoki ##
|
|
## Edited by: Shadow and ronix ##
|
|
## License: Creative Commons BY-NC-SA 3.0 ##
|
|
## Copyright: TravianZ (c) 2014 - All rights reserved ##
|
|
## URLs: http://travian.shadowss/ro ##
|
|
## Source code: https://github.com/Shadowss/TravianZ ##
|
|
## ##
|
|
#################################################################################
|
|
|
|
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>Admin Control Panel - TravianZ</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('Do you really want to delete village id '+id+'?'); }
|
|
if(e == 'arti'){ var conf = confirm('Do you really want to delete artifact id '+id+'?'); }
|
|
if(e == 'unban'){ var conf = confirm('Do you really want to unban player '+id+'?'); }
|
|
if(e == 'stopDel'){ var conf = confirm('Do you really want to stop deleting user '+id+'?'); }
|
|
return conf;
|
|
}
|
|
|
|
</script>
|
|
|
|
<div id="ltop1">
|
|
<div style="position:relative; width:231px; height:100px; float:left;">
|
|
<img src="../img/x.gif" width="1" height="1">
|
|
</div>
|
|
<img class="fl2" src="../img/admin/x1.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="../img/admin/x2.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="../img/admin/x3.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="../img/admin/x4.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="../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="index.php"><img src="../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()){?>
|
|
<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=config">Config</a>
|
|
<a href="?p=config_editor">Config Editor</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'] && $_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'] && $_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>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|