Finished install script

Updated configuration data loading
Added Website and Game models

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-12-27 19:37:28 +01:00
commit dfa3dfb086
34 changed files with 362 additions and 510 deletions

View file

@ -73,13 +73,13 @@ $planet = $user->getCurrentPlanet();
$MaxFlyingFleets = $user->getFleetCount();
if ($galaxy <= 0 || $galaxy > MAX_GALAXY_IN_WORLD) {
if ($galaxy <= 0 || $galaxy > Wootook::getGameConfig('engine/universe/galaxies')) {
$galaxy = $planet['galaxy'];
}
if ($system <= 0 || $system > MAX_SYSTEM_IN_GALAXY) {
if ($system <= 0 || $system > Wootook::getGameConfig('engine/universe/systems')) {
$system = $planet['system'];
}
if ($position <= 0 || $position > MAX_PLANET_IN_SYSTEM) {
if ($position <= 0 || $position > Wootook::getGameConfig('engine/universe/positions')) {
$position = $planet['planet'];
}