mirror of
https://github.com/JRGTH/xigmanas-bastille-extension.git
synced 2025-12-11 01:10:57 +01:00
Set target jail path on advanced config editor by default
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.41......Set target jail path on advanced config editor by default.
|
||||||
1.0.40......Cleanup, remove obsolete file
|
1.0.40......Cleanup, remove obsolete file
|
||||||
1.0.39......Update config, remove unused variable.
|
1.0.39......Update config, remove unused variable.
|
||||||
1.0.38......Always pre-configure bastille.conf on new installs.
|
1.0.38......Always pre-configure bastille.conf on new installs.
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ require_once 'auth.inc';
|
|||||||
require_once 'guiconfig.inc';
|
require_once 'guiconfig.inc';
|
||||||
require_once("bastille_manager-lib.inc");
|
require_once("bastille_manager-lib.inc");
|
||||||
|
|
||||||
$savetopath = "{$rootfolder}/jails/";
|
$item = $_SESSION['item'];
|
||||||
|
$savetopath = "{$rootfolder}/jails/{$item}";
|
||||||
if (isset($_POST['savetopath'])) {
|
if (isset($_POST['savetopath'])) {
|
||||||
$savetopath = htmlspecialchars($_POST['savetopath']);
|
$savetopath = htmlspecialchars($_POST['savetopath']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ if($_POST):
|
|||||||
$container['jailname'] = $_POST['jailname'];
|
$container['jailname'] = $_POST['jailname'];
|
||||||
$confirm_name = $pconfig['confirmname'];
|
$confirm_name = $pconfig['confirmname'];
|
||||||
$item = $container['jailname'];
|
$item = $container['jailname'];
|
||||||
|
$_SESSION['item'] = $item;
|
||||||
if ($_POST['advanced']):
|
if ($_POST['advanced']):
|
||||||
header('Location: bastille_manager_editor.php');
|
header('Location: bastille_manager_editor.php');
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Reference in New Issue
Block a user