aboutsummaryrefslogtreecommitdiffstats
path: root/config/lcdproc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-06-15 17:13:22 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-06-15 17:13:22 -0400
commitb4328e066b26a179432eb8f8bb3f2627ea735d4e (patch)
tree8a90dc18ff6386c3dad7c62f771ac433c416f141 /config/lcdproc
parent8aabf022b6b303d9b11ce2e029f238da9c5f303d (diff)
downloadpfsense-packages-b4328e066b26a179432eb8f8bb3f2627ea735d4e.tar.gz
pfsense-packages-b4328e066b26a179432eb8f8bb3f2627ea735d4e.tar.bz2
pfsense-packages-b4328e066b26a179432eb8f8bb3f2627ea735d4e.zip
Back out & for LCDd, it does detach
Diffstat (limited to 'config/lcdproc')
-rw-r--r--config/lcdproc/lcdproc.inc2
-rw-r--r--config/lcdproc/lcdproc_client.php10
2 files changed, 8 insertions, 4 deletions
diff --git a/config/lcdproc/lcdproc.inc b/config/lcdproc/lcdproc.inc
index d248261f..3ae96f31 100644
--- a/config/lcdproc/lcdproc.inc
+++ b/config/lcdproc/lcdproc.inc
@@ -319,7 +319,7 @@ fi
EOD;
$start = $stop ."\n";
- $start .= "\t/usr/local/sbin/LCDd -c ". LCDPROC_CONFIG ." &\n";
+ $start .= "\t/usr/local/sbin/LCDd -c ". LCDPROC_CONFIG ."\n";
$start .= "\t". LCDPROC_CLIENT ." &\n";
/* write out the configuration */
diff --git a/config/lcdproc/lcdproc_client.php b/config/lcdproc/lcdproc_client.php
index b39f6e01..df41befe 100644
--- a/config/lcdproc/lcdproc_client.php
+++ b/config/lcdproc/lcdproc_client.php
@@ -26,9 +26,13 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-
- // require_once("config.inc");
- // require_once("functions.inc");
+
+ /* trick interface into running this. we are only
+ * calling from useland so this is not a security issue
+ */
+ $HTTP_SERVER_VARS['PHP_AUTH_USER'] = "root";
+ $HTTP_SERVER_VARS['AUTH_USER'] = "root";
+ require_once("config.inc");
require_once("/usr/local/pkg/lcdproc.inc");
require_once("/usr/local/www/includes/functions.inc.php");