diff --git a/lam/help/help.inc b/lam/help/help.inc
index 74793ba6..ae0a98b5 100644
--- a/lam/help/help.inc
+++ b/lam/help/help.inc
@@ -106,6 +106,8 @@ $helpArray = array (
"Text" => _("This is the time in minutes which LAM caches its LDAP searches. Shorter times will stress LDAP more but decrease the possibility that changes are not identified.")),
"215" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard") . " - " . _("Password hash type"),
"Text" => _("LAM supports CRYPT, SHA, SSHA, MD5 and SMD5 to generate the hash value of an user password. SSHA and CRYPT are the most common but CRYPT does not support passwords greater than 8 letters. We do not recommend to use plain text passwords.")),
+ "216" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard") . " - " . _("Text for user PDF"),
+ "Text" => _("This text will appear on top of every user PDF file.")),
"230" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Add profile"),
"Text" => _("Please enter the name of the new profile and the password to change its settings. Profile names may contain letters, numbers and -/_.")),
"231" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Rename profile"),
diff --git a/lam/lib/config.inc b/lam/lib/config.inc
index d73307cc..7f692c0e 100644
--- a/lam/lib/config.inc
+++ b/lam/lib/config.inc
@@ -291,7 +291,8 @@ class Config {
echo "" . _("Default language") . ": " . $this->defaultLanguage . "
";
echo "" . _("Path to external script") . ": " . $this->scriptPath . "
";
echo "" . _("Server of external script") . ": " . $this->scriptServer . "
";
- echo "" . _("List of valid users") . ": " . $this->Admins;
+ echo "" . _("List of valid users") . ": " . $this->Admins . "
";
+ echo "" . _("Text for user PDF") . ": " . $this->get_pdftext();
}
// functions to read/write preferences
@@ -676,14 +677,11 @@ class Config {
function set_pdftext($value) {
if (is_string($value)) {
$pdffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/pdf/" . $this->file . ".txt";
- if (is_file($pdffile)) {
- $file = @fopen($pdffile, "w");
- if ($file) {
- @fputs($file, $value);
- fclose($file);
- $this->pdftext = $value;
- }
- else return false;
+ $file = @fopen($pdffile, "w");
+ if ($file) {
+ @fputs($file, $value);
+ fclose($file);
+ $this->pdftext = $value;
}
else return false;
$this->pdftext = $value;
diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php
index d78d6bc5..27d6e126 100644
--- a/lam/templates/config/conflogin.php
+++ b/lam/templates/config/conflogin.php
@@ -62,8 +62,6 @@ echo $_SESSION['header'];
?>
-
-