Updated install and fixed bugs
Added session messages display Fixed field and validator loading. Updated form validation Updated root config management Muted error reporting in file evaluation Added menu updates Fixed galaxy data access error Fixed config bug Added HTTP request method checks Added Form manager Fixed core bugs Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
c38e53706e
commit
9636b4bb00
69 changed files with 2434 additions and 789 deletions
243
application/design/base/default/layouts/admin.php
Normal file
243
application/design/base/default/layouts/admin.php
Normal file
|
|
@ -0,0 +1,243 @@
|
|||
<?php return array(
|
||||
'admin' => array(
|
||||
'update' => '1column',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'navigation' => array(
|
||||
'type' => 'core/html.navigation',
|
||||
'template' => 'page/html/navigation.phtml',
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'system',
|
||||
'title' => 'System'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'system/overview',
|
||||
'label' => 'Overview',
|
||||
'title' => 'Overview',
|
||||
'uri' => 'admin/overview.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'system/settings',
|
||||
'label' => 'Settings',
|
||||
'title' => 'Settings',
|
||||
'uri' => 'admin/settings.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'system/reset-universe',
|
||||
'label' => 'Reset Universe',
|
||||
'title' => 'Reset Universe',
|
||||
'uri' => 'admin/XNovaResetUnivers.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'players',
|
||||
'title' => 'Player Accounts'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/list',
|
||||
'label' => 'List',
|
||||
'title' => 'List',
|
||||
'uri' => 'admin/userlist.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/password-recovery',
|
||||
'label' => 'Change a password',
|
||||
'title' => 'Change a password',
|
||||
'uri' => 'admin/md5changepass.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/search',
|
||||
'label' => 'Search',
|
||||
'title' => 'Search',
|
||||
'uri' => 'admin/paneladmina.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/multi-account-alerts',
|
||||
'label' => 'Multi account alerts',
|
||||
'title' => 'Multi account alerts',
|
||||
'uri' => 'admin/multi.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/declared-multi-account',
|
||||
'label' => 'Declared multi accounts',
|
||||
'title' => 'Declared multi accounts',
|
||||
'uri' => 'admin/declare_list.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/add-resources',
|
||||
'label' => 'Add Resources',
|
||||
'title' => 'Add Resources',
|
||||
'uri' => 'admin/add_money.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/messages',
|
||||
'label' => 'Private messages management',
|
||||
'title' => 'Private messages management',
|
||||
'uri' => 'admin/messagelist.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/chat',
|
||||
'label' => 'Manage Chat',
|
||||
'title' => 'Manage Chat',
|
||||
'uri' => 'chat.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/ban',
|
||||
'label' => 'Ban Player',
|
||||
'title' => 'Ban Player',
|
||||
'uri' => 'admin/banned.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'players/unban',
|
||||
'label' => 'Unban Player',
|
||||
'title' => 'Unban Player',
|
||||
'uri' => 'admin/unbanned.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'empire',
|
||||
'title' => 'Empires'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'empire/planet-list',
|
||||
'label' => 'Planet List',
|
||||
'title' => 'Planet List',
|
||||
'uri' => 'admin/planetlist.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'empire/moon-list',
|
||||
'label' => 'Moon List',
|
||||
'title' => 'Moon List',
|
||||
'uri' => 'admin/moonlist.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'empire/add-moon',
|
||||
'label' => 'Add a moon',
|
||||
'title' => 'Add a moon',
|
||||
'uri' => 'admin/add_moon.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'empire/planet-activity',
|
||||
'label' => 'Planet Activity',
|
||||
'title' => 'Planet Activity',
|
||||
'uri' => 'admin/activeplanet.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'empire/fleet-list',
|
||||
'label' => 'Fleet list',
|
||||
'title' => 'Fleet list',
|
||||
'uri' => 'admin/ShowFlyingFleets.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'tools',
|
||||
'title' => 'Tools'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/phpinfo',
|
||||
'label' => 'PHP Info',
|
||||
'title' => 'PHP Info',
|
||||
'uri' => 'variables.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/stats',
|
||||
'label' => 'Stats updater',
|
||||
'title' => 'Stats updater',
|
||||
'uri' => 'statbuilder.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/errors',
|
||||
'label' => 'Error reporting',
|
||||
'title' => 'Error reporting',
|
||||
'uri' => 'errors.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addExternalLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/help',
|
||||
'label' => 'Need help?',
|
||||
'title' => 'Need help?',
|
||||
'url' => 'http://wootook.org/board/'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
@ -2,287 +2,293 @@
|
|||
'empire' => array(
|
||||
'update' => '1column',
|
||||
'reference' => array(
|
||||
'navigation' => array(
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'development',
|
||||
'title' => 'Development'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/overview',
|
||||
'label' => 'Overview',
|
||||
'title' => 'Overview',
|
||||
'uri' => 'overview.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/buildings',
|
||||
'label' => 'Buildings',
|
||||
'title' => 'Buildings',
|
||||
'uri' => 'buildings.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/research-lab',
|
||||
'label' => 'Research Lab',
|
||||
'title' => 'Research Lab',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'research'
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'navigation' => array(
|
||||
'type' => 'core/html.navigation',
|
||||
'template' => 'page/html/navigation.phtml',
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'development',
|
||||
'title' => 'Development'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/overview',
|
||||
'label' => 'Overview',
|
||||
'title' => 'Overview',
|
||||
'uri' => 'overview.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/buildings',
|
||||
'label' => 'Buildings',
|
||||
'title' => 'Buildings',
|
||||
'uri' => 'buildings.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/research-lab',
|
||||
'label' => 'Research Lab',
|
||||
'title' => 'Research Lab',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'research'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/shipyard',
|
||||
'label' => 'Shipyard',
|
||||
'title' => 'Shipyard',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'fleet'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/defenses',
|
||||
'label' => 'Defenses',
|
||||
'title' => 'Defenses',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'defense'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/officers',
|
||||
'label' => 'Officers',
|
||||
'title' => 'Officers',
|
||||
'uri' => 'officier.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'navigation',
|
||||
'title' => 'Navigation'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/alliance',
|
||||
'label' => 'Alliance',
|
||||
'title' => 'Alliance',
|
||||
'uri' => 'alliance.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/fleet',
|
||||
'label' => 'Fleet',
|
||||
'title' => 'Fleet',
|
||||
'uri' => 'fleet.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/galaxy',
|
||||
'label' => 'Galaxy',
|
||||
'title' => 'Galaxy',
|
||||
'uri' => 'galaxy.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/empire',
|
||||
'label' => 'Empire',
|
||||
'title' => 'Empire',
|
||||
'uri' => 'imperium.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/resources',
|
||||
'label' => 'Resources Production',
|
||||
'title' => 'Resources Production',
|
||||
'uri' => 'resources.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/retailer',
|
||||
'label' => 'Retailer',
|
||||
'title' => 'Retailer',
|
||||
'uri' => 'marchand.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/tech-tree',
|
||||
'label' => 'Technology Tree',
|
||||
'title' => 'Technology Tree',
|
||||
'uri' => 'techtree.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'tools',
|
||||
'title' => 'Tools'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/messages',
|
||||
'label' => 'Messages',
|
||||
'title' => 'Messages',
|
||||
'uri' => 'messages.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/records',
|
||||
'label' => 'Records',
|
||||
'title' => 'Records',
|
||||
'uri' => 'records.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/statistics',
|
||||
'label' => 'Stats',
|
||||
'title' => 'Stats',
|
||||
'uri' => 'stat.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/banned',
|
||||
'label' => 'Banned Players',
|
||||
'title' => 'Banned Players',
|
||||
'uri' => 'banned.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/announcement',
|
||||
'label' => 'Announcements',
|
||||
'title' => 'Announcements',
|
||||
'uri' => 'annonce.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/notes',
|
||||
'label' => 'Note Pad',
|
||||
'title' => 'Note Pad',
|
||||
'uri' => 'notes.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/options',
|
||||
'label' => 'Account Options',
|
||||
'title' => 'Account Options',
|
||||
'uri' => 'options.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/logout',
|
||||
'label' => 'Log Out',
|
||||
'title' => 'Log Out',
|
||||
'uri' => 'logout.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'community',
|
||||
'title' => 'Community'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addExternalLink',
|
||||
'params' => array(
|
||||
'name' => 'community/board',
|
||||
'label' => 'Forum board',
|
||||
'title' => 'Forum board',
|
||||
'url' => 'http://www.wootook.org/'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/search-player',
|
||||
'label' => 'Search Player',
|
||||
'title' => 'Search Player',
|
||||
'uri' => 'search.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/chat',
|
||||
'label' => 'Chat',
|
||||
'title' => 'Chat',
|
||||
'uri' => 'chat.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/multi',
|
||||
'label' => 'Declare Multi-account',
|
||||
'title' => 'Declare Multi-account',
|
||||
'uri' => 'delclare_multi.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/rules',
|
||||
'label' => 'Rules',
|
||||
'title' => 'Rules',
|
||||
'uri' => 'rules.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/contact',
|
||||
'label' => 'Contact Admin',
|
||||
'title' => 'Contact Admin',
|
||||
'uri' => 'contact.php'
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/shipyard',
|
||||
'label' => 'Shipyard',
|
||||
'title' => 'Shipyard',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'fleet'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/defenses',
|
||||
'label' => 'Defenses',
|
||||
'title' => 'Defenses',
|
||||
'uri' => 'buildings.php',
|
||||
'params' => array(
|
||||
'mode' => 'defense'
|
||||
)
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/officers',
|
||||
'label' => 'Officers',
|
||||
'title' => 'Officers',
|
||||
'uri' => 'officers.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'navigation',
|
||||
'title' => 'Navigation'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/alliance',
|
||||
'label' => 'Alliance',
|
||||
'title' => 'Alliance',
|
||||
'uri' => 'alliance.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/fleet',
|
||||
'label' => 'Fleet',
|
||||
'title' => 'Fleet',
|
||||
'uri' => 'fleet.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/galaxy',
|
||||
'label' => 'Galaxy',
|
||||
'title' => 'Galaxy',
|
||||
'uri' => 'galaxy.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/empire',
|
||||
'label' => 'Empire',
|
||||
'title' => 'Empire',
|
||||
'uri' => 'imperium.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/resources',
|
||||
'label' => 'Resources Production',
|
||||
'title' => 'Resources Production',
|
||||
'uri' => 'resources.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'development/retailer',
|
||||
'label' => 'Retailer',
|
||||
'title' => 'Retailer',
|
||||
'uri' => 'marchand.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'navigation/tech-tree',
|
||||
'label' => 'Technology Tree',
|
||||
'title' => 'Technology Tree',
|
||||
'uri' => 'techtree.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'tools',
|
||||
'title' => 'Tools'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/messages',
|
||||
'label' => 'Messages',
|
||||
'title' => 'Messages',
|
||||
'uri' => 'messages.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/records',
|
||||
'label' => 'Records',
|
||||
'title' => 'Records',
|
||||
'uri' => 'records.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/statistics',
|
||||
'label' => 'Stats',
|
||||
'title' => 'Stats',
|
||||
'uri' => 'stat.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/banned',
|
||||
'label' => 'Banned Players',
|
||||
'title' => 'Banned Players',
|
||||
'uri' => 'banned.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/announcement',
|
||||
'label' => 'Announcements',
|
||||
'title' => 'Announcements',
|
||||
'uri' => 'annonce.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/notes',
|
||||
'label' => 'Note Pad',
|
||||
'title' => 'Note Pad',
|
||||
'uri' => 'notes.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/options',
|
||||
'label' => 'Account Options',
|
||||
'title' => 'Account Options',
|
||||
'uri' => 'options.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'tools/logout',
|
||||
'label' => 'Log Out',
|
||||
'title' => 'Log Out',
|
||||
'uri' => 'logout.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'setNodeTitle',
|
||||
'params' => array(
|
||||
'path' => 'community',
|
||||
'title' => 'Community'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addExternalLink',
|
||||
'params' => array(
|
||||
'name' => 'community/board',
|
||||
'label' => 'Forum board',
|
||||
'title' => 'Forum board',
|
||||
'url' => 'http://www.wootook.org/'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/search-player',
|
||||
'label' => 'Search Player',
|
||||
'title' => 'Search Player',
|
||||
'uri' => 'search.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/chat',
|
||||
'label' => 'Chat',
|
||||
'title' => 'Chat',
|
||||
'uri' => 'chat.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/multi',
|
||||
'label' => 'Declare Multi-account',
|
||||
'title' => 'Declare Multi-account',
|
||||
'uri' => 'delclare_multi.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/rules',
|
||||
'label' => 'Rules',
|
||||
'title' => 'Rules',
|
||||
'uri' => 'rules.php'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'method' => 'addLink',
|
||||
'params' => array(
|
||||
'name' => 'community/contact',
|
||||
'label' => 'Contact Admin',
|
||||
'title' => 'Contact Admin',
|
||||
'uri' => 'contact.php'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,6 @@
|
|||
<?php return array(
|
||||
'1column' => array(
|
||||
'update' => 'default',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'navigation' => array(
|
||||
'type' => 'core/html.navigation',
|
||||
'template' => 'page/html/navigation.phtml'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
'update' => 'default'
|
||||
),
|
||||
|
||||
'2columns-left' => array(
|
||||
|
|
@ -20,13 +10,7 @@
|
|||
'root' => array(
|
||||
'children' => array(
|
||||
'left' => array(
|
||||
'type' => 'core/concat',
|
||||
'children' => array(
|
||||
'navigation' => array(
|
||||
'type' => 'core/html.navigation',
|
||||
'template' => 'page/html/navigation.phtml'
|
||||
)
|
||||
)
|
||||
'type' => 'core/concat'
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,16 @@
|
|||
<form name="rename-planet" id="overview:rename-planet" method="post" action="">
|
||||
<form name="rename-planet" class="form rename-planet" id="overview:rename-planet" method="post" action="">
|
||||
<fieldset>
|
||||
<input type="hidden" name="form_key" value="<?php echo $this->getFormKey()?>" />
|
||||
<label for="overview:rename-planet:password"><?php echo $this->__('Password:')?></label>
|
||||
<input id="overview:rename-planet:password" type="password" name="password" />
|
||||
<label for="overview:rename-planet:name"><?php echo $this->__('New name:')?></label>
|
||||
<input id="overview:rename-planet:name" type="text" name="name" />
|
||||
<input type="submit" />
|
||||
<p>
|
||||
<label for="overview:rename-planet:name"><?php echo $this->__('New name:')?></label>
|
||||
<input id="overview:rename-planet:name" type="text" name="name" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="overview:rename-planet:password"><?php echo $this->__('Password:')?></label>
|
||||
<input id="overview:rename-planet:password" type="password" name="password" />
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<form action="reg.php" method="post" class="registration">
|
||||
<form action="reg.php" method="post" class="form registration">
|
||||
<h1>Wootook!</h1>
|
||||
<fieldset>
|
||||
<legend><?php echo $this->__('User data:')?></legend>
|
||||
|
|
|
|||
84
application/design/install/default/layouts/install.php
Normal file
84
application/design/install/default/layouts/install.php
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
<?php return array(
|
||||
'install' => array(
|
||||
'update' => '2columns-left',
|
||||
'reference' => array(
|
||||
'messages' => array(
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'prepareMessages',
|
||||
'params' => array(
|
||||
'namespace' => 'install'
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'navigation' => array(
|
||||
'type' => 'core/html.navigation',
|
||||
'template' => 'page/html/navigation.phtml',
|
||||
'actions' => array()
|
||||
)
|
||||
)
|
||||
),
|
||||
'left' => array(
|
||||
'children' => array(
|
||||
'status' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'status.phtml'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'install.intro' => array(
|
||||
'update' => 'install',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'overview' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'intro.phtml'
|
||||
),
|
||||
)
|
||||
),
|
||||
'status' => array(
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'setData',
|
||||
'params' => array(
|
||||
'key' => 'step',
|
||||
'value' => 'intro'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'install.step.system' => array(
|
||||
'update' => 'install',
|
||||
'reference' => array(
|
||||
'content' => array(
|
||||
'children' => array(
|
||||
'overview' => array(
|
||||
'type' => 'core/template',
|
||||
'template' => 'step/system.phtml'
|
||||
),
|
||||
)
|
||||
),
|
||||
'status' => array(
|
||||
'actions' => array(
|
||||
array(
|
||||
'method' => 'setData',
|
||||
'params' => array(
|
||||
'key' => 'step',
|
||||
'value' => 'system'
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_acc1')?><br>
|
||||
<?php echo $this->getData('ins_tx_acc2')?><br><br>
|
||||
<table width="270" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_acc_user')?>:</td>
|
||||
<td><input name="adm_user" size="20" maxlength="20" type="text" onKeypress="
|
||||
if (event.keyCode==60 || event.keyCode==62) event.returnValue = false;
|
||||
if (event.which==60 || event.which==62) return false;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_acc_pass')?>:</td>
|
||||
<td><input name="adm_pass" size="20" maxlength="20" type="password" onKeypress="
|
||||
if (event.keyCode==60 || event.keyCode==62) event.returnValue = false;
|
||||
if (event.which==60 || event.which==62) return false;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_acc_email')?>:</td>
|
||||
<td><input name="adm_email" size="20" maxlength="40" type="text" onKeypress="
|
||||
if (event.keyCode==60 || event.keyCode==62) event.returnValue = false;
|
||||
if (event.which==60 || event.which==62) return false;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_acc_planet')?>:</td>
|
||||
<td><input name="adm_planet" size="20" maxlength="20" type="text" onKeypress="
|
||||
if (event.keyCode==60 || event.keyCode==62) event.returnValue = false;
|
||||
if (event.which==60 || event.which==62) return false;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_acc_sex')?>:</td>
|
||||
<td><select name="adm_sex">
|
||||
<option value=""><?php echo $this->getData('ins_acc_sex0')?></option>
|
||||
<option value="M"><?php echo $this->getData('ins_acc_sex1')?></option>
|
||||
<option value="F"><?php echo $this->getData('ins_acc_sex2')?></option>
|
||||
</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="submit();" value="<?php echo $this->getData('ins_btn_creat')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_done2')?><br>
|
||||
<?php echo $this->getData('ins_tx_done3')?><br><br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="self.location.href='../'" value="<?php echo $this->getData('ins_btn_login')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<br><br>
|
||||
<table width="700">
|
||||
<tbody><tr>
|
||||
<td width="120px" class="c" align="left"><font size="2px"><?php echo $this->getData('ins_appname')?></font></td>
|
||||
<td width="580px" rowspan="2" class="c" align="right"><font size="2px"><?php echo $this->getData('ins_tx_sys')?></font><br /><?php echo $this->getData('ins_tx_state')?> <?php echo $this->getData('ins_state')?></td>
|
||||
</tr><tr>
|
||||
<th rowspan="4"><table border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="124" align="center"><a href="index.php?mode=intro" accesskey="i"><?php echo $this->getData('ins_mnu_intro')?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="index.php?mode=ins&page=1" accesskey="i"><?php echo $this->getData('ins_mnu_inst')?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="index.php?mode=goto&page=1" accesskey="b"><?php echo $this->getData('ins_mnu_goto')?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="index.php?mode=upg" accesskey="u"><?php echo $this->getData('ins_mnu_upgr')?></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><a href="index.php?mode=bye" accesskey="b"><?php echo $this->getData('ins_mnu_quit')?></a></td>
|
||||
</tr>
|
||||
</table></th>
|
||||
</tr>
|
||||
<form action="<?php echo $this->getData('dis_ins_btn')?>" method="post">
|
||||
<?php echo $this->getData('ins_page')?>
|
||||
</form>
|
||||
</table>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_inst1')?><br>
|
||||
<?php echo $this->getData('ins_tx_inst2')?><br>
|
||||
<?php echo $this->getData('ins_tx_inst3')?><br><br>
|
||||
<table width="270" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_server')?>:</td>
|
||||
<td><input type="text" name="host" value="localhost" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_db')?>:</td>
|
||||
<td><input type="text" name="db" value="" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_prefix')?>:</td>
|
||||
<td><input type="text" name="prefix" value="game_" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_login')?>:</td>
|
||||
<td><input type="text" name="user" value="" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_pass')?>:</td>
|
||||
<td><input type="password" name="passwort" value="" size="20"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="submit();" value="<?php echo $this->getData('ins_btn_inst')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><br><?php echo $this->getData('ins_tx_done1')?><br><br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="submit();" value="<?php echo $this->getData('ins_btn_next')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_done4')?><br>
|
||||
<?php echo $this->getData('ins_tx_done3')?><br><br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="self.location.href='../'" value="<?php echo $this->getData('ins_btn_login')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_inst1')?><br>
|
||||
<?php echo $this->getData('ins_tx_goto4')?><br>
|
||||
<?php echo $this->getData('ins_tx_goto5')?><br><br>
|
||||
<table width="270" border="0" align="center" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_server')?>:</td>
|
||||
<td><input type="text" name="host" value="localhost" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_db')?>:</td>
|
||||
<td><input type="text" name="db" value="" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_prefix')?>:</td>
|
||||
<td><input type="text" name="prefix" value="game_" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_login')?>:</td>
|
||||
<td><input type="text" name="user" value="" size="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo $this->getData('ins_form_pass')?>:</td>
|
||||
<td><input type="password" name="passwort" value="" size="20"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="submit();" value="<?php echo $this->getData('ins_btn_inst')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_goto1')?><br>
|
||||
<?php echo $this->getData('ins_tx_goto2')?><br>
|
||||
<?php echo $this->getData('ins_tx_goto3')?><br><br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="submit();" value="<?php echo $this->getData('ins_btn_next')?>" ></th>
|
||||
</tr>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<tr>
|
||||
<th colspan="2">
|
||||
<br><?php echo $this->getData('ins_tx_welco')?><br>
|
||||
<?php echo $this->getData('ins_tx_intr1')?><br>
|
||||
<?php echo $this->getData('ins_tx_intr2')?><br>
|
||||
<?php echo $this->getData('ins_tx_intr3')?><br><br>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><input type="button" name="next" onclick="self.location.href='index.php?mode=ins&page=1'" value="<?php echo $this->getData('ins_btn_next')?>" ></th>
|
||||
</tr>
|
||||
7
application/design/install/default/scripts/intro.phtml
Normal file
7
application/design/install/default/scripts/intro.phtml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div class="install">
|
||||
<h1><?php echo $this->__('Welcome to the Wootook! installer')?></h1>
|
||||
<?php echo $this->getLayout()->getMessagesblock()->renderGroupedHtml()?>
|
||||
<p><?php echo $this->__('This page will guide you through the installation proces of Wootook! the MMO game engine platform.')?></p>
|
||||
<p><?php echo $this->__('Feel free to ask for help at any time at <a href="%s">wootook.org</a>.', 'http://wootook.org/board/')?></p>
|
||||
<p><button onclick="document.location.href='?mode=install&step=1'"><?php echo $this->__('Next step')?></button></p>
|
||||
</div>
|
||||
13
application/design/install/default/scripts/step/system.phtml
Normal file
13
application/design/install/default/scripts/step/system.phtml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php $session = Wootook::getSession('install')?>
|
||||
<div class="install">
|
||||
<h1><?php echo $this->__('Welcome to the Wootook! installer')?></h1>
|
||||
<h2><?php echo $this->__('System Config')?></h2>
|
||||
<?php echo $this->getLayout()->getMessagesblock()->renderGroupedHtml()?>
|
||||
<form method="post" action="?mode=install&step=1">
|
||||
<p>
|
||||
<label for="system:url_path"><?php echo $this->__('Base URL path for the game:')?></label>
|
||||
<input type="text" id="system:url_path" name="url_path" value="<?php echo $session->getFormData('url_path', Wootook::getBaseUrl())?>" />
|
||||
</p>
|
||||
<p><input type="submit" value="<?php echo $this->__('Next step')?>" /></p>
|
||||
</form>
|
||||
</div>
|
||||
Loading…
Reference in a new issue