Files
resourcespace/pages/ajax/comments_handler.php
2025-07-18 16:20:14 +07:00

19 lines
393 B
PHP

<?php
include "../../include/boot.php";
include "../../include/authenticate.php";
include "../../include/comment_functions.php";
if (
'POST' == $_SERVER['REQUEST_METHOD']
&& !empty($username)
) {
comments_submit();
}
$ref = getval('ref', 0, true);
$collection_mode = ('' != getval('collection_mode', '') ? true : false);
comments_show($ref, $collection_mode);