aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/anyterm/access_anyterm.php6
-rw-r--r--config/anyterm/anyterm.inc8
2 files changed, 7 insertions, 7 deletions
diff --git a/config/anyterm/access_anyterm.php b/config/anyterm/access_anyterm.php
index bcbaa102..663e5c27 100644
--- a/config/anyterm/access_anyterm.php
+++ b/config/anyterm/access_anyterm.php
@@ -29,11 +29,11 @@
require("guiconfig.inc");
-if($config['installedpackages']['anyterm']['config']['stunnelport']) {
- $port = $config['installedpackages']['anyterm']['config']['port'];
+if($config['installedpackages']['anyterm']['config'][0]['stunnelport']) {
+ $port = $config['installedpackages']['anyterm']['config'][0]['port'];
$httpors = "http";
} else {
- $port = $config['installedpackages']['anyterm']['config']['stunnelport'];
+ $port = $config['installedpackages']['anyterm']['config'][0]['stunnelport'];
$httpors = "https";
}
diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc
index 52cac183..ad292a0c 100644
--- a/config/anyterm/anyterm.inc
+++ b/config/anyterm/anyterm.inc
@@ -45,8 +45,8 @@ function anyterm_install() {
`fetch -q -o /usr/local/sbin/ http://www.pfsense.org/packages/config/anyterm/binaries{$freebsdv}/anytermd`;
exec("chmod a+rx /usr/local/sbin/anyterm");
- if($config['installedpackages']['anyterm']['config']['username'])
- $port = " --port {$config['installedpackages']['anyterm']['config']['port']}";
+ if($config['installedpackages']['anyterm']['config'][0]['username'])
+ $port = " --port {$config['installedpackages']['anyterm']['config'][0]['port']}";
// This will bring up the pfSense style menu
$anytermd_command = "anytermd --user root --command \"/usr/libexec/getty Pc\" --auth trivial $port";
@@ -97,8 +97,8 @@ EOD;
// Write out Anyterm configuration file (username and password for auth)
$fd = fopen("/var/etc/anyterm.conf", "w");
- fwrite($fd, $config['installedpackages']['anyterm']['config']['username'] . "\n");
- fwrite($fd, $config['installedpackages']['anyterm']['config']['password'] . "\n");
+ fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['username'] . "\n");
+ fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['password'] . "\n");
fclose($fd);
exec("chmod a-r /var/etc/anyterm.conf ; chmod ug+r /var/etc/anyterm.conf ; killall anytermd");
exec($anytermd_command);