Fixed Removing of install-dev files

This commit is contained in:
kolaente 2017-04-29 22:39:26 +02:00 committed by konrad
parent d7f27d6e38
commit 0d63ceb822
8 changed files with 11 additions and 11 deletions

View File

@ -4,9 +4,9 @@ require_once '../inc/autoload_adm.php';
printHeader($lang->get('dashboard_title'));
//Delete installation files
if (file_exists('install-dev.php'))
if (file_exists('install.php'))
{
if (unlink('install-dev.php'))
if (unlink('install.php'))
{
echo msg('info', $lang->get('delete_config_success'));
}

View File

@ -288,11 +288,11 @@ RewriteRule ^(.*)$ /index.php?$1 [QSA,L]
<h2>Website</h2>
<span>Page Title</span><input type="text" placeholder="Page Title" name="general_page_title"/><br/>
<span>Website Url</span><input type="text" placeholder="Website Url" name="general_webUrl"
value="http://<?php echo $_SERVER['SERVER_NAME'] . str_replace('admin/install-dev.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
value="http://<?php echo $_SERVER['SERVER_NAME'] . str_replace('admin/install.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
<span>&nbsp;</span><a onclick="fadeInput('more');" style="display: block;">More Options</a><br/>
<div id="more" style="display: none;">
<span>Home Url</span><input type="text" placeholder="Home Url" name="general_home_url"
value="<?php echo str_replace('admin/install-dev.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
value="<?php echo str_replace('admin/install.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
<span>Phpmyadmin Url (optional)</span><input type="text" placeholder="Phpmyadmin Url" name="general_pma"/><br/>
<span>Editor CSS (optional)</span><input type="text" placeholder="Editor CSS" name="general_editor_css"/><br/>
<span>Template</span><input type="text" placeholder="Template" name="general_template"

View File

@ -1,2 +1,2 @@
confirmationRequierd = true
confirmationUser = 1
confirmationRequierd = false
confirmationUser = 0

View File

@ -21,7 +21,7 @@ $_CONF['menu'] = ['<i class="fa fa-th-list"></i> '.$GLOBALS['lang']->get('sp_ma
'<i class="fa fa-file"></i> '.$GLOBALS['lang']->get('sp_create_new') => 'backend/edit.php?new']; //Ein Array mit menüpunkten im adminbereich
$_CONF['dashboard'] = 'backend/dashboard.php';
$_CONF['type'] = 'page';
$_CONF['install'] = 'install-dev.php';
$_CONF['install'] = 'install.php';
$confirmationRequierd = false;
$iniFile = 'confirm.ini';

View File

@ -13,5 +13,5 @@ $_CONF['menu_top'] = '<i class="fa fa-server"></i> '.$GLOBALS['lang']->get('log
$_CONF['menu'] = ['menu_top' => 'index.php']; //Ein Array mit menüpunkten im Backoffice
//$_CONF['dashboard'] = 'dashboard.php'; //Optional, eine Datei, welche im admindashboard angezeigt wird
$_CONF['type'] = 'static';
$_CONF['install'] = 'install-dev.php';
$_CONF['install'] = 'install.php';
?>

View File

@ -7,5 +7,5 @@ $_CONF['menu_top'] = '';
$_CONF['base_file'] = 'meta.php';
$_CONF['type'] = 'static';
$_CONF['general_conf'] = 'genConf.php';
$_CONF['install'] = 'install-dev.php';
$_CONF['install'] = 'install.php';
?>

View File

@ -6,4 +6,4 @@ $_CONF['app_version'] = 'v0.9 Beta';
$_CONF['base_file'] = 'sidebar.php';
$_CONF['type'] = 'static';
$_CONF['general_conf'] = 'genConf.php';
$_CONF['install'] = 'install-dev.php';
$_CONF['install'] = 'install.php';

View File

@ -108,5 +108,5 @@ if (file_exists('inc/config.yml'))
}
} else
{
header('Location: admin/install-dev.php');
header('Location: admin/install.php');
}