mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-07 05:59:10 +02:00
This commit wraps up:
-Better Navbar formatting -AJAX delete confirmation -Enhanced validation feedback on admin pages
This commit is contained in:
@ -21,7 +21,11 @@ class ControllerDomainDomain extends Controller {
|
||||
if(ENABLE_SAAS == 1) {
|
||||
$this->load->model('saas/ldap');
|
||||
$this->data['ldap'] = $this->model_saas_ldap->get();
|
||||
$ldap_id = $this->request->post['ldap_id'];
|
||||
if ( isset($this->request->post['ldap_id']) ) {
|
||||
$ldap_id = $this->request->post['ldap_id'];
|
||||
} else {
|
||||
$ldap_id = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$this->document->title = $this->data['text_domain'];
|
||||
|
@ -56,7 +56,7 @@ class ControllerDomainRemove extends Controller {
|
||||
$this->error['admin'] = $this->data['text_you_are_not_admin'];
|
||||
}
|
||||
|
||||
if(!isset($this->request->get['name']) || strlen($this->request->get['name']) < 3 || ($this->request->get['domain'] != "local" && !preg_match('/^[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,5})$/', $this->request->get['name'])) ) {
|
||||
if(!isset($this->request->get['name']) || strlen($this->request->get['name']) < 3 || ($this->request->get['name'] != "local" && !preg_match('/^[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,5})$/', $this->request->get['name'])) ) {
|
||||
$this->error['domain'] = $this->data['text_invalid_data'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user