refactoring
This commit is contained in:
parent
2db6bf23eb
commit
9b4261ca36
|
@ -103,13 +103,11 @@ printHeaderContents(_("Import and export configuration"), '../..');
|
||||||
}
|
}
|
||||||
|
|
||||||
// check login
|
// check login
|
||||||
if (isset($_POST['submitLogin'])) {
|
if (isset($_POST['submitLogin']) && !checkLogin($cfg)) {
|
||||||
if (!checkLogin($cfg)) {
|
exit();
|
||||||
exit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
displayImportExport($cfg);
|
displayImportExport();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows the login dialog for the configuration master password.
|
* Shows the login dialog for the configuration master password.
|
||||||
|
@ -167,10 +165,8 @@ printHeaderContents(_("Import and export configuration"), '../..');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the import/export functions.
|
* Displays the import/export functions.
|
||||||
*
|
|
||||||
* @param LAMCfgMain $cfg main config
|
|
||||||
*/
|
*/
|
||||||
function displayImportExport($cfg) {
|
function displayImportExport() {
|
||||||
$tabindex = 0;
|
$tabindex = 0;
|
||||||
$content = new htmlResponsiveRow();
|
$content = new htmlResponsiveRow();
|
||||||
|
|
||||||
|
@ -190,7 +186,6 @@ printHeaderContents(_("Import and export configuration"), '../..');
|
||||||
* @param htmlResponsiveRow $content content where to add import part
|
* @param htmlResponsiveRow $content content where to add import part
|
||||||
*/
|
*/
|
||||||
function renderImportPart($content) {
|
function renderImportPart($content) {
|
||||||
$fileContent = null;
|
|
||||||
$validUpload = false;
|
$validUpload = false;
|
||||||
$importSteps = array();
|
$importSteps = array();
|
||||||
if (isset($_POST['importConfig'])) {
|
if (isset($_POST['importConfig'])) {
|
||||||
|
|
Loading…
Reference in New Issue