Updated Installer

This commit is contained in:
kolaente 2017-04-29 19:25:18 +02:00 committed by konrad
parent 63b01dd4e5
commit 713b3dda18
46 changed files with 10 additions and 10 deletions

0
admin/assets/bootstrap.min.css vendored Normal file → Executable file
View File

0
admin/assets/font-awesome.css vendored Normal file → Executable file
View File

0
admin/assets/fonts/font-awesome/FontAwesome.otf Normal file → Executable file
View File

View File

View File

Before

Width:  |  Height:  |  Size: 434 KiB

After

Width:  |  Height:  |  Size: 434 KiB

View File

View File

View File

0
admin/assets/js/bootstrap.min.js vendored Normal file → Executable file
View File

0
admin/assets/js/moment.js Normal file → Executable file
View File

0
admin/assets/js/page.bodyparser.js Normal file → Executable file
View File

0
admin/assets/js/page.js Normal file → Executable file
View File

View File

@ -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'));
}

6
admin/install-dev.php Normal file → Executable file
View File

@ -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>&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.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"

0
admin/lang.php Normal file → Executable file
View File

0
admin/reset-pw.php Normal file → Executable file
View File

0
admin/stream.php Normal file → Executable file
View File

0
admin/update.php Normal file → Executable file
View File

0
apps/Files/css/files.css Normal file → Executable file
View File

0
apps/Navigation/action.php Normal file → Executable file
View File

0
apps/Navigation/config.php Normal file → Executable file
View File

0
apps/Navigation/css/nav.css Normal file → Executable file
View File

0
apps/Navigation/index.php Normal file → Executable file
View File

0
apps/Navigation/js/jquery-ui.js vendored Normal file → Executable file
View File

0
apps/Navigation/js/nav.js Normal file → Executable file
View File

0
apps/Navigation/lang/lang.de.php Normal file → Executable file
View File

0
apps/Navigation/lang/lang.en.php Normal file → Executable file
View File

0
apps/Navigation/nav.php Normal file → Executable file
View File

0
apps/Navigation/permissions.json Normal file → Executable file
View File

0
apps/SimplePages/backend/confirmConfig.php Normal file → Executable file
View File

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.php';
$_CONF['install'] = 'install-dev.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.php';
$_CONF['install'] = 'install-dev.php';
?>

0
apps/logfiles/install-dev.php Normal file → Executable file
View File

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.php';
$_CONF['install'] = 'install-dev.php';
?>

0
apps/meta/install-dev.php Normal file → Executable file
View File

0
apps/meta/lang/lang.de.php Normal file → Executable file
View File

0
apps/meta/lang/lang.en.php Normal file → Executable file
View File

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.php';
$_CONF['install'] = 'install-dev.php';

0
apps/sidebar/install-dev.php Normal file → Executable file
View File

0
apps/sidebar/lang/lang.de.php Normal file → Executable file
View File

0
apps/sidebar/lang/lang.en.php Normal file → Executable file
View File

0
inc/apps.php Normal file → Executable file
View File

0
inc/libs/PHP-mailer/class.phpmailer.php Normal file → Executable file
View File

0
inc/libs/PHP-mailer/class.smtp.php Normal file → Executable file
View File

0
inc/libs/Parsedown.php Normal file → Executable file
View File

View File

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