Configuration & Layout architecture updates

Fixed production bug
Fixed styles
Updated Action Controller

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2012-01-13 23:36:03 +01:00
commit 66805034a6
815 changed files with 4020 additions and 1138 deletions

View file

View file

@ -0,0 +1,85 @@
<?php return array(
'global' => array(
'resource' => array(
'database' => array(
'default' => array(
'engine' => 'mysql',
'options' => array(
),
'params' => array(
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'db_wootook'
),
'table_prefix' => 'wtk_',
),
),
),
),
'backend' => array(
'web' => array(
'url' => array(
'base' => 'http://testing.wootook.org/',
'skin' => 'http://testing.wootook.org/skin/',
'js' => 'http://testing.wootook.org/js/',
'css' => 'http://testing.wootook.org/css/',
),
'session' => array(
'time' => 900,
'domain' => 'testing.wootook.org',
'path' => '/'
)
),
'system' => array(
'path' => array(
'base' => ROOT_PATH,
'skin' => ROOT_PATH . 'skin' . DIRECTORY_SEPARATOR,
),
'date' => array(
'timezone' => 'Europe/Paris'
),
),
),
'frontend' => array(
'web' => array(
'url' => array(
'base' => 'http://testing.wootook.org/',
'skin' => 'http://testing.wootook.org/skin/',
'js' => 'http://testing.wootook.org/js/',
'css' => 'http://testing.wootook.org/css/',
),
'session' => array(
'time' => 900,
'domain' => 'testing.wootook.org',
'path' => '/'
)
),
'system' => array(
'path' => array(
'base' => ROOT_PATH,
'skin' => ROOT_PATH . 'skin' . DIRECTORY_SEPARATOR,
),
'date' => array(
'timezone' => 'Europe/Paris'
),
),
'engine' => array(
'storyline' => array(
'universe' => 'legacies',
'episode' => 'default',
),
'core' => array(
'use_large_numbers' => (bool) $request->getPost('use_large_numbers')
),
'universe' => array(
'galaxies' => $request->getPost('galaxies'),
'systems' => $request->getPost('systems'),
'positions' => $request->getPost('positions')
),
'combat' => array(
'allow_spy_drone_attacks' => (bool) $request->getPost('allow_spy_drone_attacks')
)
),
)
);

View file

@ -0,0 +1,93 @@
<?php return array(
'global' => array(
'resource' => array(
'database' => array(
'default' => array(
'engine' => 'mysql',
'options' => array(
),
'params' => array(
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'db_wootook'
),
'table_prefix' => 'wtk_',
),
'core_setup' => array(
'use' => 'default'
),
'core_read' => array(
'use' => 'default'
),
'core_write' => array(
'use' => 'default'
),
)
)
),
'default' => array(
'engine' => array(
'core' => array(
'use_large_numbers' => true,
),
'universe' => array(
'galaxies' => 3,
'systems' => 100,
'positions' => 15,
),
'combat' => array(
'allow_spy_drone_attacks' => true,
)
),
'system' => array(
'date' => array(
'timezone' => 'Europe/Paris'
),
),
),
'frontend' => array(
'web' => array(
'url' => array(
'base' => null,
'skin' => null,
'js' => null,
'css' => null,
)
),
'system' => array(
'path' => array(
'base' => null,
'skin' => null,
'js' => null,
'css' => null,
)
),
'layout' => array(
'page' => 'page.php',
'empire' => 'empire.php'
),
),
'backend' => array(
'web' => array(
'url' => array(
'base' => null,
'skin' => null,
'js' => null,
'css' => null,
)
),
'system' => array(
'path' => array(
'base' => null,
'skin' => null,
'js' => null,
'css' => null,
)
),
'layout' => array(
'page' => 'page.php',
'admin' => 'admin.php'
),
)
);