diff --git a/application/design/frontend/base/default/scripts/empire/planet/shipyard/item.phtml b/src/application/design/frontend/base/default/scripts/empire/planet/shipyard/item.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/planet/shipyard/item.phtml
rename to src/application/design/frontend/base/default/scripts/empire/planet/shipyard/item.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/planet/shipyard/queue.phtml b/src/application/design/frontend/base/default/scripts/empire/planet/shipyard/queue.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/planet/shipyard/queue.phtml
rename to src/application/design/frontend/base/default/scripts/empire/planet/shipyard/queue.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/resources/default.phtml b/src/application/design/frontend/base/default/scripts/empire/resources/default.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/resources/default.phtml
rename to src/application/design/frontend/base/default/scripts/empire/resources/default.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/resources/energy.phtml b/src/application/design/frontend/base/default/scripts/empire/resources/energy.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/resources/energy.phtml
rename to src/application/design/frontend/base/default/scripts/empire/resources/energy.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/topnav.phtml b/src/application/design/frontend/base/default/scripts/empire/topnav.phtml
similarity index 79%
rename from application/design/frontend/base/default/scripts/empire/topnav.phtml
rename to src/application/design/frontend/base/default/scripts/empire/topnav.phtml
index afcf936..ab4f285 100644
--- a/application/design/frontend/base/default/scripts/empire/topnav.phtml
+++ b/src/application/design/frontend/base/default/scripts/empire/topnav.phtml
@@ -4,18 +4,18 @@
getPlanetCollection() as $planet):?>
getId() != $currentPlanet->getId()):?>
@@ -82,12 +82,12 @@
diff --git a/application/design/frontend/base/default/scripts/page/1column.phtml b/src/application/design/frontend/base/default/scripts/page/1column.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/1column.phtml
rename to src/application/design/frontend/base/default/scripts/page/1column.phtml
diff --git a/application/design/frontend/base/default/scripts/page/2columns-left.phtml b/src/application/design/frontend/base/default/scripts/page/2columns-left.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/2columns-left.phtml
rename to src/application/design/frontend/base/default/scripts/page/2columns-left.phtml
diff --git a/application/design/frontend/base/default/scripts/page/2columns-right.phtml b/src/application/design/frontend/base/default/scripts/page/2columns-right.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/2columns-right.phtml
rename to src/application/design/frontend/base/default/scripts/page/2columns-right.phtml
diff --git a/application/design/frontend/base/default/scripts/page/3columns.phtml b/src/application/design/frontend/base/default/scripts/page/3columns.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/3columns.phtml
rename to src/application/design/frontend/base/default/scripts/page/3columns.phtml
diff --git a/application/design/install/base/default/scripts/page/html/head.phtml b/src/application/design/frontend/base/default/scripts/page/html/head.phtml
similarity index 62%
rename from application/design/install/base/default/scripts/page/html/head.phtml
rename to src/application/design/frontend/base/default/scripts/page/html/head.phtml
index 7301e63..cb74234 100644
--- a/application/design/install/base/default/scripts/page/html/head.phtml
+++ b/src/application/design/frontend/base/default/scripts/page/html/head.phtml
@@ -1,5 +1,5 @@
escape($this->getTitle())?>
-
+
getCss() as $css):?>
@@ -12,7 +12,7 @@
getJs() as $js):?>
-
+
getSkinJs() as $js):?>
@@ -23,4 +23,12 @@
/*]]>*/
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/application/design/frontend/base/default/scripts/page/html/message.phtml b/src/application/design/frontend/base/default/scripts/page/html/message.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/html/message.phtml
rename to src/application/design/frontend/base/default/scripts/page/html/message.phtml
diff --git a/application/design/frontend/base/default/scripts/page/html/navigation.phtml b/src/application/design/frontend/base/default/scripts/page/html/navigation.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/html/navigation.phtml
rename to src/application/design/frontend/base/default/scripts/page/html/navigation.phtml
diff --git a/application/design/frontend/base/default/scripts/page/html/navigation/link.phtml b/src/application/design/frontend/base/default/scripts/page/html/navigation/link.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/html/navigation/link.phtml
rename to src/application/design/frontend/base/default/scripts/page/html/navigation/link.phtml
diff --git a/application/design/frontend/base/default/scripts/page/html/navigation/node.phtml b/src/application/design/frontend/base/default/scripts/page/html/navigation/node.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/page/html/navigation/node.phtml
rename to src/application/design/frontend/base/default/scripts/page/html/navigation/node.phtml
diff --git a/src/application/design/frontend/base/default/scripts/page/html/no-route.phtml b/src/application/design/frontend/base/default/scripts/page/html/no-route.phtml
new file mode 100644
index 0000000..9a65c8b
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/page/html/no-route.phtml
@@ -0,0 +1,5 @@
+
\ No newline at end of file
diff --git a/src/application/design/frontend/base/default/scripts/page/html/top-bar.phtml b/src/application/design/frontend/base/default/scripts/page/html/top-bar.phtml
new file mode 100644
index 0000000..8fffea9
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/page/html/top-bar.phtml
@@ -0,0 +1,14 @@
+
\ No newline at end of file
diff --git a/src/application/design/frontend/base/default/scripts/player/login.phtml b/src/application/design/frontend/base/default/scripts/player/login.phtml
new file mode 100644
index 0000000..6594e56
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/player/login.phtml
@@ -0,0 +1,23 @@
+
\ No newline at end of file
diff --git a/src/application/design/frontend/base/default/scripts/player/lost-password.phtml b/src/application/design/frontend/base/default/scripts/player/lost-password.phtml
new file mode 100644
index 0000000..9e074f0
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/player/lost-password.phtml
@@ -0,0 +1,16 @@
+
\ No newline at end of file
diff --git a/src/application/design/frontend/base/default/scripts/player/overview.phtml b/src/application/design/frontend/base/default/scripts/player/overview.phtml
new file mode 100644
index 0000000..96f9e62
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/player/overview.phtml
@@ -0,0 +1,10 @@
+
+
__('Overview')?>
+
+ renderPartial('overview.left')?>
+
+
+ renderPartial('overview.center')?>
+
+
+
\ No newline at end of file
diff --git a/application/design/frontend/base/default/scripts/empire/overview/fleet/item.phtml b/src/application/design/frontend/base/default/scripts/player/overview/fleet/item.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/overview/fleet/item.phtml
rename to src/application/design/frontend/base/default/scripts/player/overview/fleet/item.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/overview/form/destroy-planet.phtml b/src/application/design/frontend/base/default/scripts/player/overview/form/destroy-planet.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/overview/form/destroy-planet.phtml
rename to src/application/design/frontend/base/default/scripts/player/overview/form/destroy-planet.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/overview/form/rename-planet.phtml b/src/application/design/frontend/base/default/scripts/player/overview/form/rename-planet.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/overview/form/rename-planet.phtml
rename to src/application/design/frontend/base/default/scripts/player/overview/form/rename-planet.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/overview/messages.phtml b/src/application/design/frontend/base/default/scripts/player/overview/messages.phtml
similarity index 100%
rename from application/design/frontend/base/default/scripts/empire/overview/messages.phtml
rename to src/application/design/frontend/base/default/scripts/player/overview/messages.phtml
diff --git a/application/design/frontend/base/default/scripts/empire/overview/planet/list/item.phtml b/src/application/design/frontend/base/default/scripts/player/overview/planet/list/item.phtml
similarity index 75%
rename from application/design/frontend/base/default/scripts/empire/overview/planet/list/item.phtml
rename to src/application/design/frontend/base/default/scripts/player/overview/planet/list/item.phtml
index c571391..44b2fd5 100644
--- a/application/design/frontend/base/default/scripts/empire/overview/planet/list/item.phtml
+++ b/src/application/design/frontend/base/default/scripts/player/overview/planet/list/item.phtml
@@ -1,6 +1,6 @@
escape($this['planet']->getData('name'))?>
-
+
count() > 0):?>
diff --git a/src/application/design/frontend/base/default/scripts/player/overview/planet/mini.phtml b/src/application/design/frontend/base/default/scripts/player/overview/planet/mini.phtml
new file mode 100644
index 0000000..c30fdda
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/player/overview/planet/mini.phtml
@@ -0,0 +1,7 @@
+
+ escape($this->getPlanetName())?>
+ escape($this->getPlanetCoords())?>
+
+
+
+
diff --git a/src/application/design/frontend/base/default/scripts/player/overview/planet/view.phtml b/src/application/design/frontend/base/default/scripts/player/overview/planet/view.phtml
new file mode 100644
index 0000000..c4a724d
--- /dev/null
+++ b/src/application/design/frontend/base/default/scripts/player/overview/planet/view.phtml
@@ -0,0 +1 @@
+renderPartial('planet-list') ?>
diff --git a/application/design/frontend/base/default/scripts/user/registration.phtml b/src/application/design/frontend/base/default/scripts/player/registration.phtml
similarity index 71%
rename from application/design/frontend/base/default/scripts/user/registration.phtml
rename to src/application/design/frontend/base/default/scripts/player/registration.phtml
index f141946..28aae6a 100644
--- a/application/design/frontend/base/default/scripts/user/registration.phtml
+++ b/src/application/design/frontend/base/default/scripts/player/registration.phtml
@@ -1,37 +1,39 @@
-
\ No newline at end of file
diff --git a/application/design/install/base/default/layouts/install.php b/src/application/design/install/base/default/layouts/install.php
similarity index 92%
rename from application/design/install/base/default/layouts/install.php
rename to src/application/design/install/base/default/layouts/install.php
index 6053560..5bc7c8e 100644
--- a/application/design/install/base/default/layouts/install.php
+++ b/src/application/design/install/base/default/layouts/install.php
@@ -148,6 +148,17 @@
'template' => 'summary.phtml'
),
)
+ ),
+ 'status' => array(
+ 'actions' => array(
+ array(
+ 'method' => 'setData',
+ 'params' => array(
+ 'key' => 'step',
+ 'value' => 5
+ )
+ )
+ )
)
)
),
diff --git a/application/design/install/base/default/layouts/page.xml b/src/application/design/install/base/default/layouts/page.xml
similarity index 67%
rename from application/design/install/base/default/layouts/page.xml
rename to src/application/design/install/base/default/layouts/page.xml
index ec1ea8e..e0837eb 100644
--- a/application/design/install/base/default/layouts/page.xml
+++ b/src/application/design/install/base/default/layouts/page.xml
@@ -8,9 +8,7 @@
-
- page/2columns-left.phtml
-
+ page/2columns-left.phtml
@@ -20,9 +18,7 @@
-
- page/2columns-right.phtml
-
+ page/2columns-right.phtml
@@ -32,9 +28,7 @@
-
- page/3columns.phtml
-
+ page/3columns.phtml
@@ -44,24 +38,10 @@
-
- css/deprecated/default.css
-
-
-
-
- css/deprecated/formate.css
-
-
-
-
- css/base.css
-
+ css/base.css
-
- scripts/jquery/jquery-1.6.4.js
-
+ scripts/jquery/jquery-1.6.4.js
diff --git a/application/design/install/base/default/scripts/intro.phtml b/src/application/design/install/base/default/scripts/intro.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/intro.phtml
rename to src/application/design/install/base/default/scripts/intro.phtml
diff --git a/application/design/install/base/default/scripts/page/1column.phtml b/src/application/design/install/base/default/scripts/page/1column.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/1column.phtml
rename to src/application/design/install/base/default/scripts/page/1column.phtml
diff --git a/application/design/install/base/default/scripts/page/2columns-left.phtml b/src/application/design/install/base/default/scripts/page/2columns-left.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/2columns-left.phtml
rename to src/application/design/install/base/default/scripts/page/2columns-left.phtml
diff --git a/application/design/install/base/default/scripts/page/2columns-right.phtml b/src/application/design/install/base/default/scripts/page/2columns-right.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/2columns-right.phtml
rename to src/application/design/install/base/default/scripts/page/2columns-right.phtml
diff --git a/application/design/install/base/default/scripts/page/3columns.phtml b/src/application/design/install/base/default/scripts/page/3columns.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/3columns.phtml
rename to src/application/design/install/base/default/scripts/page/3columns.phtml
diff --git a/application/design/frontend/base/default/scripts/page/html/head.phtml b/src/application/design/install/base/default/scripts/page/html/head.phtml
similarity index 88%
rename from application/design/frontend/base/default/scripts/page/html/head.phtml
rename to src/application/design/install/base/default/scripts/page/html/head.phtml
index 7301e63..b98b464 100644
--- a/application/design/frontend/base/default/scripts/page/html/head.phtml
+++ b/src/application/design/install/base/default/scripts/page/html/head.phtml
@@ -1,5 +1,5 @@
escape($this->getTitle())?>
-
+
getCss() as $css):?>
@@ -12,7 +12,7 @@
getJs() as $js):?>
-
+
getSkinJs() as $js):?>
diff --git a/application/design/install/base/default/scripts/page/html/message.phtml b/src/application/design/install/base/default/scripts/page/html/message.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/html/message.phtml
rename to src/application/design/install/base/default/scripts/page/html/message.phtml
diff --git a/application/design/install/base/default/scripts/page/html/navigation.phtml b/src/application/design/install/base/default/scripts/page/html/navigation.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/html/navigation.phtml
rename to src/application/design/install/base/default/scripts/page/html/navigation.phtml
diff --git a/application/design/install/base/default/scripts/page/html/navigation/link.phtml b/src/application/design/install/base/default/scripts/page/html/navigation/link.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/html/navigation/link.phtml
rename to src/application/design/install/base/default/scripts/page/html/navigation/link.phtml
diff --git a/application/design/install/base/default/scripts/page/html/navigation/node.phtml b/src/application/design/install/base/default/scripts/page/html/navigation/node.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/page/html/navigation/node.phtml
rename to src/application/design/install/base/default/scripts/page/html/navigation/node.phtml
diff --git a/application/design/install/base/default/scripts/status.phtml b/src/application/design/install/base/default/scripts/status.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/status.phtml
rename to src/application/design/install/base/default/scripts/status.phtml
diff --git a/application/design/install/base/default/scripts/step/database.phtml b/src/application/design/install/base/default/scripts/step/database.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/step/database.phtml
rename to src/application/design/install/base/default/scripts/step/database.phtml
diff --git a/application/design/install/base/default/scripts/step/profile.phtml b/src/application/design/install/base/default/scripts/step/profile.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/step/profile.phtml
rename to src/application/design/install/base/default/scripts/step/profile.phtml
diff --git a/application/design/install/base/default/scripts/step/system.phtml b/src/application/design/install/base/default/scripts/step/system.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/step/system.phtml
rename to src/application/design/install/base/default/scripts/step/system.phtml
diff --git a/application/design/install/base/default/scripts/step/universe.phtml b/src/application/design/install/base/default/scripts/step/universe.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/step/universe.phtml
rename to src/application/design/install/base/default/scripts/step/universe.phtml
diff --git a/application/design/install/base/default/scripts/summary.phtml b/src/application/design/install/base/default/scripts/summary.phtml
similarity index 100%
rename from application/design/install/base/default/scripts/summary.phtml
rename to src/application/design/install/base/default/scripts/summary.phtml
diff --git a/application/gamedata/default/default/combat.php b/src/application/gamedata/default/default/combat.php
similarity index 100%
rename from application/gamedata/default/default/combat.php
rename to src/application/gamedata/default/default/combat.php
diff --git a/application/gamedata/default/default/events.php b/src/application/gamedata/default/default/events.php
similarity index 100%
rename from application/gamedata/default/default/events.php
rename to src/application/gamedata/default/default/events.php
diff --git a/application/gamedata/default/default/fields-alias.php b/src/application/gamedata/default/default/fields-alias.php
similarity index 100%
rename from application/gamedata/default/default/fields-alias.php
rename to src/application/gamedata/default/default/fields-alias.php
diff --git a/application/gamedata/default/default/modules.php b/src/application/gamedata/default/default/modules.php
similarity index 100%
rename from application/gamedata/default/default/modules.php
rename to src/application/gamedata/default/default/modules.php
diff --git a/application/gamedata/default/default/prices.php b/src/application/gamedata/default/default/prices.php
similarity index 100%
rename from application/gamedata/default/default/prices.php
rename to src/application/gamedata/default/default/prices.php
diff --git a/application/gamedata/default/default/production.php b/src/application/gamedata/default/default/production.php
similarity index 100%
rename from application/gamedata/default/default/production.php
rename to src/application/gamedata/default/default/production.php
diff --git a/application/gamedata/default/default/requirements.php b/src/application/gamedata/default/default/requirements.php
similarity index 100%
rename from application/gamedata/default/default/requirements.php
rename to src/application/gamedata/default/default/requirements.php
diff --git a/application/gamedata/default/default/resources.php b/src/application/gamedata/default/default/resources.php
similarity index 100%
rename from application/gamedata/default/default/resources.php
rename to src/application/gamedata/default/default/resources.php
diff --git a/application/gamedata/default/default/types.php b/src/application/gamedata/default/default/types.php
similarity index 100%
rename from application/gamedata/default/default/types.php
rename to src/application/gamedata/default/default/types.php
diff --git a/application/gamedata/legacies/default/combat.php b/src/application/gamedata/legacies/default/combat.php
similarity index 100%
rename from application/gamedata/legacies/default/combat.php
rename to src/application/gamedata/legacies/default/combat.php
diff --git a/application/gamedata/legacies/default/events.php b/src/application/gamedata/legacies/default/events.php
similarity index 95%
rename from application/gamedata/legacies/default/events.php
rename to src/application/gamedata/legacies/default/events.php
index 23bdedb..c3d2af0 100644
--- a/application/gamedata/legacies/default/events.php
+++ b/src/application/gamedata/legacies/default/events.php
@@ -1,7 +1,7 @@
array(),
'layout.prepare.after' => array(
- array('Wootook_Empire_Model_User', 'layoutPrepareAfterListener')
+ array('Wootook_Player_Model_Entity', 'layoutPrepareAfterListener')
),
'login.failure' => array(),
'login.success' => array(),
diff --git a/application/gamedata/legacies/default/fields-alias.php b/src/application/gamedata/legacies/default/fields-alias.php
similarity index 100%
rename from application/gamedata/legacies/default/fields-alias.php
rename to src/application/gamedata/legacies/default/fields-alias.php
diff --git a/src/application/gamedata/legacies/default/modules.php b/src/application/gamedata/legacies/default/modules.php
new file mode 100644
index 0000000..cf043d3
--- /dev/null
+++ b/src/application/gamedata/legacies/default/modules.php
@@ -0,0 +1,11 @@
+ array(
+ 'core' => array('Wootook_Core_Block_' => 'Wootook/Core/Block'),
+ 'empire' => array('Wootook_Empire_Block_' => 'Wootook/Empire/Block'),
+ 'player' => array('Wootook_Player_Block_' => 'Wootook/Player/Block'),
+ 'legacies-core' => array('Legacies_Core_Block_' => 'Legacies/Core/Block'),
+ 'legacies-empire' => array('Legacies_Empire_Block_' => 'Legacies/Empire/Block'),
+ 'legacies-officers' => array('Legacies_Officers_Block_' => 'Legacies/Officers/Block'),
+ 'legacies-stats' => array('Legacies_Stats_Block_' => 'Legacies/Stats/Block')
+ )
+ );
\ No newline at end of file
diff --git a/application/gamedata/legacies/default/prices.php b/src/application/gamedata/legacies/default/prices.php
similarity index 100%
rename from application/gamedata/legacies/default/prices.php
rename to src/application/gamedata/legacies/default/prices.php
diff --git a/application/gamedata/legacies/default/production.php b/src/application/gamedata/legacies/default/production.php
similarity index 100%
rename from application/gamedata/legacies/default/production.php
rename to src/application/gamedata/legacies/default/production.php
diff --git a/application/gamedata/legacies/default/requirements.php b/src/application/gamedata/legacies/default/requirements.php
similarity index 100%
rename from application/gamedata/legacies/default/requirements.php
rename to src/application/gamedata/legacies/default/requirements.php
diff --git a/application/gamedata/legacies/default/resources.php b/src/application/gamedata/legacies/default/resources.php
similarity index 100%
rename from application/gamedata/legacies/default/resources.php
rename to src/application/gamedata/legacies/default/resources.php
diff --git a/application/gamedata/legacies/default/types.php b/src/application/gamedata/legacies/default/types.php
similarity index 100%
rename from application/gamedata/legacies/default/types.php
rename to src/application/gamedata/legacies/default/types.php
diff --git a/application/gamedata/legacies/version.php b/src/application/gamedata/legacies/version.php
similarity index 100%
rename from application/gamedata/legacies/version.php
rename to src/application/gamedata/legacies/version.php
diff --git a/application/locale/en_US/Legacies_User.csv b/src/application/locale/en_US/Legacies_User.csv
similarity index 100%
rename from application/locale/en_US/Legacies_User.csv
rename to src/application/locale/en_US/Legacies_User.csv
diff --git a/application/locale/fr_FR/Legacies.csv b/src/application/locale/fr_FR/Legacies.csv
similarity index 100%
rename from application/locale/fr_FR/Legacies.csv
rename to src/application/locale/fr_FR/Legacies.csv
diff --git a/application/locale/fr_FR/Legacies_User.csv b/src/application/locale/fr_FR/Legacies_User.csv
similarity index 100%
rename from application/locale/fr_FR/Legacies_User.csv
rename to src/application/locale/fr_FR/Legacies_User.csv
diff --git a/application/locale/fr_FR/Legacies_User.txt b/src/application/locale/fr_FR/Legacies_User.txt
similarity index 100%
rename from application/locale/fr_FR/Legacies_User.txt
rename to src/application/locale/fr_FR/Legacies_User.txt
diff --git a/src/application/locale/fr_FR/Wootook_Core.csv b/src/application/locale/fr_FR/Wootook_Core.csv
new file mode 100644
index 0000000..5b8590e
--- /dev/null
+++ b/src/application/locale/fr_FR/Wootook_Core.csv
@@ -0,0 +1,154 @@
+"Game is disabled.","Le jeu est clos."
+"%1$d day(s) and %2$d hour(s)","%1$d jour(s) et %2$d heure(s)"
+"%1$d hour(s), %2$d minute(s) and %3$d second(s)","%1$d heure(s), %2$d minute(s) et %3$d seconde(s)"
+"%1$d minute(s) and %2$d second(s)","%1$d minute(s) et %2$d seconde(s)"
+"%1$d second(s)","%1$d seconde(s)"
+"%1$d per minute","%1$d par minute"
+"instantaneous","instantanné"
+"Attack","Attaquer"
+"Transport","Transporter"
+"Station","Stationner"
+"Settle","Coloniser"
+"Recycle","Recycler"
+"Destroy","Detruire"
+"Missiles Launch","Envoi de missiles"
+"Expedition","Expédition"
+"Unknown","Inconnu"
+"Planet is already destroyed.","La planète a déjà été détruite."
+"Could not delete planet until fleets aten't retuned.","Impossible de détruire la planète tant que toutes les flottes ne sont pas revenues."
+"You can't destroy your home planet.","Vous ne pouvez pas détruire votre planète mère."
+"No such user.","Cet utilisateur n'existe pas."
+"You were banned, please contact admin for more information.","Vous avez été banni. Veuillez contacter l'administrateur pour plus d'informations."
+"Your username or credential is invalid, please check your input.","Votre nom d'utilisateur ou votre mot de passe sont invalides, veuillez vérifier votre saisie."
+"My %s message!","My %s message!"
+"An hostile fleet sent by %1$s, coming from %2$s, reaches your planet %3$d. It has been sent with the mission: %4$d","Une flotte hostile envoyée par %1$s et prevenant de %2$s atteint votre planète %3$d. Sa mission est : %4$d."
+"Your hostile fleet, sent from %1$s, reaches %2$d\'s planet %3$d. It has been sent with the mission: %4$d","Votre flotte hostile envoyée depuis %1$s, atteint la planète de %2$d : %3$d. Sa mission est : %4$d"
+"Your peaceful fleet, sent from %2$s, reaches the planet %3$d. It has been sent with the mission: %4$d","Votre flotte envoyée depuis %2$s, atteint la planète %3$d. Sa mission est : %4$d"
+"A peaceful fleet sent by %1$s, coming from %2$s, reaches your planet %3$d. It has been sent with the mission: %4$d","Une flotte pacifique envoyée par %1$s et venant de %2$s atteint votre palnète %3$d. Sa mission est : %4$d"
+"I want to destroy this planet","Je veux détruire cette planète."
+"New name:","Nouveau nom:"
+"You have 1 unread message.","Vous avez un message non lu."
+"You have %1$d unread messages.","Vous avez %1$d messages non lus."
+"Idle.","Inactif."
+"Level %d","Niveau %d"
+"Current count: %s","Quantité actuelle : %s"
+"Build max (%s)","Construire le max (%s)"
+"Build next level (%s)","Construire au niveau %s"
+"Building time: %s","Temps de construction : %s"
+"Lasts %s","Il reste %s"
+"Cancel","Annuler"
+"Work in progress","En cours..."
+"Buildings","Bâtiments"
+"Research Laboratory","Laboratoire de recherche"
+"Shipyard","Chantier spatial"
+"Build","Build"
+"Metal","Métal"
+"Cristal","Cristal"
+"Deuterium","Deutérium"
+"Energy","Energie"
+"Messages","Messages"
+"1 message.","Un message."
+"You have no new message.","Vous n'avez pas de nouveau message."
+"No message.","Pas de message."
+"Username","Nom d'utilisateur"
+"Password","Mot de passe"
+"Remember me","Se souvenir de moi"
+"Log in!","Connexion!"
+"I have lost my password.","J'ai perdu mon mot de passe."
+"Register","Créer un compte"
+"Boards","Forum"
+"Contact","Contact"
+"Welcome on %s!","Bienvenue sur %s!"
+"%1$s make you an emperor. Conquer outer space and master other players on %1$s.","%1$s fait de vous un empereur. Parcourez l'espace sidéral et conquérez les territoires d'autres joueurs sur %1$s."
+"Register now!","S'enregistrer maintenant!"
+"Player count: ","Nombre de joueurs : "
+"Latest player: ","Dernier inscrit : "
+"Online players: ","Joueurs en ligne : "
+"User data:","Votre compte :"
+"Username:","Nom d'empire :"
+"Email:","Email :"
+"Confirm email:","Confirmez l'email :"
+"Password:","Mot de passe :"
+"Confirm password:","Confirmez le mot de passe :"
+"Planet:","Planète :"
+"Planet name:","Nom de votre planète :"
+"Register!","S'enregistrer!"
+"Welcome to the Wootook! installer","Bienvenue sur l'installation de Wootook!"
+"This page will guide you through the installation proces of Wootook! the MMO game engine platform.","Cette page vous guidera à travers le processus d'installation de Wootook! la plateforme de jeux web MMO."
+"Feel free to ask for help at any time at wootook.org.","Feel free to ask for help at any time at wootook.org."
+"Next step","Etape suivante"
+"Welcome","Bienvenue"
+"System","Système"
+"Database","Base de données"
+"Universe","Univers"
+"Admin profile","Profil administrateur"
+"Summary","Finalisation"
+"Database Config","Configuration de votre base de données"
+"Database host address:","Adresse du serveur :"
+"Database host port:","Port du serveur :"
+"Database account name:","Compte utilisateur:"
+"Database account password:","Mot de passe :"
+"Database name:","Nom de la base de données :"
+"Table name prefix:","Préfixe des noms des tables :"
+"Test connection","Tester la connexion"
+"Connection succeeded.","Connexion réussie."
+"Connection error: ","Erreur de connexion : "
+"Admin Profile Config","Configuration du compte administrateur"
+"Root admin account name:","Nom d'utilisateur :"
+"Root admin email:","Email du compte administrateur :"
+"Root admin account password:","Mot de passe :"
+"Root admin account password confirm:","Confirmez le mot de passe :"
+"System Config","Configuration système"
+"Base URL path for the game:","URL de base Base du jeu :"
+"Game timezone:","Fuseau horaire du jeu :"
+"Africa","Afrique"
+"America","Amerique"
+"Atlantic","Atlantique"
+"Asia","Asie"
+"Europe","Europe"
+"Pacific","Pacifique"
+"Universe Config","configuration de l'univers"
+"Galaxies count:","Nombre de galaxies :"
+"Systems count:","Nombre de systèmes solaires :"
+"Positions in each system:","Nombre de planètes dans chaque système solaire :"
+"Allow spy drone attacks","Autoriser la attaques de sondes d'espionnage"
+"Activate large numbers handling","Activer la gestion des très grands nombres"
+"'BC Math' extension is unavailable. This option will have no effect until the extension isn't active.","L'extension PHP 'BC Math' est indisponible sur votre machine. Cette option n'aura aucun effet tant que l'extension ne sera pas activée."
+"Wootook! was successfully installed.","Wootook! a été correctmeent installé."
+"You can now play at %s and tell your friends to come and play.","Vous pouvez maintenant jouer sur %s et dire à vos amis de venir."
+"Feel free to ask for help at any time at wootook.org.","Feel free to ask for help at any time at wootook.org."
+"Play!","Jouer!"
+"Shipyard is required","Le chantier spatial est requis"
+"In order to build ships you will need to build a shipyard building.","Pour construire des vaisseaux, vous devrez construire un chantier spatial."
+"Research lab is required","Le laboratoire de recherche est requis"
+"In order to do technological researches, you will need to build a research lab building.","Pour effectuer des recherches de nouvelles technologies, vous devrez construire un laboratoire de recherches."
+"Unnamed","Sans nom"
+"Name","Nom"
+"Galaxy","Galaxie"
+"System","Système"
+"Planet","Planète"
+"Debris","Débris"
+"Moon","Lune"
+"Reset","Réinitialiser"
+"Save","Sauvegarder"
+"The shortcut has been saved.","Le raccourci a été enregistré."
+"The shortcut has been deleted","Le raccourdi a été supprimé"
+"The shortcut has been updated.","Le raccourci a été mis à jour."
+"Success","Succès"
+"Colony","Colonie"
+"Moon","Lune"
+"Game data successfully initialized.","Game data successfully initialized."
+"Passwords does not match.","Les mots de passe ne correpsondent pas."
+"Both e-mails does not match.","Les emails ne correpsondent pas."
+"Could not create user.","Impossible de créer le compte d'utilisateur."
+"Could not set to vacation mode.","Impossible d'activer le mode vacances."
+"You currently can't get to vacation mode, please check your flying fleets, and building queues.","You currently can't get to vacation mode, please check your flying fleets, and building queues."
+"Password was not correct.","Le mot de passe est incorrect."
+"Planet has been successfully destroyed.","LA planète a été détruite."
+"Open the chat.","Ouvrir le chat."
+"No root view declared.","Aucune vue racine n'est déclarée."
+"Query failed: SQLSTATE %s: %s.","La requête a échoué : SQLSTATE %s: %s."
+"Undefined method %s::%s.","La méthode %s::%s est inconnue."
+"Ajax failure.","Erreur AJAX."
+"Invalid security key.","code de sécurité invalide."
+"Form data error.","données de formulaire erronnées."
diff --git a/src/application/test/translate.csv b/src/application/test/translate.csv
new file mode 100644
index 0000000..a873711
--- /dev/null
+++ b/src/application/test/translate.csv
@@ -0,0 +1,154 @@
+"Game is disabled.","Le jeu est clos."
+"%1$d day(s) and %2$d hour(s)","%1$d jour(s) et %2$d heure(s)"
+"%1$d hour(s), %2$d minute(s) and %3$d second(s)","%1$d heure(s), %2$d minute(s) et %3$d seconde(s)"
+"%1$d minute(s) and %2$d second(s)","%1$d minute(s) et %2$d seconde(s)"
+"%1$d second(s)","%1$d seconde(s)"
+"%1$d per minute","%1$d par minute"
+"instantaneous","instantanné"
+"Attack","Attaquer"
+"Transport","Transporter"
+"Station","Stationner"
+"Settle","Coloniser"
+"Recycle","Recycler"
+"Destroy","Detruire"
+"Missiles Launch","Envoi de missiles"
+"Expedition","Expédition"
+"Unknown","Inconnu"
+"Planet is already destroyed.","La planète a déjà été détruite."
+"Could not delete planet until fleets aten't retuned.","Impossible de détruire la planète tant que toutes les flottes ne sont pas revenues."
+"You can't destroy your home planet.","Vous ne pouvez pas détruire votre planète mère."
+"No such user.","Cet utilisateur n'existe pas."
+"You were banned, please contact admin for more information.","Vous avez été banni. Veuillez contacter l'administrateur pour plus d'informations."
+"Your username or credential is invalid, please check your input.","Votre nom d'utilisateur ou votre mot de passe sont invalides, veuillez vérifier votre saisie."
+"My %s message!","My %s message!"
+"An hostile fleet sent by %1$s, coming from %2$s, reaches your planet %3$d. It has been sent with the mission: %4$d","Une flotte hostile envoyée par %1$s et prevenant de %2$s atteint votre planète %3$d. Sa mission est : %4$d."
+"Your hostile fleet, sent from %1$s, reaches %2$d\'s planet %3$d. It has been sent with the mission: %4$d","Votre flotte hostile envoyée depuis %1$s, atteint la planète de %2$d : %3$d. Sa mission est : %4$d"
+"Your peaceful fleet, sent from %2$s, reaches the planet %3$d. It has been sent with the mission: %4$d","Votre flotte envoyée depuis %2$s, atteint la planète %3$d. Sa mission est : %4$d"
+"A peaceful fleet sent by %1$s, coming from %2$s, reaches your planet %3$d. It has been sent with the mission: %4$d","Une flotte pacifique envoyée par %1$s et venant de %2$s atteint votre palnète %3$d. Sa mission est : %4$d"
+"I want to destroy this planet","Je veux détruire cette planète."
+"New name:","Nouveau nom:"
+"You have 1 unread message.","Vous avez un message non lu."
+"You have %1$d unread messages.","Vous avez %1$d messages non lus."
+"Idle.","Inactif."
+"Level %d","Niveau %d"
+"Current count: %s","Quantité actuelle : %s"
+"Build max (%s)","Construire le max (%s)"
+"Build next level (%s)","Construire le niveau suivant (%s)"
+"Building time: %s","Temps de construction : %s"
+"Lasts %s","Il reste %s"
+"Cancel","Annuler"
+"Work in progress","En cours..."
+"Buildings","Bâtiments"
+"Research Laboratory","Laboratoire de recherche"
+"Shipyard","Chantier spatial"
+"Build","Build"
+"Metal","Métal"
+"Cristal","Cristal"
+"Deuterium","Deutérium"
+"Energy","Energie"
+"Messages","Messages"
+"1 message.","Un message."
+"You have no new message.","Vous n'avez pas de nouveau message."
+"No message.","Pas de message."
+"Username","Nom d'utilisateur"
+"Password","Mot de passe"
+"Remember me","Se souvenir de moi"
+"Log in!","Connexion!"
+"I have lost my password.","J'ai perdu mon mot de passe."
+"Register","Créer un compte"
+"Boards","Forum"
+"Contact","Contact"
+"Welcome on %s!","Bienvenue sur %s!"
+"%1$s make you an emperor. Conquer outer space and master other players on %1$s.","%1$s fait de vous un empereur. Parcourez l'espace sidéral et conquérez les territoires d'autres joueurs sur %1$s."
+"Register now!","S'enregistrer maintenant!"
+"Player count: ","Nombre de joueurs : "
+"Latest player: ","Dernier inscrit : "
+"Online players: ","Joueurs en ligne : "
+"User data:","Votre compte :"
+"Username:","Nom d'empire :"
+"Email:","Email :"
+"Confirm email:","Confirmez l'email :"
+"Password:","Mot de passe :"
+"Confirm password:","Confirmez le mot de passe :"
+"Planet:","Planète :"
+"Planet name:","Nom de votre planète :"
+"Register!","S'enregistrer!"
+"Welcome to the Wootook! installer","Bienvenue sur l'installation de Wootook!"
+"This page will guide you through the installation proces of Wootook! the MMO game engine platform.","Cette page vous guidera à travers le processus d'installation de Wootook! la plateforme de jeux web MMO."
+"Feel free to ask for help at any time at wootook.org.","Feel free to ask for help at any time at wootook.org."
+"Next step","Etape suivante"
+"Welcome","Bienvenue"
+"System","Système"
+"Database","Base de données"
+"Universe","Univers"
+"Admin profile","Compte Admin"
+"Summary","Finalisation"
+"Database Config","Configuration de votre base de données"
+"Database host address:","Adresse du serveur :"
+"Database host port:","Port du serveur :"
+"Database account name:","Compte utilisateur:"
+"Database account password:","Mot de passe :"
+"Database name:","Nom de la base de données :"
+"Table name prefix:","Préfixe des noms des tables :"
+"Test connection","Tester la connexion"
+"Connection succeeded.","Connexion réussie."
+"Connection error: ","Erreur de connexion : "
+"Admin Profile Config","Configuration du compte administrateur"
+"Root admin account name:","Nom d'utilisateur :"
+"Root admin email:","Email du compte administrateur :"
+"Root admin account password:","Mot de passe :"
+"Root admin account password confirm:","Confirmez le mot de passe :"
+"System Config","Configuration système"
+"Base URL path for the game:","URL de base Base du jeu :"
+"Game timezone:","Fuseau horaire du jeu :"
+"Africa","Afrique"
+"America","Amerique"
+"Atlantic","Atlantique"
+"Asia","Asie"
+"Europe","Europe"
+"Pacific","Pacifique"
+"Universe Config","configuration de l'univers"
+"Galaxies count:","Nombre de galaxies :"
+"Systems count:","Nombre de systèmes solaires :"
+"Positions in each system:","Nombre de planètes dans chaque système solaire :"
+"Allow spy drone attacks","Autoriser la attaques de sondes d'espionnage"
+"Activate large numbers handling","Activer la gestion des très grands nombres"
+"'BC Math' extension is unavailable. This option will have no effect until the extension isn't active.","L'extension PHP 'BC Math' est indisponible sur votre machine. Cette option n'aura aucun effet tant que l'extension ne sera pas activée."
+"Wootook! was successfully installed.","Wootook! a été correctmeent installé."
+"You can now play at %s and tell your friends to come and play.","Vous pouvez maintenant jouer sur %s et dire à vos amis de venir."
+"Feel free to ask for help at any time at wootook.org.","Feel free to ask for help at any time at wootook.org."
+"Play!","Jouer!"
+"Shipyard is required","Le chantier spatial est requis"
+"In order to build ships you will need to build a shipyard building.","Pour construire des vaisseaux, vous devrez construire un chantier spatial."
+"Research lab is required","Le laboratoire de recherche est requis"
+"In order to do technological researches, you will need to build a research lab building.","Pour effectuer des recherches de nouvelles technologies, vous devrez construire un laboratoire de recherches."
+"Unnamed","Sans nom"
+"Name","Nom"
+"Galaxy","Galaxie"
+"System","Système"
+"Planet","Planète"
+"Debris","Débris"
+"Moon","Lune"
+"Reset","Réinitialiser"
+"Save","Sauvegarder"
+"The shortcut has been saved.","Le raccourci a été enregistré."
+"The shortcut has been deleted","Le raccourdi a été supprimé"
+"The shortcut has been updated.","Le raccourci a été mis à jour."
+"Success","Succès"
+"Colony","Colonie"
+"Moon","Lune"
+"Game data successfully initialized.","Game data successfully initialized."
+"Passwords does not match.","Les mots de passe ne correpsondent pas."
+"Both e-mails does not match.","Les emails ne correpsondent pas."
+"Could not create user.","Impossible de créer le compte d'utilisateur."
+"Could not set to vacation mode.","Impossible d'activer le mode vacances."
+"You currently can't get to vacation mode, please check your flying fleets, and building queues.","You currently can't get to vacation mode, please check your flying fleets, and building queues."
+"Password was not correct.","Le mot de passe est incorrect."
+"Planet has been successfully destroyed.","LA planète a été détruite."
+"Open the chat.","Ouvrir le chat."
+"No root view declared.","Aucune vue racine n'est déclarée."
+"Query failed: SQLSTATE %s: %s.","La requête a échoué : SQLSTATE %s: %s."
+"Undefined method %s::%s.","La méthode %s::%s est inconnue."
+"Ajax failure.","Erreur AJAX."
+"Invalid security key.","code de sécurité invalide."
+"Form data error.","données de formulaire erronnées."
diff --git a/src/application/test/translate2.txt b/src/application/test/translate2.txt
new file mode 100644
index 0000000..6731a74
Binary files /dev/null and b/src/application/test/translate2.txt differ
diff --git a/banned.php b/src/banned.php
similarity index 98%
rename from banned.php
rename to src/banned.php
index 53c3b94..2ff2b33 100644
--- a/banned.php
+++ b/src/banned.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/buddy.php b/src/buddy.php
similarity index 99%
rename from buddy.php
rename to src/buddy.php
index a59aca3..89e8b49 100644
--- a/buddy.php
+++ b/src/buddy.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/buildings.php b/src/buildings.php
similarity index 87%
rename from buildings.php
rename to src/buildings.php
index 0efe1cc..2d1cf82 100644
--- a/buildings.php
+++ b/src/buildings.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -34,8 +34,8 @@ require_once dirname(__FILE__) .'/application/bootstrap.php';
includeLang('buildings');
-$user = Wootook_Empire_Model_User::getSingleton();
-$planet = $user->getCurrentPlanet();
+$player = Wootook_Player_Model_Session::getSingleton()->getPlayer();
+$planet = $player->getCurrentPlanet();
$mode = isset($_GET['mode']) ? $_GET['mode'] : null;
switch ($mode) {
@@ -64,7 +64,7 @@ case 'fleet':
$planet->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
}
@@ -90,11 +90,12 @@ case 'research':
if (isset($_GET['research']) && !empty($_GET['research'])) {
$data = $planet->getAllDatas();
- $planet->appendBuildingQueue(intval($_GET['research']), isset($_GET['destroy']));
+ $planet->getResearchLab()->appendQueue(intval($_GET['research']));
$planet->save();
+ $player->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
} else if (isset($_GET['cancel']) && !empty($_GET['cancel'])) {
@@ -102,7 +103,7 @@ case 'research':
$planet->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
}
@@ -138,7 +139,7 @@ case 'defense':
$planet->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
}
@@ -160,7 +161,7 @@ default:
$planet->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
} else if (isset($_GET['cancel']) && !empty($_GET['cancel'])) {
@@ -168,7 +169,7 @@ default:
$planet->save();
Wootook::getResponse()
- ->setRedirect(Wootook::getUrl('buildings.php', array('mode' => $mode)))
+ ->setRedirect(Wootook::getStaticUrl('buildings.php', array('mode' => $mode)))
->sendHeaders();
exit(0);
}
diff --git a/calc.php b/src/calc.php
similarity index 99%
rename from calc.php
rename to src/calc.php
index 13c5db8..194afe3 100644
--- a/calc.php
+++ b/src/calc.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/changelog.php b/src/changelog.php
similarity index 98%
rename from changelog.php
rename to src/changelog.php
index 00df85d..f816d73 100644
--- a/changelog.php
+++ b/src/changelog.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/chat.php b/src/chat.php
similarity index 97%
rename from chat.php
rename to src/chat.php
index 16254dd..07c1f4d 100644
--- a/chat.php
+++ b/src/chat.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/chat_add.php b/src/chat_add.php
similarity index 98%
rename from chat_add.php
rename to src/chat_add.php
index f3f8c13..5d37c5b 100644
--- a/chat_add.php
+++ b/src/chat_add.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/chat_msg.php b/src/chat_msg.php
similarity index 99%
rename from chat_msg.php
rename to src/chat_msg.php
index acb1bfa..37b3bfc 100644
--- a/chat_msg.php
+++ b/src/chat_msg.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/contact.php b/src/contact.php
similarity index 98%
rename from contact.php
rename to src/contact.php
index 17fc8bf..3d28913 100644
--- a/contact.php
+++ b/src/contact.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/emoticones/Oo.png b/src/emoticones/Oo.png
similarity index 100%
rename from emoticones/Oo.png
rename to src/emoticones/Oo.png
diff --git a/emoticones/Smile.png b/src/emoticones/Smile.png
similarity index 100%
rename from emoticones/Smile.png
rename to src/emoticones/Smile.png
diff --git a/emoticones/cool.png b/src/emoticones/cool.png
similarity index 100%
rename from emoticones/cool.png
rename to src/emoticones/cool.png
diff --git a/emoticones/grrr.png b/src/emoticones/grrr.png
similarity index 100%
rename from emoticones/grrr.png
rename to src/emoticones/grrr.png
diff --git a/emoticones/love.png b/src/emoticones/love.png
similarity index 100%
rename from emoticones/love.png
rename to src/emoticones/love.png
diff --git a/emoticones/msn.png b/src/emoticones/msn.png
similarity index 100%
rename from emoticones/msn.png
rename to src/emoticones/msn.png
diff --git a/emoticones/perdu.png b/src/emoticones/perdu.png
similarity index 100%
rename from emoticones/perdu.png
rename to src/emoticones/perdu.png
diff --git a/emoticones/wink.png b/src/emoticones/wink.png
similarity index 100%
rename from emoticones/wink.png
rename to src/emoticones/wink.png
diff --git a/emoticones/wow.png b/src/emoticones/wow.png
similarity index 100%
rename from emoticones/wow.png
rename to src/emoticones/wow.png
diff --git a/favicon.ico b/src/favicon.ico
similarity index 100%
rename from favicon.ico
rename to src/favicon.ico
diff --git a/fleet.php b/src/fleet.php
similarity index 99%
rename from fleet.php
rename to src/fleet.php
index 4f72f44..c4f2c98 100644
--- a/fleet.php
+++ b/src/fleet.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -68,7 +68,7 @@ $position = isset($_GET['planet']) ? intval($_GET['planet']) : 0;
$planetType = isset($_GET['planettype']) ? intval($_GET['planettype']) : 0;
$targetMission = isset($_GET['target_mission']) ? intval($_GET['target_mission']) : 0;
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
$planet = $user->getCurrentPlanet();
$MaxFlyingFleets = $user->getFleetCount();
diff --git a/fleetback.php b/src/fleetback.php
similarity index 100%
rename from fleetback.php
rename to src/fleetback.php
diff --git a/fleetshortcut.php b/src/fleetshortcut.php
similarity index 99%
rename from fleetshortcut.php
rename to src/fleetshortcut.php
index 44248f3..eea2b14 100644
--- a/fleetshortcut.php
+++ b/src/fleetshortcut.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -36,7 +36,7 @@ require_once dirname(__FILE__) .'/application/bootstrap.php';
$mode = isset($_GET['mode']) ? $_GET['mode'] : null;
$a = isset($_GET['a']) ? $_GET['a'] : null;
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
if ($mode) {
if ($_POST) {
diff --git a/floten1.php b/src/floten1.php
similarity index 97%
rename from floten1.php
rename to src/floten1.php
index 1f627ef..0e327ee 100644
--- a/floten1.php
+++ b/src/floten1.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -46,7 +46,7 @@ $speed = array(
1 => 10,
);
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
$planetrow = $user->getCurrentPlanet();
$g = isset($_POST['galaxy']) ? intval($_POST['galaxy']) : 0;
@@ -119,6 +119,7 @@ $session['speed'] = $speedArray;
$session['consumption'] = $consumptionArray;
$session['capacity'] = $capacityArray;
+var_dump($_SESSION);
if (empty($fleetArray)) {
message($lang['fl_unselectall'], $lang['fl_error'], "fleet." . PHPEXT, 1);
} else {
@@ -128,8 +129,8 @@ if (empty($fleetArray)) {
$speedFactor = GetGameSpeedFactor();
$session['speedallsmin'] = $speedallsmin;
-$scriptPath = Wootook::getUrl('scripts/flotten.js');
-$page .= "";
+$scriptPath = Wootook::getStaticUrl('scripts/flotten.js');
+$page = "";
$page .= "";
diff --git a/floten2.php b/src/floten2.php
similarity index 98%
rename from floten2.php
rename to src/floten2.php
index e092f3a..a0ce14d 100644
--- a/floten2.php
+++ b/src/floten2.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -49,7 +49,7 @@ $coords = array(
$destination = Wootook_Empire_Model_Planet::factoryFromCoords($coords, $planettype);
$session['planet_destination'] = $destination->getId();
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
$planetrow = $user->getCurrentPlanet();
$YourPlanet = false;
@@ -62,6 +62,12 @@ if ($destination->getId()) {
}
$fleetArray = $session['fleet'];
+if (empty($fleetArray)) {
+ Wootook::getResponse()
+ ->setRedirect(Wootook::getStaticUrl('fleet.php'))
+ ->sendHeaders();
+ exit(0);
+}
$missionTypes = array();
// Determinons les type de missions possibles par rapport a la planete cible
@@ -96,7 +102,6 @@ if ($position == (Wootook::getGameConfig('engine/universe/positions') + 1)) {
(isset($fleetArray[Legacies_Empire::ID_SHIP_HEAVY_FIGHTER]) && $fleetArray[Legacies_Empire::ID_SHIP_HEAVY_FIGHTER] > 0) ||
(isset($fleetArray[Legacies_Empire::ID_SHIP_CRUISER]) && $fleetArray[Legacies_Empire::ID_SHIP_CRUISER] > 0) ||
(isset($fleetArray[Legacies_Empire::ID_SHIP_BATTLESHIP]) && $fleetArray[Legacies_Empire::ID_SHIP_BATTLESHIP] > 0) ||
- (isset($fleetArray[Legacies_Empire::ID_SHIP_COLONY_SHIP]) && $fleetArray[Legacies_Empire::ID_SHIP_COLONY_SHIP] > 0) ||
(isset($fleetArray[Legacies_Empire::ID_SHIP_RECYCLER]) && $fleetArray[Legacies_Empire::ID_SHIP_RECYCLER] > 0) ||
(isset($fleetArray[Legacies_Empire::ID_SHIP_SPY_DRONE]) && $fleetArray[Legacies_Empire::ID_SHIP_SPY_DRONE] > 0 && Wootook::getGameConfig('engine/combat/allow_spy_drone_attacks')) ||
(isset($fleetArray[Legacies_Empire::ID_SHIP_BOMBER]) && $fleetArray[Legacies_Empire::ID_SHIP_BOMBER] > 0) ||
@@ -127,6 +132,7 @@ $mission = isset($_POST['target_mission']) ? $_POST['target_mission'] : 0;
$SpeedFactor = GetGameSpeedFactor();
$AllFleetSpeed = GetFleetMaxSpeed($fleetArray, 0, $user);
+var_dump($AllFleetSpeed, $fleetArray);
$MaxFleetSpeed = min($AllFleetSpeed);
$distance = GetTargetDistance($planetrow->getGalaxy(), $galaxy, $planetrow->getSystem(), $system, $planetrow->getPosition(), $planet);
diff --git a/floten3.php b/src/floten3.php
similarity index 98%
rename from floten3.php
rename to src/floten3.php
index d3173fc..66eeda2 100644
--- a/floten3.php
+++ b/src/floten3.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -36,7 +36,7 @@ includeLang('fleet');
$session = Wootook::getSession('fleet');
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
$planet = $user->getCurrentPlanet();
$galaxy = isset($_POST['galaxy']) ? intval($_POST['galaxy']) : 0;
@@ -55,19 +55,19 @@ $protectiontime = Wootook::getGameConfig('game/noob-protection/points-cap');
$protectionmulti = Wootook::getGameConfig('game/noob-protection/multiplier');
if ($protectiontime < 1) {
- $protectiontime = 9999999999999999;
+ $protectiontime = 0x7FFFFFFF;
}
$fleetArray = $session['fleet'];
if (!is_array($fleetArray)) {
- message ("". $lang['fl_fleet_err'] ."", $lang['fl_error'], "fleet." . PHPEXT, 2);
+ message ("". $lang['fl_fleet_err'] ."", $lang['fl_error'], "fleet.php", 2);
}
// On verifie s'il y a assez de vaisseaux sur la planete !
foreach ($fleetArray as $shipId => $count) {
if ($Count > $planet->getElement($shipId)) {
- message ("". $lang['fl_fleet_err'] ."", $lang['fl_error'], "fleet." . PHPEXT, 2);
+ message ("". $lang['fl_fleet_err'] ."", $lang['fl_error'], "fleet.php", 2);
}
}
@@ -77,14 +77,14 @@ $allowedPlanetTypes = array(
Wootook_Empire_Model_Planet::TYPE_MOON
);
if (!in_array($type, $allowedPlanetTypes)) {
- message ("". $lang['fl_fleet_err_pl'] ."", $lang['fl_error'], "fleet." . PHPEXT, 2);
+ message ("". $lang['fl_fleet_err_pl'] ."", $lang['fl_error'], "fleet.php", 2);
}
if ($planet->getGalaxy() == $galaxy &&
$planet->getSystem() == $system &&
$planet->getPosition() == $position &&
$planet->getType() == $type) {
- message ("". $lang['fl_ownpl_err'] ."", $lang['fl_error'], "fleet." . PHPEXT, 2);
+ message ("". $lang['fl_ownpl_err'] ."", $lang['fl_error'], "fleet.php", 2);
}
$YourPlanet = false;
diff --git a/flotenajax.php b/src/flotenajax.php
similarity index 99%
rename from flotenajax.php
rename to src/flotenajax.php
index d175221..a77654c 100644
--- a/flotenajax.php
+++ b/src/flotenajax.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/galaxy.php b/src/galaxy.php
similarity index 99%
rename from galaxy.php
rename to src/galaxy.php
index b93a201..b3f806b 100644
--- a/galaxy.php
+++ b/src/galaxy.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/imperium.php b/src/imperium.php
similarity index 99%
rename from imperium.php
rename to src/imperium.php
index f3de193..16d76a5 100644
--- a/imperium.php
+++ b/src/imperium.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/CombatEngine.php b/src/includes/CombatEngine.php
similarity index 99%
rename from includes/CombatEngine.php
rename to src/includes/CombatEngine.php
index c252393..39f4c92 100644
--- a/includes/CombatEngine.php
+++ b/src/includes/CombatEngine.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/aks.php b/src/includes/aks.php
similarity index 99%
rename from includes/aks.php
rename to src/includes/aks.php
index 24e1285..f6f99f6 100644
--- a/includes/aks.php
+++ b/src/includes/aks.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/ataki.php b/src/includes/ataki.php
similarity index 99%
rename from includes/ataki.php
rename to src/includes/ataki.php
index 461ea05..ab9e6a6 100644
--- a/includes/ataki.php
+++ b/src/includes/ataki.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/bb.class.php b/src/includes/bb.class.php
similarity index 100%
rename from includes/bb.class.php
rename to src/includes/bb.class.php
diff --git a/includes/constants.php b/src/includes/constants.php
similarity index 94%
rename from includes/constants.php
rename to src/includes/constants.php
index 6457ea3..867b2a5 100644
--- a/includes/constants.php
+++ b/src/includes/constants.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -32,8 +32,6 @@ defined('E_USER_DEPRECATED') || define('E_USER_DEPRECATED', E_USER_WARNING); //
define('ADMINEMAIL', "no-reply@wootook.org");
-defined('BCNUMBERS') || define('BCNUMBERS', Wootook::getGameConfig('engine/core/use_large_numbers'));
-
/**
* User level constants
* {{{
diff --git a/includes/databaseinfos.php b/src/includes/databaseinfos.php
similarity index 99%
rename from includes/databaseinfos.php
rename to src/includes/databaseinfos.php
index 4d8ff84..dcaf887 100644
--- a/includes/databaseinfos.php
+++ b/src/includes/databaseinfos.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/debug.class.php b/src/includes/debug.class.php
similarity index 99%
rename from includes/debug.class.php
rename to src/includes/debug.class.php
index 4b50f04..a090d06 100644
--- a/includes/debug.class.php
+++ b/src/includes/debug.class.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/deprecated.php b/src/includes/deprecated.php
similarity index 89%
rename from includes/deprecated.php
rename to src/includes/deprecated.php
index 3ab2185..c11b5ab 100644
--- a/includes/deprecated.php
+++ b/src/includes/deprecated.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -33,7 +33,7 @@
*
* @deprecated
* @param Wootook_Empire_Model_Planet|array $currentPlanet
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param int $buildingId
* @param bool $AddMode
*/
@@ -73,15 +73,15 @@ function BuildingSavePlanetRecord($currentPlanet)
* Deprecaed function used to save the user record
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
*/
function BuildingSaveUserRecord($currentUser)
{
defined('DEPRECATION') || Wootook_Core_ErrorProfiler::getSingleton()->addException(new Wootook_Core_Exception_Deprecated(sprintf('Function "%s" is deprecated', __FUNCTION__)));
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
$currentUser->save();
@@ -90,7 +90,7 @@ function BuildingSaveUserRecord($currentUser)
/**
* @deprecated
* @param Wootook_Empire_Model_Planet|array $currentPlanet
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
*/
function CheckPlanetBuildingQueue($currentPlanet, $currentUser)
{
@@ -101,9 +101,9 @@ function CheckPlanetBuildingQueue($currentPlanet, $currentUser)
$currentPlanet = Wootook_Empire_Model_Planet::factory($currentPlanet['id']);
}
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
$currentPlanet->updateBuildingQueue();
@@ -129,7 +129,7 @@ function CheckPlanetUsedFields($currentPlanet)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
* @param int $buildingId
* @param bool $incremental
@@ -144,9 +144,9 @@ function GetBuildingPrice($currentUser, $currentPlanet, $buildingId, $incrementa
$currentPlanet = Wootook_Empire_Model_Planet::factory($currentPlanet['id']);
}
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
$types = Wootook_Empire_Model_Game_Types::getSingleton();
@@ -184,7 +184,7 @@ function GetBuildingPrice($currentUser, $currentPlanet, $buildingId, $incrementa
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
* @param int $buildingId
*/
@@ -197,9 +197,9 @@ function GetBuildingTime($currentUser, $currentPlanet, $buildingId)
$currentPlanet = Wootook_Empire_Model_Planet::factory($currentPlanet['id']);
}
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
$types = Wootook_Empire_Model_Game_Types::getSingleton();
@@ -218,7 +218,7 @@ function GetBuildingTime($currentUser, $currentPlanet, $buildingId)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
* @param int $Element
* @param int|string $level
@@ -232,9 +232,9 @@ function GetBuildingTimeLevel($currentUser, $currentPlanet, $buildingId, $level)
$currentPlanet = Wootook_Empire_Model_Planet::factory($currentPlanet['id']);
}
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
$types = Wootook_Empire_Model_Game_Types::getSingleton();
@@ -253,7 +253,7 @@ function GetBuildingTimeLevel($currentUser, $currentPlanet, $buildingId, $level)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
* @param int $buildingId
* @param unknown_type $userfactor
@@ -267,9 +267,9 @@ function GetElementPrice($currentUser, $currentPlanet, $buildingId, $userfactor
$currentPlanet = Wootook_Empire_Model_Planet::factory($currentPlanet['id']);
}
- if (!$currentUser instanceof Wootook_Empire_Model_User) {
- trigger_error('$currentUser should be an instance of Wootook_Empire_Model_User', E_USER_WARNING);
- $currentUser = Wootook_Empire_Model_User::factory($currentUser['id']);
+ if (!$currentUser instanceof Wootook_Player_Model_Entity) {
+ trigger_error('$currentUser should be an instance of Wootook_Player_Model_Entity', E_USER_WARNING);
+ $currentUser = Wootook_Player_Model_Entity::factory($currentUser['id']);
}
global $lang;
@@ -320,7 +320,7 @@ function GetElementRessources($elementId, $count)
{
defined('DEPRECATION') || Wootook_Core_ErrorProfiler::getSingleton()->addException(new Wootook_Core_Exception_Deprecated(sprintf('Function "%s" is deprecated', __FUNCTION__)));
- $currentUser = Wootook_Empire_Model_User::getSingleton();
+ $currentUser = Wootook_Player_Model_Session::getSingleton()->getPlayer();
$currentPlanet = $currentUser->getCurrentPlanet();
return $currentPlanet->getShipyard()->getResourcesNeeded($buildingId, $count);
@@ -329,7 +329,7 @@ function GetElementRessources($elementId, $count)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
* @param int $productionTime
*
@@ -347,15 +347,15 @@ function HandleElementBuildingQueue($currentUser, $currentPlanet, $productionTim
* @deprecated
* @param bool $isUserChecked
*
- * @see Wootook_Empire_Model_User::getSingleton()
+ * @see Wootook_Player_Model_Session::getSingleton()->getPlayer()
*/
function CheckCookies($isUserChecked)
{
defined('DEPRECATION') || Wootook_Core_ErrorProfiler::getSingleton()->addException(new Wootook_Core_Exception_Deprecated(sprintf('Function "%s" is deprecated', __FUNCTION__)));
- $user = Wootook_Empire_Model_User::getSingleton();
+ $user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
- if ($user instanceof Wootook_Empire_Model_User) {
+ if ($user instanceof Wootook_Player_Model_Entity) {
return array(
'state' => true,
'record' => $user
@@ -373,7 +373,7 @@ function CheckCookies($isUserChecked)
* @deprecated
* @param bool $isUserChecked
*
- * @see Wootook_Empire_Model_User::getSingleton()
+ * @see Wootook_Player_Model_Session::getSingleton()->getPlayer()
*/
function CheckTheUser($isUserChecked)
{
@@ -381,7 +381,7 @@ function CheckTheUser($isUserChecked)
$result = CheckCookies($isUserChecked);
- if ($result['record'] instanceof Wootook_Empire_Model_User && $result['record']['bana']) {
+ if ($result['record'] instanceof Wootook_Player_Model_Entity && $result['record']['bana']) {
die(parsetemplate(gettemplate('usr_banned'), $lang));
}
@@ -392,7 +392,7 @@ function CheckTheUser($isUserChecked)
*
* @deprecated
* @param Wootook_Empire_Model_Planet|array $currentPlanet
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
*
* @see Wootook_Empire_Model_Planet::updateBuildingQueue()
*/
@@ -431,7 +431,7 @@ function CalculateMaxPlanetFields($currentPlanet)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
*/
function AbandonColony($currentUser, $currentPlanet)
@@ -472,7 +472,7 @@ function CheckFleets($currentPlanet)
/**
*
* @deprecated
- * @param Wootook_Empire_Model_User|array $currentUser
+ * @param Wootook_Player_Model_Entity|array $currentUser
* @param Wootook_Empire_Model_Planet|array $currentPlanet
*/
function CancelBuildingFromQueue($currentPlanet, $currentUser)
@@ -536,6 +536,9 @@ function display($page, $title = '', $topnav = true, $metatags = '', $adminPage
}
$content = $layout->getBlock('content');
+ if (!$content instanceof Wootook_Core_View) {
+ exit(0);
+ }
$pageContent = $layout->createBlock('core/text', 'content');
$pageContent->setContent($page);
$content->page = $pageContent;
@@ -556,7 +559,7 @@ function parsetemplate($template, $array)
static $baseUrl = null;
if ($baseUrl === null) {
- $user = Wootook_Empire_Model_User::getSingleton();
+ $user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
if ($user !== null && $user->getId() && ($baseUrl = $user->getSkinPath()) == '') {
$baseUrl = DEFAULT_SKINPATH;
}
@@ -624,9 +627,9 @@ function doquery($query, $table, $fetch = false)
defined('DEPRECATION') || Wootook_Core_ErrorProfiler::getSingleton()->addException(new Wootook_Core_Exception_Deprecated(sprintf('Function "%s" is deprecated', __FUNCTION__)));
/**
- * @var Wootook_Database $database
+ * @var Wootook_Core_Database $database
*/
- $database = Wootook_Database::getSingleton();
+ $database = Wootook_Core_Database::getSingleton();
$sql = str_replace("{{table}}", $database->getTable($table), $query);
@@ -657,13 +660,13 @@ function ResetThisFuckingCheater($userId)
{
defined('DEPRECATION') || Wootook_Core_ErrorProfiler::getSingleton()->addException(new Wootook_Core_Exception_Deprecated(sprintf('Function "%s" is deprecated', __FUNCTION__)));
- $user = Wootook_Empire_Model_User::factory($userId);
+ $user = Wootook_Player_Model_Entity::factory($userId);
$username = $user->getData('username');
$email = $user->getData('email');
$password = $user->getData('password');
$user->delete();
- $user = Wootook_Empire_Model_User::register($TheUser['username'], $TheUser['email'], 'password');
+ $user = Wootook_Player_Model_Entity::register($TheUser['username'], $TheUser['email'], 'password');
$user->setData('password', $password);
$user->save();
return;
diff --git a/includes/functions.php b/src/includes/functions.php
similarity index 99%
rename from includes/functions.php
rename to src/includes/functions.php
index 1d8982e..2867297 100644
--- a/includes/functions.php
+++ b/src/includes/functions.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/BBcodeFunction.php b/src/includes/functions/BBcodeFunction.php
similarity index 99%
rename from includes/functions/BBcodeFunction.php
rename to src/includes/functions/BBcodeFunction.php
index d945b59..fa193b4 100644
--- a/includes/functions/BBcodeFunction.php
+++ b/src/includes/functions/BBcodeFunction.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/BuildFleetEventTable.php b/src/includes/functions/BuildFleetEventTable.php
similarity index 99%
rename from includes/functions/BuildFleetEventTable.php
rename to src/includes/functions/BuildFleetEventTable.php
index 20c20e7..f82fbfc 100644
--- a/includes/functions/BuildFleetEventTable.php
+++ b/src/includes/functions/BuildFleetEventTable.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/BuildFlyingFleetTable.php b/src/includes/functions/BuildFlyingFleetTable.php
similarity index 99%
rename from includes/functions/BuildFlyingFleetTable.php
rename to src/includes/functions/BuildFlyingFleetTable.php
index 077cf32..3caa837 100644
--- a/includes/functions/BuildFlyingFleetTable.php
+++ b/src/includes/functions/BuildFlyingFleetTable.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/CheckInputStrings.php b/src/includes/functions/CheckInputStrings.php
similarity index 97%
rename from includes/functions/CheckInputStrings.php
rename to src/includes/functions/CheckInputStrings.php
index a8041c6..575554c 100644
--- a/includes/functions/CheckInputStrings.php
+++ b/src/includes/functions/CheckInputStrings.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/DeleteSelectedUser.php b/src/includes/functions/DeleteSelectedUser.php
similarity index 99%
rename from includes/functions/DeleteSelectedUser.php
rename to src/includes/functions/DeleteSelectedUser.php
index 64daccc..447db95 100644
--- a/includes/functions/DeleteSelectedUser.php
+++ b/src/includes/functions/DeleteSelectedUser.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ElementBuildListBox.php b/src/includes/functions/ElementBuildListBox.php
similarity index 98%
rename from includes/functions/ElementBuildListBox.php
rename to src/includes/functions/ElementBuildListBox.php
index 3646e19..94c71d5 100644
--- a/includes/functions/ElementBuildListBox.php
+++ b/src/includes/functions/ElementBuildListBox.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/FlyingFleetHandler.php b/src/includes/functions/FlyingFleetHandler.php
similarity index 99%
rename from includes/functions/FlyingFleetHandler.php
rename to src/includes/functions/FlyingFleetHandler.php
index 8ed967c..66550d5 100644
--- a/includes/functions/FlyingFleetHandler.php
+++ b/src/includes/functions/FlyingFleetHandler.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyCheckFunctions.php b/src/includes/functions/GalaxyCheckFunctions.php
similarity index 98%
rename from includes/functions/GalaxyCheckFunctions.php
rename to src/includes/functions/GalaxyCheckFunctions.php
index 59e98b4..c71d0cc 100644
--- a/includes/functions/GalaxyCheckFunctions.php
+++ b/src/includes/functions/GalaxyCheckFunctions.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyLegendPopup.php b/src/includes/functions/GalaxyLegendPopup.php
similarity index 98%
rename from includes/functions/GalaxyLegendPopup.php
rename to src/includes/functions/GalaxyLegendPopup.php
index c0945b4..e39ed18 100644
--- a/includes/functions/GalaxyLegendPopup.php
+++ b/src/includes/functions/GalaxyLegendPopup.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowActions.php b/src/includes/functions/GalaxyRowActions.php
similarity index 99%
rename from includes/functions/GalaxyRowActions.php
rename to src/includes/functions/GalaxyRowActions.php
index 11f74c2..76c23dc 100644
--- a/includes/functions/GalaxyRowActions.php
+++ b/src/includes/functions/GalaxyRowActions.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowAlly.php b/src/includes/functions/GalaxyRowAlly.php
similarity index 99%
rename from includes/functions/GalaxyRowAlly.php
rename to src/includes/functions/GalaxyRowAlly.php
index 86cfa7b..4c414d6 100644
--- a/includes/functions/GalaxyRowAlly.php
+++ b/src/includes/functions/GalaxyRowAlly.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowDebris.php b/src/includes/functions/GalaxyRowDebris.php
similarity index 99%
rename from includes/functions/GalaxyRowDebris.php
rename to src/includes/functions/GalaxyRowDebris.php
index 8eaaf39..4ac2fb6 100644
--- a/includes/functions/GalaxyRowDebris.php
+++ b/src/includes/functions/GalaxyRowDebris.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowMoon.php b/src/includes/functions/GalaxyRowMoon.php
similarity index 99%
rename from includes/functions/GalaxyRowMoon.php
rename to src/includes/functions/GalaxyRowMoon.php
index 333cb49..f486e5f 100644
--- a/includes/functions/GalaxyRowMoon.php
+++ b/src/includes/functions/GalaxyRowMoon.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowPlanet.php b/src/includes/functions/GalaxyRowPlanet.php
similarity index 99%
rename from includes/functions/GalaxyRowPlanet.php
rename to src/includes/functions/GalaxyRowPlanet.php
index 9fec958..b4fcb1a 100644
--- a/includes/functions/GalaxyRowPlanet.php
+++ b/src/includes/functions/GalaxyRowPlanet.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowPlanetName.php b/src/includes/functions/GalaxyRowPlanetName.php
similarity index 99%
rename from includes/functions/GalaxyRowPlanetName.php
rename to src/includes/functions/GalaxyRowPlanetName.php
index b235dba..ced1d9b 100644
--- a/includes/functions/GalaxyRowPlanetName.php
+++ b/src/includes/functions/GalaxyRowPlanetName.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowPos.php b/src/includes/functions/GalaxyRowPos.php
similarity index 97%
rename from includes/functions/GalaxyRowPos.php
rename to src/includes/functions/GalaxyRowPos.php
index 36202dd..ba0834e 100644
--- a/includes/functions/GalaxyRowPos.php
+++ b/src/includes/functions/GalaxyRowPos.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GalaxyRowUser.php b/src/includes/functions/GalaxyRowUser.php
similarity index 99%
rename from includes/functions/GalaxyRowUser.php
rename to src/includes/functions/GalaxyRowUser.php
index 4c1a8b1..11ca438 100644
--- a/includes/functions/GalaxyRowUser.php
+++ b/src/includes/functions/GalaxyRowUser.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GetMaxConstructibleElements.php b/src/includes/functions/GetMaxConstructibleElements.php
similarity index 98%
rename from includes/functions/GetMaxConstructibleElements.php
rename to src/includes/functions/GetMaxConstructibleElements.php
index ffa2056..ea69783 100644
--- a/includes/functions/GetMaxConstructibleElements.php
+++ b/src/includes/functions/GetMaxConstructibleElements.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GetMissileRange.php b/src/includes/functions/GetMissileRange.php
similarity index 97%
rename from includes/functions/GetMissileRange.php
rename to src/includes/functions/GetMissileRange.php
index c1b07d5..7d6526f 100644
--- a/includes/functions/GetMissileRange.php
+++ b/src/includes/functions/GetMissileRange.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GetPhalanxRange.php b/src/includes/functions/GetPhalanxRange.php
similarity index 98%
rename from includes/functions/GetPhalanxRange.php
rename to src/includes/functions/GetPhalanxRange.php
index d868c83..32d47b0 100644
--- a/includes/functions/GetPhalanxRange.php
+++ b/src/includes/functions/GetPhalanxRange.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/GetRestPrice.php b/src/includes/functions/GetRestPrice.php
similarity index 98%
rename from includes/functions/GetRestPrice.php
rename to src/includes/functions/GetRestPrice.php
index 012a1d5..7678f7a 100644
--- a/includes/functions/GetRestPrice.php
+++ b/src/includes/functions/GetRestPrice.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/InsertGalaxyScripts.php b/src/includes/functions/InsertGalaxyScripts.php
similarity index 99%
rename from includes/functions/InsertGalaxyScripts.php
rename to src/includes/functions/InsertGalaxyScripts.php
index 20bc497..20843ef 100644
--- a/includes/functions/InsertGalaxyScripts.php
+++ b/src/includes/functions/InsertGalaxyScripts.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/InsertJavaScriptChronoApplet.php b/src/includes/functions/InsertJavaScriptChronoApplet.php
similarity index 99%
rename from includes/functions/InsertJavaScriptChronoApplet.php
rename to src/includes/functions/InsertJavaScriptChronoApplet.php
index 0a85425..1964278 100644
--- a/includes/functions/InsertJavaScriptChronoApplet.php
+++ b/src/includes/functions/InsertJavaScriptChronoApplet.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/IsOfficierAccessible.php b/src/includes/functions/IsOfficierAccessible.php
similarity index 98%
rename from includes/functions/IsOfficierAccessible.php
rename to src/includes/functions/IsOfficierAccessible.php
index 50a4322..cd407f8 100644
--- a/includes/functions/IsOfficierAccessible.php
+++ b/src/includes/functions/IsOfficierAccessible.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/IsTechnologieAccessible.php b/src/includes/functions/IsTechnologieAccessible.php
similarity index 98%
rename from includes/functions/IsTechnologieAccessible.php
rename to src/includes/functions/IsTechnologieAccessible.php
index f12dc66..7ffe4c0 100644
--- a/includes/functions/IsTechnologieAccessible.php
+++ b/src/includes/functions/IsTechnologieAccessible.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MessageForm.php b/src/includes/functions/MessageForm.php
similarity index 98%
rename from includes/functions/MessageForm.php
rename to src/includes/functions/MessageForm.php
index df0d582..5006d38 100644
--- a/includes/functions/MessageForm.php
+++ b/src/includes/functions/MessageForm.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MipCombatEngine.php b/src/includes/functions/MipCombatEngine.php
similarity index 99%
rename from includes/functions/MipCombatEngine.php
rename to src/includes/functions/MipCombatEngine.php
index eef66d0..5161d20 100644
--- a/includes/functions/MipCombatEngine.php
+++ b/src/includes/functions/MipCombatEngine.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseAttack.php b/src/includes/functions/MissionCaseAttack.php
similarity index 99%
rename from includes/functions/MissionCaseAttack.php
rename to src/includes/functions/MissionCaseAttack.php
index 9d679ee..6428065 100644
--- a/includes/functions/MissionCaseAttack.php
+++ b/src/includes/functions/MissionCaseAttack.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -60,7 +60,7 @@ function MissionCaseAttack($FleetRow)
$targetPlanet->save();
$TargetUser = $targetPlanet->getUser();
- $CurrentUser = Wootook_Empire_Model_User::factory($FleetRow['fleet_owner']);
+ $CurrentUser = Wootook_Player_Model_Entity::factory($FleetRow['fleet_owner']);
$TargetUserID = $TargetUser->getId();
$CurrentUserID = $CurrentUser->getId();
@@ -214,7 +214,7 @@ function MissionCaseAttack($FleetRow)
}
if (($UserChance > 0) and ($UserChance <= $MoonChance) and $galenemyrow['id_luna'] == 0) {
- $user = Wootook_Empire_Model_User::factory($TargetUserID);
+ $user = Wootook_Player_Model_Entity::factory($TargetUserID);
$user->createNewPlanet(
intval($FleetRow['fleet_end_galaxy']),
intval($FleetRow['fleet_end_system']),
diff --git a/includes/functions/MissionCaseColonisation.php b/src/includes/functions/MissionCaseColonisation.php
similarity index 97%
rename from includes/functions/MissionCaseColonisation.php
rename to src/includes/functions/MissionCaseColonisation.php
index 0ef6a78..a21ba1b 100644
--- a/includes/functions/MissionCaseColonisation.php
+++ b/src/includes/functions/MissionCaseColonisation.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -50,7 +50,7 @@ function MissionCaseColonisation ( $FleetRow ) {
SendSimpleMessage ( $FleetRow['fleet_owner'], '', $FleetRow['fleet_start_time'], 0, $lang['sys_colo_mess_from'], $lang['sys_colo_mess_report'], $TheMessage);
doquery("UPDATE {{table}} SET `fleet_mess` = '1' WHERE `fleet_id` = ". $FleetRow["fleet_id"], 'fleets');
} else {
- $user = Wootook_Empire_Model_User::factory($FleetRow['fleet_owner']);
+ $user = Wootook_Player_Model_Entity::factory($FleetRow['fleet_owner']);
$user->createNewPlanet(
intval($FleetRow['fleet_end_galaxy']),
intval($FleetRow['fleet_end_system']),
diff --git a/includes/functions/MissionCaseDestruction.php b/src/includes/functions/MissionCaseDestruction.php
similarity index 99%
rename from includes/functions/MissionCaseDestruction.php
rename to src/includes/functions/MissionCaseDestruction.php
index 729ee6c..1b0b9ae 100644
--- a/includes/functions/MissionCaseDestruction.php
+++ b/src/includes/functions/MissionCaseDestruction.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -295,7 +295,7 @@ function MissionCaseDestruction($FleetRow)
}
if (($UserChance > 0) and ($UserChance <= $MoonChance) and $galenemyrow['id_luna'] == 0) {
- $user = Wootook_Empire_Model_User::factory($TargetUserID);
+ $user = Wootook_Player_Model_Entity::factory($TargetUserID);
$user->createNewPlanet(
intval($FleetRow['fleet_end_galaxy']),
intval($FleetRow['fleet_end_system']),
diff --git a/includes/functions/MissionCaseExpedition.php b/src/includes/functions/MissionCaseExpedition.php
similarity index 99%
rename from includes/functions/MissionCaseExpedition.php
rename to src/includes/functions/MissionCaseExpedition.php
index e4271c5..ddbaa8c 100644
--- a/includes/functions/MissionCaseExpedition.php
+++ b/src/includes/functions/MissionCaseExpedition.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseRecycling.php b/src/includes/functions/MissionCaseRecycling.php
similarity index 99%
rename from includes/functions/MissionCaseRecycling.php
rename to src/includes/functions/MissionCaseRecycling.php
index fddd459..f70acc4 100644
--- a/includes/functions/MissionCaseRecycling.php
+++ b/src/includes/functions/MissionCaseRecycling.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseSpy.php b/src/includes/functions/MissionCaseSpy.php
similarity index 99%
rename from includes/functions/MissionCaseSpy.php
rename to src/includes/functions/MissionCaseSpy.php
index a37d579..6fb5116 100644
--- a/includes/functions/MissionCaseSpy.php
+++ b/src/includes/functions/MissionCaseSpy.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseStay.php b/src/includes/functions/MissionCaseStay.php
similarity index 99%
rename from includes/functions/MissionCaseStay.php
rename to src/includes/functions/MissionCaseStay.php
index d04857e..18750e3 100644
--- a/includes/functions/MissionCaseStay.php
+++ b/src/includes/functions/MissionCaseStay.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseStayAlly.php b/src/includes/functions/MissionCaseStayAlly.php
similarity index 99%
rename from includes/functions/MissionCaseStayAlly.php
rename to src/includes/functions/MissionCaseStayAlly.php
index bf03cbf..b2c862e 100644
--- a/includes/functions/MissionCaseStayAlly.php
+++ b/src/includes/functions/MissionCaseStayAlly.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/MissionCaseTransport.php b/src/includes/functions/MissionCaseTransport.php
similarity index 99%
rename from includes/functions/MissionCaseTransport.php
rename to src/includes/functions/MissionCaseTransport.php
index 069f7eb..5213b29 100644
--- a/includes/functions/MissionCaseTransport.php
+++ b/src/includes/functions/MissionCaseTransport.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/PlanetResourceUpdate.php b/src/includes/functions/PlanetResourceUpdate.php
similarity index 98%
rename from includes/functions/PlanetResourceUpdate.php
rename to src/includes/functions/PlanetResourceUpdate.php
index c31874b..1388d6e 100644
--- a/includes/functions/PlanetResourceUpdate.php
+++ b/src/includes/functions/PlanetResourceUpdate.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/RestoreFleetToPlanet.php b/src/includes/functions/RestoreFleetToPlanet.php
similarity index 98%
rename from includes/functions/RestoreFleetToPlanet.php
rename to src/includes/functions/RestoreFleetToPlanet.php
index 722323f..b50d0a6 100644
--- a/includes/functions/RestoreFleetToPlanet.php
+++ b/src/includes/functions/RestoreFleetToPlanet.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/RevisionTime.php b/src/includes/functions/RevisionTime.php
similarity index 98%
rename from includes/functions/RevisionTime.php
rename to src/includes/functions/RevisionTime.php
index a175310..62634de 100644
--- a/includes/functions/RevisionTime.php
+++ b/src/includes/functions/RevisionTime.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/SendNewPassword.php b/src/includes/functions/SendNewPassword.php
similarity index 98%
rename from includes/functions/SendNewPassword.php
rename to src/includes/functions/SendNewPassword.php
index 89a1e6a..d039d0a 100644
--- a/includes/functions/SendNewPassword.php
+++ b/src/includes/functions/SendNewPassword.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/SendSimpleMessage.php b/src/includes/functions/SendSimpleMessage.php
similarity index 98%
rename from includes/functions/SendSimpleMessage.php
rename to src/includes/functions/SendSimpleMessage.php
index 13ce29e..6849694 100644
--- a/includes/functions/SendSimpleMessage.php
+++ b/src/includes/functions/SendSimpleMessage.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ShowGalaxyFooter.php b/src/includes/functions/ShowGalaxyFooter.php
similarity index 99%
rename from includes/functions/ShowGalaxyFooter.php
rename to src/includes/functions/ShowGalaxyFooter.php
index 462d5a4..abf11c7 100644
--- a/includes/functions/ShowGalaxyFooter.php
+++ b/src/includes/functions/ShowGalaxyFooter.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ShowGalaxyMISelector.php b/src/includes/functions/ShowGalaxyMISelector.php
similarity index 98%
rename from includes/functions/ShowGalaxyMISelector.php
rename to src/includes/functions/ShowGalaxyMISelector.php
index 775cc83..e204c47 100644
--- a/includes/functions/ShowGalaxyMISelector.php
+++ b/src/includes/functions/ShowGalaxyMISelector.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ShowGalaxyRows.php b/src/includes/functions/ShowGalaxyRows.php
similarity index 99%
rename from includes/functions/ShowGalaxyRows.php
rename to src/includes/functions/ShowGalaxyRows.php
index 41ec7b1..d7fda7b 100644
--- a/includes/functions/ShowGalaxyRows.php
+++ b/src/includes/functions/ShowGalaxyRows.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ShowGalaxySelector.php b/src/includes/functions/ShowGalaxySelector.php
similarity index 99%
rename from includes/functions/ShowGalaxySelector.php
rename to src/includes/functions/ShowGalaxySelector.php
index fc1cc62..5974bd8 100644
--- a/includes/functions/ShowGalaxySelector.php
+++ b/src/includes/functions/ShowGalaxySelector.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/ShowGalaxyTitles.php b/src/includes/functions/ShowGalaxyTitles.php
similarity index 98%
rename from includes/functions/ShowGalaxyTitles.php
rename to src/includes/functions/ShowGalaxyTitles.php
index 5442d3c..af3f8c9 100644
--- a/includes/functions/ShowGalaxyTitles.php
+++ b/src/includes/functions/ShowGalaxyTitles.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/SortUserPlanets.php b/src/includes/functions/SortUserPlanets.php
similarity index 98%
rename from includes/functions/SortUserPlanets.php
rename to src/includes/functions/SortUserPlanets.php
index 0cbb12d..dc8ca49 100644
--- a/includes/functions/SortUserPlanets.php
+++ b/src/includes/functions/SortUserPlanets.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/SpyTarget.php b/src/includes/functions/SpyTarget.php
similarity index 99%
rename from includes/functions/SpyTarget.php
rename to src/includes/functions/SpyTarget.php
index c6a9b30..52556b4 100644
--- a/includes/functions/SpyTarget.php
+++ b/src/includes/functions/SpyTarget.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/StoreGoodsToPlanet.php b/src/includes/functions/StoreGoodsToPlanet.php
similarity index 98%
rename from includes/functions/StoreGoodsToPlanet.php
rename to src/includes/functions/StoreGoodsToPlanet.php
index f28f159..ba1a0ca 100644
--- a/includes/functions/StoreGoodsToPlanet.php
+++ b/src/includes/functions/StoreGoodsToPlanet.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/functions/UpdatePlanetBatimentQueueList.php b/src/includes/functions/UpdatePlanetBatimentQueueList.php
similarity index 98%
rename from includes/functions/UpdatePlanetBatimentQueueList.php
rename to src/includes/functions/UpdatePlanetBatimentQueueList.php
index 68b38ca..5f7c78b 100644
--- a/includes/functions/UpdatePlanetBatimentQueueList.php
+++ b/src/includes/functions/UpdatePlanetBatimentQueueList.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/migrateinfo.php b/src/includes/migrateinfo.php
similarity index 99%
rename from includes/migrateinfo.php
rename to src/includes/migrateinfo.php
index b4bc680..0b45f63 100644
--- a/includes/migrateinfo.php
+++ b/src/includes/migrateinfo.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/raketenangriff.php b/src/includes/raketenangriff.php
similarity index 99%
rename from includes/raketenangriff.php
rename to src/includes/raketenangriff.php
index f74e00c..4402061 100644
--- a/includes/raketenangriff.php
+++ b/src/includes/raketenangriff.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/strings.php b/src/includes/strings.php
similarity index 98%
rename from includes/strings.php
rename to src/includes/strings.php
index 2bec82f..cbaca2c 100644
--- a/includes/strings.php
+++ b/src/includes/strings.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/todofleetcontrol.php b/src/includes/todofleetcontrol.php
similarity index 99%
rename from includes/todofleetcontrol.php
rename to src/includes/todofleetcontrol.php
index 8603dd7..75a92d7 100644
--- a/includes/todofleetcontrol.php
+++ b/src/includes/todofleetcontrol.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/unlocalised.php b/src/includes/unlocalised.php
similarity index 99%
rename from includes/unlocalised.php
rename to src/includes/unlocalised.php
index 7e3ac6c..df0d20e 100644
--- a/includes/unlocalised.php
+++ b/src/includes/unlocalised.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/includes/vars.php b/src/includes/vars.php
similarity index 98%
rename from includes/vars.php
rename to src/includes/vars.php
index 5ea5aaf..9b9fb7f 100644
--- a/includes/vars.php
+++ b/src/includes/vars.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-2010, Wootook Support Team
* All rights reserved.
diff --git a/index.php b/src/index.php
similarity index 80%
rename from index.php
rename to src/index.php
index 607b768..2b06af4 100644
--- a/index.php
+++ b/src/index.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -28,4 +28,11 @@
*
*/
-header('Location: overview.php');
+define('DISABLE_IDENTITY_CHECK', true);
+require_once dirname(__FILE__) .'/application/bootstrap.php';
+
+$frontController = new Wootook_Core_Controller_Front(Wootook::getRequest(), Wootook::getResponse());
+
+$frontController
+ ->dispatch()
+ ->send();
diff --git a/infos.php b/src/infos.php
similarity index 99%
rename from infos.php
rename to src/infos.php
index 583ec10..13d9ae0 100644
--- a/infos.php
+++ b/src/infos.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/install/gameplays.php b/src/install/gameplays.php
similarity index 100%
rename from install/gameplays.php
rename to src/install/gameplays.php
diff --git a/install/index.php b/src/install/index.php
similarity index 86%
rename from install/index.php
rename to src/install/index.php
index 5a38a40..648f362 100644
--- a/install/index.php
+++ b/src/install/index.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -130,8 +130,9 @@ $configRewrites = array(
),
'system' => array(
'path' => array(
- 'base' => ROOT_PATH,
- 'skin' => ROOT_PATH . 'skin' . DIRECTORY_SEPARATOR,
+ 'base' => ROOT_PATH,
+ 'design' => ROOT_PATH . 'design' . DIRECTORY_SEPARATOR,
+ 'skin' => ROOT_PATH . 'skin' . DIRECTORY_SEPARATOR,
)
),
'package' => 'default',
@@ -140,9 +141,30 @@ $configRewrites = array(
'page' => 'page.xml',
'install' => 'install.php'
),
- 'storyline' => array(
- 'universe' => 'legacies',
- 'episode' => 'default',
+ 'engine' => array(
+ 'storyline' => array(
+ 'universe' => 'legacies',
+ 'episode' => 'default',
+ )
+ ),
+ 'resources' => array(
+ 'initial' => array(
+ 'metal' => 500,
+ 'cristal' => 500,
+ 'deuterium' => 0,
+ 'energy' => 0,
+ ),
+ 'base-income' => array(
+ 'metal' => 20,
+ 'cristal' => 10,
+ 'deuterium' => 0,
+ 'energy' => 0,
+ ),
+ ),
+ 'planet' => array(
+ 'initial' => array(
+ 'fields' => 163
+ )
)
)
);
@@ -187,7 +209,7 @@ case 'install':
if (!$form->validate()) {
$session->setData('step', STEP_SYSTEM);
$session->setFormData($form->getData());
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_SYSTEM)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_SYSTEM)));
$response->sendHeaders();
exit(0);
}
@@ -244,7 +266,7 @@ case 'install':
$session->setData('config', serialize($config));
$session->setData('step', STEP_DATABASE);
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_DATABASE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_DATABASE)));
$response->sendHeaders();
exit(0);
}
@@ -281,7 +303,7 @@ case 'install':
if (!$form->validate()) {
$session->setData('step', STEP_DATABASE);
$session->setFormData($request->getData());
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_DATABASE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_DATABASE)));
$response->sendHeaders();
exit(0);
}
@@ -299,7 +321,7 @@ case 'install':
$database = $request->getPost('dbname');
$port = $request->getPost('port');
- $connection = new Wootook_Database("mysql:dbname={$database};host={$hostname};port={$port}", $username, $password);
+ $connection = new Wootook_Core_Database("mysql:dbname={$database};host={$hostname};port={$port}", $username, $password);
$data['status'] = 'success';
} catch (PDOException $e) {
$data['status'] = 'error';
@@ -343,7 +365,7 @@ case 'install':
$session->setData('config', serialize($config));
$session->setData('step', STEP_UNIVERSE);
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_UNIVERSE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_UNIVERSE)));
$response->sendHeaders();
exit(0);
}
@@ -368,7 +390,7 @@ case 'install':
if (!$form->validate()) {
$session->setData('step', STEP_UNIVERSE);
$session->setFormData($request->getData());
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
}
@@ -434,7 +456,7 @@ case 'install':
$session->addError($e->getMessage());
Wootook_Core_ErrorProfiler::getSingleton()->exceptionManager($e);
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_UNIVERSE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_UNIVERSE)));
$response->sendHeaders();
exit(0);
break;
@@ -446,7 +468,7 @@ case 'install':
$session->addSuccess(Wootook::__('Game data successfully initialized.'));
$session->setData('step', STEP_PROFILE);
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
}
@@ -471,7 +493,7 @@ case 'install':
$session->setData('step', STEP_PROFILE);
$session->setFormData($request->getData());
$session->addError(Wootook::__('Form data error.'));
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
}
@@ -480,7 +502,7 @@ case 'install':
$session->setData('step', STEP_PROFILE);
$session->setFormData($request->getData());
$session->addError(Wootook::__('Passwords does not match.'));
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
}
@@ -489,13 +511,13 @@ case 'install':
$session->setData('step', STEP_PROFILE);
$session->setFormData($request->getData());
$session->addError(Wootook::__('Both e-mails does not match.'));
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
}
try {
- $user = Wootook_Empire_Model_User::register($request->getPost('username'), $request->getPost('email'), $request->getPost('password'));
+ $user = Wootook_Player_Model_Entity::register($request->getPost('username'), $request->getPost('email'), $request->getPost('password'));
} catch (Wootook_Empire_Exception_RuntimeException $e) {
}
$layout->getMessagesBlock()->prepareMessages('user');
@@ -503,11 +525,11 @@ case 'install':
$session->setData('step', STEP_PROFILE);
$session->setFormData($request->getData());
$session->addError(Wootook::__('Could not create user.'));
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_PROFILE)));
$response->sendHeaders();
exit(0);
} else {
- Wootook_Empire_Model_User::setLoggedIn($user);
+ Wootook_Player_Model_Entity::setLoggedIn($user);
$user->setData('authlevel', LEVEL_ADMIN)->save();
@@ -515,8 +537,8 @@ case 'install':
}
$session->setData('step', STEP_CONFIG);
- //$response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'install', 'step' => STEP_CONFIG)));
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'summary')));
+ //$response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'install', 'step' => STEP_CONFIG)));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'summary')));
$response->sendHeaders();
exit(0);
}
@@ -527,7 +549,7 @@ case 'install':
case STEP_CONFIG:
//*
- $response->setRedirect(Wootook::getUrl('install/index.php', array('mode' => 'summary')));
+ $response->setRedirect(Wootook::getStaticUrl('install/index.php', array('mode' => 'summary')));
$response->sendHeaders();
exit(0);
/*/
diff --git a/install/migration.mysql b/src/install/migration.mysql
similarity index 100%
rename from install/migration.mysql
rename to src/install/migration.mysql
diff --git a/jumpgate.php b/src/jumpgate.php
similarity index 99%
rename from jumpgate.php
rename to src/jumpgate.php
index 25455b5..af0d312 100644
--- a/jumpgate.php
+++ b/src/jumpgate.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/src/klore/arme-ultime.png b/src/klore/arme-ultime.png
new file mode 100644
index 0000000..f7b3044
Binary files /dev/null and b/src/klore/arme-ultime.png differ
diff --git a/src/klore/artillerir-renforcee.png b/src/klore/artillerir-renforcee.png
new file mode 100644
index 0000000..98d1350
Binary files /dev/null and b/src/klore/artillerir-renforcee.png differ
diff --git a/src/klore/blindage-renfoece.png b/src/klore/blindage-renfoece.png
new file mode 100644
index 0000000..d302dba
Binary files /dev/null and b/src/klore/blindage-renfoece.png differ
diff --git a/src/klore/bouclier-planetaire.png b/src/klore/bouclier-planetaire.png
new file mode 100644
index 0000000..2a0f43f
Binary files /dev/null and b/src/klore/bouclier-planetaire.png differ
diff --git a/src/klore/canon-a-impulsion.png b/src/klore/canon-a-impulsion.png
new file mode 100644
index 0000000..1502062
Binary files /dev/null and b/src/klore/canon-a-impulsion.png differ
diff --git a/src/klore/centrale-electrique.png b/src/klore/centrale-electrique.png
new file mode 100644
index 0000000..9236873
Binary files /dev/null and b/src/klore/centrale-electrique.png differ
diff --git a/src/klore/chantier-spatial.png b/src/klore/chantier-spatial.png
new file mode 100644
index 0000000..e315754
Binary files /dev/null and b/src/klore/chantier-spatial.png differ
diff --git a/src/klore/chasseur-leger.png b/src/klore/chasseur-leger.png
new file mode 100644
index 0000000..22f0fb7
Binary files /dev/null and b/src/klore/chasseur-leger.png differ
diff --git a/src/klore/chasseur-lourd.png b/src/klore/chasseur-lourd.png
new file mode 100644
index 0000000..917b659
Binary files /dev/null and b/src/klore/chasseur-lourd.png differ
diff --git a/src/klore/dematerialisateur.png b/src/klore/dematerialisateur.png
new file mode 100644
index 0000000..4b5f2ba
Binary files /dev/null and b/src/klore/dematerialisateur.png differ
diff --git a/src/klore/forage.png b/src/klore/forage.png
new file mode 100644
index 0000000..b5a6a47
Binary files /dev/null and b/src/klore/forage.png differ
diff --git a/src/klore/fregate.png b/src/klore/fregate.png
new file mode 100644
index 0000000..e1b0dcb
Binary files /dev/null and b/src/klore/fregate.png differ
diff --git a/src/klore/genie-spatial.png b/src/klore/genie-spatial.png
new file mode 100644
index 0000000..0d1964f
Binary files /dev/null and b/src/klore/genie-spatial.png differ
diff --git a/src/klore/grand-transporteur.png b/src/klore/grand-transporteur.png
new file mode 100644
index 0000000..9d05cf3
Binary files /dev/null and b/src/klore/grand-transporteur.png differ
diff --git a/src/klore/hangar.png b/src/klore/hangar.png
new file mode 100644
index 0000000..f874b13
Binary files /dev/null and b/src/klore/hangar.png differ
diff --git a/src/klore/laboratoire.png b/src/klore/laboratoire.png
new file mode 100644
index 0000000..6ff3dbb
Binary files /dev/null and b/src/klore/laboratoire.png differ
diff --git a/src/klore/mine-de-cristal.png b/src/klore/mine-de-cristal.png
new file mode 100644
index 0000000..fa1625f
Binary files /dev/null and b/src/klore/mine-de-cristal.png differ
diff --git a/src/klore/mine-de-metal.png b/src/klore/mine-de-metal.png
new file mode 100644
index 0000000..bec66e8
Binary files /dev/null and b/src/klore/mine-de-metal.png differ
diff --git a/src/klore/mines.png b/src/klore/mines.png
new file mode 100644
index 0000000..324e1f7
Binary files /dev/null and b/src/klore/mines.png differ
diff --git a/src/klore/missile-inerplanetaire.png b/src/klore/missile-inerplanetaire.png
new file mode 100644
index 0000000..c35aa37
Binary files /dev/null and b/src/klore/missile-inerplanetaire.png differ
diff --git a/src/klore/penitencier.png b/src/klore/penitencier.png
new file mode 100644
index 0000000..5a31912
Binary files /dev/null and b/src/klore/penitencier.png differ
diff --git a/src/klore/petit-transporteur.png b/src/klore/petit-transporteur.png
new file mode 100644
index 0000000..6c90b47
Binary files /dev/null and b/src/klore/petit-transporteur.png differ
diff --git a/src/klore/pompe-a-essence.png b/src/klore/pompe-a-essence.png
new file mode 100644
index 0000000..c6cc2f4
Binary files /dev/null and b/src/klore/pompe-a-essence.png differ
diff --git a/src/klore/poste-de-commandement.png b/src/klore/poste-de-commandement.png
new file mode 100644
index 0000000..104374b
Binary files /dev/null and b/src/klore/poste-de-commandement.png differ
diff --git a/src/klore/ravitailleur.png b/src/klore/ravitailleur.png
new file mode 100644
index 0000000..1eb265a
Binary files /dev/null and b/src/klore/ravitailleur.png differ
diff --git a/src/klore/reacteur-a-impulsion.png b/src/klore/reacteur-a-impulsion.png
new file mode 100644
index 0000000..6dbc299
Binary files /dev/null and b/src/klore/reacteur-a-impulsion.png differ
diff --git a/src/klore/reacteur-a-propulsion.png b/src/klore/reacteur-a-propulsion.png
new file mode 100644
index 0000000..757fa3b
Binary files /dev/null and b/src/klore/reacteur-a-propulsion.png differ
diff --git a/src/klore/recycleur.png b/src/klore/recycleur.png
new file mode 100644
index 0000000..a57efe0
Binary files /dev/null and b/src/klore/recycleur.png differ
diff --git a/src/klore/sonde.png b/src/klore/sonde.png
new file mode 100644
index 0000000..9941c6c
Binary files /dev/null and b/src/klore/sonde.png differ
diff --git a/src/klore/technologie-espionnage.png b/src/klore/technologie-espionnage.png
new file mode 100644
index 0000000..fddd4dc
Binary files /dev/null and b/src/klore/technologie-espionnage.png differ
diff --git a/src/klore/technologie-laser.png b/src/klore/technologie-laser.png
new file mode 100644
index 0000000..389b040
Binary files /dev/null and b/src/klore/technologie-laser.png differ
diff --git a/src/klore/tour-a-missiles.png b/src/klore/tour-a-missiles.png
new file mode 100644
index 0000000..4099720
Binary files /dev/null and b/src/klore/tour-a-missiles.png differ
diff --git a/src/klore/tour-laser.png b/src/klore/tour-laser.png
new file mode 100644
index 0000000..9c3d1cb
Binary files /dev/null and b/src/klore/tour-laser.png differ
diff --git a/src/klore/usine-automatisee.png b/src/klore/usine-automatisee.png
new file mode 100644
index 0000000..a9c389d
Binary files /dev/null and b/src/klore/usine-automatisee.png differ
diff --git a/src/klore/vaisseau-orbital.png b/src/klore/vaisseau-orbital.png
new file mode 100644
index 0000000..bcf3272
Binary files /dev/null and b/src/klore/vaisseau-orbital.png differ
diff --git a/src/klore/voile-magnetique.png b/src/klore/voile-magnetique.png
new file mode 100644
index 0000000..8d05869
Binary files /dev/null and b/src/klore/voile-magnetique.png differ
diff --git a/language/en/admin.mo b/src/language/en/admin.mo
similarity index 100%
rename from language/en/admin.mo
rename to src/language/en/admin.mo
diff --git a/language/en/admin/Queries.mo b/src/language/en/admin/Queries.mo
similarity index 100%
rename from language/en/admin/Queries.mo
rename to src/language/en/admin/Queries.mo
diff --git a/language/en/admin/add_fleet.mo b/src/language/en/admin/add_fleet.mo
similarity index 100%
rename from language/en/admin/add_fleet.mo
rename to src/language/en/admin/add_fleet.mo
diff --git a/language/en/admin/addmoon.mo b/src/language/en/admin/addmoon.mo
similarity index 100%
rename from language/en/admin/addmoon.mo
rename to src/language/en/admin/addmoon.mo
diff --git a/language/en/admin/adminpanel.mo b/src/language/en/admin/adminpanel.mo
similarity index 100%
rename from language/en/admin/adminpanel.mo
rename to src/language/en/admin/adminpanel.mo
diff --git a/language/en/admin/banned.mo b/src/language/en/admin/banned.mo
similarity index 100%
rename from language/en/admin/banned.mo
rename to src/language/en/admin/banned.mo
diff --git a/language/en/admin/changepass.mo b/src/language/en/admin/changepass.mo
similarity index 100%
rename from language/en/admin/changepass.mo
rename to src/language/en/admin/changepass.mo
diff --git a/language/en/admin/fleets.mo b/src/language/en/admin/fleets.mo
similarity index 100%
rename from language/en/admin/fleets.mo
rename to src/language/en/admin/fleets.mo
diff --git a/language/en/admin/md5enc.mo b/src/language/en/admin/md5enc.mo
similarity index 100%
rename from language/en/admin/md5enc.mo
rename to src/language/en/admin/md5enc.mo
diff --git a/language/en/admin/messagelist.mo b/src/language/en/admin/messagelist.mo
similarity index 100%
rename from language/en/admin/messagelist.mo
rename to src/language/en/admin/messagelist.mo
diff --git a/language/en/admin/multi.mo b/src/language/en/admin/multi.mo
similarity index 100%
rename from language/en/admin/multi.mo
rename to src/language/en/admin/multi.mo
diff --git a/language/en/admin/server.mo b/src/language/en/admin/server.mo
similarity index 100%
rename from language/en/admin/server.mo
rename to src/language/en/admin/server.mo
diff --git a/language/en/admin/settings.mo b/src/language/en/admin/settings.mo
similarity index 100%
rename from language/en/admin/settings.mo
rename to src/language/en/admin/settings.mo
diff --git a/language/en/admin/statconfig.mo b/src/language/en/admin/statconfig.mo
similarity index 100%
rename from language/en/admin/statconfig.mo
rename to src/language/en/admin/statconfig.mo
diff --git a/language/en/alliance.mo b/src/language/en/alliance.mo
similarity index 100%
rename from language/en/alliance.mo
rename to src/language/en/alliance.mo
diff --git a/language/en/announce.mo b/src/language/en/announce.mo
similarity index 100%
rename from language/en/announce.mo
rename to src/language/en/announce.mo
diff --git a/language/en/banned.mo b/src/language/en/banned.mo
similarity index 100%
rename from language/en/banned.mo
rename to src/language/en/banned.mo
diff --git a/language/en/buddy.mo b/src/language/en/buddy.mo
similarity index 100%
rename from language/en/buddy.mo
rename to src/language/en/buddy.mo
diff --git a/language/en/buildings.mo b/src/language/en/buildings.mo
similarity index 100%
rename from language/en/buildings.mo
rename to src/language/en/buildings.mo
diff --git a/language/en/changelog.mo b/src/language/en/changelog.mo
similarity index 100%
rename from language/en/changelog.mo
rename to src/language/en/changelog.mo
diff --git a/language/en/chat.mo b/src/language/en/chat.mo
similarity index 100%
rename from language/en/chat.mo
rename to src/language/en/chat.mo
diff --git a/language/en/contact.mo b/src/language/en/contact.mo
similarity index 100%
rename from language/en/contact.mo
rename to src/language/en/contact.mo
diff --git a/language/en/cookies.mo b/src/language/en/cookies.mo
similarity index 100%
rename from language/en/cookies.mo
rename to src/language/en/cookies.mo
diff --git a/language/en/credit.mo b/src/language/en/credit.mo
similarity index 100%
rename from language/en/credit.mo
rename to src/language/en/credit.mo
diff --git a/language/en/fleet.mo b/src/language/en/fleet.mo
similarity index 100%
rename from language/en/fleet.mo
rename to src/language/en/fleet.mo
diff --git a/language/en/galaxy.mo b/src/language/en/galaxy.mo
similarity index 100%
rename from language/en/galaxy.mo
rename to src/language/en/galaxy.mo
diff --git a/language/en/imperium.mo b/src/language/en/imperium.mo
similarity index 100%
rename from language/en/imperium.mo
rename to src/language/en/imperium.mo
diff --git a/language/en/index.mo b/src/language/en/index.mo
similarity index 100%
rename from language/en/index.mo
rename to src/language/en/index.mo
diff --git a/language/en/infos.mo b/src/language/en/infos.mo
similarity index 100%
rename from language/en/infos.mo
rename to src/language/en/infos.mo
diff --git a/language/en/install/install.mo b/src/language/en/install/install.mo
similarity index 100%
rename from language/en/install/install.mo
rename to src/language/en/install/install.mo
diff --git a/language/en/lang_info.cfg b/src/language/en/lang_info.cfg
similarity index 100%
rename from language/en/lang_info.cfg
rename to src/language/en/lang_info.cfg
diff --git a/language/en/leftmenu.mo b/src/language/en/leftmenu.mo
similarity index 100%
rename from language/en/leftmenu.mo
rename to src/language/en/leftmenu.mo
diff --git a/language/en/login.mo b/src/language/en/login.mo
similarity index 100%
rename from language/en/login.mo
rename to src/language/en/login.mo
diff --git a/language/en/logout.mo b/src/language/en/logout.mo
similarity index 100%
rename from language/en/logout.mo
rename to src/language/en/logout.mo
diff --git a/language/en/lostpassword.mo b/src/language/en/lostpassword.mo
similarity index 100%
rename from language/en/lostpassword.mo
rename to src/language/en/lostpassword.mo
diff --git a/language/en/marchand.mo b/src/language/en/marchand.mo
similarity index 100%
rename from language/en/marchand.mo
rename to src/language/en/marchand.mo
diff --git a/language/en/messages.mo b/src/language/en/messages.mo
similarity index 100%
rename from language/en/messages.mo
rename to src/language/en/messages.mo
diff --git a/language/en/news.mo b/src/language/en/news.mo
similarity index 100%
rename from language/en/news.mo
rename to src/language/en/news.mo
diff --git a/language/en/notes.mo b/src/language/en/notes.mo
similarity index 100%
rename from language/en/notes.mo
rename to src/language/en/notes.mo
diff --git a/language/en/officier.mo b/src/language/en/officier.mo
similarity index 100%
rename from language/en/officier.mo
rename to src/language/en/officier.mo
diff --git a/language/en/options.mo b/src/language/en/options.mo
similarity index 100%
rename from language/en/options.mo
rename to src/language/en/options.mo
diff --git a/language/en/overview.mo b/src/language/en/overview.mo
similarity index 100%
rename from language/en/overview.mo
rename to src/language/en/overview.mo
diff --git a/language/en/phalanx.mo b/src/language/en/phalanx.mo
similarity index 100%
rename from language/en/phalanx.mo
rename to src/language/en/phalanx.mo
diff --git a/language/en/player.mo b/src/language/en/player.mo
similarity index 100%
rename from language/en/player.mo
rename to src/language/en/player.mo
diff --git a/language/en/records.mo b/src/language/en/records.mo
similarity index 100%
rename from language/en/records.mo
rename to src/language/en/records.mo
diff --git a/language/en/reg.mo b/src/language/en/reg.mo
similarity index 100%
rename from language/en/reg.mo
rename to src/language/en/reg.mo
diff --git a/language/en/resources.mo b/src/language/en/resources.mo
similarity index 100%
rename from language/en/resources.mo
rename to src/language/en/resources.mo
diff --git a/language/en/rules.mo b/src/language/en/rules.mo
similarity index 100%
rename from language/en/rules.mo
rename to src/language/en/rules.mo
diff --git a/language/en/search.mo b/src/language/en/search.mo
similarity index 100%
rename from language/en/search.mo
rename to src/language/en/search.mo
diff --git a/language/en/stat.mo b/src/language/en/stat.mo
similarity index 100%
rename from language/en/stat.mo
rename to src/language/en/stat.mo
diff --git a/language/en/supp.mo b/src/language/en/supp.mo
similarity index 100%
rename from language/en/supp.mo
rename to src/language/en/supp.mo
diff --git a/language/en/system.mo b/src/language/en/system.mo
similarity index 100%
rename from language/en/system.mo
rename to src/language/en/system.mo
diff --git a/language/en/tech.mo b/src/language/en/tech.mo
similarity index 100%
rename from language/en/tech.mo
rename to src/language/en/tech.mo
diff --git a/language/en/tradingscrapmetal.mo b/src/language/en/tradingscrapmetal.mo
similarity index 100%
rename from language/en/tradingscrapmetal.mo
rename to src/language/en/tradingscrapmetal.mo
diff --git a/language/fr/admin.mo b/src/language/fr/admin.mo
similarity index 100%
rename from language/fr/admin.mo
rename to src/language/fr/admin.mo
diff --git a/language/fr/admin/Queries.mo b/src/language/fr/admin/Queries.mo
similarity index 100%
rename from language/fr/admin/Queries.mo
rename to src/language/fr/admin/Queries.mo
diff --git a/language/fr/admin/add_fleet.mo b/src/language/fr/admin/add_fleet.mo
similarity index 100%
rename from language/fr/admin/add_fleet.mo
rename to src/language/fr/admin/add_fleet.mo
diff --git a/language/fr/admin/addmoon.mo b/src/language/fr/admin/addmoon.mo
similarity index 100%
rename from language/fr/admin/addmoon.mo
rename to src/language/fr/admin/addmoon.mo
diff --git a/language/fr/admin/adminpanel.mo b/src/language/fr/admin/adminpanel.mo
similarity index 100%
rename from language/fr/admin/adminpanel.mo
rename to src/language/fr/admin/adminpanel.mo
diff --git a/language/fr/admin/changepass.mo b/src/language/fr/admin/changepass.mo
similarity index 100%
rename from language/fr/admin/changepass.mo
rename to src/language/fr/admin/changepass.mo
diff --git a/language/fr/admin/fleets.mo b/src/language/fr/admin/fleets.mo
similarity index 100%
rename from language/fr/admin/fleets.mo
rename to src/language/fr/admin/fleets.mo
diff --git a/language/fr/admin/md5enc.mo b/src/language/fr/admin/md5enc.mo
similarity index 100%
rename from language/fr/admin/md5enc.mo
rename to src/language/fr/admin/md5enc.mo
diff --git a/language/fr/admin/messagelist.mo b/src/language/fr/admin/messagelist.mo
similarity index 100%
rename from language/fr/admin/messagelist.mo
rename to src/language/fr/admin/messagelist.mo
diff --git a/language/fr/admin/multi.mo b/src/language/fr/admin/multi.mo
similarity index 100%
rename from language/fr/admin/multi.mo
rename to src/language/fr/admin/multi.mo
diff --git a/language/fr/admin/settings.mo b/src/language/fr/admin/settings.mo
similarity index 100%
rename from language/fr/admin/settings.mo
rename to src/language/fr/admin/settings.mo
diff --git a/language/fr/admin/statconfig.mo b/src/language/fr/admin/statconfig.mo
similarity index 100%
rename from language/fr/admin/statconfig.mo
rename to src/language/fr/admin/statconfig.mo
diff --git a/language/fr/alliance.mo b/src/language/fr/alliance.mo
similarity index 100%
rename from language/fr/alliance.mo
rename to src/language/fr/alliance.mo
diff --git a/language/fr/banned.mo b/src/language/fr/banned.mo
similarity index 100%
rename from language/fr/banned.mo
rename to src/language/fr/banned.mo
diff --git a/language/fr/buddy.mo b/src/language/fr/buddy.mo
similarity index 100%
rename from language/fr/buddy.mo
rename to src/language/fr/buddy.mo
diff --git a/language/fr/buildings.mo b/src/language/fr/buildings.mo
similarity index 100%
rename from language/fr/buildings.mo
rename to src/language/fr/buildings.mo
diff --git a/language/fr/changelog.mo b/src/language/fr/changelog.mo
similarity index 100%
rename from language/fr/changelog.mo
rename to src/language/fr/changelog.mo
diff --git a/language/fr/chat.mo b/src/language/fr/chat.mo
similarity index 100%
rename from language/fr/chat.mo
rename to src/language/fr/chat.mo
diff --git a/language/fr/contact.mo b/src/language/fr/contact.mo
similarity index 100%
rename from language/fr/contact.mo
rename to src/language/fr/contact.mo
diff --git a/language/fr/cookies.mo b/src/language/fr/cookies.mo
similarity index 100%
rename from language/fr/cookies.mo
rename to src/language/fr/cookies.mo
diff --git a/language/fr/credit.mo b/src/language/fr/credit.mo
similarity index 100%
rename from language/fr/credit.mo
rename to src/language/fr/credit.mo
diff --git a/language/fr/fleet.mo b/src/language/fr/fleet.mo
similarity index 100%
rename from language/fr/fleet.mo
rename to src/language/fr/fleet.mo
diff --git a/language/fr/galaxy.mo b/src/language/fr/galaxy.mo
similarity index 100%
rename from language/fr/galaxy.mo
rename to src/language/fr/galaxy.mo
diff --git a/language/fr/imperium.mo b/src/language/fr/imperium.mo
similarity index 100%
rename from language/fr/imperium.mo
rename to src/language/fr/imperium.mo
diff --git a/language/fr/index.mo b/src/language/fr/index.mo
similarity index 100%
rename from language/fr/index.mo
rename to src/language/fr/index.mo
diff --git a/language/fr/infos.mo b/src/language/fr/infos.mo
similarity index 100%
rename from language/fr/infos.mo
rename to src/language/fr/infos.mo
diff --git a/language/fr/install/install.mo b/src/language/fr/install/install.mo
similarity index 100%
rename from language/fr/install/install.mo
rename to src/language/fr/install/install.mo
diff --git a/language/fr/lang_info.cfg b/src/language/fr/lang_info.cfg
similarity index 100%
rename from language/fr/lang_info.cfg
rename to src/language/fr/lang_info.cfg
diff --git a/language/fr/leftmenu.mo b/src/language/fr/leftmenu.mo
similarity index 100%
rename from language/fr/leftmenu.mo
rename to src/language/fr/leftmenu.mo
diff --git a/language/fr/login.mo b/src/language/fr/login.mo
similarity index 100%
rename from language/fr/login.mo
rename to src/language/fr/login.mo
diff --git a/language/fr/logout.mo b/src/language/fr/logout.mo
similarity index 100%
rename from language/fr/logout.mo
rename to src/language/fr/logout.mo
diff --git a/language/fr/lostpassword.mo b/src/language/fr/lostpassword.mo
similarity index 100%
rename from language/fr/lostpassword.mo
rename to src/language/fr/lostpassword.mo
diff --git a/language/fr/marchand.mo b/src/language/fr/marchand.mo
similarity index 100%
rename from language/fr/marchand.mo
rename to src/language/fr/marchand.mo
diff --git a/language/fr/messages.mo b/src/language/fr/messages.mo
similarity index 100%
rename from language/fr/messages.mo
rename to src/language/fr/messages.mo
diff --git a/language/fr/news.mo b/src/language/fr/news.mo
similarity index 100%
rename from language/fr/news.mo
rename to src/language/fr/news.mo
diff --git a/language/fr/notes.mo b/src/language/fr/notes.mo
similarity index 100%
rename from language/fr/notes.mo
rename to src/language/fr/notes.mo
diff --git a/language/fr/officier.mo b/src/language/fr/officier.mo
similarity index 100%
rename from language/fr/officier.mo
rename to src/language/fr/officier.mo
diff --git a/language/fr/options.mo b/src/language/fr/options.mo
similarity index 100%
rename from language/fr/options.mo
rename to src/language/fr/options.mo
diff --git a/language/fr/overview.mo b/src/language/fr/overview.mo
similarity index 100%
rename from language/fr/overview.mo
rename to src/language/fr/overview.mo
diff --git a/language/fr/phalanx.mo b/src/language/fr/phalanx.mo
similarity index 100%
rename from language/fr/phalanx.mo
rename to src/language/fr/phalanx.mo
diff --git a/language/fr/player.mo b/src/language/fr/player.mo
similarity index 100%
rename from language/fr/player.mo
rename to src/language/fr/player.mo
diff --git a/language/fr/records.mo b/src/language/fr/records.mo
similarity index 100%
rename from language/fr/records.mo
rename to src/language/fr/records.mo
diff --git a/language/fr/reg.mo b/src/language/fr/reg.mo
similarity index 100%
rename from language/fr/reg.mo
rename to src/language/fr/reg.mo
diff --git a/language/fr/resources.mo b/src/language/fr/resources.mo
similarity index 100%
rename from language/fr/resources.mo
rename to src/language/fr/resources.mo
diff --git a/language/fr/rules.mo b/src/language/fr/rules.mo
similarity index 100%
rename from language/fr/rules.mo
rename to src/language/fr/rules.mo
diff --git a/language/fr/search.mo b/src/language/fr/search.mo
similarity index 100%
rename from language/fr/search.mo
rename to src/language/fr/search.mo
diff --git a/language/fr/stat.mo b/src/language/fr/stat.mo
similarity index 100%
rename from language/fr/stat.mo
rename to src/language/fr/stat.mo
diff --git a/language/fr/system.mo b/src/language/fr/system.mo
similarity index 100%
rename from language/fr/system.mo
rename to src/language/fr/system.mo
diff --git a/language/fr/tech.mo b/src/language/fr/tech.mo
similarity index 100%
rename from language/fr/tech.mo
rename to src/language/fr/tech.mo
diff --git a/language/fr/tradingscrapmetal.mo b/src/language/fr/tradingscrapmetal.mo
similarity index 100%
rename from language/fr/tradingscrapmetal.mo
rename to src/language/fr/tradingscrapmetal.mo
diff --git a/language/it/admin.mo b/src/language/it/admin.mo
similarity index 100%
rename from language/it/admin.mo
rename to src/language/it/admin.mo
diff --git a/language/it/admin/Queries.mo b/src/language/it/admin/Queries.mo
similarity index 100%
rename from language/it/admin/Queries.mo
rename to src/language/it/admin/Queries.mo
diff --git a/language/it/admin/add_fleet.mo b/src/language/it/admin/add_fleet.mo
similarity index 100%
rename from language/it/admin/add_fleet.mo
rename to src/language/it/admin/add_fleet.mo
diff --git a/language/it/admin/addmoon.mo b/src/language/it/admin/addmoon.mo
similarity index 100%
rename from language/it/admin/addmoon.mo
rename to src/language/it/admin/addmoon.mo
diff --git a/language/it/admin/adminpanel.mo b/src/language/it/admin/adminpanel.mo
similarity index 100%
rename from language/it/admin/adminpanel.mo
rename to src/language/it/admin/adminpanel.mo
diff --git a/language/it/admin/changepass.mo b/src/language/it/admin/changepass.mo
similarity index 100%
rename from language/it/admin/changepass.mo
rename to src/language/it/admin/changepass.mo
diff --git a/language/it/admin/fleets.mo b/src/language/it/admin/fleets.mo
similarity index 100%
rename from language/it/admin/fleets.mo
rename to src/language/it/admin/fleets.mo
diff --git a/language/it/admin/md5enc.mo b/src/language/it/admin/md5enc.mo
similarity index 100%
rename from language/it/admin/md5enc.mo
rename to src/language/it/admin/md5enc.mo
diff --git a/language/it/admin/messagelist.mo b/src/language/it/admin/messagelist.mo
similarity index 100%
rename from language/it/admin/messagelist.mo
rename to src/language/it/admin/messagelist.mo
diff --git a/language/it/admin/multi.mo b/src/language/it/admin/multi.mo
similarity index 100%
rename from language/it/admin/multi.mo
rename to src/language/it/admin/multi.mo
diff --git a/language/it/admin/settings.mo b/src/language/it/admin/settings.mo
similarity index 100%
rename from language/it/admin/settings.mo
rename to src/language/it/admin/settings.mo
diff --git a/language/it/admin/statconfig.mo b/src/language/it/admin/statconfig.mo
similarity index 100%
rename from language/it/admin/statconfig.mo
rename to src/language/it/admin/statconfig.mo
diff --git a/language/it/alliance.mo b/src/language/it/alliance.mo
similarity index 100%
rename from language/it/alliance.mo
rename to src/language/it/alliance.mo
diff --git a/language/it/banned.mo b/src/language/it/banned.mo
similarity index 100%
rename from language/it/banned.mo
rename to src/language/it/banned.mo
diff --git a/language/it/buddy.mo b/src/language/it/buddy.mo
similarity index 100%
rename from language/it/buddy.mo
rename to src/language/it/buddy.mo
diff --git a/language/it/buildings.mo b/src/language/it/buildings.mo
similarity index 100%
rename from language/it/buildings.mo
rename to src/language/it/buildings.mo
diff --git a/language/it/changelog.mo b/src/language/it/changelog.mo
similarity index 100%
rename from language/it/changelog.mo
rename to src/language/it/changelog.mo
diff --git a/language/it/chat.mo b/src/language/it/chat.mo
similarity index 100%
rename from language/it/chat.mo
rename to src/language/it/chat.mo
diff --git a/language/it/contact.mo b/src/language/it/contact.mo
similarity index 100%
rename from language/it/contact.mo
rename to src/language/it/contact.mo
diff --git a/language/it/cookies.mo b/src/language/it/cookies.mo
similarity index 100%
rename from language/it/cookies.mo
rename to src/language/it/cookies.mo
diff --git a/language/it/credit.mo b/src/language/it/credit.mo
similarity index 100%
rename from language/it/credit.mo
rename to src/language/it/credit.mo
diff --git a/language/it/fleet.mo b/src/language/it/fleet.mo
similarity index 100%
rename from language/it/fleet.mo
rename to src/language/it/fleet.mo
diff --git a/language/it/galaxy.mo b/src/language/it/galaxy.mo
similarity index 100%
rename from language/it/galaxy.mo
rename to src/language/it/galaxy.mo
diff --git a/language/it/imperium.mo b/src/language/it/imperium.mo
similarity index 100%
rename from language/it/imperium.mo
rename to src/language/it/imperium.mo
diff --git a/language/it/index.mo b/src/language/it/index.mo
similarity index 100%
rename from language/it/index.mo
rename to src/language/it/index.mo
diff --git a/language/it/infos.mo b/src/language/it/infos.mo
similarity index 100%
rename from language/it/infos.mo
rename to src/language/it/infos.mo
diff --git a/language/it/install.php b/src/language/it/install.php
similarity index 100%
rename from language/it/install.php
rename to src/language/it/install.php
diff --git a/language/it/install/admin.mo b/src/language/it/install/admin.mo
similarity index 100%
rename from language/it/install/admin.mo
rename to src/language/it/install/admin.mo
diff --git a/language/it/install/alliance.mo b/src/language/it/install/alliance.mo
similarity index 100%
rename from language/it/install/alliance.mo
rename to src/language/it/install/alliance.mo
diff --git a/language/it/install/banned.mo b/src/language/it/install/banned.mo
similarity index 100%
rename from language/it/install/banned.mo
rename to src/language/it/install/banned.mo
diff --git a/language/it/install/buddy.mo b/src/language/it/install/buddy.mo
similarity index 100%
rename from language/it/install/buddy.mo
rename to src/language/it/install/buddy.mo
diff --git a/language/it/install/buildings.mo b/src/language/it/install/buildings.mo
similarity index 100%
rename from language/it/install/buildings.mo
rename to src/language/it/install/buildings.mo
diff --git a/language/it/install/changelog.mo b/src/language/it/install/changelog.mo
similarity index 100%
rename from language/it/install/changelog.mo
rename to src/language/it/install/changelog.mo
diff --git a/language/it/install/chat.mo b/src/language/it/install/chat.mo
similarity index 100%
rename from language/it/install/chat.mo
rename to src/language/it/install/chat.mo
diff --git a/language/it/install/contact.mo b/src/language/it/install/contact.mo
similarity index 100%
rename from language/it/install/contact.mo
rename to src/language/it/install/contact.mo
diff --git a/language/it/install/cookies.mo b/src/language/it/install/cookies.mo
similarity index 100%
rename from language/it/install/cookies.mo
rename to src/language/it/install/cookies.mo
diff --git a/language/it/install/credit.mo b/src/language/it/install/credit.mo
similarity index 100%
rename from language/it/install/credit.mo
rename to src/language/it/install/credit.mo
diff --git a/language/it/install/fleet.mo b/src/language/it/install/fleet.mo
similarity index 100%
rename from language/it/install/fleet.mo
rename to src/language/it/install/fleet.mo
diff --git a/language/it/install/galaxy.mo b/src/language/it/install/galaxy.mo
similarity index 100%
rename from language/it/install/galaxy.mo
rename to src/language/it/install/galaxy.mo
diff --git a/language/it/install/imperium.mo b/src/language/it/install/imperium.mo
similarity index 100%
rename from language/it/install/imperium.mo
rename to src/language/it/install/imperium.mo
diff --git a/language/it/install/index.mo b/src/language/it/install/index.mo
similarity index 100%
rename from language/it/install/index.mo
rename to src/language/it/install/index.mo
diff --git a/language/it/install/infos.mo b/src/language/it/install/infos.mo
similarity index 100%
rename from language/it/install/infos.mo
rename to src/language/it/install/infos.mo
diff --git a/language/it/install/install.mo b/src/language/it/install/install.mo
similarity index 100%
rename from language/it/install/install.mo
rename to src/language/it/install/install.mo
diff --git a/language/it/install/lang_info.cfg b/src/language/it/install/lang_info.cfg
similarity index 100%
rename from language/it/install/lang_info.cfg
rename to src/language/it/install/lang_info.cfg
diff --git a/language/it/install/leftmenu.mo b/src/language/it/install/leftmenu.mo
similarity index 100%
rename from language/it/install/leftmenu.mo
rename to src/language/it/install/leftmenu.mo
diff --git a/language/it/install/login.mo b/src/language/it/install/login.mo
similarity index 100%
rename from language/it/install/login.mo
rename to src/language/it/install/login.mo
diff --git a/language/it/install/logout.mo b/src/language/it/install/logout.mo
similarity index 100%
rename from language/it/install/logout.mo
rename to src/language/it/install/logout.mo
diff --git a/language/it/install/lostpassword.mo b/src/language/it/install/lostpassword.mo
similarity index 100%
rename from language/it/install/lostpassword.mo
rename to src/language/it/install/lostpassword.mo
diff --git a/language/it/install/marchand.mo b/src/language/it/install/marchand.mo
similarity index 100%
rename from language/it/install/marchand.mo
rename to src/language/it/install/marchand.mo
diff --git a/language/it/install/messages.mo b/src/language/it/install/messages.mo
similarity index 100%
rename from language/it/install/messages.mo
rename to src/language/it/install/messages.mo
diff --git a/language/it/install/news.mo b/src/language/it/install/news.mo
similarity index 100%
rename from language/it/install/news.mo
rename to src/language/it/install/news.mo
diff --git a/language/it/install/notes.mo b/src/language/it/install/notes.mo
similarity index 100%
rename from language/it/install/notes.mo
rename to src/language/it/install/notes.mo
diff --git a/language/it/install/officier.mo b/src/language/it/install/officier.mo
similarity index 100%
rename from language/it/install/officier.mo
rename to src/language/it/install/officier.mo
diff --git a/language/it/install/options.mo b/src/language/it/install/options.mo
similarity index 100%
rename from language/it/install/options.mo
rename to src/language/it/install/options.mo
diff --git a/language/it/install/overview.mo b/src/language/it/install/overview.mo
similarity index 100%
rename from language/it/install/overview.mo
rename to src/language/it/install/overview.mo
diff --git a/language/it/install/phalanx.mo b/src/language/it/install/phalanx.mo
similarity index 100%
rename from language/it/install/phalanx.mo
rename to src/language/it/install/phalanx.mo
diff --git a/language/it/install/player.mo b/src/language/it/install/player.mo
similarity index 100%
rename from language/it/install/player.mo
rename to src/language/it/install/player.mo
diff --git a/language/it/install/records.mo b/src/language/it/install/records.mo
similarity index 100%
rename from language/it/install/records.mo
rename to src/language/it/install/records.mo
diff --git a/language/it/install/reg.mo b/src/language/it/install/reg.mo
similarity index 100%
rename from language/it/install/reg.mo
rename to src/language/it/install/reg.mo
diff --git a/language/it/install/resources.mo b/src/language/it/install/resources.mo
similarity index 100%
rename from language/it/install/resources.mo
rename to src/language/it/install/resources.mo
diff --git a/language/it/install/rules.mo b/src/language/it/install/rules.mo
similarity index 100%
rename from language/it/install/rules.mo
rename to src/language/it/install/rules.mo
diff --git a/language/it/install/search.mo b/src/language/it/install/search.mo
similarity index 100%
rename from language/it/install/search.mo
rename to src/language/it/install/search.mo
diff --git a/language/it/install/stat.mo b/src/language/it/install/stat.mo
similarity index 100%
rename from language/it/install/stat.mo
rename to src/language/it/install/stat.mo
diff --git a/language/it/install/system.mo b/src/language/it/install/system.mo
similarity index 100%
rename from language/it/install/system.mo
rename to src/language/it/install/system.mo
diff --git a/language/it/install/tech.mo b/src/language/it/install/tech.mo
similarity index 100%
rename from language/it/install/tech.mo
rename to src/language/it/install/tech.mo
diff --git a/language/it/install/tradingscrapmetal.mo b/src/language/it/install/tradingscrapmetal.mo
similarity index 100%
rename from language/it/install/tradingscrapmetal.mo
rename to src/language/it/install/tradingscrapmetal.mo
diff --git a/language/it/iso.txt b/src/language/it/iso.txt
similarity index 100%
rename from language/it/iso.txt
rename to src/language/it/iso.txt
diff --git a/language/it/lang_info.cfg b/src/language/it/lang_info.cfg
similarity index 100%
rename from language/it/lang_info.cfg
rename to src/language/it/lang_info.cfg
diff --git a/language/it/leftmenu.mo b/src/language/it/leftmenu.mo
similarity index 100%
rename from language/it/leftmenu.mo
rename to src/language/it/leftmenu.mo
diff --git a/language/it/login.mo b/src/language/it/login.mo
similarity index 100%
rename from language/it/login.mo
rename to src/language/it/login.mo
diff --git a/language/it/logout.mo b/src/language/it/logout.mo
similarity index 100%
rename from language/it/logout.mo
rename to src/language/it/logout.mo
diff --git a/language/it/lostpassword.mo b/src/language/it/lostpassword.mo
similarity index 100%
rename from language/it/lostpassword.mo
rename to src/language/it/lostpassword.mo
diff --git a/language/it/marchand.mo b/src/language/it/marchand.mo
similarity index 100%
rename from language/it/marchand.mo
rename to src/language/it/marchand.mo
diff --git a/language/it/messages.mo b/src/language/it/messages.mo
similarity index 100%
rename from language/it/messages.mo
rename to src/language/it/messages.mo
diff --git a/language/it/news.mo b/src/language/it/news.mo
similarity index 100%
rename from language/it/news.mo
rename to src/language/it/news.mo
diff --git a/language/it/notes.mo b/src/language/it/notes.mo
similarity index 100%
rename from language/it/notes.mo
rename to src/language/it/notes.mo
diff --git a/language/it/officier.mo b/src/language/it/officier.mo
similarity index 100%
rename from language/it/officier.mo
rename to src/language/it/officier.mo
diff --git a/language/it/options.mo b/src/language/it/options.mo
similarity index 100%
rename from language/it/options.mo
rename to src/language/it/options.mo
diff --git a/language/it/overview.mo b/src/language/it/overview.mo
similarity index 100%
rename from language/it/overview.mo
rename to src/language/it/overview.mo
diff --git a/language/it/phalanx.mo b/src/language/it/phalanx.mo
similarity index 100%
rename from language/it/phalanx.mo
rename to src/language/it/phalanx.mo
diff --git a/language/it/player.mo b/src/language/it/player.mo
similarity index 100%
rename from language/it/player.mo
rename to src/language/it/player.mo
diff --git a/language/it/records.mo b/src/language/it/records.mo
similarity index 100%
rename from language/it/records.mo
rename to src/language/it/records.mo
diff --git a/language/it/reg.mo b/src/language/it/reg.mo
similarity index 100%
rename from language/it/reg.mo
rename to src/language/it/reg.mo
diff --git a/language/it/resources.mo b/src/language/it/resources.mo
similarity index 100%
rename from language/it/resources.mo
rename to src/language/it/resources.mo
diff --git a/language/it/rules.mo b/src/language/it/rules.mo
similarity index 100%
rename from language/it/rules.mo
rename to src/language/it/rules.mo
diff --git a/language/it/search.mo b/src/language/it/search.mo
similarity index 100%
rename from language/it/search.mo
rename to src/language/it/search.mo
diff --git a/language/it/search.php b/src/language/it/search.php
similarity index 100%
rename from language/it/search.php
rename to src/language/it/search.php
diff --git a/language/it/settings.mo b/src/language/it/settings.mo
similarity index 100%
rename from language/it/settings.mo
rename to src/language/it/settings.mo
diff --git a/language/it/stat.mo b/src/language/it/stat.mo
similarity index 100%
rename from language/it/stat.mo
rename to src/language/it/stat.mo
diff --git a/language/it/system.mo b/src/language/it/system.mo
similarity index 100%
rename from language/it/system.mo
rename to src/language/it/system.mo
diff --git a/language/it/tech.mo b/src/language/it/tech.mo
similarity index 100%
rename from language/it/tech.mo
rename to src/language/it/tech.mo
diff --git a/language/it/tradingscrapmetal.mo b/src/language/it/tradingscrapmetal.mo
similarity index 100%
rename from language/it/tradingscrapmetal.mo
rename to src/language/it/tradingscrapmetal.mo
diff --git a/lostpassword.php b/src/lostpassword.php
similarity index 90%
rename from lostpassword.php
rename to src/lostpassword.php
index 9c4d9f0..3c91b92 100644
--- a/lostpassword.php
+++ b/src/lostpassword.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -28,15 +28,15 @@
*
*/
-define('INSIDE' , true);
-define('INSTALL' , false);
+define('INSIDE', true);
+define('INSTALL', false);
define('DISABLE_IDENTITY_CHECK', true);
require_once dirname(__FILE__) . '/application/bootstrap.php';
$mailData = array(
'recipient' => NULL,
- 'sender' => 'no-reply',
- 'subject' => 'Wootook:Legacies - Changement de mot de passe'
+ 'sender' => 'no-reply@wootook.org',
+ 'subject' => 'Wootook:Legacies - Changement de mot de passe'
);
includeLang('lostpassword');
@@ -110,6 +110,7 @@ EOF;
}
}
-$parse = $lang;
-$page = parsetemplate(gettemplate('lostpassword'), $parse);
-display($page, $lang['registry']);
+$layout = new Wootook_Core_Layout();
+$layout->getMessagesBlock()->prepareMessages(Wootook_Player_Model_Entity::SESSION_KEY);
+$layout->load('lost-password');
+echo $layout->render();
diff --git a/marchand.php b/src/marchand.php
similarity index 99%
rename from marchand.php
rename to src/marchand.php
index 9e603d1..f3ff559 100644
--- a/marchand.php
+++ b/src/marchand.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/messages.php b/src/messages.php
similarity index 99%
rename from messages.php
rename to src/messages.php
index a8c4dd3..d9c78dd 100644
--- a/messages.php
+++ b/src/messages.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/mipattack.php b/src/mipattack.php
similarity index 99%
rename from mipattack.php
rename to src/mipattack.php
index aec78c0..7cf5da5 100644
--- a/mipattack.php
+++ b/src/mipattack.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/multi.php b/src/multi.php
similarity index 98%
rename from multi.php
rename to src/multi.php
index 902ed81..e3833fd 100644
--- a/multi.php
+++ b/src/multi.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/neusuw.php b/src/neusuw.php
similarity index 99%
rename from neusuw.php
rename to src/neusuw.php
index 888bc25..cf04e47 100644
--- a/neusuw.php
+++ b/src/neusuw.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/src/new-tables.mysql b/src/new-tables.mysql
new file mode 100644
index 0000000..cf38bed
--- /dev/null
+++ b/src/new-tables.mysql
@@ -0,0 +1,112 @@
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+CREATE TABLE IF NOT EXISTS `game_core_config` (
+ `website_id` tinyint(3) unsigned NOT NULL,
+ `game_id` tinyint(3) unsigned NOT NULL,
+ `config_path` varchar(64) NOT NULL,
+ `config_value` varchar(255) NOT NULL,
+ PRIMARY KEY (`website_id`,`game_id`,`config_path`),
+ KEY `website_id` (`website_id`),
+ KEY `game_id` (`game_id`),
+ KEY `config_path` (`config_path`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO `game_core_config` (`website_id`, `game_id`, `config_path`, `config_value`) VALUES
+(0, 0, 'engine/ban/duration', '86400'),
+(0, 0, 'engine/bot/active', '0'),
+(0, 0, 'engine/bot/email', 'contact@wootook.org'),
+(0, 0, 'engine/bot/name', 'Woot'),
+(0, 0, 'engine/options/announces', '0'),
+(0, 0, 'engine/options/banner', '0'),
+(0, 0, 'engine/options/bbcode', '1'),
+(0, 0, 'engine/options/chat', '0'),
+(0, 0, 'engine/options/ga', '1'),
+(0, 0, 'engine/options/notes', '0'),
+(0, 0, 'engine/options/retailer', '0'),
+(0, 0, 'engine/options/vacation-min-time', '172800'),
+(0, 0, 'game/news/active', '0'),
+(0, 0, 'game/news/content', 'Bienvenue sur le nouveau serveur de jeu Wootook!'),
+(0, 0, 'web/cookie/name', '__wtk'),
+(0, 0, 'web/cookie/time', '2592000'),
+(0, 0, 'web/session/time', '900'),
+(1, 1, 'game/debris/cristal-percent', '30'),
+(1, 1, 'game/debris/defense', '0'),
+(1, 1, 'game/debris/deuterium-percent', '0'),
+(1, 1, 'game/debris/energy-percent', '0'),
+(1, 1, 'game/debris/fleet', '1'),
+(1, 1, 'game/debris/metal-percent', '30'),
+(1, 1, 'game/general/active', '1'),
+(1, 1, 'game/general/boards-url', 'http://wootook.org/board/'),
+(1, 1, 'game/general/closing-message', 'Le jeu est clos pour le moment.'),
+(1, 1, 'game/general/extra-url', 'http://wootook.org/'),
+(1, 1, 'game/general/extra-url-title', 'Wootook!'),
+(1, 1, 'game/general/locale', 'fr_FR'),
+(1, 1, 'game/general/name', 'Wootook'),
+(1, 1, 'game/noob-protection/active', '0'),
+(1, 1, 'game/noob-protection/multiplier', '5'),
+(1, 1, 'game/noob-protection/points-cap', '5000'),
+(1, 1, 'game/resource/multiplier', '1000'),
+(1, 1, 'game/speed/fleet', '2500'),
+(1, 1, 'game/speed/general', '2500'),
+(1, 1, 'resource/base-income/cristal', '10'),
+(1, 1, 'resource/base-income/deuterium', '0'),
+(1, 1, 'resource/base-income/energy', '0'),
+(1, 1, 'resource/base-income/metal', '20'),
+(1, 1, 'resource/initial/cristal', '500'),
+(1, 1, 'resource/initial/deuterium', '0'),
+(1, 1, 'resource/initial/energy', '0'),
+(1, 1, 'resource/initial/fields', '163'),
+(1, 1, 'resource/initial/metal', '500'),
+(1, 1, 'web/cookie/name', '__wtk_1_1');
+
+CREATE TABLE IF NOT EXISTS `game_core_game` (
+ `game_id` smallint(5) unsigned NOT NULL,
+ `group_id` tinyint(3) unsigned NOT NULL,
+ `website_id` tinyint(3) unsigned NOT NULL,
+ `code` varchar(64) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `sort_order` tinyint(3) unsigned NOT NULL,
+ `is_default` tinyint(1) NOT NULL,
+ `is_staging` tinyint(1) NOT NULL,
+ `is_active` tinyint(1) NOT NULL,
+ PRIMARY KEY (`group_id`),
+ UNIQUE KEY `code` (`code`),
+ KEY `website_id` (`website_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO `game_core_game` (`game_id`, `group_id`, `website_id`, `code`, `name`, `sort_order`, `is_default`, `is_staging`, `is_active`) VALUES
+(0, 0, 0, 'admin', 'Administration', 0, 0, 0, 1),
+(1, 1, 1, 'default', 'Default Game', 1, 1, 0, 1);
+
+CREATE TABLE IF NOT EXISTS `game_core_game_group` (
+ `group_id` tinyint(3) unsigned NOT NULL,
+ `website_id` tinyint(3) unsigned NOT NULL,
+ `code` varchar(64) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `sort_order` tinyint(3) unsigned NOT NULL,
+ `is_default` tinyint(1) NOT NULL,
+ PRIMARY KEY (`group_id`),
+ UNIQUE KEY `code` (`code`),
+ KEY `website_id` (`website_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO `game_core_game_group` (`group_id`, `website_id`, `code`, `name`, `sort_order`, `is_default`) VALUES
+(0, 0, 'admin', 'Administration', 0, 0),
+(1, 1, 'default', 'Default Group', 1, 1);
+
+CREATE TABLE IF NOT EXISTS `game_core_website` (
+ `website_id` tinyint(3) unsigned NOT NULL,
+ `code` varchar(64) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ `sort_order` tinyint(3) unsigned NOT NULL,
+ `default_group_id` tinyint(3) unsigned NOT NULL,
+ `is_default` tinyint(1) NOT NULL,
+ `is_staging` tinyint(1) NOT NULL,
+ `is_active` tinyint(1) NOT NULL,
+ PRIMARY KEY (`website_id`),
+ UNIQUE KEY `code` (`code`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+INSERT INTO `game_core_website` (`website_id`, `code`, `name`, `sort_order`, `default_group_id`, `is_default`, `is_staging`, `is_active`) VALUES
+(0, 'admin', 'Administration', 0, 0, 0, 0, 1),
+(1, 'default', 'Default Website', 1, 1, 1, 0, 1);
diff --git a/notes.php b/src/notes.php
similarity index 99%
rename from notes.php
rename to src/notes.php
index bc7e144..c53dd5b 100644
--- a/notes.php
+++ b/src/notes.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/officier.php b/src/officier.php
similarity index 99%
rename from officier.php
rename to src/officier.php
index 163ec0a..b75b0f6 100644
--- a/officier.php
+++ b/src/officier.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
diff --git a/options.php b/src/options.php
similarity index 99%
rename from options.php
rename to src/options.php
index a78fa47..7dc68c2 100644
--- a/options.php
+++ b/src/options.php
@@ -3,7 +3,7 @@
* This file is part of Wootook
*
* @license http://www.gnu.org/licenses/gpl-3.0.txt
- * @see http://www.wootook.com/
+ * @see http://wootook.org/
*
* Copyright (c) 2009-Present, Wootook Support Team
* All rights reserved.
@@ -33,7 +33,7 @@ define('INSTALL' , false);
require_once dirname(__FILE__) .'/application/bootstrap.php';
-$user = Wootook_Empire_Model_User::getSingleton();
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
includeLang('options');
diff --git a/src/overview.php b/src/overview.php
new file mode 100644
index 0000000..81c2f7c
--- /dev/null
+++ b/src/overview.php
@@ -0,0 +1,351 @@
+
+ * All rights reserved.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ * --> NOTICE <--
+ * This file is part of the core development branch, changing its contents will
+ * make you unable to use the automatic updates manager. Please refer to the
+ * documentation for further information about customizing Wootook.
+ *
+ */
+
+define('INSTALL' , false);
+require_once dirname(__FILE__) .'/application/bootstrap.php';
+
+$user = Wootook_Player_Model_Session::getSingleton()->getPlayer();
+$planet = $user->getCurrentPlanet();
+$moon = $planet->getMoon();
+
+$action = isset($_GET['action']) ? $_GET['action'] : null;
+
+if (isset($_POST) && !empty($_POST)) {/*
+ die('a');
+ $action = isset($_POST['action']) && !empty($_POST['action']) ? $_POST['action'] : $action;
+ $formKey = isset($_POST['form_key']) && !empty($_POST['form_key']) ? $_POST['form_key'] : null;
+
+ if ($formKey == Wootook::getSession('security')->getData('form_key')) {
+ if ($action == 'rename' && isset($_POST['name']) && !empty($_POST['name'])) {
+ $planet->setData('name', $_POST['name'])->save();
+ } else if ($action == 'destroy' && isset($_POST['password']) && !empty($_POST['password']) && isset($_POST['confirm'])) {
+ if (!$user->checkPassword($_POST['password'])) {
+ Wootook::getSession('user')
+ ->addError(Wootook::__('Password was not correct.'));
+ }
+
+ try {
+ $user->getCurrentPlanet()->destroy();
+
+ Wootook::getSession('user')
+ ->addSucces(Wootook::__('Planet has been successfully destroyed.'));
+ } catch (Wootook_Empire_Model_Planet_Exception $e) {
+ Wootook::getSession('user')
+ ->addError($e->getMessage());
+ }
+ }
+ } else {
+ Wootook::getSession('user')
+ ->addError(Wootook::__('Invalid security key.'));
+ }
+
+ header('HTTP/1.1 302 Found');
+ header('Location: ' . Wootook::getStaticUrl(basename(__FILE__)));
+ exit(0);*/
+} else if ($action == 'rename') {/*
+ die('a');
+ $layout = new Wootook_Core_Layout();
+ $layout->load('overview.rename-planet');
+
+ echo $layout->render();
+ exit(0);*/
+} else if ($action == 'destroy') {/*
+ die('a');
+ $layout = new Wootook_Core_Layout();
+ $layout->load('overview.destroy-planet');
+
+ echo $layout->render();
+ exit(0);*/
+}
+
+includeLang('resources');
+includeLang('overview');
+
+$layout = new Wootook_Core_Layout();
+$layout->load('overview');
+
+if ($user->getId()) {
+ $planetCollection = $user->getPlanetCollection();
+ $planetBlock = $layout->createBlock('core/deprecated', 'planet.view');
+ $planetBlock->setTemplate('empire/overview/planet/view.phtml');
+
+ $planetList = $layout->createBlock('core/concat', 'planet.list');
+ $planetBlock->planetList = $planetList;
+
+ $i = 0;
+ foreach ($planetCollection as $userPlanet) {
+ if ($userPlanet->getId() == $planet->getId()) {
+ continue;
+ }
+
+ /*
+ * Update planet resources and constructions
+ */
+ Wootook::dispatchEvent('planet.update', array(
+ 'planet' => $userPlanet
+ ));
+ $userPlanet->save();
+
+ if ($userPlanet->getId() != $user->getCurrentPlanet()->getId() && $userPlanet->isPlanet()) {
+ $id = uniqid();
+ $block = $layout->createBlock('core/deprecated', "planet.list.item.{$id}");
+ $block->setTemplate('empire/overview/planet/list/item.phtml');
+ $block['planet'] = $userPlanet;
+
+ $buildingQueue = $userPlanet->getBuildingQueue();
+ $buildingQueue->rewind();
+ $currentItem = $buildingQueue->current();
+ $block['queue_item'] = $currentItem;
+ $block['even'] = (($i++ % 4) == 3);
+
+ $planetList->$id = $block;
+ }
+ }
+
+ /**
+ * Missile attack management
+ * Refactoring needed
+ * {{{
+ */
+ $iraks_query = doquery("SELECT * FROM {{table}} WHERE owner = '" . $user['id'] . "'", 'iraks');
+ $Record = 4000;
+ while ($irak = $iraks_query->fetch(PDO::FETCH_ASSOC)) {
+ $Record++;
+ $fpage[$irak['zeit']] = '';
+
+ if ($irak['zeit'] > time()) {
+ $time = $irak['zeit'] - time();
+
+ $fpage[$irak['zeit']] .= InsertJavaScriptChronoApplet ("fm", $Record, $time, true);
+
+ $planet_start = doquery("SELECT * FROM {{table}} WHERE
+ galaxy = '" . $irak['galaxy'] . "' AND
+ system = '" . $irak['system'] . "' AND
+ planet = '" . $irak['planet'] . "' AND
+ planet_type = '1'", 'planets');
+
+ $user_planet = doquery("SELECT * FROM {{table}} WHERE
+ galaxy = '" . $irak['galaxy_angreifer'] . "' AND
+ system = '" . $irak['system_angreifer'] . "' AND
+ planet = '" . $irak['planet_angreifer'] . "' AND
+ planet_type = '1'", 'planets', true);
+
+ if ($planet_start->rowCount() == 1) {
+ $planet = mysql_fetch_array($planet_start);
+ }
+
+ $fpage[$irak['zeit']] .= "| " . gmdate("H:i:s", $irak['zeit'] + 1 * 60 * 60) . " | Une attaque de missiles (" . $irak['anzahl'] . ") de " . $user_planet['name'] . " ";
+ $fpage[$irak['zeit']] .= '[' . $irak["galaxy_angreifer"] . ':' . $irak["system_angreifer"] . ':' . $irak["planet_angreifer"] . ']';
+ $fpage[$irak['zeit']] .= ' arrive sur la planète' . $planet["name"] . ' ';
+ $fpage[$irak['zeit']] .= '[' . $irak["galaxy"] . ':' . $irak["system"] . ':' . $irak["planet"] . ']';
+ $fpage[$irak['zeit']] .= '';
+ $fpage[$irak['zeit']] .= InsertJavaScriptChronoApplet ("fm", $Record, $time, false);
+ $fpage[$irak['zeit']] .= " | ";
+ }
+ }
+ /**
+ * }}}
+ */
+
+ /*
+ * Update fleet list
+ */
+ Wootook::dispatchEvent('fleet.update', array(
+ 'player' => $user
+ ));
+
+ $fleetList = $layout->createBlock('core/concat', 'fleet.list');
+ $fleetCollection = $user->getFleetCollection();
+ foreach ($fleetCollection as $fleet) {
+ $id = uniqid();
+ $block = $layout->createBlock('core/deprecated', "fleet.list.item.{$id}");
+ $block->setTemplate('empire/overview/fleet/item.phtml');
+
+ $block['class'] = $fleet->getRowClass();
+ $block['fleet'] = $fleet;
+ $block['user'] = $user;
+
+ $fleetList->setPartial($id, $block);
+ }
+
+ $messageCollection = $user->getNewMessagesCount()
+
+ $newMessages = $layout->createBlock('core/deprecated', 'overview.messages');
+ $newMessages->setTemplate('empire/overview/messages.phtml');
+ $newMessages['count'] = (int) $count;
+
+ /**
+ * Page display
+ * Refactoring needed
+ * {{{
+ */
+ // -----------------------------------------------------------------------------------------------
+ $parse = $lang;
+ // -----------------------------------------------------------------------------------------------
+ // News Frame ...
+ // External Chat Frame ...
+ // Banner ADS Google (meme si je suis contre cela)
+ if (Wootook::getGameConfig('game/news/active')) {
+ $parse['NewsFrame'] = "
|---|
| " . $lang['ov_news_title'] . " | " . htmlentities(Wootook::getGameConfig('game/news/content'), ENT_QUOTES, 'UTF-8') . " | ";
+ }
+ if (Wootook::getGameConfig('engine/options/chat')) {
+ $parse['ExternalTchatFrame'] = "| " . Wootook::__('Open the chat.') . " | ";
+ }
+ if (Wootook::getGameConfig('engine/options/banner')) {
+ $bannerUrl = Wootook::getStaticUrl('scripts/createbanner.php', array('id' => $user['id']));
+
+ $parse['bannerframe'] = " ".$lang['InfoBanner']."
| |