header('Content-type: text/html; charset=utf-8');
// bench start
$bench = array("start" => array("mem" => memory_get_usage(), "peak" => memory_get_peak_usage(true), "time" => microtime(true)));
require 'runner-config.php';
require 'RouterunnerCMS/Routerunner/Routerunner.php';
use Routerunner\Routerunner as runner;
$host = $_SERVER['HTTP_HOST'];
$root = 'desktop';
if (isset($_GET['root'])) {
    $root = $_GET['root'];
    $_SESSION['root'] = $_GET['root'];
} elseif (isset($_SESSION['root'])) {
    $root = $_SESSION['root'];
}
$lang = false;
if (isset($_GET["lang"]) && $_GET["lang"] == "en") {
    $lang = 2;
} elseif (isset($_GET["lang"]) && $_GET["lang"] == "hu") {
    $lang = 1;
}
$mode = backend_mode();
$debug = 1;
$runner = array('mode' => $mode, 'root' => 'desktop', 'language' => $lang);
new runner($runner);
backend_mode();
// bench over
$bench["end"] = array("mem" => memory_get_usage(), "peak" => memory_get_peak_usage(true), "time" => microtime(true));
$bench["diff"] = array("mem" => $bench["end"]["mem"] - $bench["start"]["mem"], "peak" => $bench["end"]["peak"] - $bench["start"]["peak"], "time" => $bench["end"]["time"] - $bench["start"]["time"]);
//$bench["load"] = sys_getloadavg();
//echo "<!--".print_r($bench["diff"], true)."\n".print_r($bench["load"],true)."//-->";
echo "<!--" . print_r($bench["diff"], true) . "\n//-->";
<?php

$debug = 1;
$url = \bootstrap::get("url");
$backend_uri = false;
$backend_session = false;
$code = false;
backend_mode($backend_uri, $backend_session, $code);
unset($_GET[$backend_uri]);
$url .= '?' . http_build_query($_GET);
?>

<body class="page-md page-header-top-fixed">
<div class="backend-wrapper">
<?php 
\runner::route('/backend/frame/header');
?>

<!-- BEGIN CONTAINER -->
<div class="page-container row">
	<!-- BEGIN PAGE CONTENT-->
	<div class="routerunner-content" style="position: relative; width: 100%; height: 100%;">
		<div class="routerunner-content-wrapper" style="position: absolute; width: 100%; height: 100%;">
			<iframe src="<?php 
echo $url;
?>
&<?php 
echo $backend_uri;
?>
=<?php 
echo $code;