aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup/autoconfigbackup_stats.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-04-10 16:16:59 -0400
committerjim-p <jimp@pfsense.org>2014-04-10 16:16:59 -0400
commit8869c3d78abf2bf7e72fe079ed457c28f3f8edab (patch)
tree067036e6dc5992586f8b23d599fef5867874215f /config/autoconfigbackup/autoconfigbackup_stats.php
parentc7d09f6ad822f1e93ea2d626ec0b33cda922e700 (diff)
downloadpfsense-packages-8869c3d78abf2bf7e72fe079ed457c28f3f8edab.tar.gz
pfsense-packages-8869c3d78abf2bf7e72fe079ed457c28f3f8edab.tar.bz2
pfsense-packages-8869c3d78abf2bf7e72fe079ed457c28f3f8edab.zip
Fix version test in ACB. Bump version of ACB.
Diffstat (limited to 'config/autoconfigbackup/autoconfigbackup_stats.php')
-rw-r--r--config/autoconfigbackup/autoconfigbackup_stats.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup_stats.php b/config/autoconfigbackup/autoconfigbackup_stats.php
index b45d3993..b991e3d3 100644
--- a/config/autoconfigbackup/autoconfigbackup_stats.php
+++ b/config/autoconfigbackup/autoconfigbackup_stats.php
@@ -31,8 +31,8 @@ require("globals.inc");
require("guiconfig.inc");
require("/usr/local/pkg/autoconfigbackup.inc");
-$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-if(strstr($pfSversion, "1.2"))
+$pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
+if ($pf_version < 2.0)
require("crypt_acb.php");
// Seperator used during client / server communications
@@ -97,7 +97,7 @@ include("head.inc");
<div id='maincontent'>
<?php
include("fbegin.inc");
- if(strstr($pfSversion, "1.2"))
+ if ($pf_version < 2.0)
echo "<p class=\"pgtitle\">{$pgtitle}</p>";
if($savemsg) {
print_info_box($savemsg);