-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbasic.php
42 lines (34 loc) · 1014 Bytes
/
basic.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
41
42
<?php
/**
* Ingo basic view.
*
* Base URL Parameters:
* - page: (string) The current page view.
*
* Copyright 2013-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (ASL). If you
* did not receive this file, see http://www.horde.org/licenses/apache.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @copyright 2013-2017 Horde LLC
* @license http://www.horde.org/licenses/apache ASL
* @package Ingo
*/
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ingo', array('timezone' => true));
$vars = $injector->getInstance('Horde_Variables');
$class = 'Ingo_Basic_' . Horde_String::ucfirst($vars->page);
if (!class_exists($class)) {
throw new Ingo_Exception('Page not found: ' . $vars->page);
}
$ob = new $class($vars);
$status = $ob->status();
$page_output->header(array(
'title' => $ob->title,
'view' => $registry::VIEW_BASIC
));
echo $status;
$ob->render();
$page_output->footer();