From 553a3a50af90137128e46494fba293720a05257a Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 13 Oct 2009 18:56:14 +0000 Subject: [PATCH] - DOC: Update manager_links.php so that it'll compare by numerical values instead of using string based comparison. doc/ manager_links.php svn path=/trunk/boinc/; revision=19298 --- checkin_notes | 7 +++++++ doc/manager_links.php | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/checkin_notes b/checkin_notes index 3dcf63877d..86104207f7 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8600,3 +8600,10 @@ Rom 13 Oct 2009 lib/ win_util.cpp, .h + +Rom 13 Oct 2009 + - DOC: Update manager_links.php so that it'll compare by numerical + values instead of using string based comparison. + + doc/ + manager_links.php diff --git a/doc/manager_links.php b/doc/manager_links.php index 1cdae6bb8b..4f57808aea 100644 --- a/doc/manager_links.php +++ b/doc/manager_links.php @@ -23,17 +23,17 @@ if (isset($_GET['target'])) $target = $_GET['target']; if (isset($_GET['version'])) $version = $_GET['version']; if (isset($_GET['controlid'])) $control_id = $_GET['controlid']; -if (($target == "advanced") && ($version >= "5.10")) { - if ($control_id == "6024") { - header('Location: http://boinc.berkeley.edu'); - } else if ($control_id == "6025") { - header('Location: http://boinc.berkeley.edu/wiki/Advanced_view'); - } else if ($control_id == "6035") { - header('Location: http://boinc.berkeley.edu/help.php'); - } else { - header('Location: http://boinc.berkeley.edu/wiki/Advanced_view'); - } -} else if (($target == "simple") && ($version >= "6.2")) { +if (($target == "advanced") && version_compare($version, "5.10.0", ">=")) { + if ($control_id == "6024") { + header('Location: http://boinc.berkeley.edu'); + } else if ($control_id == "6025") { + header('Location: http://boinc.berkeley.edu/wiki/Advanced_view'); + } else if ($control_id == "6035") { + header('Location: http://boinc.berkeley.edu/help.php'); + } else { + header('Location: http://boinc.berkeley.edu/wiki/Advanced_view'); + } +} else if (($target == "simple") && version_compare($version, "6.2.0", ">=")) { if ($control_id == "6024") { header('Location: http://boinc.berkeley.edu'); } else if ($control_id == "6025") {