let admin.php without parameters redirect to index.php, and document restrict_setup_to_admin setting (fixes #55)

This commit is contained in:
Florian Schlichting committed 2016-01-01 21:55:32 +01:00
1 parent 1821d65f1b
commit bf733fca8e
2 files changed
+11

No files matched your search

+4
View File
@@ -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 ) {