From 1b24bacdda6f2458df2a799839deff2db237a32a Mon Sep 17 00:00:00 2001 From: Larry Adams Date: Fri, 16 May 2008 10:51:32 +0000 Subject: [PATCH] Preparing for Cacti 0.8.7c git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@4582 860744bd-22fc-0310-8c96-e9fe5004b5ca --- include/global_arrays.php | 9 +++++---- install/0_8_7b_to_0_8_7c.php | 29 +++++++++++++++++++++++++++++ install/index.php | 5 ++++- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 install/0_8_7b_to_0_8_7c.php diff --git a/include/global_arrays.php b/include/global_arrays.php index 1017c5debd..376269d890 100644 --- a/include/global_arrays.php +++ b/include/global_arrays.php @@ -68,8 +68,7 @@ $messages = array( 21 => array( "message" => 'User delete not permitted for designated template or guest user.', "type" => "error") - - ); + ); $cdef_operators = array(1 => "+", @@ -257,7 +256,8 @@ $snmp_implimentations = array( $rrdtool_versions = array( "rrd-1.0.x" => "RRDTool 1.0.x", - "rrd-1.2.x" => "RRDTool 1.2.x"); + "rrd-1.2.x" => "RRDTool 1.2.x", + "rrd-1.3.x" => "RRDTool 1.3.x"); $cdef_item_types = array( 1 => "Function", @@ -479,7 +479,8 @@ $hash_version_codes = array( "0.8.6j" => "0013", "0.8.7" => "0014", "0.8.7a" => "0015", - "0.8.7b" => "0016" + "0.8.7b" => "0016", + "0.8.7c" => "0017" ); $hash_type_names = array( diff --git a/install/0_8_7b_to_0_8_7c.php b/install/0_8_7b_to_0_8_7c.php new file mode 100644 index 0000000000..741de760ed --- /dev/null +++ b/install/0_8_7b_to_0_8_7c.php @@ -0,0 +1,29 @@ + diff --git a/install/index.php b/install/index.php index 2e26f2a040..cba7d90d06 100644 --- a/install/index.php +++ b/install/index.php @@ -27,7 +27,7 @@ include("../include/global.php"); /* allow the upgrade script to run for as long as it needs to */ ini_set("max_execution_time", "0"); -$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.6k", "0.8.7", "0.8.7a", "0.8.7b"); +$cacti_versions = array("0.8", "0.8.1", "0.8.2", "0.8.2a", "0.8.3", "0.8.3a", "0.8.4", "0.8.5", "0.8.5a", "0.8.6", "0.8.6a", "0.8.6b", "0.8.6c", "0.8.6d", "0.8.6e", "0.8.6f", "0.8.6g", "0.8.6h", "0.8.6i", "0.8.6j", "0.8.6k", "0.8.7", "0.8.7a", "0.8.7b", "0.8.7c"); $old_cacti_version = db_fetch_cell("select cacti from version"); @@ -398,6 +398,9 @@ if ($_REQUEST["step"] == "4") { }elseif ($cacti_versions[$i] == "0.8.7b") { include ("0_8_7a_to_0_8_7b.php"); upgrade_to_0_8_7b(); + }elseif ($cacti_versions[$i] == "0.8.7c") { + include ("0_8_7b_to_0_8_7c.php"); + upgrade_to_0_8_7c(); } } }