<table align="center"> <tr> <td class="notsowide"> <a name="allComments"></a> <div id="comments_scrollpos" /> <div class="header"> <?php echo isset($_GET["replied"]) ? _COMMENTS : _LEAVE_COMMENT; ?> </div> <?php $offset = isset($_GET["offset"]) ? intval($_GET["offset"]) : 0; if (!isset($_GET["showComments"]) && $offset == 0 && !isset($_GET["replied"]) && !isset($_POST["refererURL"])) { include_once INCLUDES . "commentreplyform.php"; showReplyForm(); ?> <div id="comments"> <div class="sep container2 a_center"> <div class="header"> <?php echo _JS_PLEASE_WAIT; ?> </div> <div class="sep"> If you don't get to see the comments in a long while, please <a href="<?php echo url(".", array("showComments" => "yes")); ?> #allComments">click here</a>. </div>
/** * Shows all comments written on object $objid of type $objType. */ function showAllComments($objid, $objType, $reserved = false, $allowReply = true, $showChilds = true, $oldestFirst = true) { global $_auth, $_config, $_lang, $_lastGeneratedId; if ($allowReply) { // Check if the user has submitted a reply. if (!$_config["readOnly"] && $_auth["useid"] > 0 && isset($_POST["sendReply"]) && isset($_POST["comment"]) && $_POST["comment"] != "") { processCommentReply($objid, $objType); } showReplyForm(); } echo '<div style="margin-top: -8px">'; // Show child comments. if (!showChildComments($objid, $objType, 0, $showChilds, true, $oldestFirst)) { echo '<div class="sep container2">' . _NO_COMMENTS . '</div>'; } echo '</div>'; }