corrected some last bugs

This commit is contained in:
duergner 2004-05-28 09:43:17 +00:00
parent 789e3ea7ff
commit cb5c71b23a
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<settings type="pdf">
<pdf type="User">
<pdf type="user">
<text name="User" />
<section name="Personal User Infos">
<entry name="title" />
@ -37,7 +37,7 @@
<entry name="User quotas" />
</section>
</pdf>
<pdf type="Group">
<pdf type="group">
<section name="_name">
<entry name="description" />
<entry name="Display name" />
@ -47,7 +47,7 @@
<entry name="Members" />
</section>
</pdf>
<pdf type="Host">
<pdf type="host">
<section name="_name">
<entry name="description" />
<entry name="UID" />

View File

@ -174,7 +174,11 @@ function createModulePDF($accounts,$account_type="") {
function getStructure($account_type = array("user","group","host")) {
$parser = new xmlParser();
$xml = $parser->parse($_SESSION['lam_path'] . '/config/pdf-structure.xml');
$xml = $parser->parse($_SESSION['lampath'] . '/config/pdf-structure.xml');
// Don't know why this is needed but without the array pointer seems to
// be at the last element and therefor the while loop fails.
reset($account_type);
$border = array();
$structure = array();
while(($current = current($account_type)) != null) {