From d12d331db1f5e4c6c17e8a44a1bda3f762ff1298 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 23 Jul 2010 13:06:04 +0000 Subject: [PATCH] Versions information moved to separate file. --- config.default.php | 15 --------------- includes/session.inc | 1 + version.php | 30 ++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 15 deletions(-) create mode 100644 version.php diff --git a/config.default.php b/config.default.php index 87f99c82..e7a1eaee 100644 --- a/config.default.php +++ b/config.default.php @@ -56,22 +56,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ } // Main Title $app_title = "FrontAccounting"; - // application version - $version = "2.3 Beta"; - // src-data compatibility check. Do not change. - $core_version = "2.3"; - // Extension packages repository - $FA_repo_version = '2.3'; - - $repo_auth = array( - 'login' => 'anonymous', - 'pass' => 'password', - ); - - $repository = 'http://'.$repo_auth['login'].':'.$repo_auth['pass'].'@'.'repo.frontaccounting.eu' - .'/index.php?path='; - // Build for development purposes $build_version = date("d.m.Y", filemtime("$path_to_root/CHANGELOG.txt")); diff --git a/includes/session.inc b/includes/session.inc index 4a92fe23..54de6a15 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -201,6 +201,7 @@ if (file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.in include_once($path_to_root . "/includes/access_levels.inc"); include_once($path_to_root . "/config.php"); +include_once($path_to_root . "/version.php"); include_once($path_to_root . "/includes/main.inc"); // Ajax communication object diff --git a/version.php b/version.php new file mode 100644 index 00000000..73ae4b36 --- /dev/null +++ b/version.php @@ -0,0 +1,30 @@ + 'anonymous', + 'pass' => 'password', +); + +// Repository branch for current sources version +$FA_repo_version = '2.3'; + +// Extension packages repository url +$repository = 'http://'.$repo_auth['login'].':'.$repo_auth['pass'].'@'.'repo.frontaccounting.eu' + .'/index.php?path='; -- 2.30.2