1 <?php
2 if ($remove_lock) {
3 if (session::is_set('dfsManagment')) {
4 $dfsManagment = session::get('dfsManagment');
5 $dfsManagment->remove_lock();
6 del_lock($ui->dn);
7 sess_del('dfsManagment');
8 }
9 } else {
10 # create dfsManagment object
11 if (!session::is_set('dfsManagment') ||
12 (isset($_GET['reset']) && $_GET['reset'] == 1)) {
13 session::set('dfsManagment',new dfsManagment($config, $ui));
14 }
15 $dfsManagment = session::get('dfsManagment');
16 $output = $dfsManagment->execute();
18 # do we have to reset
19 if (isset($_GET['reset']) && $_GET['reset'] == 1) {
20 del_lock ($ui->dn);
21 sess_del('dfsManagment');
22 }
24 # create page header
25 if (session::is_set('objectinfo')) {
26 $display = print_header(get_template_path('images/dfs.png'),
27 _("Distributed File System Administration"),
28 "<img alt=\"\" class=\"center\" src=\"".
29 get_template_path('images/closedlock.png').
30 "\"> ".session::get('objectinfo'));
31 } else {
32 $display = print_header(get_template_path('images/dfs.png'),
33 _("Distributed File System Administration"));
34 }
36 $display.= $output;
38 # show page
39 session::set('dfsManagment',$dfsManagment);
40 }
42 ?>