diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-09-25 21:29:46 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-09-25 21:38:14 -0300 |
commit | 79522144ea76fd62af6ee17246913eef88be30b7 (patch) | |
tree | 656f74c6c341f4e958fd0b3baf286fb5af4d8e45 /config/freeradius2/freeradius_view_config.php | |
parent | f9bf8da315e4a2464748137220403e2dd7037534 (diff) | |
download | pfsense-packages-79522144ea76fd62af6ee17246913eef88be30b7.tar.gz pfsense-packages-79522144ea76fd62af6ee17246913eef88be30b7.tar.bz2 pfsense-packages-79522144ea76fd62af6ee17246913eef88be30b7.zip |
Update freeradius2 to 1.6.8:
- Remove old 2.0 code
- Make adjustments for 2.2
- Use internal bash
Diffstat (limited to 'config/freeradius2/freeradius_view_config.php')
-rw-r--r-- | config/freeradius2/freeradius_view_config.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/config/freeradius2/freeradius_view_config.php b/config/freeradius2/freeradius_view_config.php index bfabd7fa..b2959783 100644 --- a/config/freeradius2/freeradius_view_config.php +++ b/config/freeradius2/freeradius_view_config.php @@ -33,10 +33,10 @@ require("guiconfig.inc"); // Check to find out on which system the package is running -if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.0") { - define('RADDB', '/usr/local/etc/raddb'); -} else { +if (substr(trim(file_get_contents("/etc/version")),0,3) == "2.1") { define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/etc/raddb'); +} else { + define('RADDB', '/usr/pbi/freeradius-' . php_uname("m") . '/local/etc/raddb'); } // End of system check @@ -67,10 +67,6 @@ if ($_REQUEST['file']!=""){ get_file($_REQUEST['file']); } else{ - $pf_version=substr(trim(file_get_contents("/etc/version")),0,3); - if ($pf_version < 2.0) - $one_two = true; - $pgtitle = "FreeRADIUS: View Configuration"; include("head.inc"); @@ -78,10 +74,6 @@ else{ <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> - <?php if($one_two): ?> - <p class="pgtitle"><?=$pgtitle?></font></p> - <?php endif; ?> - <?php if ($savemsg) print_info_box($savemsg); ?> <form action="freeradius_view_config.php" method="post"> |