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

@ -37,14 +37,14 @@
function ShowGalaxySelector ( $Galaxy, $System ) {
global $lang;
if ($Galaxy > MAX_GALAXY_IN_WORLD) {
$Galaxy = MAX_GALAXY_IN_WORLD;
if ($Galaxy > Wootook::getGameConfig('engine/universe/galaxies')) {
$Galaxy = Wootook::getGameConfig('engine/universe/galaxies');
}
if ($Galaxy < 1) {
$Galaxy = 1;
}
if ($System > MAX_SYSTEM_IN_GALAXY) {
$System = MAX_SYSTEM_IN_GALAXY;
if ($System > Wootook::getGameConfig('engine/universe/systems')) {
$System = Wootook::getGameConfig('engine/universe/systems');
}
if ($System < 1) {
$System = 1;