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 "\n"; echo " "; if ($phpgw_info["flags"]["parent_page"]) echo ""; 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 @@
"; echo "

\n" . lang("Powered by phpGroupWare version x", - $phpgw_info["server"]["version"]) . "
\n"; + $phpgw_info["server"]["versions"]["phpgwapi"]) . "
\n"; echo "

link($phpgw_info["flags"]["parent_page"])."\">".lang("up")."
-
 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 @@
 phpGroupWare version setup + echo $phpgw_info["server"]["versions"]["phpgwapi"]; ?> setup O'; echo "You appear to be running version $oldversion of phpGroupWare.
\n"; - echo "We will automaticly update your tables/records to ".$phpgw_info["server"]["version"].", but we highly recommend backing up your tables in case the script causes damage to your data.\n"; + echo "We will automaticly update your tables/records to ".$phpgw_info["server"]["versions"]["phpgwapi"].", but we highly recommend backing up your tables in case the script causes damage to your data.\n"; echo "These automated scripts can easily destroy your data. Please backup before going any further!\n"; echo "
\n"; echo "\n"; diff --git a/setup/sql/mysql_upgrade_beta.inc.php b/setup/sql/mysql_upgrade_beta.inc.php index 850e856450..13f000b0ba 100644 --- a/setup/sql/mysql_upgrade_beta.inc.php +++ b/setup/sql/mysql_upgrade_beta.inc.php @@ -43,7 +43,7 @@ $db->query("update preferences set preference_name='ko' where preference_name='kr'"); //install weather support - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')"); $currentver = "0.9.2"; } @@ -136,7 +136,7 @@ function upgrade0_9_3pre6(){ global $currentver, $oldversion, $phpgw_info, $db; $db->query("alter table addressbook add ab_url varchar(255)"); - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $currentver = "0.9.3pre7"; } @@ -324,7 +324,7 @@ PRIMARY KEY (note_id) )"; $db->query($sql); - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('notes', 'Notes', 1, 14, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('notes', 'Notes', 1, 14, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $currentver = "0.9.4pre2"; } diff --git a/setup/sql/pgsql_upgrade_beta.inc.php b/setup/sql/pgsql_upgrade_beta.inc.php index 5255f5d3f6..2a5095f56c 100644 --- a/setup/sql/pgsql_upgrade_beta.inc.php +++ b/setup/sql/pgsql_upgrade_beta.inc.php @@ -43,7 +43,7 @@ $db->query("update preferences set preference_name='ko' where preference_name='kr'"); //add weather support - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('weather', 'Weather', 1, 12, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $db->query("INSERT INTO lang (message_id, app_name, lang, content) VALUES( 'weather','Weather','en','weather')"); $currentver = "0.9.2"; } @@ -139,7 +139,7 @@ function upgrade0_9_3pre6(){ global $currentver, $oldversion, $phpgw_info, $db; $db->query("alter table addressbook add ab_url varchar(255)"); - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('transy', 'Translation Management', 0, 13, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $currentver = "0.9.3pre7"; } @@ -326,7 +326,7 @@ note_content text )"; $db->query($sql); - $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('notes', 'Notes', 1, 13, NULL, '".$phpgw_info["server"]["version"]."')"); + $db->query("insert into applications (app_name, app_title, app_enabled, app_order, app_tables, app_version) values ('notes', 'Notes', 1, 13, NULL, '".$phpgw_info["server"]["versions"]["phpgwapi"]."')"); $currentver = "0.9.4pre2"; } diff --git a/version.inc.php b/version.inc.php index 441c40e146..a1d5a5e650 100644 --- a/version.inc.php +++ b/version.inc.php @@ -11,5 +11,5 @@ /* $Id$ */ - $phpgw_info["server"]["version"] = "0.9.8pre5"; - $phpgw_info["server"]["current_header_version"] = "1.7"; + $phpgw_info["server"]["versions"]["phpgwapi"] = "0.9.8pre5"; + $phpgw_info["server"]["versions"]["current_header"] = "1.8";