mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
let admin.php without parameters redirect to index.php, and document restrict_setup_to_admin setting (fixes #55)
This commit is contained in:
1 parent
1821d65f1b
commit
bf733fca8e
2 files changed
+11
No files matched your search
@@ -10,6 +10,10 @@ require_once('AwlQuery.php');
|
||||
param_to_global('action', '{(edit|browse)}', 'action');
|
||||
param_to_global('component', '{[a-z0-9-_]+}', 't');
|
||||
param_to_global('id', '{[a-z0-9-_]+}', 'id');
|
||||
if ( ! $action || ! $component ) {
|
||||
header('Location: index.php');
|
||||
@ob_flush(); exit(0);
|
||||
}
|
||||
|
||||
$c->stylesheets[] = 'css/'.$action.'.css';
|
||||
if ( $c->enable_row_linking ) {
|
||||
|
||||
Reference in new issue
Block a user