secure included webinterface-modules; add settings-functions to Froxlor-ApiCommand

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-22 21:05:58 +01:00
parent dfb5d33a56
commit d9ec214e17
5 changed files with 112 additions and 29 deletions

View File

@@ -1,6 +1,8 @@
<?php
if (! defined('AREA'))
die('You cannot access this file directly!');
if (! defined('AREA')) {
header("Location: index.php");
exit;
}
/**
* This file is part of the Froxlor project.
@@ -18,7 +20,7 @@ if (! defined('AREA'))
*/
// This file is being included in admin_domains and customer_domains
// and therefore does not need to require lib/init.php
// and therefore does not need to require lib/init.php
$domain_id = isset($_GET['domain_id']) ? (int) $_GET['domain_id'] : null;