-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsummary.php
40 lines (34 loc) · 1.21 KB
/
summary.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* The Hylax script to show a summary view.
*
* See the enclosed file LICENSE for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/
require_once __DIR__ . '/lib/Application.php';
$hylax = Horde_Registry::appInit('hylax');
$fmt_inbox = array();
$inbox = $hylax->gateway->getFolder('inbox');
foreach ($inbox as $item) {
$fmt_inbox[] = array('owner' => $item[2]);
}
$fmt_outbox = array();
$outbox = $hylax->gateway->getFolder('outbox');
foreach ($outbox as $item) {
$fmt_outbox[] = array(//'time' => $item
'owner' => $item[2],
);
}
/* Set up actions. */
$template = $injector->createInstance('Horde_Template');
$template->set('in_faxes', $hylax->gateway->numFaxesIn());
$template->set('out_faxes', $hylax->gateway->numFaxesOut());
$template->set('inbox', $fmt_inbox, true);
$template->set('outbox', $fmt_outbox, true);
$template->set('menu', Hylax::getMenu('string'));
Horde::startBuffer();
$notification->notify(array('listeners' => 'status'));
$template->set('notify', Horde::endBuffer());
$page_output->header();
echo $template->fetch(HYLAX_TEMPLATES . '/summary/summary.html');
$page_output->footer();