diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-02-18 17:27:21 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-02-18 17:27:21 +0000 |
commit | 5a9a3bd79b26fb7bd84d8d6c1a5d1c64b652a0fa (patch) | |
tree | e703ea75b7575e7f1ad334cea83099e4c7c44539 /packages/lcdproc | |
parent | c4f98011ebcf3c368e49033c0a87645b340bce5f (diff) | |
download | pfsense-packages-5a9a3bd79b26fb7bd84d8d6c1a5d1c64b652a0fa.tar.gz pfsense-packages-5a9a3bd79b26fb7bd84d8d6c1a5d1c64b652a0fa.tar.bz2 pfsense-packages-5a9a3bd79b26fb7bd84d8d6c1a5d1c64b652a0fa.zip |
Set variables correctly
Diffstat (limited to 'packages/lcdproc')
-rw-r--r-- | packages/lcdproc/lcdproc_client.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/lcdproc/lcdproc_client.php b/packages/lcdproc/lcdproc_client.php index 8910b53a..f8ae20d7 100644 --- a/packages/lcdproc/lcdproc_client.php +++ b/packages/lcdproc/lcdproc_client.php @@ -30,7 +30,6 @@ // require_once("config.inc"); // require_once("functions.inc"); require_once("/usr/local/pkg/lcdproc.inc"); - $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; /* Define functions */ function send_lcd_commands($lcd, $lcd_cmds) { @@ -55,6 +54,7 @@ function loop_status($lcd) { global $g; global $config; + $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; /* keep a counter to see how many times we can loop */ $i = 1; while($i) { @@ -104,6 +104,9 @@ } function build_interface($lcd) { + global $g; + global $config; + $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; $lcd_cmds = array(); $lcd_cmds[] = "hello"; $lcd_cmds[] = "client_set name pfSense"; |