diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-06-15 17:13:22 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com> | 2009-06-15 17:13:22 -0400 |
commit | b4328e066b26a179432eb8f8bb3f2627ea735d4e (patch) | |
tree | 8a90dc18ff6386c3dad7c62f771ac433c416f141 /config/lcdproc/lcdproc_client.php | |
parent | 8aabf022b6b303d9b11ce2e029f238da9c5f303d (diff) | |
download | pfsense-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/lcdproc_client.php')
-rw-r--r-- | config/lcdproc/lcdproc_client.php | 10 |
1 files changed, 7 insertions, 3 deletions
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"); |