Gazelle/sections/ajax/preview.php

14 lines
328 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
/* AJAX Previews, simple stuff. */
include(SERVER_ROOT.'/classes/class_text.php'); // Text formatting class
2012-10-27 08:00:09 +00:00
$Text = new TEXT(true);
2011-03-28 14:21:28 +00:00
if(!empty($_POST['AdminComment'])) {
echo $Text->full_format($_POST['AdminComment']);
} else {
$Content = $_REQUEST['body']; // Don't use URL decode.
echo $Text->full_format($Content);
}
2012-10-27 08:00:09 +00:00