diff options
Diffstat (limited to 'code/admin/add.php')
-rw-r--r-- | code/admin/add.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/code/admin/add.php b/code/admin/add.php index c839e0a..0869dd5 100644 --- a/code/admin/add.php +++ b/code/admin/add.php @@ -9,7 +9,11 @@ // Localization Init l10n_init($site_conf['site_admin_lang']); - $kind=sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */ + // URL parameter parsing + $kind = sanitize($_GET, 'kind', '/[^a-z_]+/', 'page'); /* Could be : page, media */ + + // Pre-computed because used twice + $page_title = _('Admin') . ' - ' . ( ($kind=='media')?_('Add a media'):_('Add a page') ); ?> <!DOCTYPE html> <html> @@ -18,9 +22,10 @@ <link rel="stylesheet" href="treeview.css"> <link rel="stylesheet" href="admin.css"> <script type="text/javascript" src="admin.js"></script> -<title><?=($kind=='media')?_('Add media'):_('Add page')?></title> +<title><?=$page_title?></title> </head> <body> +<h1><?=$page_title?></h1> <form> <fieldset> @@ -50,6 +55,8 @@ <input id="fold_add_item" type="button" value="<?=_('Add page')?>" onclick="go_add('<?=$kind?>','item');"> </fieldset> +<input id="fold_back_admin" type="button" value="<?=_('Back to admin')?>" onclick="go_admin_page();"> + </form> </body> </html> |