Files
bm/public_html/public/preview.php
2025-09-24 13:26:28 +02:00

29 lines
648 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** previews a page
*/
define(ROOT, "");
require_once(ROOT."include/config.inc.php");
require_once(CMS_DIR."modules/_flexiconfactory.class.php");
session_start();
if(!$_SESSION['login']){
logError(1, "No user logged in for preview", __FILE__, __LINE__);
defaultErrorPage("Sie m¸ssen eingeloggt sein, um diese Seite betrachten zu kˆnnen!");
}
if(!isset($_GET['id'])){
logError(1, "No $_GET Parameter 'id'", __FILE__, __LINE__);
standardErrorPage();
}
if($page = FlexiconFactory::instanceById($_GET['id'])){
$page->load();
echo $page->preview();
}
else{
defaultErrorPage("Die angegebene Seite kann nicht gefunden werden!");
}
?>