2018-06-12 07:53:27 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Start page of the backend.
|
2018-06-19 18:02:04 +02:00
|
|
|
* Offers the welcome message (if there is one),
|
|
|
|
* a description of the CMS and some basic data
|
|
|
|
* on the contents of the current page.
|
2018-06-12 07:53:27 +02:00
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Require files and ensure environment.
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once __DIR__ . "/inc/functions.php";
|
|
|
|
|
2018-06-18 17:18:06 +02:00
|
|
|
ensureEnvironment(); // Ensure existence of system files.
|
|
|
|
$translations = loadLanguage($settings['defaultLang']); // Load translations.
|
|
|
|
ensureBackendEnv(); // Ensure session is started etc.
|
|
|
|
$pages = loadPages(); // Load overview of pages.
|
2018-06-12 07:53:27 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Load data.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Output
|
|
|
|
*/
|
|
|
|
|
2018-06-18 13:57:35 +02:00
|
|
|
echo printBackendHead($settings, $translations['start'], $translations['start'], $settings['logo']);
|
2018-06-12 07:53:27 +02:00
|
|
|
echo printBackendHeader($translations['start'], $translations['helpStart']);
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<div id="mainWrapper">
|
|
|
|
';
|
|
|
|
|
|
|
|
echo printBackendNav($translations);
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<main>';
|
|
|
|
|
2018-06-18 15:07:38 +02:00
|
|
|
echo printStaticPagePart("welcomeMsg", "section"); // Print aside (if need be)
|
2018-06-12 07:53:27 +02:00
|
|
|
|
2018-06-18 15:07:38 +02:00
|
|
|
echo '
|
|
|
|
<section class="startPgTiles">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h3>' . $translations['aboutThisSite'] . '</h3>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>' . $translations['numberOfPages'] . '</th>
|
|
|
|
<td>' . (string)count($pages) . '</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>' . $translations['numberOfPublicPages'] . '</th>
|
|
|
|
<td>' . (string)count(loadPublicPages()) . '</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>' . $translations['phpVersion'] . '</th>
|
|
|
|
<td>PHP ' . (string)phpversion() . '</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<h3>' . $translations['aboutMDCMS'] . '</h3>
|
|
|
|
' . $translations['aboutMDCMS_content'] . '
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
';
|
2018-06-12 07:53:27 +02:00
|
|
|
|
|
|
|
echo '
|
|
|
|
</main>
|
|
|
|
</div>';
|
|
|
|
|
|
|
|
echo printBackendEnd();
|
|
|
|
|
|
|
|
?>
|