fixed readme

modified pdf.inc
  corrected unix expiredate & shell
This commit is contained in:
katagia 2003-08-29 11:21:02 +00:00
parent 8b17f04ba4
commit a6c6ccf124
2 changed files with 3 additions and 11 deletions

View File

@ -29,7 +29,7 @@ thins to get it work.
Therefore you should disable logging so the password doesn't
apear in any logfile
This can be done by adding the following line:
Defaults:$admin !syslog logfile=/dev/null
Defaults:$admin !syslog
4. Set up perl
We need some external perl-modules, Quota and Net::LDAP

View File

@ -82,16 +82,8 @@ function createUserPDF($accounts) {
$pdfFile->Cell(50,5,_("Login Shell(s)") . ":",0,0,"R",0);
$text = "";
$shells = $account->general_shell;
for($j=0;$j<count($shells);$j++) {
if($j == 0 || count($shells) == 1) {
$text = $shells[$j];
}
else {
$text .= ", " . $shells[$j];
}
}
$pdfFile->setFont("times","B",10);
$pdfFile->Cell(50,5,$text,0,1,"L",0);
$pdfFile->Cell(50,5,$account->general_shell,0,1,"L",0);
$pdfFile->Ln(9);
$pdfFile->setFont("arial","B",12);
// Print Unix settings
@ -116,7 +108,7 @@ function createUserPDF($accounts) {
$pdfFile->setFont("times","",10);
$pdfFile->Cell(50,5,_("Password expire") . ":",0,0,"R",0);
$pdfFile->setFont("times","B",10);
$pdfFile->Cell(50,5,$account->unix_pwdexpire,0,1,"L",0);
$pdfFile->Cell(50,5,date('j. F Y' ,$account->unix_pwdexpire),0,1,"L",0);
$pdfFile->setFont("times","",10);
$pdfFile->Cell(50,5,_("Login at host(s)") . ":",0,0,"R",0);
$pdfFile->setFont("times","B",10);