mirror of https://github.com/Mowie/Mowie
Delete all App-installer after installation
This commit is contained in:
parent
0b02e07d99
commit
d838144b50
|
@ -3,6 +3,7 @@ require_once '../inc/autoload_adm.php';
|
|||
|
||||
printHeader($lang->get('dashboard_title'));
|
||||
|
||||
//Delete installation files
|
||||
if (file_exists('install.php'))
|
||||
{
|
||||
if (unlink('install.php'))
|
||||
|
@ -11,6 +12,22 @@ if (file_exists('install.php'))
|
|||
}
|
||||
}
|
||||
|
||||
$installedApps = $apps->getApps();
|
||||
foreach ($installedApps as $appuri => $installedApp)
|
||||
{
|
||||
if(array_key_exists('install', $installedApp))
|
||||
{
|
||||
$appInstaller = '../apps/' . $appuri . '/' . $installedApp['install'];
|
||||
if (file_exists($appInstaller))
|
||||
{
|
||||
if (unlink($appInstaller))
|
||||
{
|
||||
echo msg('info', $lang->get('delete_config_success'. $installedApp['app_name']));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (hasPerm('view_dashboard'))
|
||||
{
|
||||
echo '<div class="cardsContainer cardsContainer-main"><div class="card-yellow" title="' . php_uname() . '"><span>' . substr(php_uname(), 0, strpos(php_uname(), ' ')) . '</span>' . $lang->get('os') . '</div>';
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
if(isset($_POST['log_folder']))
|
||||
{
|
||||
$CONFIG['General']['log_uri'] = $_POST['log_folder'];
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<h2>Logfiles</h2>
|
||||
<span>Log-Folder</span>
|
||||
<input type="text" name="log_folder"/>
|
||||
<?php
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
require_once 'libs/lang.class.php';
|
||||
$lang = new lang();
|
||||
|
||||
require_once 'apps.php';
|
||||
$apps = new apps(2);
|
||||
|
||||
//print_r($apps->getApps());
|
||||
|
||||
var_dump($apps->appExists('SsadasimplePages'));
|
Loading…
Reference in New Issue