corrected some last bugs
This commit is contained in:
parent
789e3ea7ff
commit
cb5c71b23a
|
@ -1,5 +1,5 @@
|
||||||
<settings type="pdf">
|
<settings type="pdf">
|
||||||
<pdf type="User">
|
<pdf type="user">
|
||||||
<text name="User" />
|
<text name="User" />
|
||||||
<section name="Personal User Infos">
|
<section name="Personal User Infos">
|
||||||
<entry name="title" />
|
<entry name="title" />
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<entry name="User quotas" />
|
<entry name="User quotas" />
|
||||||
</section>
|
</section>
|
||||||
</pdf>
|
</pdf>
|
||||||
<pdf type="Group">
|
<pdf type="group">
|
||||||
<section name="_name">
|
<section name="_name">
|
||||||
<entry name="description" />
|
<entry name="description" />
|
||||||
<entry name="Display name" />
|
<entry name="Display name" />
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<entry name="Members" />
|
<entry name="Members" />
|
||||||
</section>
|
</section>
|
||||||
</pdf>
|
</pdf>
|
||||||
<pdf type="Host">
|
<pdf type="host">
|
||||||
<section name="_name">
|
<section name="_name">
|
||||||
<entry name="description" />
|
<entry name="description" />
|
||||||
<entry name="UID" />
|
<entry name="UID" />
|
||||||
|
|
|
@ -174,7 +174,11 @@ function createModulePDF($accounts,$account_type="") {
|
||||||
|
|
||||||
function getStructure($account_type = array("user","group","host")) {
|
function getStructure($account_type = array("user","group","host")) {
|
||||||
$parser = new xmlParser();
|
$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();
|
$border = array();
|
||||||
$structure = array();
|
$structure = array();
|
||||||
while(($current = current($account_type)) != null) {
|
while(($current = current($account_type)) != null) {
|
||||||
|
|
Loading…
Reference in New Issue