diff --git a/scripts/game/beta5/alliance/library/getRequests.inc b/scripts/game/beta5/alliance/library/getRequests.inc index 0fb964e..c46f086 100644 --- a/scripts/game/beta5/alliance/library/getRequests.inc +++ b/scripts/game/beta5/alliance/library/getRequests.inc @@ -2,7 +2,7 @@ class beta5_alliance_getRequests { - function beta5_alliance_getRequests($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/getVoters.inc b/scripts/game/beta5/alliance/library/getVoters.inc index d41ebdd..99db296 100644 --- a/scripts/game/beta5/alliance/library/getVoters.inc +++ b/scripts/game/beta5/alliance/library/getVoters.inc @@ -2,7 +2,7 @@ class beta5_alliance_getVoters { - function beta5_alliance_getVoters($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/kick.inc b/scripts/game/beta5/alliance/library/kick.inc index 0f8a4b9..b885992 100644 --- a/scripts/game/beta5/alliance/library/kick.inc +++ b/scripts/game/beta5/alliance/library/kick.inc @@ -2,7 +2,7 @@ class beta5_alliance_kick { - function beta5_alliance_kick($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/leave.inc b/scripts/game/beta5/alliance/library/leave.inc index 42d0d43..2d62d94 100644 --- a/scripts/game/beta5/alliance/library/leave.inc +++ b/scripts/game/beta5/alliance/library/leave.inc @@ -2,7 +2,7 @@ class beta5_alliance_leave { - function beta5_alliance_leave($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/alliance/library/modifyForum.inc b/scripts/game/beta5/alliance/library/modifyForum.inc index 108978b..8129a30 100644 --- a/scripts/game/beta5/alliance/library/modifyForum.inc +++ b/scripts/game/beta5/alliance/library/modifyForum.inc @@ -2,7 +2,7 @@ class beta5_alliance_modifyForum { - function beta5_alliance_modifyForum($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/modifyRank.inc b/scripts/game/beta5/alliance/library/modifyRank.inc index ca14ffe..edf173f 100644 --- a/scripts/game/beta5/alliance/library/modifyRank.inc +++ b/scripts/game/beta5/alliance/library/modifyRank.inc @@ -2,7 +2,7 @@ class beta5_alliance_modifyRank { - function beta5_alliance_modifyRank($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/moveForum.inc b/scripts/game/beta5/alliance/library/moveForum.inc index 5bb8fca..3610f68 100644 --- a/scripts/game/beta5/alliance/library/moveForum.inc +++ b/scripts/game/beta5/alliance/library/moveForum.inc @@ -2,7 +2,7 @@ class beta5_alliance_moveForum { - function beta5_alliance_moveForum($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/rejectRequest.inc b/scripts/game/beta5/alliance/library/rejectRequest.inc index b6d4bb8..6b896a6 100644 --- a/scripts/game/beta5/alliance/library/rejectRequest.inc +++ b/scripts/game/beta5/alliance/library/rejectRequest.inc @@ -2,7 +2,7 @@ class beta5_alliance_rejectRequest { - function beta5_alliance_rejectRequest($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->msgs = $this->lib->game->getLib('beta5/msg'); diff --git a/scripts/game/beta5/alliance/library/removeCandidate.inc b/scripts/game/beta5/alliance/library/removeCandidate.inc index 039cc4a..ae5bec7 100644 --- a/scripts/game/beta5/alliance/library/removeCandidate.inc +++ b/scripts/game/beta5/alliance/library/removeCandidate.inc @@ -2,7 +2,7 @@ class beta5_alliance_removeCandidate { - function beta5_alliance_removeCandidate($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/sendRequest.inc b/scripts/game/beta5/alliance/library/sendRequest.inc index 85f9532..0e04b7b 100644 --- a/scripts/game/beta5/alliance/library/sendRequest.inc +++ b/scripts/game/beta5/alliance/library/sendRequest.inc @@ -2,7 +2,7 @@ class beta5_alliance_sendRequest { - function beta5_alliance_sendRequest($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/setDemocratic.inc b/scripts/game/beta5/alliance/library/setDemocratic.inc index 516b09b..6da3260 100644 --- a/scripts/game/beta5/alliance/library/setDemocratic.inc +++ b/scripts/game/beta5/alliance/library/setDemocratic.inc @@ -2,7 +2,7 @@ class beta5_alliance_setDemocratic { - function beta5_alliance_setDemocratic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/setForumAccess.inc b/scripts/game/beta5/alliance/library/setForumAccess.inc index 120849d..1047596 100644 --- a/scripts/game/beta5/alliance/library/setForumAccess.inc +++ b/scripts/game/beta5/alliance/library/setForumAccess.inc @@ -2,7 +2,7 @@ class beta5_alliance_setForumAccess { - function beta5_alliance_setForumAccess($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/setSuccessor.inc b/scripts/game/beta5/alliance/library/setSuccessor.inc index c921568..1bc98c8 100644 --- a/scripts/game/beta5/alliance/library/setSuccessor.inc +++ b/scripts/game/beta5/alliance/library/setSuccessor.inc @@ -2,7 +2,7 @@ class beta5_alliance_setSuccessor { - function beta5_alliance_setSuccessor($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/stepDown.inc b/scripts/game/beta5/alliance/library/stepDown.inc index 9c117fd..db6c532 100644 --- a/scripts/game/beta5/alliance/library/stepDown.inc +++ b/scripts/game/beta5/alliance/library/stepDown.inc @@ -2,7 +2,7 @@ class beta5_alliance_stepDown { - function beta5_alliance_stepDown($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/takePresidency.inc b/scripts/game/beta5/alliance/library/takePresidency.inc index e5ee7e5..1c54873 100644 --- a/scripts/game/beta5/alliance/library/takePresidency.inc +++ b/scripts/game/beta5/alliance/library/takePresidency.inc @@ -2,7 +2,7 @@ class beta5_alliance_takePresidency { - function beta5_alliance_takePresidency($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/alliance/library/updateVictory.inc b/scripts/game/beta5/alliance/library/updateVictory.inc index f6b9021..d76e5fd 100644 --- a/scripts/game/beta5/alliance/library/updateVictory.inc +++ b/scripts/game/beta5/alliance/library/updateVictory.inc @@ -2,7 +2,7 @@ class beta5_alliance_updateVictory { - function beta5_alliance_updateVictory($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/bq/library.inc b/scripts/game/beta5/bq/library.inc index ff17e7c..2cdfab7 100644 --- a/scripts/game/beta5/bq/library.inc +++ b/scripts/game/beta5/bq/library.inc @@ -14,7 +14,7 @@ class beta5_bq_library { 'replace' ); - function beta5_bq_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/bq/library/append.inc b/scripts/game/beta5/bq/library/append.inc index 8ce98bc..eb0b2cb 100644 --- a/scripts/game/beta5/bq/library/append.inc +++ b/scripts/game/beta5/bq/library/append.inc @@ -2,7 +2,7 @@ class beta5_bq_append { - function beta5_bq_append($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/bq/library/flush.inc b/scripts/game/beta5/bq/library/flush.inc index 6b3338e..349fd42 100644 --- a/scripts/game/beta5/bq/library/flush.inc +++ b/scripts/game/beta5/bq/library/flush.inc @@ -2,7 +2,7 @@ class beta5_bq_flush { - function beta5_bq_flush($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/bq/library/get.inc b/scripts/game/beta5/bq/library/get.inc index db837c6..a53f900 100644 --- a/scripts/game/beta5/bq/library/get.inc +++ b/scripts/game/beta5/bq/library/get.inc @@ -2,7 +2,7 @@ class beta5_bq_get { - function beta5_bq_get($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/bq/library/getReplacementCost.inc b/scripts/game/beta5/bq/library/getReplacementCost.inc index b2bf486..9f34a3c 100644 --- a/scripts/game/beta5/bq/library/getReplacementCost.inc +++ b/scripts/game/beta5/bq/library/getReplacementCost.inc @@ -2,7 +2,7 @@ class beta5_bq_getReplacementCost { - function beta5_bq_getReplacementCost($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/bq/library/remove.inc b/scripts/game/beta5/bq/library/remove.inc index cd57d7d..cf77477 100644 --- a/scripts/game/beta5/bq/library/remove.inc +++ b/scripts/game/beta5/bq/library/remove.inc @@ -2,7 +2,7 @@ class beta5_bq_remove { - function beta5_bq_remove($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/bq/library/reorder.inc b/scripts/game/beta5/bq/library/reorder.inc index 2cd7af5..bc8e6e5 100644 --- a/scripts/game/beta5/bq/library/reorder.inc +++ b/scripts/game/beta5/bq/library/reorder.inc @@ -2,7 +2,7 @@ class beta5_bq_reorder { - function beta5_bq_reorder($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/bq/library/replace.inc b/scripts/game/beta5/bq/library/replace.inc index 0969848..573dbe8 100644 --- a/scripts/game/beta5/bq/library/replace.inc +++ b/scripts/game/beta5/bq/library/replace.inc @@ -2,7 +2,7 @@ class beta5_bq_replace { - function beta5_bq_replace($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/ecm/library.inc b/scripts/game/beta5/ecm/library.inc index 81a812f..0482dd6 100644 --- a/scripts/game/beta5/ecm/library.inc +++ b/scripts/game/beta5/ecm/library.inc @@ -6,7 +6,7 @@ class beta5_ecm_library { var $eccmTable = array(); var $probTables = array(); - function beta5_ecm_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/fleet/library/arrival.inc b/scripts/game/beta5/fleet/library/arrival.inc index c292b27..f3225a8 100644 --- a/scripts/game/beta5/fleet/library/arrival.inc +++ b/scripts/game/beta5/fleet/library/arrival.inc @@ -2,7 +2,7 @@ class beta5_fleet_arrival { - function beta5_fleet_arrival($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->move = $this->lib->game->getLib('beta5/moving'); diff --git a/scripts/game/beta5/fleet/library/autoSplit.inc b/scripts/game/beta5/fleet/library/autoSplit.inc index 847db84..9677764 100644 --- a/scripts/game/beta5/fleet/library/autoSplit.inc +++ b/scripts/game/beta5/fleet/library/autoSplit.inc @@ -2,7 +2,7 @@ class beta5_fleet_autoSplit { - function beta5_fleet_autoSplit($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->standby = $this->lib->game->getLib('beta5/standby'); diff --git a/scripts/game/beta5/fleet/library/disband.inc b/scripts/game/beta5/fleet/library/disband.inc index 5ec9cea..742e7f2 100644 --- a/scripts/game/beta5/fleet/library/disband.inc +++ b/scripts/game/beta5/fleet/library/disband.inc @@ -2,7 +2,7 @@ class beta5_fleet_disband { - function beta5_fleet_disband($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/fleet/library/get.inc b/scripts/game/beta5/fleet/library/get.inc index e4c44ff..5e3a2b1 100644 --- a/scripts/game/beta5/fleet/library/get.inc +++ b/scripts/game/beta5/fleet/library/get.inc @@ -2,7 +2,7 @@ class beta5_fleet_get { - function beta5_fleet_get($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/fleet/library/getLocation.inc b/scripts/game/beta5/fleet/library/getLocation.inc index ab5352d..bf9309d 100644 --- a/scripts/game/beta5/fleet/library/getLocation.inc +++ b/scripts/game/beta5/fleet/library/getLocation.inc @@ -2,7 +2,7 @@ class beta5_fleet_getLocation { - function beta5_fleet_getLocation($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/fleet/library/getPlayerLocations.inc b/scripts/game/beta5/fleet/library/getPlayerLocations.inc index 2e70ca3..8a435dc 100644 --- a/scripts/game/beta5/fleet/library/getPlayerLocations.inc +++ b/scripts/game/beta5/fleet/library/getPlayerLocations.inc @@ -2,7 +2,7 @@ class beta5_fleet_getPlayerLocations { - function beta5_fleet_getPlayerLocations($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/fleet/library/merge.inc b/scripts/game/beta5/fleet/library/merge.inc index c28083d..6b04f45 100644 --- a/scripts/game/beta5/fleet/library/merge.inc +++ b/scripts/game/beta5/fleet/library/merge.inc @@ -2,7 +2,7 @@ class beta5_fleet_merge { - function beta5_fleet_merge($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->moving = $this->lib->game->getLib('beta5/moving'); diff --git a/scripts/game/beta5/fleet/library/sendMoveMessages.inc b/scripts/game/beta5/fleet/library/sendMoveMessages.inc index 1df4847..9c8a674 100644 --- a/scripts/game/beta5/fleet/library/sendMoveMessages.inc +++ b/scripts/game/beta5/fleet/library/sendMoveMessages.inc @@ -2,7 +2,7 @@ class beta5_fleet_sendMoveMessages { - function beta5_fleet_sendMoveMessages($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->msg = $this->lib->game->getLib('beta5/msg'); diff --git a/scripts/game/beta5/fleet/library/setOrders.inc b/scripts/game/beta5/fleet/library/setOrders.inc index fba12dc..bc6c124 100644 --- a/scripts/game/beta5/fleet/library/setOrders.inc +++ b/scripts/game/beta5/fleet/library/setOrders.inc @@ -2,7 +2,7 @@ class beta5_fleet_setOrders { - function beta5_fleet_setOrders($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->moving = $this->lib->game->getLib('beta5/moving'); diff --git a/scripts/game/beta5/fleet/library/split.inc b/scripts/game/beta5/fleet/library/split.inc index 1b659c0..57ebd43 100644 --- a/scripts/game/beta5/fleet/library/split.inc +++ b/scripts/game/beta5/fleet/library/split.inc @@ -2,7 +2,7 @@ class beta5_fleet_split { - function beta5_fleet_split($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/fleet/library/switchStatus.inc b/scripts/game/beta5/fleet/library/switchStatus.inc index 6f20a1b..2c33378 100644 --- a/scripts/game/beta5/fleet/library/switchStatus.inc +++ b/scripts/game/beta5/fleet/library/switchStatus.inc @@ -2,7 +2,7 @@ class beta5_fleet_switchStatus { - function beta5_fleet_switchStatus($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library.inc b/scripts/game/beta5/forums/library.inc index 60c95db..76033c7 100644 --- a/scripts/game/beta5/forums/library.inc +++ b/scripts/game/beta5/forums/library.inc @@ -19,7 +19,7 @@ class beta5_forums_library { 'updateLast' ); - function beta5_forums_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/deletePost.inc b/scripts/game/beta5/forums/library/deletePost.inc index 824d92b..d8e47a3 100644 --- a/scripts/game/beta5/forums/library/deletePost.inc +++ b/scripts/game/beta5/forums/library/deletePost.inc @@ -2,7 +2,7 @@ class beta5_forums_deletePost { - function beta5_forums_deletePost($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/deleteTopic.inc b/scripts/game/beta5/forums/library/deleteTopic.inc index f53a3c0..e8a2946 100644 --- a/scripts/game/beta5/forums/library/deleteTopic.inc +++ b/scripts/game/beta5/forums/library/deleteTopic.inc @@ -2,7 +2,7 @@ class beta5_forums_deleteTopic { - function beta5_forums_deleteTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/edit.inc b/scripts/game/beta5/forums/library/edit.inc index 1b306e3..7db6efe 100644 --- a/scripts/game/beta5/forums/library/edit.inc +++ b/scripts/game/beta5/forums/library/edit.inc @@ -2,7 +2,7 @@ class beta5_forums_edit { - function beta5_forums_edit($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/getLatest.inc b/scripts/game/beta5/forums/library/getLatest.inc index 0de560f..a2de6ac 100644 --- a/scripts/game/beta5/forums/library/getLatest.inc +++ b/scripts/game/beta5/forums/library/getLatest.inc @@ -2,7 +2,7 @@ class beta5_forums_getLatest { - function beta5_forums_getLatest($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->mForums = $this->lib->game->getLib('main/forums'); diff --git a/scripts/game/beta5/forums/library/getPost.inc b/scripts/game/beta5/forums/library/getPost.inc index 8e1fd92..17949d6 100644 --- a/scripts/game/beta5/forums/library/getPost.inc +++ b/scripts/game/beta5/forums/library/getPost.inc @@ -2,7 +2,7 @@ class beta5_forums_getPost { - function beta5_forums_getPost($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/forums/library/getPosts.inc b/scripts/game/beta5/forums/library/getPosts.inc index b66f7dd..2d31268 100644 --- a/scripts/game/beta5/forums/library/getPosts.inc +++ b/scripts/game/beta5/forums/library/getPosts.inc @@ -2,7 +2,7 @@ class beta5_forums_getPosts { - function beta5_forums_getPosts($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/forums/library/getTopic.inc b/scripts/game/beta5/forums/library/getTopic.inc index 3018872..fb4d465 100644 --- a/scripts/game/beta5/forums/library/getTopic.inc +++ b/scripts/game/beta5/forums/library/getTopic.inc @@ -2,7 +2,7 @@ class beta5_forums_getTopic { - function beta5_forums_getTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/getTopics.inc b/scripts/game/beta5/forums/library/getTopics.inc index 98103bc..a39fd5b 100644 --- a/scripts/game/beta5/forums/library/getTopics.inc +++ b/scripts/game/beta5/forums/library/getTopics.inc @@ -2,7 +2,7 @@ class beta5_forums_getTopics { - function beta5_forums_getTopics($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/forums/library/moveTopic.inc b/scripts/game/beta5/forums/library/moveTopic.inc index a4306aa..24e86dc 100644 --- a/scripts/game/beta5/forums/library/moveTopic.inc +++ b/scripts/game/beta5/forums/library/moveTopic.inc @@ -2,7 +2,7 @@ class beta5_forums_moveTopic { - function beta5_forums_moveTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/newTopic.inc b/scripts/game/beta5/forums/library/newTopic.inc index 469f9c3..600fb36 100644 --- a/scripts/game/beta5/forums/library/newTopic.inc +++ b/scripts/game/beta5/forums/library/newTopic.inc @@ -2,7 +2,7 @@ class beta5_forums_newTopic { - function beta5_forums_newTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/reply.inc b/scripts/game/beta5/forums/library/reply.inc index cbd2584..3713807 100644 --- a/scripts/game/beta5/forums/library/reply.inc +++ b/scripts/game/beta5/forums/library/reply.inc @@ -2,7 +2,7 @@ class beta5_forums_reply { - function beta5_forums_reply($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/forums/library/searchPosts.inc b/scripts/game/beta5/forums/library/searchPosts.inc index a783eef..1e7f51a 100644 --- a/scripts/game/beta5/forums/library/searchPosts.inc +++ b/scripts/game/beta5/forums/library/searchPosts.inc @@ -2,7 +2,7 @@ class beta5_forums_searchPosts { - function beta5_forums_searchPosts($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->mForums = $this->lib->game->getLib('main/forums'); diff --git a/scripts/game/beta5/forums/library/searchTopics.inc b/scripts/game/beta5/forums/library/searchTopics.inc index 4cbe45f..05a3f52 100644 --- a/scripts/game/beta5/forums/library/searchTopics.inc +++ b/scripts/game/beta5/forums/library/searchTopics.inc @@ -2,7 +2,7 @@ class beta5_forums_searchTopics { - function beta5_forums_searchTopics($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->mForums = $this->lib->game->getLib('main/forums'); diff --git a/scripts/game/beta5/forums/library/updateLast.inc b/scripts/game/beta5/forums/library/updateLast.inc index 2a0dfc9..592788a 100644 --- a/scripts/game/beta5/forums/library/updateLast.inc +++ b/scripts/game/beta5/forums/library/updateLast.inc @@ -2,7 +2,7 @@ class beta5_forums_updateLast { - function beta5_forums_updateLast($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/library/leaveGame.inc b/scripts/game/beta5/library/leaveGame.inc index 01c073b..7d7ac89 100644 --- a/scripts/game/beta5/library/leaveGame.inc +++ b/scripts/game/beta5/library/leaveGame.inc @@ -2,7 +2,7 @@ class beta5_leaveGame { - function beta5_leaveGame($lib) { + function __construct($lib) { $this->lib = $lib; $this->game = $lib->game; $this->db = $this->lib->game->db; diff --git a/scripts/game/beta5/library/leaveVacation.inc b/scripts/game/beta5/library/leaveVacation.inc index 9602682..c8e6906 100644 --- a/scripts/game/beta5/library/leaveVacation.inc +++ b/scripts/game/beta5/library/leaveVacation.inc @@ -2,7 +2,7 @@ class beta5_leaveVacation { - function beta5_leaveVacation($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/library/listing.inc b/scripts/game/beta5/library/listing.inc index 79aaf74..b044b47 100644 --- a/scripts/game/beta5/library/listing.inc +++ b/scripts/game/beta5/library/listing.inc @@ -2,7 +2,7 @@ class beta5_listing { - function beta5_listing($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/library/startVacation.inc b/scripts/game/beta5/library/startVacation.inc index 00ade78..a10217b 100644 --- a/scripts/game/beta5/library/startVacation.inc +++ b/scripts/game/beta5/library/startVacation.inc @@ -2,7 +2,7 @@ class beta5_startVacation { - function beta5_startVacation($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library.inc b/scripts/game/beta5/moving/library.inc index 53780f0..ea8aca1 100644 --- a/scripts/game/beta5/moving/library.inc +++ b/scripts/game/beta5/moving/library.inc @@ -11,7 +11,7 @@ class beta5_moving_library { 'stop' ); - function beta5_moving_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library/cloneObject.inc b/scripts/game/beta5/moving/library/cloneObject.inc index 76b7dac..80a96b8 100644 --- a/scripts/game/beta5/moving/library/cloneObject.inc +++ b/scripts/game/beta5/moving/library/cloneObject.inc @@ -2,7 +2,7 @@ class beta5_moving_cloneObject { - function beta5_moving_cloneObject($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->standby = $this->lib->game->getLib('beta5/standby'); diff --git a/scripts/game/beta5/moving/library/computeTrajectory.inc b/scripts/game/beta5/moving/library/computeTrajectory.inc index 8e6d0b8..b74c681 100644 --- a/scripts/game/beta5/moving/library/computeTrajectory.inc +++ b/scripts/game/beta5/moving/library/computeTrajectory.inc @@ -3,7 +3,7 @@ class beta5_moving_computeTrajectory { var $trajCache = null; - function beta5_moving_computeTrajectory($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/moving/library/getLocation.inc b/scripts/game/beta5/moving/library/getLocation.inc index 3f43537..15cb42f 100644 --- a/scripts/game/beta5/moving/library/getLocation.inc +++ b/scripts/game/beta5/moving/library/getLocation.inc @@ -2,7 +2,7 @@ class beta5_moving_getLocation { - function beta5_moving_getLocation($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library/getTrajectory.inc b/scripts/game/beta5/moving/library/getTrajectory.inc index f4f4447..0fed853 100644 --- a/scripts/game/beta5/moving/library/getTrajectory.inc +++ b/scripts/game/beta5/moving/library/getTrajectory.inc @@ -2,7 +2,7 @@ class beta5_moving_getTrajectory { - function beta5_moving_getTrajectory($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library/newObject.inc b/scripts/game/beta5/moving/library/newObject.inc index f869cbd..cc516d0 100644 --- a/scripts/game/beta5/moving/library/newObject.inc +++ b/scripts/game/beta5/moving/library/newObject.inc @@ -2,7 +2,7 @@ class beta5_moving_newObject { - function beta5_moving_newObject($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library/redirect.inc b/scripts/game/beta5/moving/library/redirect.inc index 4b335d3..f82a399 100644 --- a/scripts/game/beta5/moving/library/redirect.inc +++ b/scripts/game/beta5/moving/library/redirect.inc @@ -2,7 +2,7 @@ class beta5_moving_redirect { - function beta5_moving_redirect($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/moving/library/stop.inc b/scripts/game/beta5/moving/library/stop.inc index 3afe053..669cf9b 100644 --- a/scripts/game/beta5/moving/library/stop.inc +++ b/scripts/game/beta5/moving/library/stop.inc @@ -2,7 +2,7 @@ class beta5_moving_stop { - function beta5_moving_stop($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/msg/library/get.inc b/scripts/game/beta5/msg/library/get.inc index 4b460a7..9a6c81e 100644 --- a/scripts/game/beta5/msg/library/get.inc +++ b/scripts/game/beta5/msg/library/get.inc @@ -2,7 +2,7 @@ class beta5_msg_get { - function beta5_msg_get($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/msg/library/getHeaders.inc b/scripts/game/beta5/msg/library/getHeaders.inc index 7943cf4..e625dab 100644 --- a/scripts/game/beta5/msg/library/getHeaders.inc +++ b/scripts/game/beta5/msg/library/getHeaders.inc @@ -2,7 +2,7 @@ class beta5_msg_getHeaders { - function beta5_msg_getHeaders($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/msg/library/send.inc b/scripts/game/beta5/msg/library/send.inc index 0ef84de..518c7ea 100644 --- a/scripts/game/beta5/msg/library/send.inc +++ b/scripts/game/beta5/msg/library/send.inc @@ -2,7 +2,7 @@ class beta5_msg_send { - function beta5_msg_send($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/msg/library/sendInAlliance.inc b/scripts/game/beta5/msg/library/sendInAlliance.inc index 7f2ada6..d2aead6 100644 --- a/scripts/game/beta5/msg/library/sendInAlliance.inc +++ b/scripts/game/beta5/msg/library/sendInAlliance.inc @@ -2,7 +2,7 @@ class beta5_msg_sendInAlliance { - function beta5_msg_sendInAlliance($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/msg/library/sendToPlanet.inc b/scripts/game/beta5/msg/library/sendToPlanet.inc index 56ffe69..5bfcc52 100644 --- a/scripts/game/beta5/msg/library/sendToPlanet.inc +++ b/scripts/game/beta5/msg/library/sendToPlanet.inc @@ -2,7 +2,7 @@ class beta5_msg_sendToPlanet { - function beta5_msg_sendToPlanet($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/msg/library/sendToPlayer.inc b/scripts/game/beta5/msg/library/sendToPlayer.inc index 6b1b821..cbeb349 100644 --- a/scripts/game/beta5/msg/library/sendToPlayer.inc +++ b/scripts/game/beta5/msg/library/sendToPlayer.inc @@ -2,7 +2,7 @@ class beta5_msg_sendToPlayer { - function beta5_msg_sendToPlayer($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/msgformat/en/abandon.inc b/scripts/game/beta5/msgformat/en/abandon.inc index 47197b8..44ed4f7 100644 --- a/scripts/game/beta5/msgformat/en/abandon.inc +++ b/scripts/game/beta5/msgformat/en/abandon.inc @@ -2,7 +2,7 @@ class msgformat_abandon { - function msgformat_abandon($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/alint.inc b/scripts/game/beta5/msgformat/en/alint.inc index ed12466..582299e 100644 --- a/scripts/game/beta5/msgformat/en/alint.inc +++ b/scripts/game/beta5/msgformat/en/alint.inc @@ -2,7 +2,7 @@ class msgformat_alint { - function msgformat_alint($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/alliance.inc b/scripts/game/beta5/msgformat/en/alliance.inc index 30a0df5..e27ac7f 100644 --- a/scripts/game/beta5/msgformat/en/alliance.inc +++ b/scripts/game/beta5/msgformat/en/alliance.inc @@ -2,7 +2,7 @@ class msgformat_alliance { - function msgformat_alliance($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/battle.inc b/scripts/game/beta5/msgformat/en/battle.inc index 182db49..13acc8c 100644 --- a/scripts/game/beta5/msgformat/en/battle.inc +++ b/scripts/game/beta5/msgformat/en/battle.inc @@ -4,7 +4,7 @@ class msgformat_battle { var $sfn = array('gaships','fighters','cruisers','bcruisers'); var $sdn = array('GA Ships','Fighters','Cruisers','Battle Cruisers'); - function msgformat_battle($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/bid.inc b/scripts/game/beta5/msgformat/en/bid.inc index b0228fe..cce5b8b 100644 --- a/scripts/game/beta5/msgformat/en/bid.inc +++ b/scripts/game/beta5/msgformat/en/bid.inc @@ -2,7 +2,7 @@ class msgformat_bid { - function msgformat_bid($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/cash.inc b/scripts/game/beta5/msgformat/en/cash.inc index ce9b33f..01dda1a 100644 --- a/scripts/game/beta5/msgformat/en/cash.inc +++ b/scripts/game/beta5/msgformat/en/cash.inc @@ -2,7 +2,7 @@ class msgformat_cash { - function msgformat_cash($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/flmove.inc b/scripts/game/beta5/msgformat/en/flmove.inc index 923bd10..2f97455 100644 --- a/scripts/game/beta5/msgformat/en/flmove.inc +++ b/scripts/game/beta5/msgformat/en/flmove.inc @@ -6,7 +6,7 @@ class msgformat_flmove { var $fmData = null; var $fmId = null; - function msgformat_flmove($game) { + function __construct($game) { $this->game = $game; $this->db = $game->db; $this->players = $game->getLib('beta5/player'); diff --git a/scripts/game/beta5/msgformat/en/flswitch.inc b/scripts/game/beta5/msgformat/en/flswitch.inc index a630d31..36b221b 100644 --- a/scripts/game/beta5/msgformat/en/flswitch.inc +++ b/scripts/game/beta5/msgformat/en/flswitch.inc @@ -2,7 +2,7 @@ class msgformat_flswitch { - function msgformat_flswitch($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/hsloss.inc b/scripts/game/beta5/msgformat/en/hsloss.inc index 7af897a..96feaab 100644 --- a/scripts/game/beta5/msgformat/en/hsloss.inc +++ b/scripts/game/beta5/msgformat/en/hsloss.inc @@ -4,7 +4,7 @@ class msgformat_hsloss { var $compn = array('G.A. ship', 'G.A. ships', 'fighter', 'fighters', 'cruiser', 'cruisers', 'batlle cruiser', 'battle cruisers'); var $compi = array('gaships', 'fighters', 'cruisers', 'bcruisers'); - function msgformat_hsloss($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/kfleet.inc b/scripts/game/beta5/msgformat/en/kfleet.inc index ba74fa6..a8ac73a 100644 --- a/scripts/game/beta5/msgformat/en/kfleet.inc +++ b/scripts/game/beta5/msgformat/en/kfleet.inc @@ -2,7 +2,7 @@ class msgformat_kfleet { - function msgformat_kfleet($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/kimpr.inc b/scripts/game/beta5/msgformat/en/kimpr.inc index 3b01ea1..8c57538 100644 --- a/scripts/game/beta5/msgformat/en/kimpr.inc +++ b/scripts/game/beta5/msgformat/en/kimpr.inc @@ -2,7 +2,7 @@ class msgformat_kimpr { - function msgformat_kimpr($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/leave.inc b/scripts/game/beta5/msgformat/en/leave.inc index b5708bf..def57a7 100644 --- a/scripts/game/beta5/msgformat/en/leave.inc +++ b/scripts/game/beta5/msgformat/en/leave.inc @@ -2,7 +2,7 @@ class msgformat_leave { - function msgformat_leave($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/ownerch.inc b/scripts/game/beta5/msgformat/en/ownerch.inc index cd0dc97..b8744fd 100644 --- a/scripts/game/beta5/msgformat/en/ownerch.inc +++ b/scripts/game/beta5/msgformat/en/ownerch.inc @@ -2,7 +2,7 @@ class msgformat_ownerch { - function msgformat_ownerch($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/planet.inc b/scripts/game/beta5/msgformat/en/planet.inc index 1f1ea58..bb2ad68 100644 --- a/scripts/game/beta5/msgformat/en/planet.inc +++ b/scripts/game/beta5/msgformat/en/planet.inc @@ -2,7 +2,7 @@ class msgformat_planet { - function msgformat_planet($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); $this->planets = $game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/msgformat/en/plsc.inc b/scripts/game/beta5/msgformat/en/plsc.inc index 05711a3..ff1c31b 100644 --- a/scripts/game/beta5/msgformat/en/plsc.inc +++ b/scripts/game/beta5/msgformat/en/plsc.inc @@ -2,7 +2,7 @@ class msgformat_plsc { - function msgformat_plsc($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/rename.inc b/scripts/game/beta5/msgformat/en/rename.inc index 327bc06..91236cf 100644 --- a/scripts/game/beta5/msgformat/en/rename.inc +++ b/scripts/game/beta5/msgformat/en/rename.inc @@ -2,7 +2,7 @@ class msgformat_rename { - function msgformat_rename($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/resdipl.inc b/scripts/game/beta5/msgformat/en/resdipl.inc index eccdec8..696a866 100644 --- a/scripts/game/beta5/msgformat/en/resdipl.inc +++ b/scripts/game/beta5/msgformat/en/resdipl.inc @@ -2,7 +2,7 @@ class msgformat_resdipl { - function msgformat_resdipl($game) { + function __construct($game) { $this->game = $game; $this->db = $game->db; $this->players = $game->getLib('beta5/player'); diff --git a/scripts/game/beta5/msgformat/en/revdmg.inc b/scripts/game/beta5/msgformat/en/revdmg.inc index ae5a7ba..72b8087 100644 --- a/scripts/game/beta5/msgformat/en/revdmg.inc +++ b/scripts/game/beta5/msgformat/en/revdmg.inc @@ -2,7 +2,7 @@ class msgformat_revdmg { - function msgformat_revdmg($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/revolt.inc b/scripts/game/beta5/msgformat/en/revolt.inc index df64e67..012cc87 100644 --- a/scripts/game/beta5/msgformat/en/revolt.inc +++ b/scripts/game/beta5/msgformat/en/revolt.inc @@ -2,7 +2,7 @@ class msgformat_revolt { - function msgformat_revolt($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/sale.inc b/scripts/game/beta5/msgformat/en/sale.inc index 5f7b1ce..b7bcee3 100644 --- a/scripts/game/beta5/msgformat/en/sale.inc +++ b/scripts/game/beta5/msgformat/en/sale.inc @@ -2,7 +2,7 @@ class msgformat_sale { - function msgformat_sale($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/std.inc b/scripts/game/beta5/msgformat/en/std.inc index 300fdeb..a6a33a4 100644 --- a/scripts/game/beta5/msgformat/en/std.inc +++ b/scripts/game/beta5/msgformat/en/std.inc @@ -2,7 +2,7 @@ class msgformat_std { - function msgformat_std($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/warnname.inc b/scripts/game/beta5/msgformat/en/warnname.inc index 7804399..97f72a9 100644 --- a/scripts/game/beta5/msgformat/en/warnname.inc +++ b/scripts/game/beta5/msgformat/en/warnname.inc @@ -2,7 +2,7 @@ class msgformat_warnname { - function msgformat_warnname($game) { + function __construct($game) { $this->game = $game; $this->players = $game->getLib('beta5/player'); } diff --git a/scripts/game/beta5/msgformat/en/whsn.inc b/scripts/game/beta5/msgformat/en/whsn.inc index 30ef21b..4084327 100644 --- a/scripts/game/beta5/msgformat/en/whsn.inc +++ b/scripts/game/beta5/msgformat/en/whsn.inc @@ -4,7 +4,7 @@ class msgformat_whsn { var $compn = array('G.A. ship', 'G.A. ships', 'fighter', 'fighters', 'cruiser', 'cruisers', 'batlle cruiser', 'battle cruisers'); var $compi = array('gaships', 'fighters', 'cruisers', 'bcruisers'); - function msgformat_whsn($game) { + function __construct($game) { $this->game = $game; $this->db = $game->getDBAccess(); $this->players = $game->getLib('beta5/player'); diff --git a/scripts/game/beta5/planet/library/buildFactories.inc b/scripts/game/beta5/planet/library/buildFactories.inc index 3ecefd0..acb86f4 100644 --- a/scripts/game/beta5/planet/library/buildFactories.inc +++ b/scripts/game/beta5/planet/library/buildFactories.inc @@ -2,7 +2,7 @@ class beta5_planet_buildFactories { - function beta5_planet_buildFactories($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/planet/library/checkBuildFactories.inc b/scripts/game/beta5/planet/library/checkBuildFactories.inc index f79ccd5..68fa0f5 100644 --- a/scripts/game/beta5/planet/library/checkBuildFactories.inc +++ b/scripts/game/beta5/planet/library/checkBuildFactories.inc @@ -2,7 +2,7 @@ class beta5_planet_checkBuildFactories { - function beta5_planet_checkBuildFactories($lib) { + function __construct($lib) { $this->lib = $lib; $this->game = $this->lib->game; $this->db = $this->game->db; diff --git a/scripts/game/beta5/planet/library/checkDestroyFactories.inc b/scripts/game/beta5/planet/library/checkDestroyFactories.inc index bb2df7c..6a02ef1 100644 --- a/scripts/game/beta5/planet/library/checkDestroyFactories.inc +++ b/scripts/game/beta5/planet/library/checkDestroyFactories.inc @@ -2,7 +2,7 @@ class beta5_planet_checkDestroyFactories { - function beta5_planet_checkDestroyFactories($lib) { + function __construct($lib) { $this->lib = $lib; $this->game = $this->lib->game; $this->db = $this->game->db; diff --git a/scripts/game/beta5/planet/library/destroyTurrets.inc b/scripts/game/beta5/planet/library/destroyTurrets.inc index b384dd6..52c84bc 100644 --- a/scripts/game/beta5/planet/library/destroyTurrets.inc +++ b/scripts/game/beta5/planet/library/destroyTurrets.inc @@ -2,7 +2,7 @@ class beta5_planet_destroyTurrets { - function beta5_planet_destroyTurrets($lib) { + function __construct($lib) { $this->lib = $lib; $this->game = $this->lib->game; $this->db = $this->game->db; diff --git a/scripts/game/beta5/planet/library/getPower.inc b/scripts/game/beta5/planet/library/getPower.inc index a70138d..553a93d 100644 --- a/scripts/game/beta5/planet/library/getPower.inc +++ b/scripts/game/beta5/planet/library/getPower.inc @@ -3,7 +3,7 @@ class beta5_planet_getPower { var $ePower = array(); - function beta5_planet_getPower($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/planet/library/ownerChange.inc b/scripts/game/beta5/planet/library/ownerChange.inc index 7d9374f..49cfd09 100644 --- a/scripts/game/beta5/planet/library/ownerChange.inc +++ b/scripts/game/beta5/planet/library/ownerChange.inc @@ -2,7 +2,7 @@ class beta5_planet_ownerChange { - function beta5_planet_ownerChange($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $lib->game->db; $this->bq = $lib->game->getLib('beta5/bq'); diff --git a/scripts/game/beta5/planet/library/rename.inc b/scripts/game/beta5/planet/library/rename.inc index d0c1432..8e01845 100644 --- a/scripts/game/beta5/planet/library/rename.inc +++ b/scripts/game/beta5/planet/library/rename.inc @@ -2,7 +2,7 @@ class beta5_planet_rename { - function beta5_planet_rename($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/planet/library/updateMilStatus.inc b/scripts/game/beta5/planet/library/updateMilStatus.inc index a941456..73e7ccb 100644 --- a/scripts/game/beta5/planet/library/updateMilStatus.inc +++ b/scripts/game/beta5/planet/library/updateMilStatus.inc @@ -2,7 +2,7 @@ class beta5_planet_updateMilStatus { - function beta5_planet_updateMilStatus($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->ecm = $this->lib->game->getLib('beta5/ecm'); diff --git a/scripts/game/beta5/player/library.inc b/scripts/game/beta5/player/library.inc index 0809cb3..3212bc8 100644 --- a/scripts/game/beta5/player/library.inc +++ b/scripts/game/beta5/player/library.inc @@ -35,7 +35,7 @@ class beta5_player_library { 'transferFunds' ); - function beta5_player_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/addEnemyAlliance.inc b/scripts/game/beta5/player/library/addEnemyAlliance.inc index 17991fa..96c72d4 100644 --- a/scripts/game/beta5/player/library/addEnemyAlliance.inc +++ b/scripts/game/beta5/player/library/addEnemyAlliance.inc @@ -2,7 +2,7 @@ class beta5_player_addEnemyAlliance { - function beta5_player_addEnemyAlliance($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/checkAllies.inc b/scripts/game/beta5/player/library/checkAllies.inc index f407318..a68eb2f 100644 --- a/scripts/game/beta5/player/library/checkAllies.inc +++ b/scripts/game/beta5/player/library/checkAllies.inc @@ -2,7 +2,7 @@ class beta5_player_checkAllies { - function beta5_player_checkAllies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getAllies.inc b/scripts/game/beta5/player/library/getAllies.inc index 1c27375..e8bbb3b 100644 --- a/scripts/game/beta5/player/library/getAllies.inc +++ b/scripts/game/beta5/player/library/getAllies.inc @@ -2,7 +2,7 @@ class beta5_player_getAllies { - function beta5_player_getAllies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getDiploSummary.inc b/scripts/game/beta5/player/library/getDiploSummary.inc index 69aa2c9..4196860 100644 --- a/scripts/game/beta5/player/library/getDiploSummary.inc +++ b/scripts/game/beta5/player/library/getDiploSummary.inc @@ -2,7 +2,7 @@ class beta5_player_getDiploSummary { - function beta5_player_getDiploSummary($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getEnemies.inc b/scripts/game/beta5/player/library/getEnemies.inc index d52e310..d2eaa31 100644 --- a/scripts/game/beta5/player/library/getEnemies.inc +++ b/scripts/game/beta5/player/library/getEnemies.inc @@ -2,7 +2,7 @@ class beta5_player_getEnemies { - function beta5_player_getEnemies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getEnemyAlliances.inc b/scripts/game/beta5/player/library/getEnemyAlliances.inc index 39de2ee..5507bf8 100644 --- a/scripts/game/beta5/player/library/getEnemyAlliances.inc +++ b/scripts/game/beta5/player/library/getEnemyAlliances.inc @@ -2,7 +2,7 @@ class beta5_player_getEnemyAlliances { - function beta5_player_getEnemyAlliances($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getFleets.inc b/scripts/game/beta5/player/library/getFleets.inc index 6329b7a..2425f6b 100644 --- a/scripts/game/beta5/player/library/getFleets.inc +++ b/scripts/game/beta5/player/library/getFleets.inc @@ -2,7 +2,7 @@ class beta5_player_getFleets { - function beta5_player_getFleets($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getPlayerId.inc b/scripts/game/beta5/player/library/getPlayerId.inc index 5160e29..703dc13 100644 --- a/scripts/game/beta5/player/library/getPlayerId.inc +++ b/scripts/game/beta5/player/library/getPlayerId.inc @@ -3,7 +3,7 @@ class beta5_player_getPlayerId { var $players = array(); - function beta5_player_getPlayerId($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getRealPlanetCount.inc b/scripts/game/beta5/player/library/getRealPlanetCount.inc index 50b395a..2376e55 100644 --- a/scripts/game/beta5/player/library/getRealPlanetCount.inc +++ b/scripts/game/beta5/player/library/getRealPlanetCount.inc @@ -2,7 +2,7 @@ class beta5_player_getRealPlanetCount { - function beta5_player_getRealPlanetCount($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/getTAListBans.inc b/scripts/game/beta5/player/library/getTAListBans.inc index f8590f2..d57d283 100644 --- a/scripts/game/beta5/player/library/getTAListBans.inc +++ b/scripts/game/beta5/player/library/getTAListBans.inc @@ -2,7 +2,7 @@ class beta5_player_getTAListBans { - function beta5_player_getTAListBans($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/isAllyOf.inc b/scripts/game/beta5/player/library/isAllyOf.inc index f07e28a..8752bbb 100644 --- a/scripts/game/beta5/player/library/isAllyOf.inc +++ b/scripts/game/beta5/player/library/isAllyOf.inc @@ -2,7 +2,7 @@ class beta5_player_isAllyOf { - function beta5_player_isAllyOf($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/isOnline.inc b/scripts/game/beta5/player/library/isOnline.inc index d9a9ebd..ac2ae70 100644 --- a/scripts/game/beta5/player/library/isOnline.inc +++ b/scripts/game/beta5/player/library/isOnline.inc @@ -2,7 +2,7 @@ class beta5_player_isOnline { - function beta5_player_isOnline($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->main = $this->lib->game->getLib('main/account'); diff --git a/scripts/game/beta5/player/library/lastOnline.inc b/scripts/game/beta5/player/library/lastOnline.inc index 1a793bb..f18aa32 100644 --- a/scripts/game/beta5/player/library/lastOnline.inc +++ b/scripts/game/beta5/player/library/lastOnline.inc @@ -2,7 +2,7 @@ class beta5_player_lastOnline { - function beta5_player_lastOnline($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->main = $this->lib->game->getLib('main/account'); diff --git a/scripts/game/beta5/player/library/makeEnemies.inc b/scripts/game/beta5/player/library/makeEnemies.inc index 492fa10..548f0e4 100644 --- a/scripts/game/beta5/player/library/makeEnemies.inc +++ b/scripts/game/beta5/player/library/makeEnemies.inc @@ -2,7 +2,7 @@ class beta5_player_makeEnemies { - function beta5_player_makeEnemies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/player/library/moveAllyDown.inc b/scripts/game/beta5/player/library/moveAllyDown.inc index 890e96f..f60d3ae 100644 --- a/scripts/game/beta5/player/library/moveAllyDown.inc +++ b/scripts/game/beta5/player/library/moveAllyDown.inc @@ -2,7 +2,7 @@ class beta5_player_moveAllyDown { - function beta5_player_moveAllyDown($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/moveAllyUp.inc b/scripts/game/beta5/player/library/moveAllyUp.inc index 25a5934..02da6fd 100644 --- a/scripts/game/beta5/player/library/moveAllyUp.inc +++ b/scripts/game/beta5/player/library/moveAllyUp.inc @@ -2,7 +2,7 @@ class beta5_player_moveAllyUp { - function beta5_player_moveAllyUp($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/reassign.inc b/scripts/game/beta5/player/library/reassign.inc index b6d8102..8acce67 100644 --- a/scripts/game/beta5/player/library/reassign.inc +++ b/scripts/game/beta5/player/library/reassign.inc @@ -2,7 +2,7 @@ class beta5_player_reassign { - function beta5_player_reassign($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->fleets = $this->lib->game->getLib('beta5/fleet'); diff --git a/scripts/game/beta5/player/library/reorderAllies.inc b/scripts/game/beta5/player/library/reorderAllies.inc index d180afa..e56c751 100644 --- a/scripts/game/beta5/player/library/reorderAllies.inc +++ b/scripts/game/beta5/player/library/reorderAllies.inc @@ -2,7 +2,7 @@ class beta5_player_reorderAllies { - function beta5_player_reorderAllies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/player/library/transferFunds.inc b/scripts/game/beta5/player/library/transferFunds.inc index 3463711..0ff2d23 100644 --- a/scripts/game/beta5/player/library/transferFunds.inc +++ b/scripts/game/beta5/player/library/transferFunds.inc @@ -2,7 +2,7 @@ class beta5_player_transferFunds { - function beta5_player_transferFunds($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/rules/library/change.inc b/scripts/game/beta5/rules/library/change.inc index 3c2de83..12e2227 100644 --- a/scripts/game/beta5/rules/library/change.inc +++ b/scripts/game/beta5/rules/library/change.inc @@ -2,7 +2,7 @@ class beta5_rules_change { - function beta5_rules_change($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library.inc b/scripts/game/beta5/sale/library.inc index db558ff..ff8c323 100644 --- a/scripts/game/beta5/sale/library.inc +++ b/scripts/game/beta5/sale/library.inc @@ -16,7 +16,7 @@ class beta5_sale_library { ); - function beta5_sale_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/bid.inc b/scripts/game/beta5/sale/library/bid.inc index 6986b11..811014c 100644 --- a/scripts/game/beta5/sale/library/bid.inc +++ b/scripts/game/beta5/sale/library/bid.inc @@ -4,7 +4,7 @@ class beta5_sale_bid { var $index = array(); - function beta5_sale_bid($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/sale/library/buy.inc b/scripts/game/beta5/sale/library/buy.inc index 5b47cdf..d2ac028 100644 --- a/scripts/game/beta5/sale/library/buy.inc +++ b/scripts/game/beta5/sale/library/buy.inc @@ -4,7 +4,7 @@ class beta5_sale_buy { var $index = array(); - function beta5_sale_buy($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/sale/library/cancel.inc b/scripts/game/beta5/sale/library/cancel.inc index 3e16b3d..46049a2 100644 --- a/scripts/game/beta5/sale/library/cancel.inc +++ b/scripts/game/beta5/sale/library/cancel.inc @@ -4,7 +4,7 @@ class beta5_sale_cancel { var $index = array(); - function beta5_sale_cancel($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/cancelTransfer.inc b/scripts/game/beta5/sale/library/cancelTransfer.inc index e60b9c3..d9affd4 100644 --- a/scripts/game/beta5/sale/library/cancelTransfer.inc +++ b/scripts/game/beta5/sale/library/cancelTransfer.inc @@ -4,7 +4,7 @@ class beta5_sale_cancelTransfer { var $index = array(); - function beta5_sale_cancelTransfer($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/decline.inc b/scripts/game/beta5/sale/library/decline.inc index 6a5ab41..a0bfedb 100644 --- a/scripts/game/beta5/sale/library/decline.inc +++ b/scripts/game/beta5/sale/library/decline.inc @@ -4,7 +4,7 @@ class beta5_sale_decline { var $index = array(); - function beta5_sale_decline($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/getDirectSales.inc b/scripts/game/beta5/sale/library/getDirectSales.inc index a50fe9b..9cff57f 100644 --- a/scripts/game/beta5/sale/library/getDirectSales.inc +++ b/scripts/game/beta5/sale/library/getDirectSales.inc @@ -4,7 +4,7 @@ class beta5_sale_getDirectSales { var $index = array(); - function beta5_sale_getDirectSales($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/getFleetSale.inc b/scripts/game/beta5/sale/library/getFleetSale.inc index a5150bf..45c8c52 100644 --- a/scripts/game/beta5/sale/library/getFleetSale.inc +++ b/scripts/game/beta5/sale/library/getFleetSale.inc @@ -4,7 +4,7 @@ class beta5_sale_getFleetSale { var $index = array(); - function beta5_sale_getFleetSale($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/getPlanetSale.inc b/scripts/game/beta5/sale/library/getPlanetSale.inc index b56d3a0..0c3b38d 100644 --- a/scripts/game/beta5/sale/library/getPlanetSale.inc +++ b/scripts/game/beta5/sale/library/getPlanetSale.inc @@ -4,7 +4,7 @@ class beta5_sale_getPlanetSale { var $index = array(); - function beta5_sale_getPlanetSale($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/getPublicSales.inc b/scripts/game/beta5/sale/library/getPublicSales.inc index 0a27f28..d9f7ce7 100644 --- a/scripts/game/beta5/sale/library/getPublicSales.inc +++ b/scripts/game/beta5/sale/library/getPublicSales.inc @@ -4,7 +4,7 @@ class beta5_sale_getPublicSales { var $index = array(); - function beta5_sale_getPublicSales($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/getSentOffers.inc b/scripts/game/beta5/sale/library/getSentOffers.inc index 73ae3c7..6b12add 100644 --- a/scripts/game/beta5/sale/library/getSentOffers.inc +++ b/scripts/game/beta5/sale/library/getSentOffers.inc @@ -4,7 +4,7 @@ class beta5_sale_getSentOffers { var $index = array(); - function beta5_sale_getSentOffers($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/sale/library/sell.inc b/scripts/game/beta5/sale/library/sell.inc index 3fdf65b..c275b54 100644 --- a/scripts/game/beta5/sale/library/sell.inc +++ b/scripts/game/beta5/sale/library/sell.inc @@ -4,7 +4,7 @@ class beta5_sale_sell { var $index = array(); - function beta5_sale_sell($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/standby/library.inc b/scripts/game/beta5/standby/library.inc index e1e0d98..19ce85c 100644 --- a/scripts/game/beta5/standby/library.inc +++ b/scripts/game/beta5/standby/library.inc @@ -3,7 +3,7 @@ class beta5_standby_library { var $index = array (); - function beta5_standby_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->planets = $this->lib->game->getLib('beta5/planet'); diff --git a/scripts/game/beta5/tech/library.inc b/scripts/game/beta5/tech/library.inc index 6c6991d..8dbbe3e 100644 --- a/scripts/game/beta5/tech/library.inc +++ b/scripts/game/beta5/tech/library.inc @@ -21,7 +21,7 @@ class beta5_tech_library { ); - function beta5_tech_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->game = $this->lib->game; $this->db = $this->game->db; diff --git a/scripts/game/beta5/tech/library/acceptOffer.inc b/scripts/game/beta5/tech/library/acceptOffer.inc index 88c1d4e..b8ddb9a 100644 --- a/scripts/game/beta5/tech/library/acceptOffer.inc +++ b/scripts/game/beta5/tech/library/acceptOffer.inc @@ -2,7 +2,7 @@ class beta5_tech_acceptOffer { - function beta5_tech_acceptOffer($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/tech/library/checkDependencies.inc b/scripts/game/beta5/tech/library/checkDependencies.inc index 5d82cf7..a44a5a8 100644 --- a/scripts/game/beta5/tech/library/checkDependencies.inc +++ b/scripts/game/beta5/tech/library/checkDependencies.inc @@ -2,7 +2,7 @@ class beta5_tech_checkDependencies { - function beta5_tech_checkDependencies($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/tech/library/createTree.inc b/scripts/game/beta5/tech/library/createTree.inc index 8cec893..51e8a7d 100644 --- a/scripts/game/beta5/tech/library/createTree.inc +++ b/scripts/game/beta5/tech/library/createTree.inc @@ -2,7 +2,7 @@ class beta5_tech_createTree { - function beta5_tech_createTree($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $lib->game->db; } diff --git a/scripts/game/beta5/tech/library/declineOffer.inc b/scripts/game/beta5/tech/library/declineOffer.inc index 4bb165d..e7a6909 100644 --- a/scripts/game/beta5/tech/library/declineOffer.inc +++ b/scripts/game/beta5/tech/library/declineOffer.inc @@ -2,7 +2,7 @@ class beta5_tech_declineOffer { - function beta5_tech_declineOffer($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/tech/library/getLaws.inc b/scripts/game/beta5/tech/library/getLaws.inc index 6213c0e..6d694d9 100644 --- a/scripts/game/beta5/tech/library/getLaws.inc +++ b/scripts/game/beta5/tech/library/getLaws.inc @@ -2,7 +2,7 @@ class beta5_tech_getLaws { - function beta5_tech_getLaws($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/tech/library/getOffers.inc b/scripts/game/beta5/tech/library/getOffers.inc index bb4532f..66d068c 100644 --- a/scripts/game/beta5/tech/library/getOffers.inc +++ b/scripts/game/beta5/tech/library/getOffers.inc @@ -2,7 +2,7 @@ class beta5_tech_getOffers { - function beta5_tech_getOffers($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->players = $this->lib->game->getLib('beta5/player'); diff --git a/scripts/game/beta5/tech/library/getTopicData.inc b/scripts/game/beta5/tech/library/getTopicData.inc index 1172744..d104591 100644 --- a/scripts/game/beta5/tech/library/getTopicData.inc +++ b/scripts/game/beta5/tech/library/getTopicData.inc @@ -2,7 +2,7 @@ class beta5_tech_getTopicData { - function beta5_tech_getTopicData($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/tech/library/getTree.inc b/scripts/game/beta5/tech/library/getTree.inc index b020219..1dd3453 100644 --- a/scripts/game/beta5/tech/library/getTree.inc +++ b/scripts/game/beta5/tech/library/getTree.inc @@ -3,7 +3,7 @@ class beta5_tech_getTree { var $data = null; - function beta5_tech_getTree($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $lib->game->db; } diff --git a/scripts/game/beta5/tech/library/has.inc b/scripts/game/beta5/tech/library/has.inc index 849b77c..c9f81c5 100644 --- a/scripts/game/beta5/tech/library/has.inc +++ b/scripts/game/beta5/tech/library/has.inc @@ -2,7 +2,7 @@ class beta5_tech_has { - function beta5_tech_has($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/beta5/tech/library/implement.inc b/scripts/game/beta5/tech/library/implement.inc index a34bf18..c0d5e8a 100644 --- a/scripts/game/beta5/tech/library/implement.inc +++ b/scripts/game/beta5/tech/library/implement.inc @@ -2,7 +2,7 @@ class beta5_tech_implement { - function beta5_tech_implement($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/tech/library/makeOffer.inc b/scripts/game/beta5/tech/library/makeOffer.inc index e4fcd42..53fa4eb 100644 --- a/scripts/game/beta5/tech/library/makeOffer.inc +++ b/scripts/game/beta5/tech/library/makeOffer.inc @@ -2,7 +2,7 @@ class beta5_tech_makeOffer { - function beta5_tech_makeOffer($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->msg = $this->lib->game->getLib('beta5/msg'); diff --git a/scripts/game/beta5/tech/library/switchLaw.inc b/scripts/game/beta5/tech/library/switchLaw.inc index d399c3b..9a2bd2a 100644 --- a/scripts/game/beta5/tech/library/switchLaw.inc +++ b/scripts/game/beta5/tech/library/switchLaw.inc @@ -2,7 +2,7 @@ class beta5_tech_switchLaw { - function beta5_tech_switchLaw($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->rules = $this->lib->game->getLib('beta5/rules'); diff --git a/scripts/game/beta5/ticks/battle/library.inc b/scripts/game/beta5/ticks/battle/library.inc index c9c2f58..4e8fd64 100644 --- a/scripts/game/beta5/ticks/battle/library.inc +++ b/scripts/game/beta5/ticks/battle/library.inc @@ -6,7 +6,7 @@ class beta5_ticks_battle_library { - function beta5_ticks_battle_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $lib->game->db; $this->fleets = $lib->game->getLib('beta5/fleet'); diff --git a/scripts/game/main/account/library/getUserName.inc b/scripts/game/main/account/library/getUserName.inc index 61a8bf6..c005430 100644 --- a/scripts/game/main/account/library/getUserName.inc +++ b/scripts/game/main/account/library/getUserName.inc @@ -3,7 +3,7 @@ class main_account_getUserName { var $userNames = array(); // FIXME: can be cached - function main_account_getUserName($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/deletePost.inc b/scripts/game/main/forums/library/deletePost.inc index 55b5cad..a11400b 100644 --- a/scripts/game/main/forums/library/deletePost.inc +++ b/scripts/game/main/forums/library/deletePost.inc @@ -2,7 +2,7 @@ class main_forums_deletePost { - function main_forums_deletePost($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/deleteTopic.inc b/scripts/game/main/forums/library/deleteTopic.inc index 84f66b0..a069c8c 100644 --- a/scripts/game/main/forums/library/deleteTopic.inc +++ b/scripts/game/main/forums/library/deleteTopic.inc @@ -2,7 +2,7 @@ class main_forums_deleteTopic { - function main_forums_deleteTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/edit.inc b/scripts/game/main/forums/library/edit.inc index 32cd998..7efd475 100644 --- a/scripts/game/main/forums/library/edit.inc +++ b/scripts/game/main/forums/library/edit.inc @@ -2,7 +2,7 @@ class main_forums_edit { - function main_forums_edit($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/get.inc b/scripts/game/main/forums/library/get.inc index 90d6681..46d08fc 100644 --- a/scripts/game/main/forums/library/get.inc +++ b/scripts/game/main/forums/library/get.inc @@ -2,7 +2,7 @@ class main_forums_get { - function main_forums_get($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/getForums.inc b/scripts/game/main/forums/library/getForums.inc index 0ab602f..8ab08de 100644 --- a/scripts/game/main/forums/library/getForums.inc +++ b/scripts/game/main/forums/library/getForums.inc @@ -2,7 +2,7 @@ class main_forums_getForums { - function main_forums_getForums($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/getPost.inc b/scripts/game/main/forums/library/getPost.inc index 4986f58..84b1df1 100644 --- a/scripts/game/main/forums/library/getPost.inc +++ b/scripts/game/main/forums/library/getPost.inc @@ -2,7 +2,7 @@ class main_forums_getPost { - function main_forums_getPost($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->accounts = $this->lib->game->getLib("main/account"); diff --git a/scripts/game/main/forums/library/getPosts.inc b/scripts/game/main/forums/library/getPosts.inc index 11ebd19..122bdda 100644 --- a/scripts/game/main/forums/library/getPosts.inc +++ b/scripts/game/main/forums/library/getPosts.inc @@ -2,7 +2,7 @@ class main_forums_getPosts { - function main_forums_getPosts($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->accounts = $this->lib->game->getLib("main/account"); diff --git a/scripts/game/main/forums/library/getTopic.inc b/scripts/game/main/forums/library/getTopic.inc index bcd0748..124f53b 100644 --- a/scripts/game/main/forums/library/getTopic.inc +++ b/scripts/game/main/forums/library/getTopic.inc @@ -2,7 +2,7 @@ class main_forums_getTopic { - function main_forums_getTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/getTopics.inc b/scripts/game/main/forums/library/getTopics.inc index 91cb059..a558f83 100644 --- a/scripts/game/main/forums/library/getTopics.inc +++ b/scripts/game/main/forums/library/getTopics.inc @@ -2,7 +2,7 @@ class main_forums_getTopics { - function main_forums_getTopics($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/move.inc b/scripts/game/main/forums/library/move.inc index 5862686..dde9617 100644 --- a/scripts/game/main/forums/library/move.inc +++ b/scripts/game/main/forums/library/move.inc @@ -2,7 +2,7 @@ class main_forums_move { - function main_forums_move($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/newTopic.inc b/scripts/game/main/forums/library/newTopic.inc index 9c73dec..cfb3e82 100644 --- a/scripts/game/main/forums/library/newTopic.inc +++ b/scripts/game/main/forums/library/newTopic.inc @@ -2,7 +2,7 @@ class main_forums_newTopic { - function main_forums_newTopic($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/reply.inc b/scripts/game/main/forums/library/reply.inc index 2fbbb2f..8fb6371 100644 --- a/scripts/game/main/forums/library/reply.inc +++ b/scripts/game/main/forums/library/reply.inc @@ -2,7 +2,7 @@ class main_forums_reply { - function main_forums_reply($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/signature.inc b/scripts/game/main/forums/library/signature.inc index 3b3d1ed..fffb3c5 100644 --- a/scripts/game/main/forums/library/signature.inc +++ b/scripts/game/main/forums/library/signature.inc @@ -3,7 +3,7 @@ class main_forums_signature { var $signatures = array(); - function main_forums_signature($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/substitute.inc b/scripts/game/main/forums/library/substitute.inc index 9decc0b..267da2e 100644 --- a/scripts/game/main/forums/library/substitute.inc +++ b/scripts/game/main/forums/library/substitute.inc @@ -4,7 +4,7 @@ class main_forums_substitute { var $code = null; var $smiley = null; - function main_forums_substitute($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/forums/library/updateLast.inc b/scripts/game/main/forums/library/updateLast.inc index 07d80b2..e604f09 100644 --- a/scripts/game/main/forums/library/updateLast.inc +++ b/scripts/game/main/forums/library/updateLast.inc @@ -2,7 +2,7 @@ class main_forums_updateLast { - function main_forums_updateLast($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; } diff --git a/scripts/game/main/manual/library.inc b/scripts/game/main/manual/library.inc index 2270be4..18b89cc 100644 --- a/scripts/game/main/manual/library.inc +++ b/scripts/game/main/manual/library.inc @@ -12,7 +12,7 @@ class main_manual_library { 'updateSections' ); - function main_manual_library($lib) { + function __construct($lib) { $this->lib = $lib; $this->db = $this->lib->game->db; $this->version = $this->lib->game->version->id; diff --git a/scripts/lib/tick_manager.inc b/scripts/lib/tick_manager.inc index 10fc544..955075e 100644 --- a/scripts/lib/tick_manager.inc +++ b/scripts/lib/tick_manager.inc @@ -11,7 +11,7 @@ class tick_manager { exit(1); } - function tick_manager($debug) { + function __construct($debug) { $this->debug = $debug; if (!$this->debug) { // Forks to the background