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

@ -54,13 +54,13 @@ $s = isset($_POST['system']) ? intval($_POST['system']) : 0;
$p = isset($_POST['planet']) ? intval($_POST['planet']) : 0;
$t = isset($_POST['planet_type']) ? intval($_POST['planet_type']) : 0;
if ($g <= 0 || $g > MAX_GALAXY_IN_WORLD) {
if ($g <= 0 || $g > Wootook::getGameConfig('engine/universe/galaxies')) {
$g = $planetrow['galaxy'];
}
if ($s <= 0 || $s > MAX_SYSTEM_IN_GALAXY) {
if ($s <= 0 || $s > Wootook::getGameConfig('engine/universe/systems')) {
$s = $planetrow['system'];
}
if ($p <= 0 || $p > MAX_PLANET_IN_SYSTEM) {
if ($p <= 0 || $p > Wootook::getGameConfig('engine/universe/positions')) {
$p = $planetrow['planet'];
}
$allowedPlanetTypes = array(