From 9ff6f56a3b13fbf71464c95b8a228bc390ece29c Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 8 Nov 2003 10:33:12 +0000 Subject: [PATCH] added PDF text for users --- lam/lib/config.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lam/lib/config.inc b/lam/lib/config.inc index 0fd38f2a..a22a702b 100644 --- a/lam/lib/config.inc +++ b/lam/lib/config.inc @@ -137,6 +137,9 @@ class Config { // password hash algorithm var $pwdhash; + // text to include in user PDF files + var $pdftext; + // name of configuration file var $file; @@ -182,6 +185,14 @@ class Config { else { StatusMessage("ERROR", "", _("Unable to load configuration!") . " (" . $conffile . ")"); } + // load user PDF text + $pdffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/pdf/" . $this->file . ".txt"; + if (is_file($pdffile) == True) { + $pdfstring = @file($pdffile); + $pdfstring = @implode("", $pdfstring); + if ($pdfstring) $this->pdftext = $pdfstring; + else $this->pdftext = ""; + } } // saves preferences to config file