-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdatabase.php
More file actions
55 lines (41 loc) · 1.15 KB
/
database.php
File metadata and controls
55 lines (41 loc) · 1.15 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
* Manage schemas within a database
*/
// Include application functions
include_once('./libraries/lib.inc.php');
function doTree() {
global $misc, $data, $lang;
$reqvars = $misc->getRequestVars('database');
$tabs = $misc->getNavTabs('database');
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
field('urlvars', array())
),
'branch' => ifempty(field('branch'), '',
url(field('url'),
$reqvars,
field('urlvars'),
array('action' => 'tree')
)),
);
$misc->printTree($items, $attrs, 'database');
exit;
}
/********************************************************************************************************
* Main piece of code
*******************************************************************************************************/
/* shortcuts: these functions exit the script */
if ($action == 'tree') doTree();
$misc->printHtmlHeader($lang['strdatabase']);
$misc->printBody();
switch ($action) {
default:
break;
}
$misc->printFooter();
?>