Problema risolto Errore

Riferimento: Errore

non mi fa accedere più al game,mentre stavo costruendo mi ha sloggato con questo messaggio di errore:
Message: unserialize() [function.unserialize]: Error at offset 36 of 80 bytes
File: /membri/xspace/includes/pages/game/class.ShowOverviewPage.php
Line: 145
URL: non posso dirlo
PHP-Version: 5.2.17
PHP-API: apache2handler
MySQL-Cleint-Version: 5.1.49
2Moons Version: 1.7.2438
Debug Backtrace:
#0 [internal function]: errorHandler('a:1:{i:0;a:5:{i...')
#1 /includes/pages/game/class.ShowOverviewPage.php(145): unserialize()
#2 /game.php(65): ShowOverviewPage->show()
#3 {main}
 
Riferimento: Errore

non mi fa accedere più al game,mentre stavo costruendo mi ha sloggato con questo messaggio di errore:
Message: unserialize() [function.unserialize]: Error at offset 36 of 80 bytes
File: /membri/xspace/includes/pages/game/class.ShowOverviewPage.php
Line: 145
URL: non posso dirlo
PHP-Version: 5.2.17
PHP-API: apache2handler
MySQL-Cleint-Version: 5.1.49
2Moons Version: 1.7.2438
Debug Backtrace:
#0 [internal function]: errorHandler('a:1:{i:0;a:5:{i...')
#1 /includes/pages/game/class.ShowOverviewPage.php(145): unserialize()
#2 /game.php(65): ShowOverviewPage->show()
#3 {main}

Cos'è che stavi modificando di preciso? L'errore è sempre del class.ShowOverviewPage.php
 
Riferimento: Errore

stavo facendo la fabbrica robot al 14 e pum!Ma con un altro utente sono riuscito ad entrare,adesso ho capito,c'è come un blocco di costruzioni che oltre quel limite di tempo,nel senso che se faccio troppe costruzioni in modo veloce.Difatti c'è timeline 0 o una cosa del genere...
 
Riferimento: Errore

stavo facendo la fabbrica robot al 14 e pum!Ma con un altro utente sono riuscito ad entrare,adesso ho capito,c'è come un blocco di costruzioni che oltre quel limite di tempo,nel senso che se faccio troppe costruzioni in modo veloce.Difatti c'è timeline 0 o una cosa del genere...

Allora modifica quel value ed inseriscine uno più alto, credo sia espresso in secondi.
 
Riferimento: Errore

non so se è la stessa cosa ma ho visto questo post
Perfavore, Entra oppure Registrati per vedere i Link!
dice di andare su phpmyadmin e modificare l'id del pianeta,ma là è sulla linea 294 mentre a me sulla 293.Comunque farò come mi hai detto
--------------- AGGIUNTA AL POST ---------------
ti do il codice di planetressupdate.php,comunque alla riga 293 c'è scritto $BuildQueue = unserialize($this->PLANET['b_hangar_id']);
<?php

/**
* 2Moons
* Copyright (C) 2012 Jan Kröpke
*
* 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/>.
*
* @Package 2Moons
* @author Jan Kröpke <info@2moons.cc>
* @Copyright 2012 Jan Kröpke <info@2moons.cc>
* @license
Perfavore, Entra oppure Registrati per vedere i Link!
GNU GPLv3 License
* @Version 1.7.0 (2012-12-31)
* @Info $Id: class.PlanetRessUpdate.php 2416 2012-11-10 00:12:51Z slaver7 $
* @Link
Perfavore, Entra oppure Registrati per vedere i Link!

*/

class ResourceUpdate
{
function __construct($Build = true, $Tech = true)
{
$this->Builded = array();
$this->Build = $Build;
$this->Tech = $Tech;
$this->USER = array();
$this->PLANET = array();
}

public function ReturnVars() {
if($this->GLOBALS)
{
$GLOBALS['USER'] = $this->USER;
$GLOBALS['PLANET'] = $this->PLANET;
return true;
} else {
return array($this->USER, $this->PLANET);
}
}

public function CreateHash() {
global $reslist, $resource;
$Hash = array();
foreach($reslist['prod'] as $ID) {
$Hash[] = $this->PLANET[$resource[$ID]];
$Hash[] = $this->PLANET[$resource[$ID].'_porcent'];
}

$ressource = array_merge(array(), $reslist['resstype'][1], $reslist['resstype'][2]);
foreach($ressource as $ID) {
$Hash[] = $this->CONF[$resource[$ID].'_basic_income'];
}

$Hash[] = $this->CONF['resource_multiplier'];
$Hash[] = $this->CONF['energySpeed'];
$Hash[] = $this->USER['factor']['Resource'];
$Hash[] = $this->PLANET[$resource[22]];
$Hash[] = $this->PLANET[$resource[23]];
$Hash[] = $this->PLANET[$resource[24]];
$Hash[] = $this->USER[$resource[131]];
$Hash[] = $this->USER[$resource[132]];
$Hash[] = $this->USER[$resource[133]];
return md5(implode("::", $Hash));
}

public function CalcResource($USER = NULL, $PLANET = NULL, $SAVE = false, $TIME = NULL, $HASH = true)
{
$this->GLOBALS = !isset($USER, $PLANET) ? true : false;
$this->USER = $this->GLOBALS ? $GLOBALS['USER'] : $USER;
$this->PLANET = $this->GLOBALS ? $GLOBALS['PLANET'] : $PLANET;
$this->TIME = is_null($TIME) ? TIMESTAMP : $TIME;
$this->CONF = Config::getAll(NULL, $this->USER['universe']);
# $this->CONF['energySpeed'] = 1;

if($this->USER['urlaubs_modus'] == 1)
return $this->ReturnVars();

if($this->Build)
{
$this->ShipyardQueue();
if($this->Tech == true && $this->USER['b_tech'] != 0 && $this->USER['b_tech'] < $this->TIME)
$this->ResearchQueue();
if($this->PLANET['b_building'] != 0)
$this->BuildingQueue();
}

$this->UpdateRessource($this->TIME, $HASH);

if($SAVE === true)
$this->SavePlanetToDB($this->USER, $this->PLANET);

return $this->ReturnVars();
}

public function UpdateRessource($TIME, $HASH = false)
{
$this->ProductionTime = ($TIME - $this->PLANET['last_update']);

if($this->ProductionTime > 0)
{
$this->PLANET['last_update'] = $TIME;
if($HASH === false) {
$this->ReBuildCache();
} else {
$this->HASH = $this->CreateHash();

if($this->PLANET['eco_hash'] !== $this->HASH) {
$this->PLANET['eco_hash'] = $this->HASH;
$this->ReBuildCache();
}
}
$this->ExecCalc();
}
}

private function ExecCalc()
{
if($this->PLANET['planet_type'] == 3)
return;

$MaxMetalStorage = $this->PLANET['metal_max'] * $this->CONF['max_overflow'];
$MaxCristalStorage = $this->PLANET['crystal_max'] * $this->CONF['max_overflow'];
$MaxDeuteriumStorage = $this->PLANET['deuterium_max'] * $this->CONF['max_overflow'];

$MetalTheorical = $this->ProductionTime * (($this->CONF['metal_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['metal_perhour']) / 3600;

if($MetalTheorical < 0)
{
$this->PLANET['metal'] = max($this->PLANET['metal'] + $MetalTheorical, 0);
}
elseif ($this->PLANET['metal'] <= $MaxMetalStorage)
{
$this->PLANET['metal'] = min($this->PLANET['metal'] + $MetalTheorical, $MaxMetalStorage);
}

$CristalTheorical = $this->ProductionTime * (($this->CONF['crystal_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['crystal_perhour']) / 3600;
if ($CristalTheorical < 0)
{
$this->PLANET['crystal'] = max($this->PLANET['crystal'] + $CristalTheorical, 0);
}
elseif ($this->PLANET['crystal'] <= $MaxCristalStorage )
{
$this->PLANET['crystal'] = min($this->PLANET['crystal'] + $CristalTheorical, $MaxCristalStorage);
}

$DeuteriumTheorical = $this->ProductionTime * (($this->CONF['deuterium_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['deuterium_perhour']) / 3600;
if ($DeuteriumTheorical < 0)
{
$this->PLANET['deuterium'] = max($this->PLANET['deuterium'] + $DeuteriumTheorical, 0);
}
elseif($this->PLANET['deuterium'] <= $MaxDeuteriumStorage)
{
$this->PLANET['deuterium'] = min($this->PLANET['deuterium'] + $DeuteriumTheorical, $MaxDeuteriumStorage);
}

$this->PLANET['metal'] = max($this->PLANET['metal'], 0);
$this->PLANET['crystal'] = max($this->PLANET['crystal'], 0);
$this->PLANET['deuterium'] = max($this->PLANET['deuterium'], 0);
}

public static function getProd($Calculation)
{
return 'return '.$Calculation.';';
}

public static function getNetworkLevel($USER, $PLANET)
{
global $resource;

$lablevel = array();
if($USER[$resource[123]] == 0) {
$lablevel[] = $PLANET[$resource[31]];
} else {
$LevelRow = $GLOBALS['DATABASE']->query("SELECT ".$resource[31]." FROM ".PLANETS." WHERE id != '".$PLANET['id']."' AND id_owner = '".$USER['id']."' AND destruyed = 0 ORDER BY ".$resource[31]." DESC LIMIT ".($USER[$resource[123]]).";");
$lablevel[] = $PLANET[$resource[31]];
while($Levels = $GLOBALS['DATABASE']->fetch_array($LevelRow))
{
$lablevel[] = $Levels[$resource[31]];
}
$GLOBALS['DATABASE']->free_result($LevelRow);
}

return $lablevel;
}

public function ReBuildCache()
{
global $ProdGrid, $resource, $reslist, $pricelist;

if ($this->PLANET['planet_type'] == 3)
{
$this->CONF['metal_basic_income'] = 0;
$this->CONF['crystal_basic_income'] = 0;
$this->CONF['deuterium_basic_income'] = 0;
}

$temp = array(
901 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
902 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
903 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
911 => array(
'plus' => 0,
'minus' => 0,
)
);

$BuildTemp = $this->PLANET['temp_max'];
$BuildEnergy = $this->USER[$resource[113]];

foreach($reslist['storage'] as $ProdID)
{
foreach($reslist['resstype'][1] as $ID)
{
if(!isset($ProdGrid[$ProdID]['storage'][$ID]))
continue;

$BuildLevel = $this->PLANET[$resource[$ProdID]];
$temp[$ID]['max'] += round(eval(self::getProd($ProdGrid[$ProdID]['storage'][$ID])));
}
}

$ressIDs = array_merge(array(), $reslist['resstype'][1], $reslist['resstype'][2]);

foreach($reslist['prod'] as $ProdID)
{
$BuildLevelFactor = $this->PLANET[$resource[$ProdID].'_porcent'];
$BuildLevel = $this->PLANET[$resource[$ProdID]];

foreach($ressIDs as $ID)
{
if(!isset($ProdGrid[$ProdID]['production'][$ID]))
continue;

$Production = eval(self::getProd($ProdGrid[$ProdID]['production'][$ID]));

if($Production > 0) {
$temp[$ID]['plus'] += $Production;
} else {
if(in_array($ID, $reslist['resstype'][1]) && $this->PLANET[$resource[$ID]] == 0) {
continue;
}

$temp[$ID]['minus'] += $Production;
}
}
}

$this->PLANET['metal_max'] = $temp[901]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);
$this->PLANET['crystal_max'] = $temp[902]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);
$this->PLANET['deuterium_max'] = $temp[903]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);

$this->PLANET['energy'] = round($temp[911]['plus'] * $this->CONF['energySpeed'] * (1 + $this->USER['factor']['Energy']));
$this->PLANET['energy_used'] = $temp[911]['minus'];
if($this->PLANET['energy_used'] == 0) {
$this->PLANET['metal_perhour'] = 0;
$this->PLANET['crystal_perhour'] = 0;
$this->PLANET['deuterium_perhour'] = 0;
} else {
$prodLevel = min(1, $this->PLANET['energy'] / abs($this->PLANET['energy_used']));

$this->PLANET['metal_perhour'] = ($temp[901]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[131]]) * $prodLevel + $temp[901]['minus']) * $this->CONF['resource_multiplier'];
$this->PLANET['crystal_perhour'] = ($temp[902]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[132]]) * $prodLevel + $temp[902]['minus']) * $this->CONF['resource_multiplier'];
$this->PLANET['deuterium_perhour'] = ($temp[903]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[133]]) * $prodLevel + $temp[903]['minus']) * $this->CONF['resource_multiplier'];
}
}

private function ShipyardQueue()
{
global $resource;

$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] = 0;
$this->PLANET['b_hangar_id'] = '';
return false;
}

$AcumTime = 0;
$this->PLANET['b_hangar'] += ($this->TIME - $this->PLANET['last_update']);
$BuildArray = array();
foreach($BuildQueue as $Item)
{
$AcumTime = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $Item[0]);
$BuildArray[] = array($Item[0], $Item[1], $AcumTime);
}

$NewQueue = array();
$Done = false;
foreach($BuildArray as $Item)
{
$Element = $Item[0];
$Count = $Item[1];

if($Done == false) {
$BuildTime = $Item[2];
$Element = (int)$Element;
if($BuildTime == 0) {
if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

$this->Builded[$Element] += $Count;
$this->PLANET[$resource[$Element]] += $Count;
continue;
}

$Build = max(min(floor($this->PLANET['b_hangar'] / $BuildTime), $Count), 0);

if($Build == 0) {
$NewQueue[] = array($Element, $Count);
$Done = true;
continue;
}

if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

$this->Builded[$Element] += $Build;
$this->PLANET['b_hangar'] -= $Build * $BuildTime;
$this->PLANET[$resource[$Element]] += $Build;
$Count -= $Build;

if ($Count == 0)
continue;
else
$Done = true;
}
$NewQueue[] = array($Element, $Count);
}
$this->PLANET['b_hangar_id'] = !empty($NewQueue) ? serialize($NewQueue) : '';

}

private function BuildingQueue()
{
while($this->CheckPlanetBuildingQueue())
$this->SetNextQueueElementOnTop();
}

private function CheckPlanetBuildingQueue()
{
global $resource, $reslist;

if (empty($this->PLANET['b_building_id']) || $this->PLANET['b_building'] > $this->TIME)
return false;

$CurrentQueue = unserialize($this->PLANET['b_building_id']);

$Element = $CurrentQueue[0][0];
$Level = $CurrentQueue[0][1];
$BuildEndTime = $CurrentQueue[0][3];
$BuildMode = $CurrentQueue[0][4];

if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

if ($BuildMode == 'build')
{
$this->PLANET['field_current'] += 1;
$this->PLANET[$resource[$Element]] += 1;
$this->Builded[$Element] += 1;
}
else
{
$this->PLANET['field_current'] -= 1;
$this->PLANET[$resource[$Element]] -= 1;
$this->Builded[$Element] -= 1;
}


array_shift($CurrentQueue);
$OnHash = in_array($Element, $reslist['prod']);
$this->UpdateRessource($BuildEndTime, !$OnHash);

if (count($CurrentQueue) == 0) {
$this->PLANET['b_building'] = 0;
$this->PLANET['b_building_id'] = '';

return false;
} else {
$this->PLANET['b_building_id'] = serialize($CurrentQueue);
return true;
}
}

public function SetNextQueueElementOnTop()
{
global $resource, $LNG;

if (empty($this->PLANET['b_building_id'])) {
$this->PLANET['b_building'] = 0;
$this->PLANET['b_building_id'] = '';
return false;
}

$CurrentQueue = unserialize($this->PLANET['b_building_id']);
$Loop = true;
while ($Loop == true)
{
$ListIDArray = $CurrentQueue[0];
$Element = $ListIDArray[0];
$Level = $ListIDArray[1];
$BuildMode = $ListIDArray[4];
$ForDestroy = ($BuildMode == 'destroy') ? true : false;
$costRessources = BuildFunctions::getElementPrice($this->USER, $this->PLANET, $Element, $ForDestroy);
$BuildTime = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $Element, $costRessources);
$HaveRessources = BuildFunctions::isElementBuyable($this->USER, $this->PLANET, $Element, $costRessources);
$BuildEndTime = $this->PLANET['b_building'] + $BuildTime;
$CurrentQueue[0] = array($Element, $Level, $BuildTime, $BuildEndTime, $BuildMode);
$HaveNoMoreLevel = false;

if($ForDestroy && $this->PLANET[$resource[$Element]] == 0) {
$HaveRessources = false;
$HaveNoMoreLevel = true;
}

if($HaveRessources === true) {
if(isset($costRessources[901])) { $this->PLANET[$resource[901]] -= $costRessources[901]; }
if(isset($costRessources[902])) { $this->PLANET[$resource[902]] -= $costRessources[902]; }
if(isset($costRessources[903])) { $this->PLANET[$resource[903]] -= $costRessources[903]; }
if(isset($costRessources[921])) { $this->USER[$resource[921]] -= $costRessources[921]; }
$NewQueue = serialize($CurrentQueue);
$Loop = false;
} else {
if($this->USER['hof'] == 1){
if ($HaveNoMoreLevel) {
$Message = sprintf($LNG['sys_nomore_level'], $LNG['tech'][$Element]);
} else {
if(!isset($costRessources[901])) { $costRessources[901] = 0; }
if(!isset($costRessources[902])) { $costRessources[902] = 0; }
if(!isset($costRessources[903])) { $costRessources[903] = 0; }

$Message = sprintf($LNG['sys_notenough_money'], $this->PLANET['name'], $this->PLANET['id'], $this->PLANET['galaxy'], $this->PLANET['system'], $this->PLANET['planet'], $LNG['tech'][$Element], pretty_number ($this->PLANET['metal']), $LNG['tech'][901], pretty_number($this->PLANET['crystal']), $LNG['tech'][902], pretty_number ($this->PLANET['deuterium']), $LNG['tech'][903], pretty_number($costRessources[901]), $LNG['tech'][901], pretty_number ($costRessources[902]), $LNG['tech'][902], pretty_number ($costRessources[903]), $LNG['tech'][903]);
}

SendSimpleMessage($this->USER['id'], 0, $this->TIME, 99, $LNG['sys_buildlist'], $LNG['sys_buildlist_fail'], $Message);
}

array_shift($CurrentQueue);

if (count($CurrentQueue) == 0) {
$BuildEndTime = 0;
$NewQueue = '';
$Loop = false;
} else {
$BaseTime = $BuildEndTime - $BuildTime;
$NewQueue = array();
foreach($CurrentQueue as $ListIDArray)
{
$ListIDArray[2] = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $ListIDArray[0], NULL, $ListIDArray[4] == 'destroy');
$BaseTime += $ListIDArray[2];
$ListIDArray[3] = $BaseTime;
$NewQueue[] = $ListIDArray;
}
$CurrentQueue = $NewQueue;
}
}
}

$this->PLANET['b_building'] = $BuildEndTime;
$this->PLANET['b_building_id'] = $NewQueue;
}

private function ResearchQueue()
{
while($this->CheckUserTechQueue())
$this->SetNextQueueTechOnTop();
}

private function CheckUserTechQueue()
{
global $resource;

if (empty($this->USER['b_tech_id']) || $this->USER['b_tech'] > $this->TIME)
return false;

if(!isset($this->Builded[$this->USER['b_tech_id']]))
$this->Builded[$this->USER['b_tech_id']] = 0;

$this->Builded[$this->USER['b_tech_id']] += 1;
$this->USER[$resource[$this->USER['b_tech_id']]] += 1;


$CurrentQueue = unserialize($this->USER['b_tech_queue']);
array_shift($CurrentQueue);

$this->USER['b_tech_id'] = 0;
if (count($CurrentQueue) == 0) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';

return false;
} else {
$this->USER['b_tech_queue'] = serialize(array_values($CurrentQueue));
return true;
}
}

public function SetNextQueueTechOnTop()
{
global $resource, $LNG;

if (empty($this->USER['b_tech_queue'])) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';
return false;
}

$CurrentQueue = unserialize($this->USER['b_tech_queue']);
$Loop = true;
while ($Loop == true)
{
$ListIDArray = $CurrentQueue[0];
if($ListIDArray[4] != $this->PLANET['id'])
$PLANET = $GLOBALS['DATABASE']->getFirstRow("SELECT * FROM ".PLANETS." WHERE id = '".$ListIDArray[4]."';");
else
$PLANET = $this->PLANET;

$PLANET[$resource[31].'_inter'] = self::getNetworkLevel($this->USER, $PLANET);

$Element = $ListIDArray[0];
$Level = $ListIDArray[1];
$costRessources = BuildFunctions::getElementPrice($this->USER, $PLANET, $Element);
$BuildTime = BuildFunctions::getBuildingTime($this->USER, $PLANET, $Element, $costRessources);
$HaveRessources = BuildFunctions::isElementBuyable($this->USER, $PLANET, $Element, $costRessources);
$BuildEndTime = $this->USER['b_tech'] + $BuildTime;
$CurrentQueue[0] = array($Element, $Level, $BuildTime, $BuildEndTime, $PLANET['id']);

$isAnotherPlanet = $ListIDArray[4] != $this->PLANET['id'];

if($isAnotherPlanet) {
$IsHash = !in_array($Element, array(131, 132, 133));
$RPLANET = new ResourceUpdate(true, false);
list(, $PLANET) = $RPLANET->CalcResource($this->USER, $PLANET, false, $this->USER['b_tech'], $IsHash);
}

if($HaveRessources == true) {
if(isset($costRessources[901])) { $PLANET[$resource[901]] -= $costRessources[901]; }
if(isset($costRessources[902])) { $PLANET[$resource[902]] -= $costRessources[902]; }
if(isset($costRessources[903])) { $PLANET[$resource[903]] -= $costRessources[903]; }
if(isset($costRessources[921])) { $this->USER[$resource[921]] -= $costRessources[921]; }
$this->USER['b_tech_id'] = $Element;
$this->USER['b_tech'] = $BuildEndTime;
$this->USER['b_tech_planet'] = $PLANET['id'];
$this->USER['b_tech_queue'] = serialize($CurrentQueue);

$Loop = false;
} else {
if($this->USER['hof'] == 1){
if(!isset($costRessources[901])) { $costRessources[901] = 0; }
if(!isset($costRessources[902])) { $costRessources[902] = 0; }
if(!isset($costRessources[903])) { $costRessources[903] = 0; }

$Message = sprintf($LNG['sys_notenough_money'], $PLANET['name'], $PLANET['id'], $PLANET['galaxy'], $PLANET['system'], $PLANET['planet'], $LNG['tech'][$Element], pretty_number ($PLANET['metal']), $LNG['tech'][901], pretty_number($PLANET['crystal']), $LNG['tech'][902], pretty_number ($PLANET['deuterium']), $LNG['tech'][903], pretty_number($costRessources[901]), $LNG['tech'][901], pretty_number ($costRessources[902]), $LNG['tech'][902], pretty_number ($costRessources[903]), $LNG['tech'][903]);
SendSimpleMessage($this->USER['id'], 0, $this->USER['b_tech'], 99, $LNG['sys_techlist'], $LNG['sys_buildlist_fail'], $Message);
}

array_shift($CurrentQueue);

if (count($CurrentQueue) == 0) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';

$Loop = false;
} else {
$BaseTime = $BuildEndTime - $BuildTime;
$NewQueue = array();
foreach($CurrentQueue as $ListIDArray)
{
$ListIDArray[2] = BuildFunctions::getBuildingTime($this->USER, $PLANET, $ListIDArray[0]);
$BaseTime += $ListIDArray[2];
$ListIDArray[3] = $BaseTime;
$NewQueue[] = $ListIDArray;
}
$CurrentQueue = $NewQueue;
}
}

if($isAnotherPlanet)
$RPLANET->SavePlanetToDB($this->USER, $PLANET);
else
$this->PLANET = $PLANET;
}

}

public function SavePlanetToDB($USER = NULL, $PLANET = NULL)
{
global $resource, $reslist;

if(is_null($USER))
global $USER;

if(is_null($PLANET))
global $PLANET;

$Qry = "LOCK TABLE ".PLANETS." as p WRITE, ".USERS." as u WRITE;
UPDATE ".PLANETS." as p, ".USERS." as u SET
p.metal = ".$PLANET['metal'].",
p.crystal = ".$PLANET['crystal'].",
p.deuterium = ".$PLANET['deuterium'].",
p.eco_hash = '".$PLANET['eco_hash']."',
p.last_update = ".$PLANET['last_update'].",
p.b_building = '".$PLANET['b_building']."',
p.b_building_id = '".$PLANET['b_building_id']."',
p.field_current = ".$PLANET['field_current'].",
p.b_hangar_id = '".$PLANET['b_hangar_id']."',
p.metal_perhour = ".$PLANET['metal_perhour'].",
p.crystal_perhour = ".$PLANET['crystal_perhour'].",
p.deuterium_perhour = ".$PLANET['deuterium_perhour'].",
p.metal_max = ".$PLANET['metal_max'].",
p.crystal_max = ".$PLANET['crystal_max'].",
p.deuterium_max = ".$PLANET['deuterium_max'].",
p.energy_used = ".$PLANET['energy_used'].",
p.energy = ".$PLANET['energy'].",
p.b_hangar = ". $PLANET['b_hangar'] .", ";
if (!empty($this->Builded))
{
foreach($this->Builded as $Element => $Count)
{
$Element = (int) $Element;

if(empty($resource[$Element]) || empty($Count)) {
continue;
}

if(in_array($Element, $reslist['one'])) {
$Qry .= "p.".$resource[$Element]." = '1', ";
} elseif(isset($PLANET[$resource[$Element]])) {
$Qry .= "p.".$resource[$Element]." = p.".$resource[$Element]." + ".$Count.", ";
} elseif(isset($USER[$resource[$Element]])) {
$Qry .= "u.".$resource[$Element]." = u.".$resource[$Element]." + ".$Count.", ";
}
}
}
$Qry .= "u.darkmatter = ".$USER['darkmatter'].",
u.b_tech = '".$USER['b_tech']."',
u.b_tech_id = '".$USER['b_tech_id']."',
u.b_tech_planet = '".$USER['b_tech_planet']."',
u.b_tech_queue = '".$USER['b_tech_queue']."'
WHERE
p.id = ".$PLANET['id']." AND
u.id = ".$USER['id'].";
UNLOCK TABLES;";
$GLOBALS['DATABASE']->multi_query($Qry);
$this->Builded = array();


return array($USER, $PLANET);
}
}
?>
--------------- AGGIUNTA AL POST ---------------
$this->PLANET['b_hangar'] = 0;(alla riga 293) al file b_hangar c'è zero,io non capisco,eppure coincide
 
Ultima modifica:
Riferimento: Errore

non so se è la stessa cosa ma ho visto questo post
Perfavore, Entra oppure Registrati per vedere i Link!
dice di andare su phpmyadmin e modificare l'id del pianeta,ma là è sulla linea 294 mentre a me sulla 293.Comunque farò come mi hai detto
--------------- AGGIUNTA AL POST ---------------
ti do il codice di planetressupdate.php,comunque alla riga 293 c'è scritto $BuildQueue = unserialize($this->PLANET['b_hangar_id']);
<?php

/**
* 2Moons
* Copyright (C) 2012 Jan Kröpke
*
* 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/>.
*
* @Package 2Moons
* @author Jan Kröpke <info@2moons.cc>
* @Copyright 2012 Jan Kröpke <info@2moons.cc>
* @license
Perfavore, Entra oppure Registrati per vedere i Link!
GNU GPLv3 License
* @Version 1.7.0 (2012-12-31)
* @Info $Id: class.PlanetRessUpdate.php 2416 2012-11-10 00:12:51Z slaver7 $
* @Link
Perfavore, Entra oppure Registrati per vedere i Link!

*/

class ResourceUpdate
{
function __construct($Build = true, $Tech = true)
{
$this->Builded = array();
$this->Build = $Build;
$this->Tech = $Tech;
$this->USER = array();
$this->PLANET = array();
}

public function ReturnVars() {
if($this->GLOBALS)
{
$GLOBALS['USER'] = $this->USER;
$GLOBALS['PLANET'] = $this->PLANET;
return true;
} else {
return array($this->USER, $this->PLANET);
}
}

public function CreateHash() {
global $reslist, $resource;
$Hash = array();
foreach($reslist['prod'] as $ID) {
$Hash[] = $this->PLANET[$resource[$ID]];
$Hash[] = $this->PLANET[$resource[$ID].'_porcent'];
}

$ressource = array_merge(array(), $reslist['resstype'][1], $reslist['resstype'][2]);
foreach($ressource as $ID) {
$Hash[] = $this->CONF[$resource[$ID].'_basic_income'];
}

$Hash[] = $this->CONF['resource_multiplier'];
$Hash[] = $this->CONF['energySpeed'];
$Hash[] = $this->USER['factor']['Resource'];
$Hash[] = $this->PLANET[$resource[22]];
$Hash[] = $this->PLANET[$resource[23]];
$Hash[] = $this->PLANET[$resource[24]];
$Hash[] = $this->USER[$resource[131]];
$Hash[] = $this->USER[$resource[132]];
$Hash[] = $this->USER[$resource[133]];
return md5(implode("::", $Hash));
}

public function CalcResource($USER = NULL, $PLANET = NULL, $SAVE = false, $TIME = NULL, $HASH = true)
{
$this->GLOBALS = !isset($USER, $PLANET) ? true : false;
$this->USER = $this->GLOBALS ? $GLOBALS['USER'] : $USER;
$this->PLANET = $this->GLOBALS ? $GLOBALS['PLANET'] : $PLANET;
$this->TIME = is_null($TIME) ? TIMESTAMP : $TIME;
$this->CONF = Config::getAll(NULL, $this->USER['universe']);
# $this->CONF['energySpeed'] = 1;

if($this->USER['urlaubs_modus'] == 1)
return $this->ReturnVars();

if($this->Build)
{
$this->ShipyardQueue();
if($this->Tech == true && $this->USER['b_tech'] != 0 && $this->USER['b_tech'] < $this->TIME)
$this->ResearchQueue();
if($this->PLANET['b_building'] != 0)
$this->BuildingQueue();
}

$this->UpdateRessource($this->TIME, $HASH);

if($SAVE === true)
$this->SavePlanetToDB($this->USER, $this->PLANET);

return $this->ReturnVars();
}

public function UpdateRessource($TIME, $HASH = false)
{
$this->ProductionTime = ($TIME - $this->PLANET['last_update']);

if($this->ProductionTime > 0)
{
$this->PLANET['last_update'] = $TIME;
if($HASH === false) {
$this->ReBuildCache();
} else {
$this->HASH = $this->CreateHash();

if($this->PLANET['eco_hash'] !== $this->HASH) {
$this->PLANET['eco_hash'] = $this->HASH;
$this->ReBuildCache();
}
}
$this->ExecCalc();
}
}

private function ExecCalc()
{
if($this->PLANET['planet_type'] == 3)
return;

$MaxMetalStorage = $this->PLANET['metal_max'] * $this->CONF['max_overflow'];
$MaxCristalStorage = $this->PLANET['crystal_max'] * $this->CONF['max_overflow'];
$MaxDeuteriumStorage = $this->PLANET['deuterium_max'] * $this->CONF['max_overflow'];

$MetalTheorical = $this->ProductionTime * (($this->CONF['metal_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['metal_perhour']) / 3600;

if($MetalTheorical < 0)
{
$this->PLANET['metal'] = max($this->PLANET['metal'] + $MetalTheorical, 0);
}
elseif ($this->PLANET['metal'] <= $MaxMetalStorage)
{
$this->PLANET['metal'] = min($this->PLANET['metal'] + $MetalTheorical, $MaxMetalStorage);
}

$CristalTheorical = $this->ProductionTime * (($this->CONF['crystal_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['crystal_perhour']) / 3600;
if ($CristalTheorical < 0)
{
$this->PLANET['crystal'] = max($this->PLANET['crystal'] + $CristalTheorical, 0);
}
elseif ($this->PLANET['crystal'] <= $MaxCristalStorage )
{
$this->PLANET['crystal'] = min($this->PLANET['crystal'] + $CristalTheorical, $MaxCristalStorage);
}

$DeuteriumTheorical = $this->ProductionTime * (($this->CONF['deuterium_basic_income'] * $this->CONF['resource_multiplier']) + $this->PLANET['deuterium_perhour']) / 3600;
if ($DeuteriumTheorical < 0)
{
$this->PLANET['deuterium'] = max($this->PLANET['deuterium'] + $DeuteriumTheorical, 0);
}
elseif($this->PLANET['deuterium'] <= $MaxDeuteriumStorage)
{
$this->PLANET['deuterium'] = min($this->PLANET['deuterium'] + $DeuteriumTheorical, $MaxDeuteriumStorage);
}

$this->PLANET['metal'] = max($this->PLANET['metal'], 0);
$this->PLANET['crystal'] = max($this->PLANET['crystal'], 0);
$this->PLANET['deuterium'] = max($this->PLANET['deuterium'], 0);
}

public static function getProd($Calculation)
{
return 'return '.$Calculation.';';
}

public static function getNetworkLevel($USER, $PLANET)
{
global $resource;

$lablevel = array();
if($USER[$resource[123]] == 0) {
$lablevel[] = $PLANET[$resource[31]];
} else {
$LevelRow = $GLOBALS['DATABASE']->query("SELECT ".$resource[31]." FROM ".PLANETS." WHERE id != '".$PLANET['id']."' AND id_owner = '".$USER['id']."' AND destruyed = 0 ORDER BY ".$resource[31]." DESC LIMIT ".($USER[$resource[123]]).";");
$lablevel[] = $PLANET[$resource[31]];
while($Levels = $GLOBALS['DATABASE']->fetch_array($LevelRow))
{
$lablevel[] = $Levels[$resource[31]];
}
$GLOBALS['DATABASE']->free_result($LevelRow);
}

return $lablevel;
}

public function ReBuildCache()
{
global $ProdGrid, $resource, $reslist, $pricelist;

if ($this->PLANET['planet_type'] == 3)
{
$this->CONF['metal_basic_income'] = 0;
$this->CONF['crystal_basic_income'] = 0;
$this->CONF['deuterium_basic_income'] = 0;
}

$temp = array(
901 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
902 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
903 => array(
'max' => 0,
'plus' => 0,
'minus' => 0,
),
911 => array(
'plus' => 0,
'minus' => 0,
)
);

$BuildTemp = $this->PLANET['temp_max'];
$BuildEnergy = $this->USER[$resource[113]];

foreach($reslist['storage'] as $ProdID)
{
foreach($reslist['resstype'][1] as $ID)
{
if(!isset($ProdGrid[$ProdID]['storage'][$ID]))
continue;

$BuildLevel = $this->PLANET[$resource[$ProdID]];
$temp[$ID]['max'] += round(eval(self::getProd($ProdGrid[$ProdID]['storage'][$ID])));
}
}

$ressIDs = array_merge(array(), $reslist['resstype'][1], $reslist['resstype'][2]);

foreach($reslist['prod'] as $ProdID)
{
$BuildLevelFactor = $this->PLANET[$resource[$ProdID].'_porcent'];
$BuildLevel = $this->PLANET[$resource[$ProdID]];

foreach($ressIDs as $ID)
{
if(!isset($ProdGrid[$ProdID]['production'][$ID]))
continue;

$Production = eval(self::getProd($ProdGrid[$ProdID]['production'][$ID]));

if($Production > 0) {
$temp[$ID]['plus'] += $Production;
} else {
if(in_array($ID, $reslist['resstype'][1]) && $this->PLANET[$resource[$ID]] == 0) {
continue;
}

$temp[$ID]['minus'] += $Production;
}
}
}

$this->PLANET['metal_max'] = $temp[901]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);
$this->PLANET['crystal_max'] = $temp[902]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);
$this->PLANET['deuterium_max'] = $temp[903]['max'] * $this->CONF['resource_multiplier'] * STORAGE_FACTOR * (1 + $this->USER['factor']['ResourceStorage']);

$this->PLANET['energy'] = round($temp[911]['plus'] * $this->CONF['energySpeed'] * (1 + $this->USER['factor']['Energy']));
$this->PLANET['energy_used'] = $temp[911]['minus'];
if($this->PLANET['energy_used'] == 0) {
$this->PLANET['metal_perhour'] = 0;
$this->PLANET['crystal_perhour'] = 0;
$this->PLANET['deuterium_perhour'] = 0;
} else {
$prodLevel = min(1, $this->PLANET['energy'] / abs($this->PLANET['energy_used']));

$this->PLANET['metal_perhour'] = ($temp[901]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[131]]) * $prodLevel + $temp[901]['minus']) * $this->CONF['resource_multiplier'];
$this->PLANET['crystal_perhour'] = ($temp[902]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[132]]) * $prodLevel + $temp[902]['minus']) * $this->CONF['resource_multiplier'];
$this->PLANET['deuterium_perhour'] = ($temp[903]['plus'] * (1 + $this->USER['factor']['Resource'] + 0.02 * $this->USER[$resource[133]]) * $prodLevel + $temp[903]['minus']) * $this->CONF['resource_multiplier'];
}
}

private function ShipyardQueue()
{
global $resource;

$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] = 0;
$this->PLANET['b_hangar_id'] = '';
return false;
}

$AcumTime = 0;
$this->PLANET['b_hangar'] += ($this->TIME - $this->PLANET['last_update']);
$BuildArray = array();
foreach($BuildQueue as $Item)
{
$AcumTime = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $Item[0]);
$BuildArray[] = array($Item[0], $Item[1], $AcumTime);
}

$NewQueue = array();
$Done = false;
foreach($BuildArray as $Item)
{
$Element = $Item[0];
$Count = $Item[1];

if($Done == false) {
$BuildTime = $Item[2];
$Element = (int)$Element;
if($BuildTime == 0) {
if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

$this->Builded[$Element] += $Count;
$this->PLANET[$resource[$Element]] += $Count;
continue;
}

$Build = max(min(floor($this->PLANET['b_hangar'] / $BuildTime), $Count), 0);

if($Build == 0) {
$NewQueue[] = array($Element, $Count);
$Done = true;
continue;
}

if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

$this->Builded[$Element] += $Build;
$this->PLANET['b_hangar'] -= $Build * $BuildTime;
$this->PLANET[$resource[$Element]] += $Build;
$Count -= $Build;

if ($Count == 0)
continue;
else
$Done = true;
}
$NewQueue[] = array($Element, $Count);
}
$this->PLANET['b_hangar_id'] = !empty($NewQueue) ? serialize($NewQueue) : '';

}

private function BuildingQueue()
{
while($this->CheckPlanetBuildingQueue())
$this->SetNextQueueElementOnTop();
}

private function CheckPlanetBuildingQueue()
{
global $resource, $reslist;

if (empty($this->PLANET['b_building_id']) || $this->PLANET['b_building'] > $this->TIME)
return false;

$CurrentQueue = unserialize($this->PLANET['b_building_id']);

$Element = $CurrentQueue[0][0];
$Level = $CurrentQueue[0][1];
$BuildEndTime = $CurrentQueue[0][3];
$BuildMode = $CurrentQueue[0][4];

if(!isset($this->Builded[$Element]))
$this->Builded[$Element] = 0;

if ($BuildMode == 'build')
{
$this->PLANET['field_current'] += 1;
$this->PLANET[$resource[$Element]] += 1;
$this->Builded[$Element] += 1;
}
else
{
$this->PLANET['field_current'] -= 1;
$this->PLANET[$resource[$Element]] -= 1;
$this->Builded[$Element] -= 1;
}


array_shift($CurrentQueue);
$OnHash = in_array($Element, $reslist['prod']);
$this->UpdateRessource($BuildEndTime, !$OnHash);

if (count($CurrentQueue) == 0) {
$this->PLANET['b_building'] = 0;
$this->PLANET['b_building_id'] = '';

return false;
} else {
$this->PLANET['b_building_id'] = serialize($CurrentQueue);
return true;
}
}

public function SetNextQueueElementOnTop()
{
global $resource, $LNG;

if (empty($this->PLANET['b_building_id'])) {
$this->PLANET['b_building'] = 0;
$this->PLANET['b_building_id'] = '';
return false;
}

$CurrentQueue = unserialize($this->PLANET['b_building_id']);
$Loop = true;
while ($Loop == true)
{
$ListIDArray = $CurrentQueue[0];
$Element = $ListIDArray[0];
$Level = $ListIDArray[1];
$BuildMode = $ListIDArray[4];
$ForDestroy = ($BuildMode == 'destroy') ? true : false;
$costRessources = BuildFunctions::getElementPrice($this->USER, $this->PLANET, $Element, $ForDestroy);
$BuildTime = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $Element, $costRessources);
$HaveRessources = BuildFunctions::isElementBuyable($this->USER, $this->PLANET, $Element, $costRessources);
$BuildEndTime = $this->PLANET['b_building'] + $BuildTime;
$CurrentQueue[0] = array($Element, $Level, $BuildTime, $BuildEndTime, $BuildMode);
$HaveNoMoreLevel = false;

if($ForDestroy && $this->PLANET[$resource[$Element]] == 0) {
$HaveRessources = false;
$HaveNoMoreLevel = true;
}

if($HaveRessources === true) {
if(isset($costRessources[901])) { $this->PLANET[$resource[901]] -= $costRessources[901]; }
if(isset($costRessources[902])) { $this->PLANET[$resource[902]] -= $costRessources[902]; }
if(isset($costRessources[903])) { $this->PLANET[$resource[903]] -= $costRessources[903]; }
if(isset($costRessources[921])) { $this->USER[$resource[921]] -= $costRessources[921]; }
$NewQueue = serialize($CurrentQueue);
$Loop = false;
} else {
if($this->USER['hof'] == 1){
if ($HaveNoMoreLevel) {
$Message = sprintf($LNG['sys_nomore_level'], $LNG['tech'][$Element]);
} else {
if(!isset($costRessources[901])) { $costRessources[901] = 0; }
if(!isset($costRessources[902])) { $costRessources[902] = 0; }
if(!isset($costRessources[903])) { $costRessources[903] = 0; }

$Message = sprintf($LNG['sys_notenough_money'], $this->PLANET['name'], $this->PLANET['id'], $this->PLANET['galaxy'], $this->PLANET['system'], $this->PLANET['planet'], $LNG['tech'][$Element], pretty_number ($this->PLANET['metal']), $LNG['tech'][901], pretty_number($this->PLANET['crystal']), $LNG['tech'][902], pretty_number ($this->PLANET['deuterium']), $LNG['tech'][903], pretty_number($costRessources[901]), $LNG['tech'][901], pretty_number ($costRessources[902]), $LNG['tech'][902], pretty_number ($costRessources[903]), $LNG['tech'][903]);
}

SendSimpleMessage($this->USER['id'], 0, $this->TIME, 99, $LNG['sys_buildlist'], $LNG['sys_buildlist_fail'], $Message);
}

array_shift($CurrentQueue);

if (count($CurrentQueue) == 0) {
$BuildEndTime = 0;
$NewQueue = '';
$Loop = false;
} else {
$BaseTime = $BuildEndTime - $BuildTime;
$NewQueue = array();
foreach($CurrentQueue as $ListIDArray)
{
$ListIDArray[2] = BuildFunctions::getBuildingTime($this->USER, $this->PLANET, $ListIDArray[0], NULL, $ListIDArray[4] == 'destroy');
$BaseTime += $ListIDArray[2];
$ListIDArray[3] = $BaseTime;
$NewQueue[] = $ListIDArray;
}
$CurrentQueue = $NewQueue;
}
}
}

$this->PLANET['b_building'] = $BuildEndTime;
$this->PLANET['b_building_id'] = $NewQueue;
}

private function ResearchQueue()
{
while($this->CheckUserTechQueue())
$this->SetNextQueueTechOnTop();
}

private function CheckUserTechQueue()
{
global $resource;

if (empty($this->USER['b_tech_id']) || $this->USER['b_tech'] > $this->TIME)
return false;

if(!isset($this->Builded[$this->USER['b_tech_id']]))
$this->Builded[$this->USER['b_tech_id']] = 0;

$this->Builded[$this->USER['b_tech_id']] += 1;
$this->USER[$resource[$this->USER['b_tech_id']]] += 1;


$CurrentQueue = unserialize($this->USER['b_tech_queue']);
array_shift($CurrentQueue);

$this->USER['b_tech_id'] = 0;
if (count($CurrentQueue) == 0) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';

return false;
} else {
$this->USER['b_tech_queue'] = serialize(array_values($CurrentQueue));
return true;
}
}

public function SetNextQueueTechOnTop()
{
global $resource, $LNG;

if (empty($this->USER['b_tech_queue'])) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';
return false;
}

$CurrentQueue = unserialize($this->USER['b_tech_queue']);
$Loop = true;
while ($Loop == true)
{
$ListIDArray = $CurrentQueue[0];
if($ListIDArray[4] != $this->PLANET['id'])
$PLANET = $GLOBALS['DATABASE']->getFirstRow("SELECT * FROM ".PLANETS." WHERE id = '".$ListIDArray[4]."';");
else
$PLANET = $this->PLANET;

$PLANET[$resource[31].'_inter'] = self::getNetworkLevel($this->USER, $PLANET);

$Element = $ListIDArray[0];
$Level = $ListIDArray[1];
$costRessources = BuildFunctions::getElementPrice($this->USER, $PLANET, $Element);
$BuildTime = BuildFunctions::getBuildingTime($this->USER, $PLANET, $Element, $costRessources);
$HaveRessources = BuildFunctions::isElementBuyable($this->USER, $PLANET, $Element, $costRessources);
$BuildEndTime = $this->USER['b_tech'] + $BuildTime;
$CurrentQueue[0] = array($Element, $Level, $BuildTime, $BuildEndTime, $PLANET['id']);

$isAnotherPlanet = $ListIDArray[4] != $this->PLANET['id'];

if($isAnotherPlanet) {
$IsHash = !in_array($Element, array(131, 132, 133));
$RPLANET = new ResourceUpdate(true, false);
list(, $PLANET) = $RPLANET->CalcResource($this->USER, $PLANET, false, $this->USER['b_tech'], $IsHash);
}

if($HaveRessources == true) {
if(isset($costRessources[901])) { $PLANET[$resource[901]] -= $costRessources[901]; }
if(isset($costRessources[902])) { $PLANET[$resource[902]] -= $costRessources[902]; }
if(isset($costRessources[903])) { $PLANET[$resource[903]] -= $costRessources[903]; }
if(isset($costRessources[921])) { $this->USER[$resource[921]] -= $costRessources[921]; }
$this->USER['b_tech_id'] = $Element;
$this->USER['b_tech'] = $BuildEndTime;
$this->USER['b_tech_planet'] = $PLANET['id'];
$this->USER['b_tech_queue'] = serialize($CurrentQueue);

$Loop = false;
} else {
if($this->USER['hof'] == 1){
if(!isset($costRessources[901])) { $costRessources[901] = 0; }
if(!isset($costRessources[902])) { $costRessources[902] = 0; }
if(!isset($costRessources[903])) { $costRessources[903] = 0; }

$Message = sprintf($LNG['sys_notenough_money'], $PLANET['name'], $PLANET['id'], $PLANET['galaxy'], $PLANET['system'], $PLANET['planet'], $LNG['tech'][$Element], pretty_number ($PLANET['metal']), $LNG['tech'][901], pretty_number($PLANET['crystal']), $LNG['tech'][902], pretty_number ($PLANET['deuterium']), $LNG['tech'][903], pretty_number($costRessources[901]), $LNG['tech'][901], pretty_number ($costRessources[902]), $LNG['tech'][902], pretty_number ($costRessources[903]), $LNG['tech'][903]);
SendSimpleMessage($this->USER['id'], 0, $this->USER['b_tech'], 99, $LNG['sys_techlist'], $LNG['sys_buildlist_fail'], $Message);
}

array_shift($CurrentQueue);

if (count($CurrentQueue) == 0) {
$this->USER['b_tech'] = 0;
$this->USER['b_tech_id'] = 0;
$this->USER['b_tech_planet'] = 0;
$this->USER['b_tech_queue'] = '';

$Loop = false;
} else {
$BaseTime = $BuildEndTime - $BuildTime;
$NewQueue = array();
foreach($CurrentQueue as $ListIDArray)
{
$ListIDArray[2] = BuildFunctions::getBuildingTime($this->USER, $PLANET, $ListIDArray[0]);
$BaseTime += $ListIDArray[2];
$ListIDArray[3] = $BaseTime;
$NewQueue[] = $ListIDArray;
}
$CurrentQueue = $NewQueue;
}
}

if($isAnotherPlanet)
$RPLANET->SavePlanetToDB($this->USER, $PLANET);
else
$this->PLANET = $PLANET;
}

}

public function SavePlanetToDB($USER = NULL, $PLANET = NULL)
{
global $resource, $reslist;

if(is_null($USER))
global $USER;

if(is_null($PLANET))
global $PLANET;

$Qry = "LOCK TABLE ".PLANETS." as p WRITE, ".USERS." as u WRITE;
UPDATE ".PLANETS." as p, ".USERS." as u SET
p.metal = ".$PLANET['metal'].",
p.crystal = ".$PLANET['crystal'].",
p.deuterium = ".$PLANET['deuterium'].",
p.eco_hash = '".$PLANET['eco_hash']."',
p.last_update = ".$PLANET['last_update'].",
p.b_building = '".$PLANET['b_building']."',
p.b_building_id = '".$PLANET['b_building_id']."',
p.field_current = ".$PLANET['field_current'].",
p.b_hangar_id = '".$PLANET['b_hangar_id']."',
p.metal_perhour = ".$PLANET['metal_perhour'].",
p.crystal_perhour = ".$PLANET['crystal_perhour'].",
p.deuterium_perhour = ".$PLANET['deuterium_perhour'].",
p.metal_max = ".$PLANET['metal_max'].",
p.crystal_max = ".$PLANET['crystal_max'].",
p.deuterium_max = ".$PLANET['deuterium_max'].",
p.energy_used = ".$PLANET['energy_used'].",
p.energy = ".$PLANET['energy'].",
p.b_hangar = ". $PLANET['b_hangar'] .", ";
if (!empty($this->Builded))
{
foreach($this->Builded as $Element => $Count)
{
$Element = (int) $Element;

if(empty($resource[$Element]) || empty($Count)) {
continue;
}

if(in_array($Element, $reslist['one'])) {
$Qry .= "p.".$resource[$Element]." = '1', ";
} elseif(isset($PLANET[$resource[$Element]])) {
$Qry .= "p.".$resource[$Element]." = p.".$resource[$Element]." + ".$Count.", ";
} elseif(isset($USER[$resource[$Element]])) {
$Qry .= "u.".$resource[$Element]." = u.".$resource[$Element]." + ".$Count.", ";
}
}
}
$Qry .= "u.darkmatter = ".$USER['darkmatter'].",
u.b_tech = '".$USER['b_tech']."',
u.b_tech_id = '".$USER['b_tech_id']."',
u.b_tech_planet = '".$USER['b_tech_planet']."',
u.b_tech_queue = '".$USER['b_tech_queue']."'
WHERE
p.id = ".$PLANET['id']." AND
u.id = ".$USER['id'].";
UNLOCK TABLES;";
$GLOBALS['DATABASE']->multi_query($Qry);
$this->Builded = array();


return array($USER, $PLANET);
}
}
?>
--------------- AGGIUNTA AL POST ---------------
$this->PLANET['b_hangar'] = 0;(alla riga 293) al file b_hangar c'è zero,io non capisco,eppure coincide

Controlla se il value 0 è inserito anche all'interno del database, se è così rimuovilo.
 
Riferimento: Errore

scusami alla riga 293 c'è $BuildQueue = unserialize($this->PLANET['b_hangar_id']);

comunque ho provato nel db a togliere 0 in hangar id,ma niente,ti posto un pezzo di codice
$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] =0;
$this->PLANET['b_hangar_id'] = '';
return false;

più le foto

mkku.jpg



euor.jpg



zgvf.jpg

--------------- AGGIUNTA AL POST ---------------
scusami alla riga 293 c'è $BuildQueue = unserialize($this->PLANET['b_hangar_id']);

comunque ho provato nel db a togliere 0 in hangar id,ma niente,ti posto un pezzo di codice
$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] =0;
$this->PLANET['b_hangar_id'] = '';
return false;

più le foto

4icy.jpg



wf2n.jpg



zgvf.jpg
 
Ultima modifica:
Riferimento: Errore

scusami alla riga 293 c'è $BuildQueue = unserialize($this->PLANET['b_hangar_id']);

comunque ho provato nel db a togliere 0 in hangar id,ma niente,ti posto un pezzo di codice
$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] =0;
$this->PLANET['b_hangar_id'] = '';
return false;

più le foto

mkku.jpg



euor.jpg



zgvf.jpg

--------------- AGGIUNTA AL POST ---------------
scusami alla riga 293 c'è $BuildQueue = unserialize($this->PLANET['b_hangar_id']);

comunque ho provato nel db a togliere 0 in hangar id,ma niente,ti posto un pezzo di codice
$BuildQueue = unserialize($this->PLANET['b_hangar_id']);
if (!$BuildQueue) {
$this->PLANET['b_hangar'] =0;
$this->PLANET['b_hangar_id'] = '';
return false;

più le foto

4icy.jpg



wf2n.jpg



zgvf.jpg



Allora al posto di rimuovere completamente il value aumentalo con un numero, se è espresso in secondi prova con 60 oppure sostituiscilo con 1.
 
Riferimento: Errore

mi esce questa scritta quando inserisco il numero 1:
query SQL:

ALTER TABLE `uni1_planets` CHANGE `b_hangar_id` `b_hangar_id` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1'

Messaggio di MySQL: Documentazione

#1101 - BLOB/TEXT column 'b_hangar_id' can't have a default value
 
Riferimento: Errore

mi esce questa scritta quando inserisco il numero 1:
query SQL:

ALTER TABLE `uni1_planets` CHANGE `b_hangar_id` `b_hangar_id` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '1'

Messaggio di MySQL: Documentazione

#1101 - BLOB/TEXT column 'b_hangar_id' can't have a default value

Hai già provato ad eseguire la query riportata dall'errore sul phpmyadmin?

Comunque l'errore riportato è "la colonna b_hangar:id non ha un value di default"
 
Riferimento: Errore

quale query dovrei eseguire scusami?
--------------- AGGIUNTA AL POST ---------------
senti io ho eliminato la tabella uni_planets e ho rimesso una vecchia,il problema è che vorrei prendere di quella tabella vecchia,il file b_hangar_id,quale query dovrei eseguire?
--------------- AGGIUNTA AL POST ---------------
comunque ho messo i file del db vecchi e ho eliminato i pianeti ecc...e ho risolto più o meno,ma quando vado a modificare l'alleanza mi esce SQL Error: Data truncated for column 'ally_request_notallow' at row 1

Query Code: UPDATE uni1_alliance SET ally_description = '<p>we</p>', ally_owner_range = 'Leader', ally_image = '', ally_web = '', ally_request_notallow = 0, ally_stats = 0, ally_diplo = 0 WHERE id = 5;
File: /membri/xspace/includes/classes/class.Database.php
Line: 80
URL:
Perfavore, Entra oppure Registrati per vedere i Link!

PHP-Version: 5.2.17
PHP-API: apache2handler
MySQL-Cleint-Version: 5.1.49
2Moons Version: 1.7.2438
Debug Backtrace:
#0 /includes/pages/game/class.ShowAlliancePage.php(599): Database->query('UPDATE uni1_all...')
#1 /includes/pages/game/class.ShowAlliancePage.php(551): ShowAlliancePage->adminOverview()
#2 /game.php(65): ShowAlliancePage->admin()
#3 {main}
 
Ultima modifica:
Riferimento: Errore

quale query dovrei eseguire scusami?
--------------- AGGIUNTA AL POST ---------------
senti io ho eliminato la tabella uni_planets e ho rimesso una vecchia,il problema è che vorrei prendere di quella tabella vecchia,il file b_hangar_id,quale query dovrei eseguire?
--------------- AGGIUNTA AL POST ---------------
comunque ho messo i file del db vecchi e ho eliminato i pianeti ecc...e ho risolto più o meno,ma quando vado a modificare l'alleanza mi esce SQL Error: Data truncated for column 'ally_request_notallow' at row 1

Query Code: UPDATE uni1_alliance SET ally_description = '<p>we</p>', ally_owner_range = 'Leader', ally_image = '', ally_web = '', ally_request_notallow = 0, ally_stats = 0, ally_diplo = 0 WHERE id = 5;
File: /membri/xspace/includes/classes/class.Database.php
Line: 80
URL:
Perfavore, Entra oppure Registrati per vedere i Link!

PHP-Version: 5.2.17
PHP-API: apache2handler
MySQL-Cleint-Version: 5.1.49
2Moons Version: 1.7.2438
Debug Backtrace:
#0 /includes/pages/game/class.ShowAlliancePage.php(599): Database->query('UPDATE uni1_all...')
#1 /includes/pages/game/class.ShowAlliancePage.php(551): ShowAlliancePage->adminOverview()
#2 /game.php(65): ShowAlliancePage->admin()
#3 {main}

A me i problemi sembrano derivare tutti dal database, c'è qualcosa che non coincide o che comunque non è compatibile, mi pare che il server abbia una struttura diversa all'interno degli script per eseguirli sul DB. Ti conviene caricarne uno completamente diverso, oppure modificare quello già esistente adattando le varie colonne.
 
Riferimento: Errore

ho rimosso tutto e ho fatto tutto d'accapo e ho risolto il bug completamente,ti ringrazio
 
Riferimento: Errore

senti scusami ma come faccio a mettere spedizioni 0/7 ?

1pzn.png
 
Riferimento: Errore

sono riuscite ad aumentarle ma non riesco a inviare le spedizioni.Non ricordo dove si vede lo script,quale file è
--------------- AGGIUNTA AL POST ---------------
Poi come faccio,io ho messo l'immagine al top,ma la faccio sempre proporzionata allo spazio,ma non riesco a riempirlo mai!Forse è un problema di risoluzione di impostazioni,di padding,non saprei.
lwxc.png
 
Ultima modifica:
Riferimento: Errore

sono riuscite ad aumentarle ma non riesco a inviare le spedizioni.Non ricordo dove si vede lo script,quale file è
--------------- AGGIUNTA AL POST ---------------
Poi come faccio,io ho messo l'immagine al top,ma la faccio sempre proporzionata allo spazio,ma non riesco a riempirlo mai!Forse è un problema di risoluzione di impostazioni,di padding,non saprei.
lwxc.png

Penso sia un problema di CSS, controlla i bordi e le varie impostazioni per il logo.
 
Riferimento: Errore

Ecco il codice,cosa c'è di sbagliato?:
html, body {
min-height:100%;
min-width:100%;
margin: 0;
padding: 0;
}

body {
line-height:14px;
padding-bottom:21px;
}

body.popup {
min-width:0px;
}

body,input,button,select,textarea,td,th,tr,table,button {
font-family:Verdana;
font-size:10px;
}

:focus {
outline:none
}

input:invalid {
background-color:red;
border:1px solid #FFF;
}

input[type="submit"],input[type="button"],button {
cursor:pointer;
}

table {
border-collapse: separate;
border-spacing: 2px;
empty-cells:show
}

table table,img {
border:0
}

table {
margin:0 auto
}

td {
padding: 2px 3px;
vertical-align: middle;
}

input,button {
margin:2px;
}

th input {
margin:0
}

th {
height: 14px;
padding:4px 6px;
}

textarea {
width:97%
}

textarea.tinymce{
width:100%
}

.res_max,.res_current,.res_current_max {
min-width:90px
}

.res_name {
float:none;
}

.table519{
min-width:519px !important;
width:519px !important
}

.table569{
min-width:569px !important;
width:569px !important
}

.build_submit {
max-width: 100px;
padding:0;
word-wrap: break-word;
white-space: normal;
}

.build_submit:hover {
text-decoration:underline;
}

.build_form {
display:inline;
}

.onlist {
max-width: 100%;
margin:0;
padding:0;
}

.onlist:hover {
text-decoration:underline;
}

.shortcut-edit {
display:none;
}

.clear {
clear:both;
}

/** HEADER **/
#header {
padding:5px 10px;
margin-left:10px;
margin-right:10px;
height:90px;
min-width:915px;
overflow: hidden;
}

#headerTable {
width:100%;
}

#planetSelectorWrapper {
width:145px;
}

#planetSelector {
float:left;
height:16px;
margin:37px 10px;
width:145px;
}

#planetImage{
width:50px;
}

#planetImage > img{
width:50px;
height:50px;
}

#resourceWrapper{
height:90px;
text-align:center;
margin:0;
}

#resourceTable{
height:80px;
padding-right: 215px;
}

#resourceTable td{
margin:0 5px;
min-width:130px;
}

#resourceTable img {
display: block;
height: 22px;
margin: 0 auto;
width: 42px;
}

/** MENU **/

#leftmenu {
width:200px;
float:left;
}

#menu {
list-style:none;
margin:0;
padding:0;
}

#menu li {
margin:0;
padding:0;
}

#menu a {
display:block;
margin:0;
padding:4px 20px;
}

div#disclamer {
position: relative;
top: -24px;
width: 100%;
text-align: center;
font-size: 9px;
}

.menu-head {
height:78px;
}

.menucat1-head, .menucat2-head, .menucat3-head, .menu-footer{
height:30px;
}

#options select {
max-width:170px;
}
/* CONTENT */

#page {
margin-left:200px;
padding:0;
}

#content, .infobox {
margin:10px 10px 0 ;
padding:10px 10px 5px 10px;
}

.full #content > table, .full form > table {
max-width:95%;
width:80%;
}

.left{
text-align:left
}

.right{
text-align:right
}

.center{
text-align:center
}

.top{
vertical-align:top
}


.tooltip, .tooltip_sticky {
cursor: pointer;
}

div#trader {
margin:14px auto;
height:55px;
width:330px;
}

div#trader + div {
clear:both;
}

.trader_col {
margin:0 5px;
float:left;
width:100px;
}

.globalWarning {
background-color: #FFFFDD;
border: 1px solid #F7DF92;
color: #000000;
margin: 0;
padding: 5px;
text-align: center;
}

.globalWarning a:hover {
text-decoration:underline;
}

.globalWarning a{
cursor:pointer;
color:#D20000;
}

.trader_col label:hover{
cursor:pointer;
}

.tip {
display:none;
padding:7px;
position:absolute;
z-index:1000;
max-width: 500px;
}

.tip.notify {
position:fixed;
top:200px;
padding:20px;
}

.ui-widget, .ui-widget td{
font-family:Verdana;
font-size:10px
}

.ui-progressbar {
height: 10px !important;
}

.ui-progressbar-value {
margin:0;
}

.infobox {
border: 2px solid red;
padding: 2px 5px;
text-align: center;
}

.shortcut-colum{
position:relative;
}

.shortcut-delete {
position:absolute;
z-index:1;
top:3px;
display:none;
right:3px;
width:16px;
height:16px;
cursor:pointer;
background:url(../images/false.png) scroll no-repeat 0 0 transparent;
}

.shortcut-colum:hover .shortcut-delete{
display:block;
}

.spyRaportFooter,
.spyRaportContainer {
clear:both;
}

.spyRaportContainerRow.first {
clear:both;
}

.spyRaportContainerHead {
font-weight:700;
padding-top:8px;
}
.spyRaportContainerCell {
float:left;
width:25%;
}

.spyRaportFooter{
text-align:center;
padding-top:8px;
}

table.tablesorter thead {
position:relative;
}

table.tablesorter thead tr .header {
cursor: pointer;
}

table.tablesorter thead tr .headerSortUp {
color:lime;
}

table.tablesorter thead tr .headerSortDown {
color:red;
}

.defaultSkin table.mceLayout {
border-spacing: 0;
width:100% !important;
}

.ui-autocomplete-category {
font-weight: bold;
padding: .2em .4em;
line-height: 1.5;
}

.ui-autocomplete-item {
cursor:pointer;
}
@Media screen and (max-width: 1165px) {
body {
min-width: 0;
}

#resourceTable td{
min-width: 100px;
}
}
 
Riferimento: Errore

Ecco il codice,cosa c'è di sbagliato?:
html, body {
min-height:100%;
min-width:100%;
margin: 0;
padding: 0;
}

body {
line-height:14px;
padding-bottom:21px;
}

body.popup {
min-width:0px;
}

body,input,button,select,textarea,td,th,tr,table,button {
font-family:Verdana;
font-size:10px;
}

:focus {
outline:none
}

input:invalid {
background-color:red;
border:1px solid #FFF;
}

input[type="submit"],input[type="button"],button {
cursor:pointer;
}

table {
border-collapse: separate;
border-spacing: 2px;
empty-cells:show
}

table table,img {
border:0
}

table {
margin:0 auto
}

td {
padding: 2px 3px;
vertical-align: middle;
}

input,button {
margin:2px;
}

th input {
margin:0
}

th {
height: 14px;
padding:4px 6px;
}

textarea {
width:97%
}

textarea.tinymce{
width:100%
}

.res_max,.res_current,.res_current_max {
min-width:90px
}

.res_name {
float:none;
}

.table519{
min-width:519px !important;
width:519px !important
}

.table569{
min-width:569px !important;
width:569px !important
}

.build_submit {
max-width: 100px;
padding:0;
word-wrap: break-word;
white-space: normal;
}

.build_submit:hover {
text-decoration:underline;
}

.build_form {
display:inline;
}

.onlist {
max-width: 100%;
margin:0;
padding:0;
}

.onlist:hover {
text-decoration:underline;
}

.shortcut-edit {
display:none;
}

.clear {
clear:both;
}

/** HEADER **/
#header {
padding:5px 10px;
margin-left:10px;
margin-right:10px;
height:90px;
min-width:915px;
overflow: hidden;
}

#headerTable {
width:100%;
}

#planetSelectorWrapper {
width:145px;
}

#planetSelector {
float:left;
height:16px;
margin:37px 10px;
width:145px;
}

#planetImage{
width:50px;
}

#planetImage > img{
width:50px;
height:50px;
}

#resourceWrapper{
height:90px;
text-align:center;
margin:0;
}

#resourceTable{
height:80px;
padding-right: 215px;
}

#resourceTable td{
margin:0 5px;
min-width:130px;
}

#resourceTable img {
display: block;
height: 22px;
margin: 0 auto;
width: 42px;
}

/** MENU **/

#leftmenu {
width:200px;
float:left;
}

#menu {
list-style:none;
margin:0;
padding:0;
}

#menu li {
margin:0;
padding:0;
}

#menu a {
display:block;
margin:0;
padding:4px 20px;
}

div#disclamer {
position: relative;
top: -24px;
width: 100%;
text-align: center;
font-size: 9px;
}

.menu-head {
height:78px;
}

.menucat1-head, .menucat2-head, .menucat3-head, .menu-footer{
height:30px;
}

#options select {
max-width:170px;
}
/* CONTENT */

#page {
margin-left:200px;
padding:0;
}

#content, .infobox {
margin:10px 10px 0 ;
padding:10px 10px 5px 10px;
}

.full #content > table, .full form > table {
max-width:95%;
width:80%;
}

.left{
text-align:left
}

.right{
text-align:right
}

.center{
text-align:center
}

.top{
vertical-align:top
}


.tooltip, .tooltip_sticky {
cursor: pointer;
}

div#trader {
margin:14px auto;
height:55px;
width:330px;
}

div#trader + div {
clear:both;
}

.trader_col {
margin:0 5px;
float:left;
width:100px;
}

.globalWarning {
background-color: #FFFFDD;
border: 1px solid #F7DF92;
color: #000000;
margin: 0;
padding: 5px;
text-align: center;
}

.globalWarning a:hover {
text-decoration:underline;
}

.globalWarning a{
cursor:pointer;
color:#D20000;
}

.trader_col label:hover{
cursor:pointer;
}

.tip {
display:none;
padding:7px;
position:absolute;
z-index:1000;
max-width: 500px;
}

.tip.notify {
position:fixed;
top:200px;
padding:20px;
}

.ui-widget, .ui-widget td{
font-family:Verdana;
font-size:10px
}

.ui-progressbar {
height: 10px !important;
}

.ui-progressbar-value {
margin:0;
}

.infobox {
border: 2px solid red;
padding: 2px 5px;
text-align: center;
}

.shortcut-colum{
position:relative;
}

.shortcut-delete {
position:absolute;
z-index:1;
top:3px;
display:none;
right:3px;
width:16px;
height:16px;
cursor:pointer;
background:url(../images/false.png) scroll no-repeat 0 0 transparent;
}

.shortcut-colum:hover .shortcut-delete{
display:block;
}

.spyRaportFooter,
.spyRaportContainer {
clear:both;
}

.spyRaportContainerRow.first {
clear:both;
}

.spyRaportContainerHead {
font-weight:700;
padding-top:8px;
}
.spyRaportContainerCell {
float:left;
width:25%;
}

.spyRaportFooter{
text-align:center;
padding-top:8px;
}

table.tablesorter thead {
position:relative;
}

table.tablesorter thead tr .header {
cursor: pointer;
}

table.tablesorter thead tr .headerSortUp {
color:lime;
}

table.tablesorter thead tr .headerSortDown {
color:red;
}

.defaultSkin table.mceLayout {
border-spacing: 0;
width:100% !important;
}

.ui-autocomplete-category {
font-weight: bold;
padding: .2em .4em;
line-height: 1.5;
}

.ui-autocomplete-item {
cursor:pointer;
}
@Media screen and (max-width: 1165px) {
body {
min-width: 0;
}

#resourceTable td{
min-width: 100px;
}
}


Controlla le impostazioni dell'header, aumenta la grandezza dei margini in px, precisamente in quale settore è presente il logo?
 
Riferimento: Errore

è presente in styles/theme/gow/img/menu-top.png