diff options
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"); |