diff --git a/header.inc.php.template b/header.inc.php.template index 53011dbb30..6e795ddfef 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -48,7 +48,7 @@ /* This is used to control mcrypt's use */ $phpgw_info["server"]["mcrypt_enabled"] = __ENABLE_MCRYPT__; /* Set this to "old" for versions < 2.4, otherwise the exact mcrypt version you use. */ - $phpgw_info["server"]["mcrypt_version"] = "__MCRYPT_VERSION__"; + $phpgw_info["server"]["versions"]["mcrypt"] = "__MCRYPT_VERSION__"; /* This is a random string used as the initilazation vector for mcrypt feel free to change it when setting up phpgroupware on a clean database, @@ -80,7 +80,7 @@ \**************************************************************************/ $phpgw_info["server"]["api_inc"] = $phpgw_info["server"]["include_root"]."/phpgwapi/inc"; include($phpgw_info["server"]["server_root"]."/version.inc.php"); - $phpgw_info["server"]["header_version"] = "1.7"; + $phpgw_info["server"]["versions"]["header"] = "1.8"; // This is a fix for NT if (!isset($phpgw_info["flags"]["noapi"]) || !$phpgw_info["flags"]["noapi"] == True){ diff --git a/index.php b/index.php index b424530595..1a6d800a2a 100755 --- a/index.php +++ b/index.php @@ -81,7 +81,7 @@ $phpgw->db->query("select app_version from applications where app_name='admin'",__LINE__,__FILE__); $phpgw->db->next_record(); - if ($phpgw_info["server"]["version"] > $phpgw->db->f("app_version")) { + if ($phpgw_info["server"]["versions"]["phpgwapi"] > $phpgw->db->f("app_version")) { echo "
" . lang("Your are running a newer version of phpGroupWare then your database is setup for")
. "
" . lang("It is recommend that you run setup to upgrade your tables to the current version")
. "";
@@ -103,7 +103,7 @@
$line_found = explode(":",chop($lines[$i]));
}
}
- if ($line_found[1] > $phpgw_info["server"]["version"]) {
+ if ($line_found[1] > $phpgw_info["server"]["versions"]["phpgwapi"]) {
echo "
There is a new version of phpGroupWare avaiable. http://www.phpgroupware.org"; } diff --git a/login.php b/login.php index 71b59c3d0e..304f0375ff 100755 --- a/login.php +++ b/login.php @@ -155,7 +155,7 @@ $tmpl->set_var("cookie",show_cookie()); $tmpl->set_var("lang_username","username"); $tmpl->set_var("lang_phpgw_login","phpGroupWare login"); - $tmpl->set_var("version",$phpgw_info["server"]["version"]); + $tmpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]); $tmpl->set_var("lang_password","password"); $tmpl->set_var("lang_login","login"); diff --git a/phpgwapi/inc/footer.inc.php b/phpgwapi/inc/footer.inc.php index 095f10d37e..c61cbaf294 100644 --- a/phpgwapi/inc/footer.inc.php +++ b/phpgwapi/inc/footer.inc.php @@ -33,7 +33,7 @@ echo "
";
echo " \n" . lang("Powered by phpGroupWare version x",
- $phpgw_info["server"]["version"]) . " | ";
if ($phpgw_info["flags"]["parent_page"])
echo "link($phpgw_info["flags"]["parent_page"])."\">".lang("up")." | "; diff --git a/phpgwapi/inc/phpgw.inc.php b/phpgwapi/inc/phpgw.inc.php index d7f04d5718..10cbacc7df 100644 --- a/phpgwapi/inc/phpgw.inc.php +++ b/phpgwapi/inc/phpgw.inc.php @@ -24,7 +24,7 @@ /**************************************************************************\ * Quick verification of updated header.inc.php * \**************************************************************************/ - if ($phpgw_info["server"]["header_version"] != $phpgw_info["server"]["current_header_version"]){ + if ($phpgw_info["server"]["versions"]["header"] != $phpgw_info["server"]["versions"]["current_header"]){ echo "You need to port your settings to the new header.inc.php version."; } diff --git a/phpgwapi/inc/phpgw_common.inc.php b/phpgwapi/inc/phpgw_common.inc.php index 8784c47cfc..3cda2f9e46 100644 --- a/phpgwapi/inc/phpgw_common.inc.php +++ b/phpgwapi/inc/phpgw_common.inc.php @@ -517,7 +517,7 @@ $tpl->set_var("td_align","left"); $tpl->set_var("td_width",""); $tpl->set_var("tr_color",$phpgw_info["theme"]["bg_color"]); - $tpl->set_var("value",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["version"])); + $tpl->set_var("value",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"])); $tpl->set_var("colspan",$colspan); $tpl->parse("navbar_columns","navbar_column"); $tpl->parse("navbar_rows","navbar_row",True); @@ -531,7 +531,7 @@ $tpl->set_var("td_align","left"); $tpl->set_var("td_width",""); $tpl->set_var("tr_color",$phpgw_info["theme"]["bg_color"]); - $tpl->set_var("value",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["version"])); + $tpl->set_var("value",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"])); $tpl->set_var("colspan",1); $tpl->parse("navbar_columns","navbar_column"); diff --git a/phpgwapi/inc/phpgw_crypto.inc.php b/phpgwapi/inc/phpgw_crypto.inc.php index 687c4561f4..aefbf7492a 100644 --- a/phpgwapi/inc/phpgw_crypto.inc.php +++ b/phpgwapi/inc/phpgw_crypto.inc.php @@ -20,7 +20,7 @@ global $phpgw, $phpgw_info; if ($phpgw_info["server"]["mcrypt_enabled"] && extension_loaded("mcrypt")) { - if ($phpgw_info["server"]["mcrypt_version"] == "old") { + if ($phpgw_info["server"]["versions"]["mcrypt"] == "old") { $this->td = false; if (PHP_VERSION > "4.0.2pl1") { $keysize = mcrypt_get_key_size(MCRYPT_TRIPLEDES); @@ -49,7 +49,7 @@ for ($i = 0; $i < $keysize; $i++) { $this->key .= $key[$i % $x]; } - if ($phpgw_info["server"]["mcrypt_version"] != "old") { + if ($phpgw_info["server"]["versions"]["mcrypt"] != "old") { mcrypt_generic_init ($this->td, $this->key, $this->iv); } } @@ -61,7 +61,7 @@ global $phpgw_info; if ($phpgw_info["server"]["mcrypt_enabled"] && extension_loaded("mcrypt")) { - if ($phpgw_info["server"]["mcrypt_version"] != "old") { + if ($phpgw_info["server"]["versions"]["mcrypt"] != "old") { mcrypt_generic_end ($this->td); } } @@ -79,7 +79,7 @@ // Disable all encryption if the admin didn't set it up if ($phpgw_info["server"]["mcrypt_enabled"] && extension_loaded("mcrypt")) { - switch ($phpgw_info["server"]["mcrypt_version"]) { + switch ($phpgw_info["server"]["versions"]["mcrypt"]) { // The old code, only works with mcrypt <= 2.2.x case "old": { $encrypteddata = mcrypt_cbc(MCRYPT_TripleDES, $this->key, $data, MCRYPT_ENCRYPT); @@ -104,7 +104,7 @@ if ($phpgw_info["server"]["mcrypt_enabled"] && extension_loaded("mcrypt")) { $data = $this->hex2bin($encrypteddata); - switch ($phpgw_info["server"]["mcrypt_version"]) { + switch ($phpgw_info["server"]["versions"]["mcrypt"]) { // The old code, only works with mcrypt <= 2.2.x case "old": { $data = mcrypt_cbc(MCRYPT_TripleDES, $this->key, $data, MCRYPT_DECRYPT); diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index a2d36180b5..ac89e5fe5d 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -18,7 +18,7 @@ if(file_exists("../version.inc.php") || is_file("../version.inc.php")) { include("../version.inc.php"); // To set the current core version }else{ - $phpgw_info["server"]["version"] = "Undetected"; + $phpgw_info["server"]["versions"]["phpgwapi"] = "Undetected"; } $phpgw_info["server"]["app_images"] = "templates/default/images"; @@ -37,7 +37,7 @@
phpGroupWare version '.$phpgw_info["server"]["version"].' setup + | phpGroupWare version '.$phpgw_info["server"]["versions"]["phpgwapi"].' setup | ';
if ($nologoutbutton) {
@@ -84,7 +84,7 @@
$header_msg = "Stage One";
}else{
include("../header.inc.php");
- if (!isset($phpgw_domain) || $phpgw_info["server"]["header_version"] != $phpgw_info["server"]["current_header_version"]) {
+ if (!isset($phpgw_domain) || $phpgw_info["server"]["versions"]["header"] != $phpgw_info["server"]["versions"]["current_header"]) {
$stage = 1.2;
$header_msg = "Stage One (Upgrade your header.inc.php)";
}else{ /* header.inc.php part settled. Moving to authentication */
@@ -170,7 +170,7 @@
$db->next_record();
$oldversion = $db->f("app_version");
if (isset($oldversion)){
- if ($oldversion == $phpgw_info["server"]["version"]){
+ if ($oldversion == $phpgw_info["server"]["versions"]["phpgwapi"]){
$db->query("select config_value from config where config_name='freshinstall'");
$db->next_record();
$configed = $db->f("config_value");
@@ -293,7 +293,7 @@
|