updated to new PDF code
This commit is contained in:
parent
9f40467028
commit
ec1c064e96
|
@ -92,13 +92,12 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pd
|
||||||
$list = array();
|
$list = array();
|
||||||
// load users from LDAP
|
// load users from LDAP
|
||||||
for ($i = 0; $i < sizeof($users); $i++) {
|
for ($i = 0; $i < sizeof($users); $i++) {
|
||||||
$list[$i] = loaduser($users[$i]);
|
$_SESSION["accountPDF-$i"] = new accountContainer("user", "accountPDF-$i");
|
||||||
$list[$i]->unix_password = "";
|
$_SESSION["accountPDF-$i"]->load_account($users[$i]);
|
||||||
$list[$i]->smb_password = "";
|
$list[$i] = $_SESSION["accountPDF-$i"];
|
||||||
}
|
}
|
||||||
if (sizeof($list) > 0) {
|
if (sizeof($list) > 0) {
|
||||||
if ($_SESSION['config']->get_scriptServer()) $list = getquotas($list);
|
createModulePDF($list, "user");
|
||||||
createUserPDF($list);
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,13 +105,12 @@ if ($_POST['new_user'] || $_POST['del_user'] || $_POST['pdf_user'] || $_POST['pd
|
||||||
elseif ($_POST['pdf_all']){
|
elseif ($_POST['pdf_all']){
|
||||||
$list = array();
|
$list = array();
|
||||||
for ($i = 0; $i < sizeof($_SESSION['userlist']); $i++) {
|
for ($i = 0; $i < sizeof($_SESSION['userlist']); $i++) {
|
||||||
$list[$i] = loaduser($_SESSION['userlist'][$i]['dn']);
|
$_SESSION["accountPDF-$i"] = new accountContainer("user", "accountPDF-$i");
|
||||||
$list[$i]->unix_password = "";
|
$_SESSION["accountPDF-$i"]->load_account($_SESSION['usr_info'][$i]['dn']);
|
||||||
$list[$i]->smb_password = "";
|
$list[$i] = $_SESSION["accountPDF-$i"];
|
||||||
}
|
}
|
||||||
if (sizeof($list) > 0) {
|
if (sizeof($list) > 0) {
|
||||||
if ($_SESSION['config']->get_scriptServer()) $list = getquotas($list);
|
createModulePDF($list, "user");
|
||||||
createUserPDF($list);
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue