fixed readme
modified pdf.inc corrected unix expiredate & shell
This commit is contained in:
parent
8b17f04ba4
commit
a6c6ccf124
|
@ -29,7 +29,7 @@ thins to get it work.
|
||||||
Therefore you should disable logging so the password doesn't
|
Therefore you should disable logging so the password doesn't
|
||||||
apear in any logfile
|
apear in any logfile
|
||||||
This can be done by adding the following line:
|
This can be done by adding the following line:
|
||||||
Defaults:$admin !syslog logfile=/dev/null
|
Defaults:$admin !syslog
|
||||||
|
|
||||||
4. Set up perl
|
4. Set up perl
|
||||||
We need some external perl-modules, Quota and Net::LDAP
|
We need some external perl-modules, Quota and Net::LDAP
|
||||||
|
|
|
@ -82,16 +82,8 @@ function createUserPDF($accounts) {
|
||||||
$pdfFile->Cell(50,5,_("Login Shell(s)") . ":",0,0,"R",0);
|
$pdfFile->Cell(50,5,_("Login Shell(s)") . ":",0,0,"R",0);
|
||||||
$text = "";
|
$text = "";
|
||||||
$shells = $account->general_shell;
|
$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->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->Ln(9);
|
||||||
$pdfFile->setFont("arial","B",12);
|
$pdfFile->setFont("arial","B",12);
|
||||||
// Print Unix settings
|
// Print Unix settings
|
||||||
|
@ -116,7 +108,7 @@ function createUserPDF($accounts) {
|
||||||
$pdfFile->setFont("times","",10);
|
$pdfFile->setFont("times","",10);
|
||||||
$pdfFile->Cell(50,5,_("Password expire") . ":",0,0,"R",0);
|
$pdfFile->Cell(50,5,_("Password expire") . ":",0,0,"R",0);
|
||||||
$pdfFile->setFont("times","B",10);
|
$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->setFont("times","",10);
|
||||||
$pdfFile->Cell(50,5,_("Login at host(s)") . ":",0,0,"R",0);
|
$pdfFile->Cell(50,5,_("Login at host(s)") . ":",0,0,"R",0);
|
||||||
$pdfFile->setFont("times","B",10);
|
$pdfFile->setFont("times","B",10);
|
||||||
|
|
Loading…
Reference in New Issue