2016-08-02 21:13:25 +00:00
|
|
|
<?php
|
|
|
|
require_once '../inc/autoload_adm.php';
|
|
|
|
|
|
|
|
printHeader($lang->get('dashboard_title'));
|
|
|
|
|
2016-10-28 10:08:00 +00:00
|
|
|
//Delete installation files
|
2017-04-29 20:39:26 +00:00
|
|
|
if (file_exists('install.php'))
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2017-04-29 20:39:26 +00:00
|
|
|
if (unlink('install.php'))
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2016-08-04 15:22:50 +00:00
|
|
|
echo msg('info', $lang->get('delete_config_success'));
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-28 10:08:00 +00:00
|
|
|
$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']));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-02 21:13:25 +00:00
|
|
|
if (hasPerm('view_dashboard'))
|
|
|
|
{
|
2016-10-20 15:04:34 +00:00
|
|
|
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>';
|
|
|
|
echo '<div class="card-green" title="' . $_SERVER['SERVER_SOFTWARE'] . '"><span>' . $_SERVER['SERVER_SOFTWARE'] . '</span>' . $lang->get('server_software') . '</div>';
|
|
|
|
echo '<div class="card-indigo" title="' . PHP_VERSION . '"><span>' . str_replace(substr(PHP_VERSION, strpos(PHP_VERSION, '-')), '', PHP_VERSION) . '</span>' . $lang->get('php_version') . '</div>';
|
|
|
|
echo '<div class="card-orange" title="' . $db->version() . '"><span>' . str_replace(substr($db->version(), strpos($db->version(), '-')), '', $db->version()) . '</span>' . $lang->get('mysql_version') . '</div></div><div class="cardsContainer cardsContainer-main">';
|
|
|
|
echo '<div class="card-purple"><span>' . date('H:i:s') . '</span>' . $lang->get('system_time') . '</div>';
|
2016-08-02 21:13:25 +00:00
|
|
|
?>
|
2016-08-07 16:22:22 +00:00
|
|
|
<a href="general_config.php" class="card-blue"><span><i class="fa fa-cog"></i></span><br/>
|
2016-10-20 15:04:34 +00:00
|
|
|
<?php echo $lang->get('general_config'); ?></a>
|
|
|
|
<a href=".<?php echo $GLOBALS['MCONF']['home_uri']; ?>apps/logfiles/index.php" class="card-lime"><span><i
|
|
|
|
class="fa fa-list"></i></span><br/><?php echo $lang->get('logfiles'); ?></a>
|
2016-08-02 21:13:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="cardsContainer cardsContainer-main">
|
2016-10-20 15:04:34 +00:00
|
|
|
<a href="<?php echo $GLOBALS['MCONF']['home_uri']; ?>apps/SimplePages/backend/management.php"
|
|
|
|
class="card-red"><span><i class="fa fa-list"></i></span><br/><?php echo $lang->get('manage_pages'); ?></a>
|
|
|
|
<a href="<?php echo $GLOBALS['MCONF']['home_uri']; ?>apps/SimplePages/backend/permissions.php"
|
|
|
|
class="card-pink"><span><i class="fa fa-lock"></i></span><br/><?php echo $lang->get('manage_contents'); ?>
|
|
|
|
</a>
|
2016-08-07 16:22:22 +00:00
|
|
|
<a href="<?php echo $GLOBALS['MCONF']['home_uri']; ?>apps/Files/index.php" class="card-amber"><span>
|
2016-10-20 15:04:34 +00:00
|
|
|
<i class="fa fa-file"></i></span><br/><?php echo $lang->get('manage_files'); ?></a>
|
2016-08-02 21:13:25 +00:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
2016-09-21 12:52:08 +00:00
|
|
|
echo '<div class="main container">';
|
2016-08-02 21:13:25 +00:00
|
|
|
//Find Dashboard files
|
2016-10-20 15:04:34 +00:00
|
|
|
|
|
|
|
$apps = new apps();
|
|
|
|
$appUri = '../apps/';
|
|
|
|
foreach ($apps->getApps() as $app => $appconf)
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2016-10-20 15:04:34 +00:00
|
|
|
|
|
|
|
require $appUri . $app . '/config.php';
|
|
|
|
if (isset($_CONF['dashboard']) && $_CONF['dashboard'] != '')
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2016-10-20 15:04:34 +00:00
|
|
|
if (file_exists($appUri . $app . '/' . $_CONF['dashboard']))
|
2016-08-02 21:13:25 +00:00
|
|
|
{
|
2016-10-20 15:04:34 +00:00
|
|
|
echo '<div class="box">';
|
|
|
|
require $appUri . $app . '/' . $_CONF['dashboard'];
|
|
|
|
echo '</div>';
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|
|
|
|
}
|
2016-10-20 15:04:34 +00:00
|
|
|
$_CONF['dashboard'] = '';
|
|
|
|
|
2016-08-02 21:13:25 +00:00
|
|
|
}
|
|
|
|
echo '</div>';
|
|
|
|
require_once '../inc/footer.php';
|