* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')) { include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// //////////// Check Droits utilisateur //////////// if (!IsSuperAdmin()) ReloadIndex('admin'); //////////// if (isset($_GET['id'])) $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; $comm = new comment(); $options = array('status' => array('P', 'D', 'E'), 'given_id' => $id); $data = $comm->get($options, $sql_object); if ($data == 0 || count($data) != 1) exit; // we get the current item title for displaying $options = array('module' => $data[0]['comment_module'], 'module_id' => $data[0]['comment_module_id']); $r = $comm->getCommentItem($options, $sql_object); if ($data == 0 || count($data) != 1) exit; $data[0]['item_title']=$r[0]['item_title']; $html_comments = getMarkup($data, true); echo getAjaxFunction(); // for ajax call ?>