return $path . ((substr($path, -1) == '/') ? '' : '/');
}
-function jirafeau_fatal_error($errorText)
-{
- echo '<div class="error"><h2>Error</h2><p>' . $errorText . '</p></div>';
- require(JIRAFEAU_ROOT . 'lib/template/footer.php');
- exit;
-}
-
/**
* Check installation
**/
break;
case 2:
- $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+ if (strlen($_POST['admin_password'])) {
+ $cfg['admin_password'] = hash('sha256', $_POST['admin_password']);
+ } else {
+ $cfg['admin_password'] = '';
+ }
jirafeau_export_cfg($cfg);
break;