Skip to content

Commit

Permalink
Changed project structure
Browse files Browse the repository at this point in the history
Moved a few things around and configured unit testing
  • Loading branch information
LucasKovacs committed Aug 16, 2017
1 parent ccef0d5 commit b957aa8
Show file tree
Hide file tree
Showing 1,261 changed files with 65 additions and 52 deletions.
File renamed without changes.
7 changes: 7 additions & 0 deletions src/xgp3.0.0/CHANGELOG.txt → src/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
'3.1.0' =>
CORE
[#000] Reworked project structure.-

TEST
[#000] Created testing structure to implement Unit Testing.-

'3.0.4' =>
CORE
[#115] Error while inserting default values in some linux versions [By MahmutHizal].-
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
###########################################################################
// GAME FILES VERSION
define('SYSTEM_VERSION', '3.0.4');
define('SYSTEM_VERSION', '3.1.0');

// HOOKS
define('HOOKS_ENABLED', false);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,11 @@

// Require some stuff
require_once XGP_ROOT . 'application/config/constants.php';
require_once XGP_ROOT . CORE_PATH . 'Database.php';
require_once XGP_ROOT . CORE_PATH . 'XGPCore.php';
require_once XGP_ROOT . CORE_PATH . 'Options.php';
require_once XGP_ROOT . CORE_PATH . 'Xml.php';
require_once XGP_ROOT . LIB_PATH . 'Messenger.php';
require_once XGP_ROOT . LIB_PATH . 'FormatLib.php';
require_once XGP_ROOT . LIB_PATH . 'OfficiersLib.php';
require_once XGP_ROOT . LIB_PATH . 'ProductionLib.php';
require_once XGP_ROOT . LIB_PATH . 'FleetsLib.php';
require_once XGP_ROOT . LIB_PATH . 'DevelopmentsLib.php';
require_once XGP_ROOT . LIB_PATH . 'FunctionsLib.php';
require_once XGP_ROOT . CORE_PATH . 'AutoLoader.php';

// Auto load a few things
AutoLoader::registerDirectory(XGP_ROOT . CORE_PATH);
AutoLoader::registerDirectory(XGP_ROOT . LIB_PATH);

// some values by default
$lang = array();
Expand All @@ -65,12 +59,6 @@

// when we are not in the install section
if (!defined('IN_INSTALL')) {

require_once XGP_ROOT . CORE_PATH . 'Sessions.php';
require_once XGP_ROOT . CORE_PATH . 'Hooks.php';
require_once XGP_ROOT . LIB_PATH . 'StatisticsLib.php';
require_once XGP_ROOT . LIB_PATH . 'UpdateResourcesLib.php';
require_once XGP_ROOT . LIB_PATH . 'UpdateLib.php';

// set time zone
date_default_timezone_set(FunctionsLib::readConfig('date_time_zone'));
Expand Down Expand Up @@ -101,7 +89,6 @@

if (!defined('IN_LOGIN') or 'IN_LOGIN' != true) {

require_once XGP_ROOT . LIB_PATH . 'SecurePageLib.php';
$exclude = array('editor');

if (!in_array($current_page, $exclude)) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b957aa8

Please sign in to comment.