diff options
Diffstat (limited to 'p')
| -rw-r--r-- | p/i/install.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p/i/install.php b/p/i/install.php index e953cf699..0cd952fef 100644 --- a/p/i/install.php +++ b/p/i/install.php @@ -178,6 +178,12 @@ function saveStep2 () { @unlink($configPath); //To avoid access-rights problems file_put_contents($configPath, "<?php\n return " . var_export($config_array, true) . ';'); + if ($_SESSION['mail_login'] != '') { + $personaFile = DATA_PATH . '/persona/' . $_SESSION['mail_login'] . '.txt'; + @unlink($personaFile); + file_put_contents($personaFile, $_SESSION['default_user']); + } + header ('Location: index.php?step=3'); } } |
