diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/lcdproc/lcdproc.inc | 2 | ||||
-rw-r--r-- | config/lcdproc/lcdproc_client.php | 10 |
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"); |