update templates introduce request helper

This commit is contained in:
envoyr
2022-02-20 18:00:44 +01:00
parent e0540ceb7c
commit e057314795
41 changed files with 41521 additions and 275 deletions

View File

@@ -21,13 +21,14 @@ if (! defined('AREA')) {
*/
use Froxlor\Database\Database;
use Froxlor\UI\Request;
// This file is being included in admin_index and customer_index
// and therefore does not need to require lib/init.php
$del_stmt = Database::prepare("DELETE FROM `" . TABLE_API_KEYS . "` WHERE id = :id");
$success_message = "";
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
$id = (int) Request::get('id');
$area = AREA;
// do the delete and then just show a success-message and the apikeys list again