mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 17:37:02 +02:00
major rewrite of the web interface
This commit is contained in:
@ -18,6 +18,7 @@ class ControllerLoginLogin extends Controller {
|
||||
$this->load->model('user/auth');
|
||||
$this->load->model('user/user');
|
||||
$this->load->model('user/prefs');
|
||||
$this->load->model('folder/folder');
|
||||
|
||||
$this->document->title = $this->data['text_login'];
|
||||
|
||||
@ -29,6 +30,11 @@ class ControllerLoginLogin extends Controller {
|
||||
|
||||
LOGGER('logged in');
|
||||
|
||||
if(isAdminUser() == 1) {
|
||||
header("Location: " . SITE_URL . "index.php?route=health/health");
|
||||
exit;
|
||||
}
|
||||
|
||||
if(isset($_POST['relocation']) && $_POST['relocation']) {
|
||||
header("Location: " . SITE_URL . $_POST['relocation']);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user