mirror of https://github.com/Mowie/Mowie
Updated Installer
This commit is contained in:
parent
63b01dd4e5
commit
713b3dda18
Before Width: | Height: | Size: 434 KiB After Width: | Height: | Size: 434 KiB |
|
@ -4,9 +4,9 @@ require_once '../inc/autoload_adm.php';
|
|||
printHeader($lang->get('dashboard_title'));
|
||||
|
||||
//Delete installation files
|
||||
if (file_exists('install.php'))
|
||||
if (file_exists('install-dev.php'))
|
||||
{
|
||||
if (unlink('install.php'))
|
||||
if (unlink('install-dev.php'))
|
||||
{
|
||||
echo msg('info', $lang->get('delete_config_success'));
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ $lang->setLangFolder('lang/');
|
|||
</script>
|
||||
</head>
|
||||
<body style="background: url('assets/bglogin.jpg') no-repeat center fixed;">
|
||||
<img src="http://server/SelfCMS/Version2/admin/assets/Logo.svg" alt="Mowie" class="install-logo"/>
|
||||
<img src="assets/Logo.svg" alt="Mowie" class="install-logo"/>
|
||||
<h1 style="text-align: center; color: #E8E8E8;">Installation</h1>
|
||||
<?php
|
||||
if (isset($_POST['submit']))
|
||||
|
@ -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.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
|
||||
value="http://<?php echo $_SERVER['SERVER_NAME'] . str_replace('admin/install-dev.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
|
||||
<span> </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.php', '', $_SERVER['REQUEST_URI']); ?>"/><br/>
|
||||
value="<?php echo str_replace('admin/install-dev.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"
|
||||
|
|
|
@ -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.php';
|
||||
$_CONF['install'] = 'install-dev.php';
|
||||
|
||||
$confirmationRequierd = false;
|
||||
$iniFile = 'confirm.ini';
|
||||
|
|
|
@ -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.php';
|
||||
$_CONF['install'] = 'install-dev.php';
|
||||
?>
|
|
@ -7,5 +7,5 @@ $_CONF['menu_top'] = '';
|
|||
$_CONF['base_file'] = 'meta.php';
|
||||
$_CONF['type'] = 'static';
|
||||
$_CONF['general_conf'] = 'genConf.php';
|
||||
$_CONF['install'] = 'install.php';
|
||||
$_CONF['install'] = 'install-dev.php';
|
||||
?>
|
|
@ -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.php';
|
||||
$_CONF['install'] = 'install-dev.php';
|
Loading…
Reference in New Issue