aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-16 22:53:28 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-16 22:53:28 -0400
commit892ce6ea19f3317c07698ee1a361c6f6cd6f602a (patch)
treee3b0cd7153f8c4c8946f16ebb62178c6ab009781
parent1b6a6c677fa47b2f976df46fd758ccd27275eba2 (diff)
downloadpfsense-packages-892ce6ea19f3317c07698ee1a361c6f6cd6f602a.tar.gz
pfsense-packages-892ce6ea19f3317c07698ee1a361c6f6cd6f602a.tar.bz2
pfsense-packages-892ce6ea19f3317c07698ee1a361c6f6cd6f602a.zip
Add [0]
-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);