<?php
include '../env.php';
require_once(LIB.'common.inc.php');
if (can_action('view')) {
	require_once(LIB.'Post.class.php');
	$post = new Post();
	echo json_encode($post->getOld(@$_GET['id'], $_GET));
}
?>