mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
changed the gui to use twitter's bootstrap
This commit is contained in:
@ -8,18 +8,13 @@ class ControllerCommonMenu extends Controller {
|
||||
$this->id = "menu";
|
||||
$this->template = "common/menu.tpl";
|
||||
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
$this->data['admin_user'] = Registry::get('admin_user');
|
||||
$this->data['auditor_user'] = Registry::get('auditor_user');
|
||||
$this->data['readonly_admin'] = Registry::get('readonly_admin');
|
||||
|
||||
if($this->data['admin_user'] == 1) { $this->template = "common/menu-admin.tpl"; }
|
||||
|
||||
$this->render();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -20,16 +20,19 @@ class ControllerPolicyRetention extends Controller {
|
||||
$this->document->title = $this->data['text_retention_rules'];
|
||||
|
||||
$this->data['rules'] = array();
|
||||
$this->data['error'] = '';
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
$lang = Registry::get('language');
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
if($this->validate() == true) {
|
||||
$rc = $this->model_policy_retention->add_new_rule($this->request->post);
|
||||
} else {
|
||||
$this->data['error'] = $lang->data['text_invalid_data'];
|
||||
$this->data['error'] = $lang->data['text_missing_data'];
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user