<?php

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

$page = new Page();
if ( isset($_POST['page_id']) && is_numeric($_POST['page_id']) ) {
	$page->Get($_POST['page_id']);
} else {
	die("false");
}

$cm = new ContentManager();
$result = $cm->generateLapsgButton($_POST, $page);
if ( $result === true ) {
	die("true");
} else {
	die("false");
}