Versions information moved to separate file.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 23 Jul 2010 13:06:04 +0000 (13:06 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 23 Jul 2010 13:06:04 +0000 (13:06 +0000)
config.default.php
includes/session.inc
version.php [new file with mode: 0644]

index 87f99c82f21eedf5e8543d57dd82f57eed1dfbd3..e7a1eaee621e274e422b5a1dd314ec5006662864 100644 (file)
@@ -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"));
 
index 4a92fe238f80656ff65ee56a498aa12dfed98ada..54de6a15f44d613cb326ef02b9a53d8aff81dd18 100644 (file)
@@ -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 (file)
index 0000000..73ae4b3
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+//==========================================================================================
+//
+// Settings in this file can be automatically updated at any time during software update.
+//
+
+// Internal data-source version compatibility check. Do not change.
+$core_version = "2.3rc";
+
+// application version - can be set also in config.php
+if (!isset($version))
+       $version                = "2.3RC1";
+
+//======================================================================
+// Extension packages repository settings 
+//
+// Default authorization data. Can be set also in config.php
+
+if (!isset($repo_auth))
+       $repo_auth = array(
+                'login' => '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=';