Added Research lab queue manager.
Updated page display for shipyard, defenses and buildings. Moved legacy template files. Added install/migration.mysql to report changes to the database on testing environments. Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
f2d4b0f7e2
commit
ddfb36efa5
341 changed files with 4238 additions and 3259 deletions
|
|
@ -80,5 +80,4 @@ require_once dirname(dirname(__FILE__)) .'/common.php';
|
|||
message( $lang['sys_noalloaw'], $lang['sys_noaccess'] );
|
||||
}
|
||||
|
||||
// Created by e-Zobar. All rights reversed (C) XNova Team 2008
|
||||
?>
|
||||
|
|
@ -67,5 +67,4 @@ $page .="<table width=519><tr><td class=c colspan=2>Informations sur l'alliance<
|
|||
|
||||
display($page,"Information sur l'alliance [".$allyrow["ally_name"]."]",false);
|
||||
|
||||
// Created by Perberos. All rights reversed (C) 2006
|
||||
?>
|
||||
|
|
@ -774,8 +774,8 @@ elseif ($user['ally_id'] != 0 && $user['ally_request'] == 0) { // Con alianza
|
|||
|
||||
if ($t == 2) {
|
||||
$lang['text'] = $ally['ally_text'];
|
||||
$lang['Texts'] = "Interner Text";
|
||||
$lang['Show_of_request_text'] = "Internet Allianz Text";
|
||||
$lang['Texts'] = "Texte Interne";
|
||||
$lang['Show_of_request_text'] = "Texte Interne d'ALliance";
|
||||
} else {
|
||||
$lang['text'] = $ally['ally_description'];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,4 @@ if ($action != 5) {
|
|||
display($page2);
|
||||
}
|
||||
|
||||
// Créer par Tom1991 Copyright 2008
|
||||
// Merci au site Spacon pour m'avoir donner l'inspiration
|
||||
?>
|
||||
|
|
@ -59,6 +59,4 @@ else
|
|||
|
||||
display(parsetemplate(gettemplate('banned_body'), $parse),'Banned',true);
|
||||
|
||||
|
||||
// Created by e-Zobar (XNova Team). All rights reversed (C) 2008
|
||||
?>
|
||||
|
|
@ -169,8 +169,10 @@ while ( $b = mysql_fetch_array( $buddyrow ) ) {
|
|||
if ( $u["ally_id"] != 0 ) { // Alianza
|
||||
// $allyrow = doquery("SELECT id,ally_tag FROM {{table}} WHERE id=".$u["ally_id"],"alliance",true);
|
||||
// if($allyrow){
|
||||
$UserAlly .= "<a href=alliance.php?mode=ainfo&a=" . $u["id"] . ">" . $u["ally_name"] . "</a>";
|
||||
$UserAlly = "<a href=alliance.php?mode=ainfo&a=" . $u["ally_id"] . ">" . $u["ally_name"] . "</a>";
|
||||
// }
|
||||
} else {
|
||||
$UserAlly ="";
|
||||
}
|
||||
|
||||
if ( isset( $a ) ) {
|
||||
|
|
@ -226,5 +228,4 @@ $page .= "
|
|||
</center>";
|
||||
|
||||
display ( $page, $lang['Buddy_list'], false );
|
||||
// Created by Perberos. All rights reversed (C) 2006
|
||||
?>
|
||||
|
|
|
|||
157
buildings.php
157
buildings.php
|
|
@ -36,32 +36,143 @@ includeLang('buildings');
|
|||
|
||||
$user = Legacies_Empire_Model_User::getSingleton();
|
||||
$planet = $user->getCurrentPlanet();
|
||||
$mode = isset($_GET['mode']) ? $_GET['mode'] : null;
|
||||
|
||||
switch ($_GET['mode']) {
|
||||
case 'fleet':
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
FleetBuildingPage($planet, $user);
|
||||
break;
|
||||
switch ($mode) {
|
||||
case 'fleet':
|
||||
if ($planet->getElement(Legacies_Empire::ID_BUILDING_SHIPYARD) === null) {
|
||||
$layout = new Legacies_Core_Layout();
|
||||
$layout->load('message');
|
||||
|
||||
case 'research':
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
ResearchBuildingPage($planet, $user, $IsWorking['OnWork'], $IsWorking['WorkOn'] );
|
||||
break;
|
||||
$block = $layout->getBlock('message');
|
||||
$block['title'] = Legacies::__('Shipyard is required');
|
||||
$block['message'] = Legacies::__('In order to build ships you will need to build a shipyard building.');
|
||||
|
||||
case 'defense':
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
DefensesBuildingPage($planet, $user);
|
||||
break;
|
||||
$layout->render();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
BatimentBuildingPage($planet, $user);
|
||||
break;
|
||||
/** @var Legacies_Empire_Model_Planet_Building_Shipyard $shipyard */
|
||||
$shipyard = $planet->getShipyard();
|
||||
if (isset($_POST['ship']) && is_array($_POST['ship'])) {
|
||||
foreach ($_POST['ship'] as $shipId => $count) {
|
||||
$shipId = intval($shipId);
|
||||
$count = intval($count);
|
||||
|
||||
$shipyard->appendQueue($shipId, $count);
|
||||
}
|
||||
$planet->save();
|
||||
}
|
||||
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
$layout = new Legacies_Core_Layout();
|
||||
$layout->load('planet.shipyard');
|
||||
|
||||
/** @var Legacies_Core_Block_Concat $parentBlock */
|
||||
$parentBlock = $layout->getBlock('item-list.items');
|
||||
foreach ($types->getData(Legacies_Empire::TYPE_SHIP) as $shipId) {
|
||||
if (!$shipyard->checkAvailability($shipId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$blockName = "ship({$shipId})";
|
||||
$block = $layout->createBlock('empire/planet.shipyard.item', $blockName);
|
||||
$block->setTemplate('empire/planet/shipyard/item.phtml');
|
||||
$block->setPlanet($planet);
|
||||
$block->setItemId($shipId);
|
||||
|
||||
$parentBlock->setPartial($blockName, $block);
|
||||
}
|
||||
|
||||
echo $layout->render();
|
||||
break;
|
||||
|
||||
case 'research':
|
||||
// --------------------------------------------------------------------------------------------------
|
||||
ResearchBuildingPage($planet, $user, $IsWorking['OnWork'], $IsWorking['WorkOn'] );
|
||||
break;
|
||||
|
||||
case 'defense':
|
||||
if ($planet->getElement(Legacies_Empire::ID_BUILDING_SHIPYARD) === null) {
|
||||
$layout = new Legacies_Core_Layout();
|
||||
$layout->load('message');
|
||||
|
||||
$block = $layout->getBlock('message');
|
||||
$block['title'] = Legacies::__('Shipyard is required');
|
||||
$block['title'] = Legacies::__('In order to build ships you will need to build a shipyard building.');
|
||||
|
||||
$layout->render();
|
||||
break;
|
||||
}
|
||||
|
||||
/** @var Legacies_Empire_Model_Planet_Building_Shipyard $shipyard */
|
||||
$shipyard = $planet->getShipyard();
|
||||
if (isset($_POST['defense']) && is_array($_POST['defense'])) {
|
||||
foreach ($_POST['defense'] as $defenseId => $count) {
|
||||
$defenseId = intval($defenseId);
|
||||
$count = intval($count);
|
||||
|
||||
$shipyard->appendQueue($defenseId, $count);
|
||||
}
|
||||
$planet->save();
|
||||
}
|
||||
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
$layout = new Legacies_Core_Layout();
|
||||
$layout->load('planet.shipyard');
|
||||
|
||||
/** @var Legacies_Core_Block_Concat $parentBlock */
|
||||
$parentBlock = $layout->getBlock('item-list.items');
|
||||
foreach ($types->getData(Legacies_Empire::TYPE_DEFENSE) as $defenseId) {
|
||||
if (!$shipyard->checkAvailability($defenseId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$blockName = "defense({$defenseId})";
|
||||
$block = $layout->createBlock('empire/planet.shipyard.item', $blockName);
|
||||
$block->setTemplate('empire/planet/shipyard/item.phtml');
|
||||
$block->setPlanet($planet);
|
||||
$block->setItemId($defenseId);
|
||||
|
||||
$parentBlock->setPartial($blockName, $block);
|
||||
}
|
||||
|
||||
echo $layout->render();
|
||||
break;
|
||||
|
||||
default:
|
||||
if (isset($_GET['building']) && !empty($_GET['building'])) {
|
||||
$buildingId = intval($_GET['building']);
|
||||
|
||||
$planet->appendBuildingQueue($shipId, isset($_GET['destroy']));
|
||||
$planet->save();
|
||||
}
|
||||
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
$layout = new Legacies_Core_Layout();
|
||||
$layout->load('planet.buildings');
|
||||
|
||||
/** @var Legacies_Core_Block_Concat $parentBlock */
|
||||
$parentBlock = $layout->getBlock('item-list.items');
|
||||
$type = Legacies_Empire::TYPE_BUILDING_PLANET;
|
||||
if ($planet->isMoon()) {
|
||||
$type = Legacies_Empire::TYPE_BUILDING_MOON;
|
||||
}
|
||||
foreach ($types->getData($type) as $buildingId) {
|
||||
if (!$planet->checkAvailability($buildingId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$blockName = "building({$buildingId})";
|
||||
$block = $layout->createBlock('empire/planet.buildings.item', $blockName);
|
||||
$block->setTemplate('empire/planet/buildings/item.phtml');
|
||||
$block->setPlanet($planet);
|
||||
$block->setItemId($buildingId);
|
||||
|
||||
$parentBlock->setPartial($blockName, $block);
|
||||
}
|
||||
|
||||
echo $layout->render();
|
||||
break;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
// History version
|
||||
// 1.0 - Nettoyage modularisation
|
||||
// 1.1 - Mise au point, mise en fonction pour lin<69>arisation du fonctionnement
|
||||
// 1.2 - Liste de construction batiments
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -53,5 +53,4 @@ $page .= parsetemplate(gettemplate('changelog_body'), $parse);
|
|||
|
||||
display($page,"Change Log");
|
||||
|
||||
// Created by Perberos. All rights reversed (C) 2006
|
||||
?>
|
||||
|
|
@ -55,7 +55,5 @@ require_once dirname(__FILE__) .'/common.php';
|
|||
display($page, $lang['ctc_title'], false);
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
// History version
|
||||
// 1.0 - Mise au propre (Virer tout ce qui ne sert pas a une prise de contact en fait)
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -282,6 +282,4 @@ require_once dirname(__FILE__) .'/common.php';
|
|||
|
||||
display($page, $lang['fl_title']);
|
||||
|
||||
// Updated by Chlorel. 16 Jan 2008 (String extraction, bug corrections, code uniformisation
|
||||
// Created by Perberos. All rights reversed (C) 2006
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,32 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of XNova:Legacies
|
||||
*
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.txt
|
||||
* @see http://www.xnova-ng.org/
|
||||
*
|
||||
* Copyright (c) 2009-Present, XNova Support Team <http://www.xnova-ng.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* --> NOTICE <--
|
||||
* This file is part of the core development branch, changing its contents will
|
||||
* make you unable to use the automatic updates manager. Please refer to the
|
||||
* documentation for further information about customizing XNova.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
|
||||
Galacticnova : An open-source web-based game !
|
||||
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
License: AGPL
|
||||
Author: Vincent Debarre <vinilox@vinilox.eu>
|
||||
Website: http://project.galacticnova.vinilox.eu/
|
||||
Last revision: 13/07/11
|
||||
|
||||
*/
|
||||
|
||||
define('INSIDE' , true);
|
||||
define('INSTALL' , false);
|
||||
|
|
@ -43,10 +26,10 @@ require_once dirname(__FILE__) .'/common.php';
|
|||
$i = 0;
|
||||
|
||||
if ($FleetRow['fleet_owner'] == $user['id']) {
|
||||
if ($FleetRow['fleet_mess'] == 0) {
|
||||
if ($FleetRow['fleet_mess'] == 0 || $FleetRow['fleet_mess'] == 2) {
|
||||
if ($FleetRow['fleet_end_stay'] != 0) {
|
||||
// Faut calculer le temps reel de retour
|
||||
if ($FleetRow['fleet_start_time'] < time()) {
|
||||
if ($FleetRow['fleet_start_time'] > time()) {
|
||||
// On a pas encore entamé le stationnement
|
||||
// Il faut calculer la parcelle de temps ecoulée depuis le lancement de la flotte
|
||||
$CurrentFlyingTime = time() - $FleetRow['start_time'];
|
||||
|
|
@ -87,11 +70,4 @@ require_once dirname(__FILE__) .'/common.php';
|
|||
message ("<font color=\"".$TxtColor."\">". $BoxMessage ."</font>", $BoxTitle, "fleet.". PHPEXT, 2);
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------------
|
||||
// History version
|
||||
// Updated by Chlorel. 22 Jan 2008 (String extraction, bug corrections, code uniformisation
|
||||
// Created by DxPpLmOs. All rights reversed (C) 2007
|
||||
// Updated by -= MoF =- for Deutsches Ugamela Forum
|
||||
// 06.12.2007 - 08:41
|
||||
// Open Source
|
||||
// (c) by MoF
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -278,6 +278,4 @@ require_once dirname(__FILE__) .'/common.php';
|
|||
|
||||
display($page, $lang['fl_title']);
|
||||
|
||||
// Updated by Chlorel. 16 Jan 2008 (String extraction, bug corrections, code uniformisation)
|
||||
// Created by Perberos. All rights reversed (C) 2006
|
||||
?>
|
||||
|
|
@ -113,5 +113,5 @@ foreach ($reslist['defense'] as $a => $i) {
|
|||
$page .= parsetemplate(gettemplate('imperium_table'), $parse);
|
||||
|
||||
display($page, $lang['Imperium'], false);
|
||||
// Created by Perberos. All rights reserved (C) 2006
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
|
||||
class Legacies_Empire_Block_Planet_Buildings_Item
|
||||
extends Legacies_Core_Block_Template
|
||||
{
|
||||
protected $_planet = null;
|
||||
protected $_itemId = null;
|
||||
|
||||
public function setPlanet(Legacies_Empire_Model_Planet $planet)
|
||||
{
|
||||
$this->_planet = $planet;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPlanet()
|
||||
{
|
||||
return $this->_planet;
|
||||
}
|
||||
|
||||
public function setItemId($itemId)
|
||||
{
|
||||
$this->_itemId = $itemId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getItemId()
|
||||
{
|
||||
return $this->_itemId;
|
||||
}
|
||||
|
||||
public function getItemInfoUrl()
|
||||
{
|
||||
return $this->getUrl('infos.php', array('gid' => $this->getItemId()));
|
||||
}
|
||||
|
||||
public function getItemImageUrl()
|
||||
{
|
||||
return $this->getSkinUrl('graphics/gebaeude/' . $this->getItemId() . '.gif');
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('tech');
|
||||
}
|
||||
|
||||
if (isset($lang['tech']) && isset($lang['tech'][$this->getItemId()])) {
|
||||
return $this->__($lang['tech'][$this->getItemId()]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('tech');
|
||||
}
|
||||
|
||||
if (isset($lang['res']) && isset($lang['res']['descriptions']) && isset($lang['res']['descriptions'][$this->getItemId()])) {
|
||||
return $this->__($lang['res']['descriptions'][$this->getItemId()]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getResourceName($resourceId)
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('imperium');
|
||||
}
|
||||
if ($resourceId == 'cristal') {
|
||||
$resourceId = 'crystal';
|
||||
}
|
||||
|
||||
if (isset($lang[$resourceId])) {
|
||||
return $this->__($lang[$resourceId]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getLevel()
|
||||
{
|
||||
return $this->_planet->getElement($this->getItemId());
|
||||
}
|
||||
|
||||
public function getResourcesNeeded()
|
||||
{
|
||||
return $this->_planet->getResourcesNeeded($this->getItemId(), 1);
|
||||
}
|
||||
|
||||
public function getItemTime()
|
||||
{
|
||||
return $this->_planet->getBuildingTime($this->getItemId(), 1);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
<?php
|
||||
|
||||
class Legacies_Empire_Block_Planet_Shipyard_Item
|
||||
extends Legacies_Core_Block_Template
|
||||
{
|
||||
protected $_planet = null;
|
||||
protected $_shipyard = null;
|
||||
protected $_itemId = null;
|
||||
|
||||
public function setPlanet(Legacies_Empire_Model_Planet $planet)
|
||||
{
|
||||
$this->_planet = $planet;
|
||||
$this->_shipyard = $this->_planet->getShipyard();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPlanet()
|
||||
{
|
||||
return $this->_planet;
|
||||
}
|
||||
|
||||
public function setItemId($shipId)
|
||||
{
|
||||
$this->_itemId = $shipId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getItemId()
|
||||
{
|
||||
return $this->_itemId;
|
||||
}
|
||||
|
||||
public function getItemInfoUrl()
|
||||
{
|
||||
return $this->getUrl('infos.php', array('gid' => $this->getItemId()));
|
||||
}
|
||||
|
||||
public function getItemImageUrl()
|
||||
{
|
||||
return $this->getSkinUrl('graphics/gebaeude/' . $this->getItemId() . '.gif');
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('tech');
|
||||
}
|
||||
|
||||
if (isset($lang['tech']) && isset($lang['tech'][$this->getItemId()])) {
|
||||
return $this->__($lang['tech'][$this->getItemId()]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('tech');
|
||||
}
|
||||
|
||||
if (isset($lang['res']) && isset($lang['res']['descriptions']) && isset($lang['res']['descriptions'][$this->getItemId()])) {
|
||||
return $this->__($lang['res']['descriptions'][$this->getItemId()]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getResourceName($resourceId)
|
||||
{
|
||||
static $lang = null;
|
||||
if ($lang === null) {
|
||||
// FIXME: implement a cleaner way to get names
|
||||
$lang = includeLang('imperium');
|
||||
}
|
||||
if ($resourceId == 'cristal') {
|
||||
$resourceId = 'crystal';
|
||||
}
|
||||
|
||||
if (isset($lang[$resourceId])) {
|
||||
return $this->__($lang[$resourceId]);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getQty()
|
||||
{
|
||||
return $this->_planet->getElement($this->getItemId());
|
||||
}
|
||||
|
||||
public function getResourcesNeeded()
|
||||
{
|
||||
return $this->_shipyard->getResourcesNeeded($this->getItemId(), 1);
|
||||
}
|
||||
|
||||
public function getBuildingTime()
|
||||
{
|
||||
return $this->_shipyard->getBuildingTime($this->getItemId(), 1);
|
||||
}
|
||||
|
||||
public function getMaximumBuildableElementsCount()
|
||||
{
|
||||
return $this->_shipyard->getMaximumBuildableElementsCount($this->getItemId());
|
||||
}
|
||||
}
|
||||
|
|
@ -218,4 +218,16 @@ abstract class Legacies_Empire_Model_BuilderAbstract
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function _calculateResourceRemainingAmounts($resourceNeeded)
|
||||
{
|
||||
$resourceAmounts = array();
|
||||
foreach ($resourcesNeeded as $resourceId => $resourceAmount) {
|
||||
$resourceAmounts[$resourceId] = Math::sub($this->_currentPlanet[$resourceId], $resourceAmount);
|
||||
if (Math::isNegative($resourceAmounts[$resourceId])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return $resourceAmounts;
|
||||
}
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ class Legacies_Empire_Model_Planet
|
|||
protected $_shipyard = null;
|
||||
|
||||
/**
|
||||
* @var Legacies_Empire_Model_Planet_Building_Laboratory
|
||||
* @var Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
protected $_laboratory = null;
|
||||
|
||||
|
|
@ -393,15 +393,15 @@ class Legacies_Empire_Model_Planet
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getLaboratory()
|
||||
public function getResearchLab()
|
||||
{
|
||||
if ($this->_laboratory === null) {
|
||||
$this->_laboratory = new Legacies_Empire_Model_Planet_Building_Laboratory($this, $this->getUser());
|
||||
$this->_laboratory = new Legacies_Empire_Model_Planet_Building_ResearchLab($this, $this->getUser());
|
||||
}
|
||||
return $this->_laboratory;
|
||||
}
|
||||
|
||||
public function setLaboratory(Legacies_Empire_Model_Planet_Building_Laboratory $laboratory)
|
||||
public function setResearchLab(Legacies_Empire_Model_Planet_Building_ResearchLab $laboratory)
|
||||
{
|
||||
$this->_laboratory = $laboratory;
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,11 @@ class Legacies_Empire_Model_Planet_Builder
|
|||
return $this->checkAvailability($buildingId);
|
||||
}
|
||||
|
||||
public function getBuildingTime($buildingId, $level)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function getResourcesNeeded($buildingId, $level)
|
||||
{
|
||||
$prices = Legacies_Empire_Model_Game_Prices::getSingleton();
|
||||
|
|
@ -68,11 +73,6 @@ class Legacies_Empire_Model_Planet_Builder
|
|||
return $resourcesNeeded;
|
||||
}
|
||||
|
||||
public function getBuildingTime($buildingId, $level)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the contruction queue.
|
||||
*
|
||||
|
|
@ -143,27 +143,18 @@ class Legacies_Empire_Model_Planet_Builder
|
|||
}
|
||||
|
||||
$resourcesNeeded = $this->getResourcesNeeded($buildingId, $level);
|
||||
|
||||
$amounts = array();
|
||||
foreach ($resourcesNeeded as $resourceId => $resourceCost) {
|
||||
$amount[$resourceId] = Math::sub($this->_currentPlanet[$resourceId], $resourceCost);
|
||||
|
||||
if (Math::isNegative($amount[$resourceId])) {
|
||||
return $this;
|
||||
}
|
||||
$remainingAmounts = $this->_calculateResourceRemainingAmounts($resourcesNeeded);
|
||||
if ($remainingAmounts === false) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->enqueue($buildingId, $level, $time);
|
||||
|
||||
foreach ($resourcesNeeded as $resourceId => $resourceCost) {
|
||||
if (!isset($resources[$resourceId]) || !Math::isPositive($resourceCost)) {
|
||||
continue;
|
||||
}
|
||||
$this->_currentPlanet->setData($resourceId, $resourceId[$resourceId]);
|
||||
}
|
||||
|
||||
$this->_currentPlanet->setData('b_building_id', $this->serialize());
|
||||
|
||||
foreach ($remainingAmounts as $resourceId => $resourceAmount) {
|
||||
$this->_currentPlanet[$resourceId] = $resourceAmount;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,256 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of XNova:Legacies
|
||||
*
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.txt
|
||||
* @see http://www.xnova-ng.org/
|
||||
*
|
||||
* Copyright (c) 2009-Present, XNova Support Team <http://www.xnova-ng.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* --> NOTICE <--
|
||||
* This file is part of the core development branch, changing its contents will
|
||||
* make you unable to use the automatic updates manager. Please refer to the
|
||||
* documentation for further information about customizing XNova.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Research lab building, manages researches queue on each planet
|
||||
*
|
||||
* @access public
|
||||
* @category Empire
|
||||
* @category Planet
|
||||
* @package Legacies
|
||||
* @subpackage Legacies_Empire
|
||||
*/
|
||||
class Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
implements Legacies_Empire_Model_Planet_BuildingInterface
|
||||
{
|
||||
private $_eventPrefix = 'planet.laboratory.';
|
||||
|
||||
/**
|
||||
* Planet instance
|
||||
* @var Legacies_Empire_Model_Planet
|
||||
*/
|
||||
protected $_currentPlanet = null;
|
||||
|
||||
/**
|
||||
* User instance
|
||||
* @var Legacies_Empire_Model_User
|
||||
*/
|
||||
protected $_currentUser = null;
|
||||
|
||||
/**
|
||||
* construction queue
|
||||
* @var array
|
||||
*/
|
||||
protected $_builder = null;
|
||||
|
||||
/**
|
||||
* Multiton instances
|
||||
* @var array
|
||||
*/
|
||||
protected static $_instances = array();
|
||||
|
||||
/**
|
||||
* Multiton factory. Retruns the planet's research lab instance or created it if
|
||||
* it doesn't yet exist.
|
||||
*
|
||||
* @param Legacies_Empire_Model_Planet $currentPlanet
|
||||
* @param Legacies_Empire_Model_User $currentUser
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public static function factory($currentPlanet, $currentUser)
|
||||
{
|
||||
if ($currentPlanet->getId()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!isset(self::$_instances[$currentPlanet->getId()])) {
|
||||
self::$_instances[$currentPlanet->getId()] = new self($currentPlanet, $currentUser);
|
||||
}
|
||||
return self::$_instances[$currentPlanet->getId()];
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor. Used for specific usage, use the factory for standard usage.
|
||||
*
|
||||
* @see Legacies_Empire_Model_Planet_Building_ResearchLab::factory()
|
||||
*
|
||||
* @param Legacies_Empire_Model_Planet $currentPlanet
|
||||
* @param Legacies_Empire_Model_User $currentUser
|
||||
*/
|
||||
public function __construct($currentPlanet, $currentUser)
|
||||
{
|
||||
$this->_currentPlanet = $currentPlanet;
|
||||
$this->_currentUser = $currentUser;
|
||||
|
||||
$this->_builder = new Legacies_Empire_Model_Planet_Building_ResearchLab_Builder($currentPlanet, $currentUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public function save()
|
||||
{
|
||||
$this->_currentPlanet->save();
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append items to build to the construction list
|
||||
*
|
||||
* @param int $researchId
|
||||
* @param int|string $level
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public function appendQueue($researchId, $destroy = false, $time = null)
|
||||
{
|
||||
if ($time === null) {
|
||||
$time = Legacies::now();
|
||||
}
|
||||
|
||||
if ($destroy === false) {
|
||||
$level = $this->_currentUser->getElement($researchId) + 1;
|
||||
} else {
|
||||
$level = max($this->_currentUser->getElement($researchId) - 1, 0);
|
||||
}
|
||||
|
||||
// Dispatch event
|
||||
Legacies::dispatchEvent($this->_eventPrefix . 'append-queue.before', array(
|
||||
'research_id' => $researchId,
|
||||
'level' => &$level,
|
||||
'time' => &$time,
|
||||
'laboratory' => $this,
|
||||
'planet' => $this->_currentPlanet,
|
||||
'user' => $this->_currentUser
|
||||
));
|
||||
|
||||
$this->_builder->appendQueue($researchId, $level, $time);
|
||||
|
||||
// Dispatch event
|
||||
Legacies::dispatchEvent($this->_eventPrefix . 'append-queue.after', array(
|
||||
'research_id' => $researchId,
|
||||
'level' => $level,
|
||||
'time' => $time,
|
||||
'laboratory' => $this,
|
||||
'planet' => $this->_currentPlanet,
|
||||
'user' => $this->_currentUser
|
||||
));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the contruction queue.
|
||||
*
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public function updateQueue($time = null)
|
||||
{
|
||||
if ($time === null) {
|
||||
$time = Legacies::now();
|
||||
}
|
||||
|
||||
// Dispatch event
|
||||
Legacies::dispatchEvent($this->_eventPrefix . 'update-queue.before', array(
|
||||
'time' => &$time,
|
||||
'laboratory' => $this,
|
||||
'planet' => $this->_currentPlanet,
|
||||
'user' => $this->_currentUser
|
||||
));
|
||||
|
||||
$this->_builder->updateQueue($time);
|
||||
|
||||
// Dispatch event
|
||||
Legacies::dispatchEvent($this->_eventPrefix . 'update-queue.after', array(
|
||||
'time' => $time,
|
||||
'laboratory' => $this,
|
||||
'planet' => $this->_currentPlanet,
|
||||
'user' => $this->_currentUser
|
||||
));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the construction queue
|
||||
* @see Legacies_Empire_Model_Planet_Building_ResearchLab_Builder
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getBuilder()
|
||||
{
|
||||
return $this->_builder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a ship or defense type is actually buildable on the current
|
||||
* planet, depending on the technology and buildings requirements.
|
||||
*
|
||||
* @param int $resourceId
|
||||
* @return bool
|
||||
*/
|
||||
public function checkAvailability($resourceId)
|
||||
{
|
||||
try {
|
||||
// Dispatch event
|
||||
Legacies::dispatchEvent($this->_eventPrefix . 'check-availability', array(
|
||||
'research_id' => $resourceId,
|
||||
'laboratory' => $this,
|
||||
'planet' => $this->_currentPlanet,
|
||||
'user' => $this->_currentUser
|
||||
));
|
||||
} catch (Legacies_Core_Event_Break $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->_builder->checkAvailability($resourceId);
|
||||
}
|
||||
|
||||
public function getResourcesNeeded($resourceId, $level)
|
||||
{
|
||||
return $this->_builder->getResourcesNeeded($resourceId, $level);
|
||||
}
|
||||
|
||||
public function getBuildingTime($resourceId, $level)
|
||||
{
|
||||
$this->_builder->getBuildingTime($resourceId, $level);
|
||||
}
|
||||
|
||||
public static function planetUpdateListener($eventData)
|
||||
{
|
||||
if (isset($eventData['planet'])) {
|
||||
$planet = $eventData['planet'];
|
||||
|
||||
if ($planet === null || !$planet instanceof Legacies_Empire_Model_Planet || !$planet->getId()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$time = null;
|
||||
if (isset($eventData['time'])) {
|
||||
$time = $eventData['time'];
|
||||
}
|
||||
|
||||
$shipyard = $planet->getResearchLab();
|
||||
if ($shipyard !== null) {
|
||||
$shipyard->updateQueue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,206 @@
|
|||
<?php
|
||||
|
||||
class Legacies_Empire_Model_Planet_Building_ResearchLab_Builder
|
||||
extends Legacies_Empire_Model_BuilderAbstract
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $_maxLength = 0;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_unserializeQueue($this->_currentUser->getData('b_laboratory_id'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $buildingId
|
||||
* @param int $level
|
||||
* @param int $time
|
||||
*/
|
||||
public function _initItem()
|
||||
{
|
||||
$technologyId = func_get_arg(0);
|
||||
$level = func_get_arg(1);
|
||||
$time = func_get_arg(2);
|
||||
|
||||
return new Legacies_Empire_Model_Planet_Building_ResearchLab_Item(array(
|
||||
'technology_id' => $technologyId,
|
||||
'level' => $level,
|
||||
'created_at' => $time,
|
||||
'updated_at' => $time
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a technology type is actually buildable on the current
|
||||
* planet, depending on the technology and buildings requirements.
|
||||
*
|
||||
* @param int $technologyId
|
||||
* @return bool
|
||||
*/
|
||||
public function checkAvailability($technologyId)
|
||||
{
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
|
||||
if (!$types->is($technologyId, Legacies_Empire::TYPE_RESEARCH)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
parent::checkAvailability($technologyId);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the time needed to build $level of $technologyId
|
||||
*
|
||||
* @param int $technologyId
|
||||
* @param int $level
|
||||
*/
|
||||
public function getBuildingTime($technologyId, $level)
|
||||
{
|
||||
$prices = Legacies_Empire_Model_Game_Prices::getSingleton();
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
$gameConfig = Legacies_Core_Model_Config::getSingleton();
|
||||
|
||||
Math::setPrecision(50);
|
||||
|
||||
// FIXME: Resource dependency
|
||||
$totalCost = Math::mul(Math::add($prices[$technologyId][Legacies_Empire::RESOURCE_METAL], $prices[$technologyId][Legacies_Empire::RESOURCE_CRISTAL]), $level);
|
||||
$speedFactor = $gameConfig->getData('game_speed');
|
||||
|
||||
// FIXME: Building & Technology dependency
|
||||
$extraLaboratoriesLevels = 0;
|
||||
$researchNetworkLevel = $this->_currentUser->getElement(Legacies_Empire::ID_RESEARCH_INTERGALACTIC_RESEARCH_NETWORK);
|
||||
if ($researchNetworkLevel > 0) {
|
||||
$laboratoriesLevels = array();
|
||||
foreach ($this->_currentUser->getPlanetCollection() as $planet) {
|
||||
if ($this->_currentPlanet->getId() == $planet->getId()) {
|
||||
continue;
|
||||
}
|
||||
$level = $planet->getElement(Legacies_Empire::ID_BUILDING_RESEARCH_LAB);
|
||||
if ($level > 0) {
|
||||
$laboratoriesLevels[] = (int) $level;
|
||||
}
|
||||
}
|
||||
sort($laboratoriesLevels, SORT_NUMERIC);
|
||||
$extraLaboratoriesLevels = array_sum(array_slice(array_reverse($laboratoriesLevels), 0, $researchNetworkLevel));
|
||||
}
|
||||
|
||||
$laboratorySpeedup = Math::div($totalCost, ($this->_currentPlanet->getElement(Legacies_Empire::ID_BUILDING_RESEARCH_LAB) + 1 + $extraLaboratoriesLevels));
|
||||
|
||||
Math::setPrecision();
|
||||
|
||||
$baseTime = ($totalCost / $speedFactor) * $laboratorySpeedup;
|
||||
|
||||
return (int) Math::floor($baseTime * 3600);
|
||||
}
|
||||
|
||||
/**
|
||||
* (non-PHPdoc)
|
||||
* @see Legacies_Empire_Model_BuilderAbstract::getResourcesNeeded()
|
||||
*/
|
||||
public function getResourcesNeeded($technologyId, $level)
|
||||
{
|
||||
$prices = Legacies_Empire_Model_Game_Prices::getSingleton();
|
||||
$resources = Legacies_Empire_Model_Game_Resources::getSingleton();
|
||||
|
||||
if (!isset($prices[$technologyId])) {
|
||||
return array();
|
||||
}
|
||||
$resourcesNeeded = array();
|
||||
foreach ($resources as $resourceId => $resourceConfig) {
|
||||
if (!isset($prices[$technologyId][$resourceId])) {
|
||||
continue;
|
||||
}
|
||||
if (Math::isPositive($prices[$technologyId][$resourceId])) {
|
||||
$firstLevelCost = $prices[$technologyId][$resourceId];
|
||||
$partialLevelCost = Math::mul($firstLevelCost, Math::pow($prices[$technologyId][Legacies_Empire::RESOURCE_MULTIPLIER], $level));
|
||||
$resourcesNeeded[$resourceId] = Math::sub($partialLevelCost, $firstLevelCost);
|
||||
}
|
||||
}
|
||||
|
||||
return $resourcesNeeded;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the contruction queue.
|
||||
*
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public function updateQueue($time)
|
||||
{
|
||||
$fields = Legacies_Empire_Model_Game_FieldsAlias::getSingleton();
|
||||
|
||||
$elapsedTime = $time - $this->_currentUser->getData('b_laboratory');
|
||||
|
||||
foreach ($this->getQueue() as $element) {
|
||||
$technologyId = $element->getData('research_id');
|
||||
$level = $element->getData('level');
|
||||
$buildTime = $this->getBuildingTime($technologyId, $level);
|
||||
|
||||
if ($elapsedTime >= $buildTime) {
|
||||
$this->_currentUser[$fields[$technologyId]] = Math::add($this->_currentUser[$fields[$technologyId]], $level);
|
||||
$elapsedTime -= $buildTime;
|
||||
$this->dequeue($element);
|
||||
continue;
|
||||
}
|
||||
|
||||
$timeRatio = $elapsedTime / $buildTime;
|
||||
$itemsBuilt = Math::mul($timeRatio, $level);
|
||||
|
||||
$element->setData('updated_at', $time);
|
||||
$element->setData('level', Math::sub($level, $itemsBuilt));
|
||||
$this->_currentUser->setData($fields[$technologyId], Math::add($this->_currentUser->getData($fields[$technologyId]), $itemsBuilt));
|
||||
break;
|
||||
}
|
||||
|
||||
$this->_currentUser->setData('b_laboratory_id', $this->serialize());
|
||||
$this->_currentUser->setData('b_laboratory', $time);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Append items to build to the construction list
|
||||
*
|
||||
* @param int $technologyId
|
||||
* @param int|string $level
|
||||
* @return Legacies_Empire_Model_Planet_Building_ResearchLab
|
||||
*/
|
||||
public function appendQueue($technologyId, $level, $time)
|
||||
{
|
||||
if ($this->_maxLength > 0 && $this->count() >= $this->_maxLength) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!Math::isPositive($level)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
if (!$types->is($technologyId, Legacies_Empire::TYPE_RESEARCH)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->checkAvailability($technologyId)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$resourcesNeeded = $this->getResourcesNeeded($technologyId, $level);
|
||||
$remainingAmounts = $this->_calculateResourceRemainingAmounts($resourcesNeeded);
|
||||
if ($remainingAmounts === false) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->enqueue($technologyId, $level, $time);
|
||||
$this->_currentUser->setData('b_laboratory_id', $this->serialize());
|
||||
|
||||
foreach ($remainingAmounts as $resourceId => $resourceAmount) {
|
||||
$this->_currentPlanet[$resourceId] = $resourceAmount;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
};
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
class Legacies_Empire_Model_Planet_Building_ResearchLab_Item
|
||||
extends Legacies_Empire_Model_Builder_Item
|
||||
{
|
||||
}
|
||||
|
|
@ -3,6 +3,11 @@
|
|||
class Legacies_Empire_Model_Planet_Building_Shipyard_Builder
|
||||
extends Legacies_Empire_Model_BuilderAbstract
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $_maxLength = 0;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_unserializeQueue($this->_currentPlanet->getData('b_hangar_id'));
|
||||
|
|
@ -250,13 +255,15 @@ class Legacies_Empire_Model_Planet_Building_Shipyard_Builder
|
|||
*/
|
||||
public function appendQueue($shipId, $qty, $time)
|
||||
{
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
$resources = Legacies_Empire_Model_Game_Resources::getSingleton();
|
||||
if ($this->_maxLength > 0 && $this->count() >= $this->_maxLength) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!Math::isPositive($qty)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$types = Legacies_Empire_Model_Game_Types::getSingleton();
|
||||
if (!$types->is($shipId, Legacies_Empire::TYPE_SHIP) && !$types->is($shipId, Legacies_Empire::TYPE_DEFENSE)) {
|
||||
return $this;
|
||||
}
|
||||
|
|
@ -276,19 +283,18 @@ class Legacies_Empire_Model_Planet_Building_Shipyard_Builder
|
|||
}
|
||||
|
||||
$resourcesNeeded = $this->getResourcesNeeded($shipId, $qty);
|
||||
$buildTime = $this->getBuildingTime($shipId, $qty);
|
||||
|
||||
$this->enqueue($shipId, $qty, $time);
|
||||
|
||||
foreach ($resources as $resourceId => $resourceConfig) {
|
||||
if (!isset($resourcesNeeded[$resourceId])) {
|
||||
continue;
|
||||
}
|
||||
$this->_currentPlanet[$resourceId] = Math::sub($this->_currentPlanet[$resourceId], $resourcesNeeded[$resourceId]);
|
||||
$remainingAmounts = $this->_calculateResourceRemainingAmounts($resourcesNeeded);
|
||||
if ($remainingAmounts === false) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->enqueue($shipId, $qty, $time);
|
||||
$this->_currentPlanet->setData('b_hangar_id', $this->serialize());
|
||||
|
||||
foreach ($remainingAmounts as $resourceId => $resourceAmount) {
|
||||
$this->_currentPlanet[$resourceId] = $resourceAmount;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
@ -42,5 +42,59 @@
|
|||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'planet.buildings' => array(
|
||||
'update' => '1column',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'topnav' => array(
|
||||
'type' => 'empire/topnav',
|
||||
'template' => 'empire/topnav.phtml',
|
||||
),
|
||||
'queue' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'empire/planet/buildings/queue.phtml'
|
||||
),
|
||||
'item-list' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'empire/planet/buildings.phtml',
|
||||
'children' => array(
|
||||
'item-list.items' => array(
|
||||
'type' => 'core/concat'
|
||||
),
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'planet.shipyard' => array(
|
||||
'update' => '1column',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'topnav' => array(
|
||||
'type' => 'empire/topnav',
|
||||
'template' => 'empire/topnav.phtml',
|
||||
),
|
||||
'item-list' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'empire/planet/shipyard.phtml',
|
||||
'children' => array(
|
||||
'item-list.items' => array(
|
||||
'type' => 'core/concat'
|
||||
),
|
||||
)
|
||||
),
|
||||
'queue' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'empire/planet/shipyard/queue.phtml'
|
||||
),
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -117,4 +117,18 @@
|
|||
)
|
||||
)
|
||||
),
|
||||
|
||||
'message' => array(
|
||||
'update' => 'default',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'message' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'page/html/message.phtml'
|
||||
),
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<th>Raison du multicompte</td>
|
||||
<th><input name="reason" type="text" value="0" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input type="Submit" value="{adm_am_add}" /></th>
|
||||
<th colspan="2"><input type="Submit" value="<?php echo $this->getData('adm_am_add')?>" /></th>
|
||||
</tbody>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_pl_title')?></h2>
|
||||
<table width="519">
|
||||
<tr><td class="c" colspan="4"><?php echo $this->getData('adm_pl_activ')?></td></tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('adm_pl_name')?></th>
|
||||
<th><?php echo $this->getData('adm_pl_posit')?></th>
|
||||
<th><?php echo $this->getData('adm_pl_point')?></th>
|
||||
<th><?php echo $this->getData('adm_pl_since')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('online_list')?>
|
||||
</table>
|
||||
|
|
@ -1,25 +1,25 @@
|
|||
<br><br>
|
||||
<h2>{adm_am_ttle}</h2>
|
||||
<h2><?php echo $this->getData('adm_am_ttle')?></h2>
|
||||
<form action="add_money.php" method="post">
|
||||
<input type="hidden" name="mode" value="addit">
|
||||
<table width="305">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" colspan="6">{adm_am_form}</td>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_am_form')?></td>
|
||||
</tr><tr>
|
||||
<th width="130">{adm_am_plid}</th>
|
||||
<th width="130"><?php echo $this->getData('adm_am_plid')?></th>
|
||||
<th width="155"><input name="id" type="text" value="0" size="3" /></th>
|
||||
</tr><tr>
|
||||
<th>{Metal}</th>
|
||||
<th><?php echo $this->getData('Metal')?></th>
|
||||
<th><input name="metal" type="text" value="0" /></th>
|
||||
</tr><tr>
|
||||
<th>{Crystal}</td>
|
||||
<th><?php echo $this->getData('Crystal')?></td>
|
||||
<th><input name="cristal" type="text" value="0" /></th>
|
||||
</tr><tr>
|
||||
<th>{Deuterium}</td>
|
||||
<th><?php echo $this->getData('Deuterium')?></td>
|
||||
<th><input name="deut" type="text" value="0" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input type="Submit" value="{adm_am_add}" /></th>
|
||||
<th colspan="2"><input type="Submit" value="<?php echo $this->getData('adm_am_add')?>" /></th>
|
||||
</tbody>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('addm_title')?></h2>
|
||||
<form action="add_moon.php" method="post">
|
||||
<input type="hidden" name="mode" value="addit">
|
||||
<table width="320" border="0" cellspacing="2" cellpadding="0" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('addm_addform')?></td>
|
||||
</tr><tr>
|
||||
<th width="150"><?php echo $this->getData('addm_playerid')?></th>
|
||||
<th width="0%"><input type="text" name="user" size="3"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('addm_moonname')?></th>
|
||||
<th><input type="text" name="name"></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('addm_moondoit')?>"></th>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<br >
|
||||
<table border ="0" align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_panel_mnu')?></td>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_id')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer1')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_name')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer2')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_ip')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer3')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_mail')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer4')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_acc')?></th>
|
||||
<th align="center" class=""><font color="red"><a href""></a><?php echo $this->getData('answer5')?></font></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_gen')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer6')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_main')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer7')?></th>
|
||||
</tr><tr>
|
||||
<th align="center" class=""><?php echo $this->getData('adm_frm1_gpos')?></th>
|
||||
<th align="center" class=""><a href""></a><?php echo $this->getData('answer8')?></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<br >
|
||||
<table border ="0" align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_plyer_wip')?> <?php echo $this->getData('adm_this_ip')?></td>
|
||||
</tr>
|
||||
<?php echo $this->getData('adm_plyer_lst')?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -3,14 +3,14 @@
|
|||
<table width="300">
|
||||
<form action="" method="get">
|
||||
<tr>
|
||||
<td class="c" colspan="6">{adm_search_pl}</td>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_search_pl')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{adm_player_nm}</th>
|
||||
<th><?php echo $this->getData('adm_player_nm')?></th>
|
||||
<th><input type="text" name="player" style="width:150" ></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="submit" value="{adm_bt_search}"></th>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('adm_bt_search')?>"></th>
|
||||
</tr>
|
||||
<input type="hidden" name="result" value="usr_search">
|
||||
</form>
|
||||
|
|
@ -3,14 +3,14 @@
|
|||
<table width="300">
|
||||
<form action="" method="get">
|
||||
<tr>
|
||||
<td class="c" colspan="6">{adm_search_ip}</td>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_search_ip')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{adm_ip}</th>
|
||||
<th><?php echo $this->getData('adm_ip')?></th>
|
||||
<th><input type="text" name="ip" style="width:150" ></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="submit" value="{adm_bt_search}"></th>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('adm_bt_search')?>"></th>
|
||||
</tr>
|
||||
<input type="hidden" name="result" value="ip_search">
|
||||
</form>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<br >
|
||||
<center>
|
||||
<table width="300">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="s" value="<?php echo $this->getData('csrf_hack')?>" />
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_mod_level')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('adm_player_nm')?></th>
|
||||
<th><input type="text" name="player" style="width:150"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><select name="authlvl"><?php echo $this->getData('adm_level_lst')?></select></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('adm_bt_change')?>"></th>
|
||||
</tr>
|
||||
<input type="hidden" name="result" value="usr_level">
|
||||
</form>
|
||||
</table>
|
||||
</center>
|
||||
|
|
@ -3,14 +3,14 @@
|
|||
<table width="300">
|
||||
<form action="" method="get">
|
||||
<tr>
|
||||
<td class="c" colspan="6">{adm_search_pl}</td>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_search_pl')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{adm_player_nm}</th>
|
||||
<th><?php echo $this->getData('adm_player_nm')?></th>
|
||||
<th><input type="text" name="player" style="width:150" ></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="submit" value="{adm_bt_search}"></th>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('adm_bt_search')?>"></th>
|
||||
</tr>
|
||||
<input type="hidden" name="result" value="usr_data">
|
||||
</form>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_panel_mnu')?></h2>
|
||||
<table width="555">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_panel_ttl')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="?action=usr_search"><?php echo $this->getData('adm_search_pl')?></a></th>
|
||||
<th><a href="?action=ip_search"><?php echo $this->getData('adm_search_ip')?></a></th>
|
||||
<th><a href="?action=usr_data"><?php echo $this->getData('adm_stat_play')?></a></th>
|
||||
<th><a href="?action=usr_level"><?php echo $this->getData('adm_mod_level')?></a></th>
|
||||
</tr>
|
||||
</table>
|
||||
<?php echo $this->getData('adm_sub_form1')?>
|
||||
<?php echo $this->getData('adm_sub_form2')?>
|
||||
<?php echo $this->getData('adm_sub_form3')?>
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_bn_ttle')?></h2>
|
||||
<form action="banned.php" method="post">
|
||||
<input type="hidden" name="mode" value="banit">
|
||||
<table width="409">
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_bn_plto')?></td>
|
||||
</tr><tr>
|
||||
<th width="129"><?php echo $this->getData('adm_bn_name')?></th>
|
||||
<th width="268"><input name="name" type="text" size="25" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_bn_reas')?></th>
|
||||
<th><input name="why" type="text" value="" size="25" maxlength="50"></th>
|
||||
</tr><tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_bn_time')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_bn_days')?></th>
|
||||
<th><input name="days" type="text" value="0" size="5" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_bn_hour')?></th>
|
||||
<th><input name="hour" type="text" value="0" size="5" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_bn_mins')?></th>
|
||||
<th><input name="mins" type="text" value="0" size="5" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_bn_secs')?></th>
|
||||
<th><input name="secs" type="text" value="0" size="5" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input type="submit" value="<?php echo $this->getData('adm_bn_bnbt')?>" /></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('md5_title')?></h2>
|
||||
<form method="post" action="md5changepass.php">
|
||||
<table width="305" border="0" cellspacing="2" cellpadding="0" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('md5_pswcyp')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="130"><?php echo $this->getData('user_to_change')?></th>
|
||||
<th width="171"><input type="text" name="user" value="Utilisateur?"></th>
|
||||
</tr><tr>
|
||||
<th width="130"><?php echo $this->getData('md5_psw')?></th>
|
||||
<th width="171"><input type="text" name="md5q" value="<?php echo $this->getData('md5_md5')?>"></th>
|
||||
</tr>
|
||||
</table><input type="submit" name="ok" value="<?php echo $this->getData('md5_doit')?>">
|
||||
</form>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_ch_ttle')?></h2>
|
||||
<table width="400">
|
||||
<tr>
|
||||
<td class="c" colspan="4"><?php echo $this->getData('adm_ch_list')?> [<a href="?deleteall=yes">vider</a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('adm_ch_time')?></th>
|
||||
<th><?php echo $this->getData('adm_ch_play')?></th>
|
||||
<th><?php echo $this->getData('adm_ch_msg')?></th>
|
||||
<th><?php echo $this->getData('adm_ch_delet')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('msg_list')?>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('cred_ext')?></h2>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="opt_save" value="1">
|
||||
<table width="475">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="2" class="c"><b><?php echo $this->getData('cred_info')?></b></td>
|
||||
</tr><tr>
|
||||
<th colspan="2"><?php echo $this->getData('cred_infotxt')?></th></tr>
|
||||
<tr>
|
||||
<td colspan="2" class="c"><b><?php echo $this->getData('cred_credit')?></b></td>
|
||||
</tr><tr>
|
||||
<th width="278">Raito<br>Chlorel<br>e-Zobar<br>Flousedid<br>
|
||||
<th width="279"><?php echo $this->getData('cred_creat')?> / <?php echo $this->getData('cred_prog')?><br><?php echo $this->getData('cred_master')?> <?php echo $this->getData('cred_prog')?><br><?php echo $this->getData('cred_design')?> / <?php echo $this->getData('cred_prog')?><br><?php echo $this->getData('cred_web')?>
|
||||
</tr><tr>
|
||||
<td colspan="2" class="c"><b><?php echo $this->getData('cred_ext')?></b></td>
|
||||
</tr><tr>
|
||||
<th colspan="2"><?php echo $this->getData('cred_added')?> <input name="ExtCopyFrame"<?php echo $this->getData('ExtCopyFrame')?> type="checkbox" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('cred_name')?></th>
|
||||
<th><?php echo $this->getData('cred_funct')?></th>
|
||||
</tr><tr>
|
||||
<th><textarea name="ExtCopyOwner" rows="5"><?php echo $this->getData('ExtCopyOwnerVal')?></textarea></th>
|
||||
<th><textarea name="ExtCopyFunct" rows="5"><?php echo $this->getData('ExtCopyFunctVal')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input value="<?php echo $this->getData('cred_save')?>" type="submit"></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -13,6 +13,6 @@
|
|||
<th>Raison</th>
|
||||
|
||||
</tr>
|
||||
{adm_ul_table}
|
||||
<?php echo $this->getData('adm_ul_table')?>
|
||||
|
||||
</table>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<tr>
|
||||
<th><?php echo $this->getData('adm_ul_data_id')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_name')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_mail')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_adip')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_detai')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_regd')?></th>
|
||||
|
||||
</tr>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<center>
|
||||
<form action="deletuser.php?mode=delet">
|
||||
<input type="text" name="name" />
|
||||
<input type="submit" value="{Delet}" />
|
||||
<input type="submit" value="<?php echo $this->getData('Delet')?>" />
|
||||
</form>
|
||||
</center>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_er_ttle')?></h2>
|
||||
<table width="520">
|
||||
<tr>
|
||||
<td class="c" colspan="4"><?php echo $this->getData('adm_er_list')?> [<a href="?deleteall=yes"><?php echo $this->getData('adm_er_clear')?></a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="25"><?php echo $this->getData('adm_er_idmsg')?></th>
|
||||
<th width="170"><?php echo $this->getData('adm_er_type')?></th>
|
||||
<th width="230"><?php echo $this->getData('adm_er_time')?></th>
|
||||
<th width="95"><?php echo $this->getData('adm_er_delete')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('errors_list')?>
|
||||
</table>
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
<br><br>
|
||||
<h2>{Qry_title}</h2>
|
||||
<h2><?php echo $this->getData('Qry_title')?></h2>
|
||||
<form method="post" action="QueryExecute.php">
|
||||
<table width="305" border="0" cellspacing="2" cellpadding="0" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><TEXTAREA name="qry_sql" rows=10 COLS=40></TEXTAREA></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="130"><input type="submit" name="ok" value="{md5_doit}"></th>
|
||||
<th width="130"><input type="checkbox" name="really_do_it" >{exec_check}</th>
|
||||
<th width="130"><input type="submit" name="ok" value="<?php echo $this->getData('md5_doit')?>"></th>
|
||||
<th width="130"><input type="checkbox" name="really_do_it" ><?php echo $this->getData('exec_check')?></th>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<center>
|
||||
<br><br>
|
||||
<h2><?php echo $this->getData('flt_title')?></h2>
|
||||
<table width="569">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" ><?php echo $this->getData('flt_id')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_fleet')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_mission')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_owner')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_planet')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_time_st')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_e_owner')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_planet')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_staying')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_time_en')?></td>
|
||||
<td class="c" ><?php echo $this->getData('flt_action')?></td>
|
||||
</tr><tr>
|
||||
<th colspan="11" class="l">
|
||||
<table width="100%">
|
||||
<tbody>
|
||||
<?php echo $this->getData('flt_table')?>
|
||||
</tbody>
|
||||
</table>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<tr>
|
||||
<th><?php echo $this->getData('Id')?></th>
|
||||
<th><?php echo $this->getData('Fleet')?></th>
|
||||
<th><?php echo $this->getData('Mission')?></th>
|
||||
<th><?php echo $this->getData('St_Owner')?></th>
|
||||
<th><?php echo $this->getData('St_Posit')?></th>
|
||||
<th><?php echo $this->getData('St_Time')?></th>
|
||||
<th><?php echo $this->getData('En_Owner')?></th>
|
||||
<th><?php echo $this->getData('En_Posit')?></th>
|
||||
<th><?php echo $this->getData('Wa_Time')?></th>
|
||||
<th><?php echo $this->getData('En_Time')?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
<div id='leftmenu'>
|
||||
<script language="JavaScript">
|
||||
function f(target_url,win_name) {
|
||||
var new_win = window.open(target_url,win_name,'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=550,height=280,top=0,left=0');
|
||||
new_win.focus();
|
||||
}
|
||||
parent.frames['Hauptframe'].location.replace("overview.php");
|
||||
</script>
|
||||
<body class="style" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
|
||||
<center>
|
||||
<div id='menu'>
|
||||
<br>
|
||||
<table width="130" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td style="border-top: 1px #545454 solid"><div><center><?php echo $this->getData('servername')?><br>(<a href="changelog.php" target=<?php echo $this->getData('mf')?>><font color=red><?php echo $this->getData('XNovaRelease')?></font></a>)<center></div></td>
|
||||
</tr><tr>
|
||||
<td background="<?php echo $this->getData('dpath')?>img/bg1.gif"><center><?php echo $this->getData('admin')?></center></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="overview.php" accesskey="v" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_over')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="settings.php" accesskey="e" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_conf')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="XNovaResetUnivers.php" accesskey="e" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_reset')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td background="<?php echo $this->getData('dpath')?>img/bg1.gif"><center><?php echo $this->getData('player')?></center></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="userlist.php" accesskey="a" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_plrlst')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="multi.php" accesskey="a" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_multi')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="paneladmina.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_plrsch')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="QueryExecute.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('qry')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="variables.php" accesskey="k" target="<?php echo $this->getData('mf')?>">PhpInfo</a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="add_money.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_addres')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td style="background-color:#FFFFFF" height="1px"></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="planetlist.php" accesskey="1" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_pltlst')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="activeplanet.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_actplt')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td style="background-color:#FFFFFF" height="1px"></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="moonlist.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_moonlst')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="declare_list.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('multis_declared')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="add_moon.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_addmoon')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td style="background-color:#FFFFFF" height="1px"></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="ShowFlyingFleets.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_fleet')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td style="background-color:#FFFFFF" height="1px"></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="banned.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_ban')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="md5changepass.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('change_pass')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="unbanned.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_unban')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td background="<?php echo $this->getData('dpath')?>img/bg1.gif"><center><?php echo $this->getData('tool')?></center></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="chat.php" accesskey="p" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_chat')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="statbuilder.php" accesskey="p" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_updpt')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="messagelist.php" accesskey="k" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_msg')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="md5enc.php" accesskey="p" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_md5')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="ElementQueueFixer.php" accesskey="p" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_build')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td style="background-color:#FFFFFF" height="1px"></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="errors.php" accesskey="e" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_error')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="http://www.xnova-ng.org/forum/index.php" accesskey="3" target="<?php echo $this->getData('mf')?>"><?php echo $this->getData('adm_help')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td><div><a href="../frames.php" accesskey="i" target="_top" style="color:red"><?php echo $this->getData('adm_back')?></a></div></td>
|
||||
</tr><tr>
|
||||
<td background="<?php echo $this->getData('dpath')?>img/bg1.gif"><center><?php echo $this->getData('infog')?></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</center>
|
||||
</body>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('md5_title')?></h2>
|
||||
<form method="post" action="md5enc.php">
|
||||
<table width="305" border="0" cellspacing="2" cellpadding="0" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('md5_pswcyp')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="130"><?php echo $this->getData('md5_psw')?></th>
|
||||
<th width="171"><input type="text" name="md5q" value="<?php echo $this->getData('md5_md5')?>"></th>
|
||||
</tr><tr>
|
||||
<th width="130"><?php echo $this->getData('md5_pswenc')?></th>
|
||||
<th width="171"><input type="text" name="md5w" value="<?php echo $this->getData('md5_enc')?>"></th>
|
||||
</tr><tr>
|
||||
<th width="130"> </th>
|
||||
<th width="171"><input type="submit" name="ok" value="<?php echo $this->getData('md5_doit')?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<br><br>
|
||||
<table width="519">
|
||||
<tr>
|
||||
<td class="c"><h1><span style="color: <?php echo $this->getData('color')?>;"><?php echo $this->getData('title')?></span></h1></td>
|
||||
</tr><tr>
|
||||
<th class="errormessage"><?php echo $this->getData('mes')?></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?php echo $this->getData('mlst_scpt')?>
|
||||
<br><br>
|
||||
<h2><?php echo $this->getData('mlst_title')?></h2>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="curr" value="<?php echo $this->getData('mlst_data_page')?>">
|
||||
<input type="hidden" name="pmax" value="<?php echo $this->getData('mlst_data_pagemax')?>">
|
||||
<input type="hidden" name="sele" value="<?php echo $this->getData('mlst_data_sele')?>">
|
||||
<table width="700" border="0" cellspacing="1" cellpadding="1">
|
||||
<tr>
|
||||
<td class="c"><div align="center"><input type="submit" name="prev"value="<?php echo $this->getData('mlst_hdr_prev')?>" /></div></div></td>
|
||||
<td class="c"><div align="center"><?php echo $this->getData('mlst_hdr_page')?></div></td>
|
||||
<td class="c"><div align="center">
|
||||
<select name="page" onchange="submit();">
|
||||
<?php echo $this->getData('mlst_data_pages')?>
|
||||
</select></div>
|
||||
</td>
|
||||
<td class="c"><div align="center"><input type="submit" name="next" value="<?php echo $this->getData('mlst_hdr_next')?>" /></div></td>
|
||||
</tr><tr>
|
||||
<td class="c"> </td>
|
||||
<td class="c"><div align="center"><?php echo $this->getData('mlst_hdr_type')?></div></td>
|
||||
<td class="c"><div align="center">
|
||||
<select name="type" onchange="submit();">
|
||||
<?php echo $this->getData('mlst_data_types')?>
|
||||
</select></div>
|
||||
</td>
|
||||
<td class="c"> </td>
|
||||
</tr><tr>
|
||||
<td class="c"><div align="center"><input type="submit" name="delsel" value="<?php echo $this->getData('mlst_bt_delsel')?>" /></div></td>
|
||||
<td class="c"><div align="center"><?php echo $this->getData('mlst_hdr_delfrom')?></div></td>
|
||||
<td class="c"><div align="center"><input type="text" name="selday" size="3" /> <input type="text" name="selmonth" size="3" /> <input type="text" name="selyear" size="6" /></div></td>
|
||||
<td class="c"><div align="center"><input type="submit" name="deldat" value="<?php echo $this->getData('mlst_bt_deldate')?>" /></div></td>
|
||||
</tr><tr>
|
||||
<th colspan="4">
|
||||
<table width="700" border="0" cellspacing="1" cellpadding="1">
|
||||
<tr align="center" valign="middle">
|
||||
<th class="c"><?php echo $this->getData('mlst_hdr_action')?></th>
|
||||
<th class="c"><?php echo $this->getData('mlst_hdr_id')?></th>
|
||||
<th class="c"><?php echo $this->getData('mlst_hdr_time')?></th>
|
||||
<th class="c"><?php echo $this->getData('mlst_hdr_from')?></th>
|
||||
<th class="c"><?php echo $this->getData('mlst_hdr_to')?></th>
|
||||
<th class="c" width="350"><?php echo $this->getData('mlst_hdr_text')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('mlst_data_rows')?>
|
||||
</table>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<tr>
|
||||
<th class="c"><input type="checkbox" name="sele[<?php echo $this->getData('mlst_id')?>]" /></th>
|
||||
<th><?php echo $this->getData('mlst_id')?></th>
|
||||
<th><?php echo $this->getData('mlst_time')?></th>
|
||||
<th><?php echo $this->getData('mlst_from')?></th>
|
||||
<th><?php echo $this->getData('mlst_to')?></th>
|
||||
<th><?php echo $this->getData('mlst_text')?></th>
|
||||
</tr>
|
||||
|
|
@ -12,5 +12,5 @@
|
|||
<th>Système</th>
|
||||
<th>Planète</th>
|
||||
</tr>
|
||||
{moon}
|
||||
<?php echo $this->getData('moon')?>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_mt_title')?></h2>
|
||||
<table width="570" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="9"><?php echo $this->getData('adm_mt_list')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%"><?php echo $this->getData('adm_mt_player')?></th>
|
||||
<th width="80%"><?php echo $this->getData('adm_mt_text')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('adm_mt_table')?>
|
||||
<tr>
|
||||
<th class="b" colspan="9"><?php echo $this->getData('adm_mt_count')?> <?php echo $this->getData('adm_mt_multi')?></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<tr>
|
||||
<th><?php echo $this->getData('player')?></th>
|
||||
<th><?php echo $this->getData('text')?></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
<br /><br />
|
||||
<h2><?php echo $this->getData('adm_opt_title')?></h2>
|
||||
<form action="" method="post">
|
||||
<input type="hidden" name="opt_save" value="1">
|
||||
<table width="519" style="color:#FFFFFF">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_opt_game_settings')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_name')?></th>
|
||||
<th><input name=game_name size=20 value=<?php echo $this->getData('game_name')?> type=text></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('adm_opt_menu_link_enable')?></th>
|
||||
<th><input name="enable_link_" size="20" value="<?php echo $this->getData('enable_link')?>" type="text"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('adm_opt_menu_link_text')?></th>
|
||||
<th><input name="name_link_" size="20" value="<?php echo $this->getData('name_link')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_menu_link_url')?></th>
|
||||
<th><input name="url_link_" size="20" value="<?php echo $this->getData('url_link')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_gspeed')?></th>
|
||||
<th><input name="game_speed" size="2" value="<?php echo $this->getData('game_speed')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_fspeed')?></th>
|
||||
<th><input name="fleet_speed" size="2" value="<?php echo $this->getData('fleet_speed')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('stat_settings_desc')?></th>
|
||||
<th><?php echo $this->getData('stat_desc')?><input name="stat_settings" size="2" value="<?php echo $this->getData('stat_settings')?>" type="text"><?php echo $this->getData('stat_units')?></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_pspeed')?></th>
|
||||
<th><input name="resource_multiplier" maxlength="8" size="10" value="<?php echo $this->getData('resource_multiplier')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_forum')?><br /></th>
|
||||
<th><input name="forum_url" size="40" maxlength="254" value="<?php echo $this->getData('forum_url')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_online')?><br /></th>
|
||||
<th><input name="closed"<?php echo $this->getData('closed')?> type="checkbox" /></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_offreaso')?><br /></th>
|
||||
<th><textarea name="close_reason" cols="80" rows="5" size="80" ><?php echo $this->getData('close_reason')?></textarea></th>
|
||||
</tr><tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('messages_settings')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('bbcode_settings')?><br /></th>
|
||||
<th><input name="bbcode_field" size="1" maxlength="254" value="<?php echo $this->getData('enable_bbcode')?>" type="text"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('multi_bot_settings')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('bot_active')?></th>
|
||||
<th><input name="bot_enable" size="1" value="<?php echo $this->getData('enable_bot')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('bot_name_multi')?></th>
|
||||
<th><textarea name="name_bot" cols="1" rows="1" size="80" ><?php echo $this->getData('bot_name')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('bot_adress_multi')?></th>
|
||||
<th><textarea name="adress_bot" cols="80" rows="1" size="80" ><?php echo $this->getData('bot_adress')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('bot_ban_duration')?></th>
|
||||
<th><input name="duration_ban" size="20" value="<?php echo $this->getData('ban_duration')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_opt_plan_settings')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_plan_initial')?></th>
|
||||
<th><input name="initial_fields" maxlength="80" size="10" value="<?php echo $this->getData('initial_fields')?>" type="text"> cases</th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_plan_base_inc')?><?php echo $this->getData('Metal')?></th>
|
||||
<th><input name="metal_basic_income" maxlength="2" size="10" value="<?php echo $this->getData('metal_basic_income')?>" type="text"> par heure</th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_plan_base_inc')?><?php echo $this->getData('Crystal')?></th>
|
||||
<th><input name="crystal_basic_income" maxlength="2" size="10" value="<?php echo $this->getData('crystal_basic_income')?>" type="text"> par heure </th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_plan_base_inc')?><?php echo $this->getData('Deuterium')?></th>
|
||||
<th><input name="deuterium_basic_income" maxlength="2" size="10" value="<?php echo $this->getData('deuterium_basic_income')?>" type="text"> par heure </th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_plan_base_inc')?><?php echo $this->getData('Energy')?></th>
|
||||
<th><input name="energy_basic_income" maxlength="2" size="10" value="<?php echo $this->getData('energy_basic_income')?>" type="text"> par heure</th>
|
||||
</tr><tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_opt_control_pages')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('enable_the_anounces')?></th>
|
||||
<th><input name="enable_announces_" size=1" value="<?php echo $this->getData('enable_announces')?>" type="text"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('enable_the_marchand')?></th>
|
||||
<th><input name="enable_marchand_" size="1" value="<?php echo $this->getData('enable_marchand')?>" type="text"></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('enable_the_notes')?></th>
|
||||
<th><input name="enable_notes_" size="1" value="<?php echo $this->getData('enable_notes')?>" type="text"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_opt_game_oth_info')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_oth_bann')?><br /></th>
|
||||
<th><input name="bannerframe"<?php echo $this->getData('bannerframe')?> type="checkbox" />(<?php echo $this->getData('adm_opt_warning1')?>)</th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_oth_news')?><br /></th>
|
||||
<th><input name="newsframe"<?php echo $this->getData('newsframe')?> type="checkbox" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><textarea name="NewsText" cols="80" rows="5" size="80" ><?php echo $this->getData('NewsTextVal')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_oth_chat')?></th>
|
||||
<th><input name="chatframe"<?php echo $this->getData('chatframe')?> type="checkbox" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><textarea name="ExternChat" cols="80" rows="5" size="80" ><?php echo $this->getData('ExtTchatVal')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_oth_adds')?></th>
|
||||
<th><input name="googlead"<?php echo $this->getData('googlead')?> type="checkbox" /></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><textarea name="GoogleAds" cols="80" rows="5" size="80" ><?php echo $this->getData('GoogleAdVal')?></textarea></th>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('adm_opt_game_debugmod')?></a></th>
|
||||
<th><input name="debug"<?php echo $this->getData('debug')?> type="checkbox" /></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('banner')?></th>
|
||||
<th><textarea name="banner_source_post" cols="80" rows="1" size="80" ><?php echo $this->getData('banner_source_post')?></textarea></th>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><img src="<?php echo $this->getData('banner_source_post')?>" alt="<?php echo $this->getData('banner_source_post')?>" title="<?php echo $this->getData('banner_source_post')?>"></th>
|
||||
</tr>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<th colspan="3"><input value="<?php echo $this->getData('adm_opt_btn_save')?>" type="submit"></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_ov_title')?></h2>
|
||||
<table width="600">
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('adm_ov_infos')?></td>
|
||||
</tr><tr>
|
||||
<td class="b" style="color:#FFFFFF"><?php echo $this->getData('adm_ov_yourv')?>: <strong><?php echo $this->getData('adm_ov_data_yourv')?></strong></td>
|
||||
<td class="b" style="color:#FFFFFF"><?php echo $this->getData('adm_ov_lastv')?>: <b><a style="color:orange;" href="http://www.xnova-ng.org/"><?php echo $this->getData('adm_ov_here')?></a></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table width="600">
|
||||
<tr>
|
||||
<td class="c" colspan="13"><?php echo $this->getData('adm_ov_onlin')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="?cmd=sort&type=id"><?php echo $this->getData('adm_ul_id')?></a></th>
|
||||
<th><a href="?cmd=sort&type=username"><?php echo $this->getData('adm_ul_name')?></a></th>
|
||||
<th><a href="?cmd=sort&type=user_lastip"><?php echo $this->getData('adm_ul_adip')?></a></th>
|
||||
<th><a href="?cmd=sort&type=ally_name"><?php echo $this->getData('adm_ov_ally')?></a></th>
|
||||
<th><?php echo $this->getData('adm_ov_point')?></th>
|
||||
<th><a href="?cmd=sort&type=onlinetime"><?php echo $this->getData('adm_ov_activ')?></a></th>
|
||||
<th><?php echo $this->getData('usr_email')?></th>
|
||||
<th><?php echo $this->getData('xp_raid')?></th>
|
||||
<th><?php echo $this->getData('xp_min')?></th>
|
||||
<th><?php echo $this->getData('lang_vacancy')?></th>
|
||||
<th><?php echo $this->getData('banned_lang')?></th>
|
||||
<th><?php echo $this->getData('usr_current_planet')?></th>
|
||||
<th><?php echo $this->getData('usr_current_page')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('adm_ov_data_table')?>
|
||||
<tr>
|
||||
<th class="b" colspan="13"><?php echo $this->getData('adm_ov_count')?>: <?php echo $this->getData('adm_ov_data_count')?></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<tr>
|
||||
<th><a href="../messages.php?mode=write&id=<?php echo $this->getData('adm_ov_data_id')?>"><img src="<?php echo $this->getData('dpath')?>img/<?php echo $this->getData('adm_ov_data_pict')?>" alt="<?php echo $this->getData('adm_ov_altpm')?>" title="<?php echo $this->getData('adm_ov_wrtpm')?>" border="0"></a></th>
|
||||
<th><a href= # title="<?php echo $this->getData('adm_ov_data_agen')?>"><?php echo $this->getData('adm_ov_data_name')?> (<?php echo $this->getData('usr_s_id')?>)</a></th>
|
||||
<th><a style="color:<?php echo $this->getData('adm_ov_data_clip')?>;" href="http://network-tools.com/default.asp?prog=trace&host=<?php echo $this->getData('adm_ov_data_adip')?>">[<?php echo $this->getData('adm_ov_data_adip')?>]</a></th>
|
||||
<th><?php echo $this->getData('adm_ov_data_ally')?></th>
|
||||
<th><?php echo $this->getData('adm_ov_data_point')?></th>
|
||||
<th><?php echo $this->getData('adm_ov_data_activ')?></th>
|
||||
<th><a href="mailto:<?php echo $this->getData('usr_email')?>"><?php echo $this->getData('usr_email')?></a></th>
|
||||
<th><?php echo $this->getData('usr_xp_raid')?></th>
|
||||
<th><?php echo $this->getData('usr_xp_min')?></th>
|
||||
<th><?php echo $this->getData('state_vacancy')?></th>
|
||||
<th><?php echo $this->getData('is_banned')?></th>
|
||||
<th>[<a href="../galaxy.php?mode=0&galaxy=<?php echo $this->getData('usr_planet_gal')?>&system=<?php echo $this->getData('usr_planet_sys')?>"><?php echo $this->getData('usr_planet_gal')?>:<?php echo $this->getData('usr_planet_sys')?>:<?php echo $this->getData('usr_planet_pos')?></a>]</th>
|
||||
<th><?php echo $this->getData('current_page')?></th>
|
||||
</tr>
|
||||
|
|
@ -11,5 +11,5 @@
|
|||
<th>Système</th>
|
||||
<th>Planète</th>
|
||||
</tr>
|
||||
{planetes}
|
||||
<?php echo $this->getData('planetes')?>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_rz_ttle')?></h2>
|
||||
<form action="XNovaResetUnivers.php" method="post">
|
||||
<input type="hidden" name="mode" value="reset">
|
||||
<table width="500">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('adm_rz_conf')?></td>
|
||||
</tr><tr>
|
||||
<th colspan="2"><?php echo $this->getData('adm_rz_text')?></th>
|
||||
</tr><tr>
|
||||
<th colspan="2"><input type="Submit" value="<?php echo $this->getData('adm_rz_doit')?>" /></th>
|
||||
</tbody>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title><?php echo $this->getData('title')?></title>
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $this->getData('dpath')?>/formate.css" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=<?php echo $this->getData('ENCODING')?>" />
|
||||
<?php echo $this->getData('META_TAG')?>
|
||||
<script type="text/javascript" src="../scripts/overlib.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<td class="c" colspan="2">Joueur à débannir</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="129">{Name}</th>
|
||||
<th width="129"><?php echo $this->getData('Name')?></th>
|
||||
<th width="268"><input name="nam" maxlength="80" size="25" value="" type="text">
|
||||
</th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<br><br>
|
||||
<h2><?php echo $this->getData('adm_ul_title')?></h2>
|
||||
<table width="569" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="10"><?php echo $this->getData('adm_ul_ttle2')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="?cmd=sort&type=id"><?php echo $this->getData('adm_ul_id')?></a></th>
|
||||
<th><a href="?cmd=sort&type=username"><?php echo $this->getData('adm_ul_name')?></a></th>
|
||||
<th><a href="?cmd=sort&type=email"><?php echo $this->getData('adm_ul_mail')?></a></th>
|
||||
<th><a href="?cmd=sort&type=ip_at_reg"><?php echo $this->getData('adm_ul_data_ip_reg')?></a></th>
|
||||
<th><a href="?cmd=sort&type=user_lastip"><?php echo $this->getData('adm_ul_adip')?></a></th>
|
||||
<th><a href="?cmd=sort&type=register_time"><?php echo $this->getData('adm_ul_regd')?></a></th>
|
||||
<th><a href="?cmd=sort&type=onlinetime"><?php echo $this->getData('adm_ul_lconn')?></a></th>
|
||||
<th><a href="?cmd=sort&type=bana"><?php echo $this->getData('adm_ul_bana')?></a></th>
|
||||
<th><?php echo $this->getData('adm_ul_detai')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_actio')?></th>
|
||||
|
||||
</tr>
|
||||
<?php echo $this->getData('adm_ul_table')?>
|
||||
<tr>
|
||||
<th class="b" colspan="10"><?php echo $this->getData('adm_ul_count')?><?php echo $this->getData('adm_ul_playe')?></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<tr>
|
||||
<th><?php echo $this->getData('adm_ul_data_id')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_name')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_mail')?></th>
|
||||
<th><?php echo $this->getData('ip_adress_at_register')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_adip')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_regd')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_lconn')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_banna')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_detai')?></th>
|
||||
<th><?php echo $this->getData('adm_ul_data_actio')?></th>
|
||||
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
<th colspan=13><?php echo $this->getData('phpinfo')?></th>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<tr>
|
||||
|
||||
<th><?php echo $this->getData('prot_serv')?></th>
|
||||
<th><?php echo $this->getData('serv_protocol')?></th>
|
||||
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
<script src="scripts/cntchar.js" type="text/javascript"></script>
|
||||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Alliance_admin')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><a href="?mode=admin&edit=rights"><?php echo $this->getData('Law_settings')?></a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><a href="?mode=admin&edit=members"><?php echo $this->getData('Members_administrate')?></a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><a href="?mode=admin&edit=tag"><?php echo $this->getData('Change_the_ally_tag')?></a></th>
|
||||
</tr>
|
||||
<!--<img src="<?php echo $this->getData('dpath')?>pic/appwiz.gif" border=0 alt="">-->
|
||||
<tr>
|
||||
<th colspan=2><a href="?mode=admin&edit=name"><?php echo $this->getData('Change_the_ally_name')?></a></th>
|
||||
</tr>
|
||||
<!--<img src="<?php echo $this->getData('dpath')?>pic/appwiz.gif" border=0 alt="">-->
|
||||
</table>
|
||||
<br>
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="t" value="<?php echo $this->getData('t')?>">
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class="c" colspan=2><?php echo $this->getData('Texts')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="?mode=admin&edit=ally&t=1"><?php echo $this->getData('External_text')?></a></th>
|
||||
<th><a href="?mode=admin&edit=ally&t=2"><?php echo $this->getData('Internal_text')?></a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=c colspan=3><?php echo $this->getData('Show_of_request_text')?> (<span id="cntChars">0</span> / 5000 <?php echo $this->getData('characters')?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=3><textarea name="text" cols=70 rows=15 onkeyup="javascript:cntchar(5000)"><?php echo $this->getData('text')?></textarea>
|
||||
<?php echo $this->getData('request_type')?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=3>
|
||||
<input type="hidden" name=t value=<?php echo $this->getData('t')?>><input type="reset" value="<?php echo $this->getData('Reset')?>">
|
||||
<input type="submit" value="<?php echo $this->getData('Save')?>">
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<br>
|
||||
|
||||
<form action="" method="POST">
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Options')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Main_Page')?></th>
|
||||
<th><input type=text name="web" value="<?php echo $this->getData('ally_web')?>" size="70"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Alliance_logo')?></th>
|
||||
<th><input type=text name="image" value="<?php echo $this->getData('ally_image')?>" size="70"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Requests')?></th>
|
||||
<th>
|
||||
<select name="request_notallow"><option value=1<?php echo $this->getData('ally_request_notallow_0')?>><?php echo $this->getData('No_allow_request')?></option>
|
||||
<option value=0<?php echo $this->getData('ally_request_notallow_1')?>><?php echo $this->getData('Allow_request')?></option></select>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Founder_name')?></th>
|
||||
<th><input type="text" name="owner_range" value="<?php echo $this->getData('ally_owner_range')?>" size=30></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><input type="submit" name="options" value="<?php echo $this->getData('Save')?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php echo $this->getData('Disolve_alliance')?>
|
||||
<br>
|
||||
<?php echo $this->getData('Transfer_alliance')?>
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
<br>
|
||||
<table width=519><tr><td class=c colspan=11><?php echo $this->getData('Configure_laws')?></td></tr>
|
||||
|
||||
<?php echo $this->getData('list')?>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<form action="alliance.php?mode=admin&edit=rights&add=name" method=POST>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Range_make')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Range_name')?></th>
|
||||
<th><input type=text name="newrangname" size=20 maxlength=30></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><input type=submit value="<?php echo $this->getData('Make')?>"></th>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
|
||||
<form action="alliance.php?mode=admin&edit=rights" method=POST>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Law_leyends')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r1.png></th>
|
||||
<th><?php echo $this->getData('Alliance_dissolve')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r2.png></th>
|
||||
<th><?php echo $this->getData('Expel_users')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r3.png></th>
|
||||
<th><?php echo $this->getData('See_the_requests')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r4.png></th>
|
||||
<th><?php echo $this->getData('See_the_list_members')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r5.png></th>
|
||||
<th><?php echo $this->getData('Check_the_requests')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r6.png></th>
|
||||
<th><?php echo $this->getData('Alliance_admin')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r7.png></th>
|
||||
<th><?php echo $this->getData('See_the_online_list_member')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r8.png></th><th><?php echo $this->getData('Make_a_circular_message')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src=images/r9.png></th><th><?php echo $this->getData('Left_hand_text')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c" colspan="2"><a href="alliance.php?mode=admin&edit=ally"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th colspan=11><input type=submit value="<?php echo $this->getData('Save')?>"></th>
|
||||
</tr>
|
||||
</form>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<form action="alliance.php?mode=admin&edit=rights" method=POST>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{Range_name}</th>
|
||||
<th><?php echo $this->getData('Range_name')?></th>
|
||||
<th><img src=images/r1.png></th>
|
||||
<th><img src=images/r2.png></th>
|
||||
<th><img src=images/r3.png></th>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('delete')?></th>
|
||||
<th> <?php echo $this->getData('r0')?> </th>
|
||||
<input type="hidden" name="id[]" value="<?php echo $this->getData('a')?>">
|
||||
<th><?php echo $this->getData('r1')?></th>
|
||||
<th><?php echo $this->getData('r2')?></th>
|
||||
<th><?php echo $this->getData('r3')?></th>
|
||||
<th><?php echo $this->getData('r4')?></th>
|
||||
<th><?php echo $this->getData('r5')?></th>
|
||||
<th><?php echo $this->getData('r6')?></th>
|
||||
<th><?php echo $this->getData('r7')?></th>
|
||||
<th><?php echo $this->getData('r8')?></th>
|
||||
<th><?php echo $this->getData('r9')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<br>
|
||||
<a onmouseover="this.T_WIDTH=116;return escape('Virer joueur');" href="alliance.php?mode=admin&edit=members&kick=<?php echo $this->getData('id')?>" onclick="javascript:return confirm('Etes vous sur de vouloir virer ce joueur ?');"><img src="<?php echo $this->getData('dpath')?>pic/abort.gif" border=0 ></a> <a onmouseover="this.T_WIDTH=98;return escape('Attribuer un rang');" href="alliance.php?mode=admin&edit=members&rank=<?php echo $this->getData('id')?>"><img src="<?php echo $this->getData('dpath')?>pic/key.gif" border=0></a>
|
||||
<script src="scripts/wz_tooltip.js" type="text/javascript"></script>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('i')?></th>
|
||||
<th><?php echo $this->getData('username')?></th>
|
||||
<th><a href="messages.php?mode=write&id=<?php echo $this->getData('id')?>"><img src="<?php echo $this->getData('dpath')?>img/m.gif" border=0 alt="<?php echo $this->getData('Write_a_message')?>"></a></th>
|
||||
<th><?php echo $this->getData('ally_range')?></th>
|
||||
<th><?php echo $this->getData('points')?></th>
|
||||
<th><a href="galaxy.php?mode=0&galaxy=<?php echo $this->getData('galaxy')?>&system=<?php echo $this->getData('system')?>"><?php echo $this->getData('galaxy')?>:<?php echo $this->getData('system')?>:<?php echo $this->getData('planet')?></a></th>
|
||||
<th><?php echo $this->getData('ally_register_time')?></th>
|
||||
<th><?php echo $this->getData('onlinetime')?></th>
|
||||
<th><?php echo $this->getData('functions')?> </th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<br>
|
||||
<form action="alliance.php?mode=admin&edit=members&id=<?php echo $this->getData('id')?>" method=POST>
|
||||
<tr>
|
||||
<th colspan=3><?php echo $this->getData('Rank_for')?></th>
|
||||
<th><select name="newrang"><?php echo $this->getData('options')?></select></th>
|
||||
<th colspan=5><input type=submit value="<?php echo $this->getData('Save')?>"></th>
|
||||
</tr>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<br>
|
||||
<table width="519">
|
||||
<tr>
|
||||
<td class="c" colspan="9"><?php echo $this->getData('Members_list')?> (<?php echo $this->getData('Ammount')?>: <?php echo $this->getData('memberzahl')?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Number')?></th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=1&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Name')?></a></th>
|
||||
<th> </th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=2&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Position')?></a></th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=3&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Points')?></a></th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=0&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Coordinated')?></a></th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=4&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Member_from')?></a></th>
|
||||
<th><a href="alliance.php?mode=admin&edit=members&sort1=5&sort2=<?php echo $this->getData('s')?>">Duree d inactivite</a></th>
|
||||
<th>Fonction</th>
|
||||
</tr>
|
||||
<?php echo $this->getData('memberslist')?>
|
||||
<tr>
|
||||
<td class="c" colspan="9"><a href="alliance.php?mode=admin&edit=ally"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<script src="scripts/wz_tooltip.js" type="text/javascript"></script>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<br>
|
||||
<form action="" method=POST>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('question')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('New_name')?></th>
|
||||
<th><input type=text name=<?php echo $this->getData('name')?>> <input type=submit value="<?php echo $this->getData('Change')?>"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c" colspan="9"><a href="alliance.php?mode=admin&edit=ally"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<br>
|
||||
<form action="" method=POST>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class="ramka" colspan=2><?php echo $this->getData('question')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ramka"><font color=green><b>Zmiana Nazwy</b></font></td>
|
||||
<td class="ramka"><input type=text name=<?php echo $this->getData('name')?>> <input type=submit value="Zmie<69>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ramka" colspan="9"><a href="alliance.php?mode=admin&edit=ally"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<br>
|
||||
<form action="" method=POST>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class="ramka" colspan=2><?php echo $this->getData('question')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ramka"><font color=green><b>Zmiana Tagu</b></font></td>
|
||||
<td class="ramka"><input type=text name=<?php echo $this->getData('name')?>> <input type=submit value="Zmie<69>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ramka" colspan="9"><a href="alliance.php?mode=admin&edit=ally"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<br>
|
||||
<form action="alliance.php?mode=admin&edit=requests&show=<?php echo $this->getData('id')?>&sort=0" method="POST">
|
||||
<tr>
|
||||
<th colspan=2><?php echo $this->getData('Request_from')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><?php echo $this->getData('ally_request_text')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c" colspan=2><?php echo $this->getData('Request_responde')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th><input type="submit" name="action" value="Accepter"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Motive_optional')?> <span id="cntChars">0</span> / 500 <?php echo $this->getData('characters')?></th>
|
||||
<th><textarea name="text" cols=40 rows=10 onkeyup="javascript:cntchar(500)"></textarea></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th><input type="submit" name="action" value="Refuser"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2> </td>
|
||||
</tr>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th><center><a href="alliance.php?mode=admin&edit=requests&show=<?php echo $this->getData('id')?>&sort=0"><?php echo $this->getData('username')?></a></center></th>
|
||||
<th><center><?php echo $this->getData('time')?></center></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Apply_ally_overview')?> [<?php echo $this->getData('ally_tag')?>]</td>
|
||||
</tr>
|
||||
<?php echo $this->getData('request')?>
|
||||
<tr>
|
||||
<th colspan=2><?php echo $this->getData('There_is_hanging_request')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=c><center><a href="alliance.php?mode=admin&edit=requests&show=0&sort=1"><?php echo $this->getData('Candidate')?></a></center></td>
|
||||
<td class=c><center><a href="alliance.php?mode=admin&edit=requests&show=0&sort=0"><?php echo $this->getData('Date_of_the_request')?></a></center></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('list')?>
|
||||
<tr>
|
||||
<td class=c colspan=2><a href="alliance.php"><?php echo $this->getData('Back')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<br>
|
||||
<table width="519">
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('Alliance_information')?></td>
|
||||
</tr>
|
||||
<?php echo $this->getData('ally_image')?>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Tag')?></th>
|
||||
<th><?php echo $this->getData('ally_tag')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Name')?></th>
|
||||
<th><?php echo $this->getData('ally_name')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Members')?></th>
|
||||
<th><?php echo $this->getData('ally_member_scount')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('ally_description')?>
|
||||
|
||||
<?php echo $this->getData('ally_web')?>
|
||||
|
||||
<?php echo $this->getData('bewerbung')?>
|
||||
</table>
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<br>
|
||||
<form action="" method=POST>
|
||||
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('your_apply')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><?php echo $this->getData('request_text')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><input type=submit name="bcancel" value="<?php echo $this->getData('button_text')?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<br>
|
||||
<h1><?php echo $this->getData('Send_Apply')?></h1>
|
||||
|
||||
<table width=519>
|
||||
<form action="alliance.php?mode=apply&allyid=<?php echo $this->getData('allyid')?>" method=POST>
|
||||
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Write_to_alliance')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Message')?> (<span id="cntChars"><?php echo $this->getData('chars_count')?></span> / 6000 <?php echo $this->getData('characters')?>)</th>
|
||||
<th><textarea name="text" cols=40 rows=10 onkeyup="javascript:cntchar(6000)"><?php echo $this->getData('text_apply')?></textarea></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Help')?></th>
|
||||
<th><input type=submit name="further" value="<?php echo $this->getData('Reload')?>"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><input type=submit name="further" value="<?php echo $this->getData('Send')?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<script language="JavaScript" src="js/wz_tooltip.js"></script>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<br>
|
||||
<form action="?mode=circular&sendmail=1" method="post">
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class="c" colspan=2><?php echo $this->getData('Send_circular_mail')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Destiny')?></th>
|
||||
<th>
|
||||
<select name="r">
|
||||
<?php echo $this->getData('r_list')?>
|
||||
</select>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Text_mail')?> (<span id="cntChars">0</span> / 5000 <?php echo $this->getData('characters')?>)</th>
|
||||
<th>
|
||||
<textarea name="text" cols="60" rows="10" onkeyup="javascript:cntchar(5000)"></textarea>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c"><a href="alliance.php"><?php echo $this->getData('Back')?></a></td>
|
||||
<td class="c">
|
||||
<input type="reset" value="<?php echo $this->getData('Clear')?>">
|
||||
<input type="submit" value="<?php echo $this->getData('Send')?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<br>
|
||||
<form action="?a=17&sendmail=1" method=post>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Send_circular_mail')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Destiny')?></th>
|
||||
<th>
|
||||
<select name=r>
|
||||
<?php echo $this->getData('r_list')?>
|
||||
</select>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Text_mail')?> (<span id="cntChars">0</span> / 5000 <?php echo $this->getData('characters')?>)</th>
|
||||
<th>
|
||||
<textarea name="text" cols="60" rows="10" onkeyup="javascript:cntchar(5000)"></textarea>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="c"><a href="alliance.php"><?php echo $this->getData('Back')?></a></td>
|
||||
<td class="c">
|
||||
<input type="reset" value="<?php echo $this->getData('Clear')?>">
|
||||
<input type="submit" value="<?php echo $this->getData('Send')?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('alliance')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><a href="?mode=make"><?php echo $this->getData('make_alliance_owner')?></a></th>
|
||||
<th><a href="?mode=search"><?php echo $this->getData('search_alliance')?></a></th>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('your_alliance')?></td>
|
||||
</tr>
|
||||
|
||||
<?php echo $this->getData('ally_image')?>
|
||||
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Tag')?></th>
|
||||
<th><?php echo $this->getData('ally_tag')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Name')?></th>
|
||||
<th><?php echo $this->getData('ally_name')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Members')?></th>
|
||||
<th><?php echo $this->getData('ally_members')?><?php echo $this->getData('members_list')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Range')?></th>
|
||||
<th><?php echo $this->getData('range')?><?php echo $this->getData('alliance_admin')?></th>
|
||||
</tr>
|
||||
|
||||
<?php echo $this->getData('requests')?>
|
||||
|
||||
<?php echo $this->getData('send_circular_mail')?>
|
||||
|
||||
<tr>
|
||||
<th colspan=2 height=100><?php echo $this->getData('ally_description')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Main_Page')?></th>
|
||||
<th><a href="<?php echo $this->getData('ally_web')?>"><?php echo $this->getData('ally_web')?></a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=c colspan=2><?php echo $this->getData('Inner_section')?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2 height=100><?php echo $this->getData('ally_text')?></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php echo $this->getData('ally_owner')?>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<br>
|
||||
<form action="?mode=make&yes=1" method="POST">
|
||||
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class="c" colspan=2><?php echo $this->getData('make_alliance')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('alliance_tag')?> (3-8 <?php echo $this->getData('characters')?>)</th>
|
||||
<th><input type="text" name="atag" size=8 maxlength=8 value=""></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('allyance_name')?> (max. 35 <?php echo $this->getData('characters')?>)</th>
|
||||
<th><input type="text" name="aname" size=20 maxlength=30 value=""></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan=2><input type="submit" value="<?php echo $this->getData('Make')?>"></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('i')?></th>
|
||||
<th><?php echo $this->getData('username')?></th>
|
||||
<th><a href="messages.php?mode=write&id=<?php echo $this->getData('id')?>"><img src="<?php echo $this->getData('dpath')?>img/m.gif" border=0 alt="<?php echo $this->getData('Write_a_message')?>"></a></th>
|
||||
<th><?php echo $this->getData('ally_range')?></th>
|
||||
<th><?php echo $this->getData('points')?></th>
|
||||
<th><a href="galaxy.php?mode=0&galaxy=<?php echo $this->getData('galaxy')?>&system=<?php echo $this->getData('system')?>"><?php echo $this->getData('galaxy')?>:<?php echo $this->getData('system')?>:<?php echo $this->getData('planet')?></a></th>
|
||||
<th><?php echo $this->getData('ally_register_time')?></th>
|
||||
<th><font color=<?php echo $this->getData('onlinetime')?>/font></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=8><?php echo $this->getData('Members_list')?> (<?php echo $this->getData('Ammount')?>: <?php echo $this->getData('i')?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Number')?></th>
|
||||
<th><a href="?mode=memberslist&sort1=1&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Name')?></a></th>
|
||||
<th></th>
|
||||
<th><a href="?mode=memberslist&sort1=2&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Position')?></a></th>
|
||||
<th><a href="?mode=memberslist&sort1=3&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Points')?></a></th>
|
||||
<th><a href="?mode=memberslist&sort1=0&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Coordinated')?></a></th>
|
||||
<th><a href="?mode=memberslist&sort1=4&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Member_from')?></a></th>
|
||||
<th><a href="?mode=memberslist&sort1=5&sort2=<?php echo $this->getData('s')?>"><?php echo $this->getData('Online')?></a></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('list')?>
|
||||
<tr>
|
||||
<td class="c" colspan="9"><a href="alliance.php"><?php echo $this->getData('Return_to_overview')?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<br>
|
||||
<table width="519">
|
||||
<tr>
|
||||
<td class="c" colspan="2"><?php echo $this->getData('search_alliance')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $this->getData('Search')?></th>
|
||||
<th><form action="" method="POST"><input type="text" name="searchtext" value="<?php echo $this->getData('searchtext')?>"><input type="submit" value="<?php echo $this->getData('Search')?>"></th>
|
||||
</tr></form>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
<br>
|
||||
<tr>
|
||||
<th><center><?php echo $this->getData('ally_tag')?></center></th>
|
||||
<th><center><?php echo $this->getData('ally_name')?></center></th>
|
||||
<th><center><?php echo $this->getData('ally_members')?></center></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<br>
|
||||
<table width=519>
|
||||
<tr>
|
||||
<td class=c colspan=3><?php echo $this->getData('searched_alliance_availables')?></th>
|
||||
</tr>
|
||||
|
||||
<?php echo $this->getData('result')?>
|
||||
|
||||
<tr>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<br>
|
||||
<table width="600" style="color:#FFFFFF">
|
||||
<tr>
|
||||
<td class="c" colspan="6"><?php echo $this->getData('ban_title')?></td>
|
||||
</tr><tr>
|
||||
<th><?php echo $this->getData('ban_name')?></th>
|
||||
<th><?php echo $this->getData('ban_reason')?></th>
|
||||
<th><?php echo $this->getData('ban_from')?></th>
|
||||
<th><?php echo $this->getData('ban_to')?></th>
|
||||
<th><?php echo $this->getData('ban_by')?></th>
|
||||
</tr>
|
||||
<?php echo $this->getData('banned')?>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<center>
|
||||
<br />
|
||||
<?php echo $this->getData('BuildListScript')?>
|
||||
<table width=530>
|
||||
<?php echo $this->getData('BuildList')?>
|
||||
<tr>
|
||||
<th ><?php echo $this->getData('bld_usedcells')?></th>
|
||||
<th colspan="2" >
|
||||
<font color="#00FF00"><?php echo $this->getData('planet_field_current')?></font> / <font color="#FF0000"><?php echo $this->getData('planet_field_max')?></font> <?php echo $this->getData('bld_theyare')?> <?php echo $this->getData('field_libre')?> <?php echo $this->getData('bld_cellfree')?>
|
||||
</th >
|
||||
</tr>
|
||||
<?php echo $this->getData('BuildingsList')?>
|
||||
</table>
|
||||
<br />
|
||||
</center>
|
||||
|
|
@ -1,22 +1,22 @@
|
|||
<script src="scripts/cnt.js" type="text/javascript"></script>
|
||||
<div id="btc" class="z"></div><script language="JavaScript">
|
||||
pp = '{time}';
|
||||
pk = '{building_id}';
|
||||
pl = '{id}';
|
||||
pp = '<?php echo $this->getData('time')?>';
|
||||
pk = '<?php echo $this->getData('building_id')?>';
|
||||
pl = '<?php echo $this->getData('id')?>';
|
||||
ps = 'buildings.php';
|
||||
t();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
v = new Date();
|
||||
p = 0;
|
||||
g = {b_building_queue};
|
||||
g = <?php echo $this->getData('b_building_queue')?>;
|
||||
s = 0;
|
||||
hs = 0;
|
||||
of = 1;
|
||||
c = new Array({c}'');
|
||||
b = new Array({b}'');
|
||||
a = new Array({a}'');
|
||||
aa = '{completed}';
|
||||
c = new Array(<?php echo $this->getData('c')?>'');
|
||||
b = new Array(<?php echo $this->getData('b')?>'');
|
||||
a = new Array(<?php echo $this->getData('a')?>'');
|
||||
aa = '<?php echo $this->getData('completed')?>';
|
||||
|
||||
function t() {
|
||||
if ( hs == 0 ) {
|
||||
|
|
@ -75,7 +75,7 @@ function xd() {
|
|||
ae = " ";
|
||||
}
|
||||
if ( iv == p ) {
|
||||
act = " ({in_working})";
|
||||
act = " (<?php echo $this->getData('in_working')?>)";
|
||||
} else {
|
||||
act = "";
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ window.onload = t;
|
|||
<input type="hidden" name="mode" value="fleet">
|
||||
<table width="530">
|
||||
<tr>
|
||||
<td class="c" >{work_todo}</td>
|
||||
<td class="c" ><?php echo $this->getData('work_todo')?></td>
|
||||
</tr><tr>
|
||||
<th ><select name="auftr" size="10"></select></th>
|
||||
</tr><tr>
|
||||
|
|
@ -100,8 +100,8 @@ window.onload = t;
|
|||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{total_left_time}
|
||||
<?php echo $this->getData('total_left_time')?>
|
||||
|
||||
{pretty_time_b_hangar}
|
||||
<?php echo $this->getData('pretty_time_b_hangar')?>
|
||||
<br>
|
||||
</center>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue