<?php

$cms_root_path = "../../";
require_once($cms_root_path."includes/compatibility_includer.php");

$p = new Page();
if ( isset($_GET['page_id']) && is_numeric($_GET['page_id']) ) {
	$p->Get($_GET['page_id']);
} else {
	die("Page not found.");
}

$page_meta['title']='Manage '.$p->title.' > Information';
include($core_root_path . 'admin/templates/adminheader.full.php');

$p = new Page();
$p->Get($_GET['page_id']);
$listing_page_logic = json_decode($p->logic, true);


$listing_admin_info = "";
if ( isset($listing_page_logic['listing_admin_info']) ) {
    $listing_admin_info = $listing_page_logic['listing_admin_info'];
}

?>

<script src="/admin/js/plugins.js"></script>
<script src="/admin/js/script.js?759"></script>
<link rel="stylesheet" href="/admin/css/cms.css" />

<div>
	<?=$listing_admin_info?>
</div>
<?php
include($core_root_path . 'admin/templates/adminfooter.full.php');
