32 define(
'COMMENTS_APPROVENONE', 0);
33 define(
'COMMENTS_APPROVEALL', 1);
34 define(
'COMMENTS_APPROVEUSER', 2);
35 define(
'COMMENTS_APPROVEADMIN', 3);
36 define(
'COMMENTS_PENDING', 1);
37 define(
'COMMENTS_ACTIVE', 2);
38 define(
'COMMENTS_HIDDEN', 3);
39 define(
'COMMENTS_OLD1ST', 0);
40 define(
'COMMENTS_NEW1ST', 1);
48 return parent::getInstance();
67 static $fetched =
false;
69 if (!$fetched && $this->
xoops()->isUser() &&
$helper = $this->
xoops()->getModuleHelper(
'userconfigs')) {
82 $this->
getForm($obj,
'comment')->display();
91 $itemid = Request::getInt(
'com_itemid');
92 $modid = Request::getInt(
'com_modid');
103 if ((!
$xoops->isAdminSide && COMMENTS_APPROVENONE ==
$xoops->getModuleConfig(
'com_rule',
$module->getVar(
'dirname'))) || (!
$xoops->isUser() && !
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname'))) || !
$xoops->isModule()) {
107 if (($plugin = \
Xoops\Module\Plugin::getPlugin(
$module->getVar(
'dirname'),
'comments')) && $itemid > 0 &&
$modid > 0) {
113 if (is_array($itemInfo = $plugin->itemInfo($itemid))) {
114 $title = isset($itemInfo[
'title']) ? $itemInfo[
'title'] : $title;
115 $text = isset($itemInfo[
'text']) ? $itemInfo[
'text'] :
$text;
116 $uid = isset($itemInfo[
'uid']) ? $itemInfo[
'uid'] :
$uid;
117 $timestamp = isset($itemInfo[
'timestamp']) ? $itemInfo[
'timestamp'] : $timestamp;
126 $obj->setVar(
'itemid', $itemid);
127 $obj->setVar(
'title', $title);
128 $obj->setVar(
'modid',
$modid);
139 if (Request::getMethod()!==
'POST') {
142 $id = Request::getInt(
'com_id');
143 $modid = Request::getInt(
'com_modid');
150 if (!is_object($comment)) {
154 if (!$comment->isNew()) {
155 $modid = $comment->getVar(
'modid');
157 $comment->setVar(
'modid',
$modid);
165 $moddir =
$module->getVar(
'dirname');
167 if (
$xoops->isAdminSide) {
171 $redirect_page = $this->
url(
'admin/main.php?com_modid=' .
$modid .
'&com_itemid');
173 if (COMMENTS_APPROVENONE ==
$xoops->getModuleConfig(
'com_rule',
$module->getVar(
'dirname'))) {
180 if ($plugin = \
Xoops\Module\Plugin::getPlugin($moddir,
'comments')) {
181 if (!
$xoops->isAdminSide) {
182 $redirect_page =
$xoops->url(
'modules/' . $moddir .
'/' . $plugin->pageName() .
'?');
183 if (is_array($extraParams = $plugin->extraParams())) {
185 foreach ($extraParams as $extra_param) {
186 $extra_params .= isset($_POST[$extra_param]) ? $extra_param .
'=' . htmlspecialchars($_POST[$extra_param]) .
'&' : $extra_param .
'=amp;';
188 $redirect_page .= $extra_params;
190 $redirect_page .= $plugin->itemName();
192 $comment_url = $redirect_page;
194 $op = Request::getBool(
'com_dopost') ?
'post' :
'';
195 $op = Request::getBool(
'com_dopreview') ?
'preview' :
$op;
196 $op = Request::getBool(
'com_dodelete') ?
'delete' :
$op;
198 if (
$op ==
'preview' ||
$op ==
'post') {
199 if (!
$xoops->security()->check()) {
203 if (
$op ==
'post' && !
$xoops->isUser()) {
205 if (!$xoopsCaptcha->verify()) {
206 $captcha_message = $xoopsCaptcha->getMessage();
215 $itemid = Request::getInt(
'com_itemid');
216 $pid = Request::getInt(
'com_pid');
217 $rootid = Request::getInt(
'com_rootid');
218 $status = Request::getInt(
'com_status');
219 $dosmiley = Request::getBool(
'com_dosmiley');
220 $doxcode = Request::getBool(
'com_doxcode');
221 $dobr = Request::getBool(
'com_dobr');
222 $dohtml = Request::getBool(
'com_html');
223 $doimage = Request::getBool(
'com_doimage');
226 $comment->setVar(
'title', $title);
227 $comment->setVar(
'text',
$text);
228 $comment->setVar(
'itemid', $itemid);
229 $comment->setVar(
'pid',
$pid);
230 $comment->setVar(
'rootid', $rootid);
231 $comment->setVar(
'status',
$status);
232 $comment->setVar(
'dosmiley', $dosmiley);
233 $comment->setVar(
'doxcode', $doxcode);
234 $comment->setVar(
'dobr', $dobr);
235 $comment->setVar(
'dohtml', $dohtml);
236 $comment->setVar(
'doimage', $doimage);
237 $comment->setVar(
'icon', $icon);
245 $comment->setVar(
'doimage', 1);
246 if ($comment->getVar(
'dohtml') != 0) {
248 if (!
$xoops->user->isAdmin($comment->getVar(
'modid'))) {
249 $comment->setVar(
'dohtml', 0);
252 $comment->setVar(
'dohtml', 0);
257 if (!
$xoops->isAdminSide && !empty($captcha_message)) {
258 echo
$xoops->alert(
'error', $captcha_message);
260 echo $this->
renderHeader($comment->getVar(
'title',
'p'), $comment->getVar(
'text',
'p'),
false, time());
266 $comment->setVar(
'doimage', 1);
268 $add_userpost =
false;
269 $call_approvefunc =
false;
270 $call_updatefunc =
false;
272 $notify_event =
false;
274 $accesserror =
false;
277 if (
$xoops->user->isAdmin($comment->getVar(
'modid'))) {
279 $old_status = $comment->getVar(
'status');
280 $comment->setVar(
'status',
$status);
282 if (COMMENTS_PENDING == $old_status) {
283 $add_userpost =
true;
284 if (COMMENTS_ACTIVE ==
$status) {
285 $call_updatefunc =
true;
286 $call_approvefunc =
true;
288 $notify_event =
'comment';
291 if (COMMENTS_HIDDEN == $old_status && COMMENTS_ACTIVE ==
$status) {
292 $call_updatefunc =
true;
296 if (COMMENTS_ACTIVE == $old_status && COMMENTS_HIDDEN ==
$status) {
297 $call_updatefunc =
true;
303 $comment->setVar(
'dohtml', 0);
304 if ($comment->getVar(
'uid') !=
$xoops->user->getVar(
'uid')) {
309 $comment->setVar(
'dohtml', 0);
312 if (
false != $accesserror) {
313 $xoops->redirect($redirect_page .
'=' . $comment->getVar(
'itemid') .
'&com_id=' . $comment->getVar(
'id') .
'&com_mode=' . $mode .
'&com_order=' . $order, 1,
XoopsLocale::E_NO_ACCESS_PERMISSION);
316 $comment->setVar(
'created', time());
317 $comment->setVar(
'ip',
$xoops->getEnv(
'REMOTE_ADDR'));
319 if (
$xoops->user->isAdmin($comment->getVar(
'modid'))) {
320 $comment->setVar(
'status', COMMENTS_ACTIVE);
321 $add_userpost =
true;
322 $call_approvefunc =
true;
323 $call_updatefunc =
true;
325 $notify_event =
'comment';
327 $comment->setVar(
'dohtml', 0);
328 switch (
$xoops->getModuleConfig(
'com_rule')) {
329 case COMMENTS_APPROVEALL:
330 case COMMENTS_APPROVEUSER:
331 $comment->setVar(
'status', COMMENTS_ACTIVE);
332 $add_userpost =
true;
333 $call_approvefunc =
true;
334 $call_updatefunc =
true;
336 $notify_event =
'comment';
338 case COMMENTS_APPROVEADMIN:
340 $comment->setVar(
'status', COMMENTS_PENDING);
341 $notify_event =
'comment_submit';
345 if (
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname')) && $comment->getVar(
'noname')) {
346 $comment->setVar(
'uid', 0);
348 $comment->setVar(
'uid',
$xoops->user->getVar(
'uid'));
351 $comment->setVar(
'dohtml', 0);
352 $comment->setVar(
'uid', 0);
353 if (
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname')) != 1) {
354 $xoops->redirect($redirect_page .
'=' . $comment->getVar(
'itemid') .
'&com_id=' . $comment->getVar(
'id') .
'&com_mode=' . $mode .
'&com_order=' . $order, 1,
XoopsLocale::E_NO_ACCESS_PERMISSION);
357 if ($comment->getVar(
'uid') == 0) {
358 switch (
$xoops->getModuleConfig(
'com_rule')) {
359 case COMMENTS_APPROVEALL:
360 $comment->setVar(
'status', COMMENTS_ACTIVE);
361 $add_userpost =
true;
362 $call_approvefunc =
true;
363 $call_updatefunc =
true;
365 $notify_event =
'comment';
367 case COMMENTS_APPROVEADMIN:
368 case COMMENTS_APPROVEUSER:
370 $comment->setVar(
'status', COMMENTS_PENDING);
372 $notify_event =
'comment_submit';
377 if ($comment->getVar(
'title') ==
'') {
380 $comment->setVar(
'modified', time());
381 if (isset($extra_params)) {
382 $comment->setVar(
'exparams', $extra_params);
386 $newcid = $comment->getVar(
'id');
388 if ($comment->getVar(
'rootid') == 0) {
389 $comment->setVar(
'rootid', $newcid);
390 if (!
$comment_handler->updateByField($comment,
'rootid', $comment->getVar(
'rootid'))) {
393 echo
$xoops->alert(
'error', $comment->getHtmlErrors());
398 if (
false != $call_approvefunc) {
399 $plugin->approve($comment);
402 if (
false != $call_updatefunc) {
407 $plugin->update($comment->getVar(
'itemid'), $comment_count);
411 $uid = $comment->getVar(
'uid');
412 if (
$uid > 0 &&
false != $add_userpost) {
416 $member_handler->updateUserByField($poster,
'posts', $poster->getVar(
'posts') + 1);
422 if ($notify_event &&
$xoops->isActiveModule(
'notifications')) {
424 $not_modid = $comment->getVar(
'modid');
425 $not_catinfo = $notifications->getCommentsCategory(
$module->getVar(
'dirname'));
426 $not_category = $not_catinfo[
'name'];
427 $not_itemid = $comment->getVar(
'itemid');
428 $not_event = $notify_event;
432 $comment_tags = array();
433 $comment_tags[
'X_COMMENT_URL'] = $comment_url .
'=' . $comment->getVar(
'itemid') .
'&com_id=' . $comment->getVar(
'id') .
'&com_rootid=' . $comment->getVar(
'rootid') .
'&com_mode=' . $mode .
'&com_order=' . $order .
'#comment' . $comment->getVar(
'id');
435 if (
$xoops->isActiveModule(
'notifications')) {
436 Notifications::getInstance()->getHandlerNotification()->triggerEvent($not_category, $not_itemid, $not_event, $comment_tags,
false, $not_modid);
439 if (!isset($comment_post_results)) {
441 if ($comment->getVar(
'status') == COMMENTS_ACTIVE) {
442 $xoops->redirect($redirect_page .
'=' . $comment->getVar(
'itemid') .
'&com_id=' . $comment->getVar(
'id') .
'&com_rootid=' . $comment->getVar(
'rootid') .
'&com_mode=' . $mode .
'&com_order=' . $order .
'#comment' . $comment->getVar(
'id'), 1,
_MD_COMMENTS_THANKSPOST);
445 $xoops->redirect($redirect_page .
'=' . $comment->getVar(
'itemid') .
'&com_mode=' . $mode .
'&com_order=' . $order .
'#comment' . $comment->getVar(
'id'), 1,
_MD_COMMENTS_THANKSPOST);
449 if (!isset($purge_comment_post_results)) {
451 echo
$xoops->alert(
'error', $comment->getHtmlErrors());
454 $comment_post_results = $comment->getErrors();
469 $modid = Request::getInt(
'com_modid', 0);
480 if ((!
$xoops->isAdminSide && COMMENTS_APPROVENONE ==
$xoops->getModuleConfig(
'com_rule',
$module->getVar(
'dirname'))) || (!
$xoops->isUser() && !
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname'))) || !
$xoops->isModule()) {
490 $title = $comment->getVar(
'title',
'e');
494 $reply->setVar(
'title', $title);
495 $reply->setVar(
'modid', $comment->getVar(
'modid'));
496 $reply->setVar(
'pid', $comment->getVar(
'id'));
497 $reply->setVar(
'rootid', $comment->getVar(
'rootid'));
498 $reply->setVar(
'itemid', $comment->getVar(
'itemid'));
501 echo $this->
renderHeader($comment->getVar(
'title'), $comment->getVar(
'text'), $comment->getVar(
'uid'), $comment->getVar(
'created'));
508 $ret =
'<table cellpadding="4" cellspacing="1" width="98%" class="outer">
509 <tr><td class="head">' . $title .
'</td></tr><tr><td><br />';
522 if (
$xoops->isModule() && $plugin = \Xoops\Module\Plugin::getPlugin(
$xoops->module->getVar(
'dirname'),
'comments')) {
523 if (COMMENTS_APPROVENONE !=
$xoops->getModuleConfig(
'com_rule')) {
526 $itemid = (trim($plugin->itemName()) !=
'' && isset($_GET[$plugin->itemName()])) ? intval($_GET[$plugin->itemName()]) : 0;
529 $mode = Request::getString(
'com_mode', $this->
getUserConfig(
'com_mode'));
530 $xoops->tpl()->assign(
'comment_mode', $mode);
532 $order = Request::getInt(
'com_order', $this->
getUserConfig(
'com_order'));
533 if ($order != COMMENTS_OLD1ST) {
534 $xoops->tpl()->assign(array(
535 'comment_order' => COMMENTS_NEW1ST,
536 'order_other' => COMMENTS_OLD1ST
540 $xoops->tpl()->assign(array(
541 'comment_order' => COMMENTS_OLD1ST,
542 'order_other' => COMMENTS_NEW1ST
553 $id = Request::getInt(
'com_id', 0);
554 $rootid = Request::getInt(
'com_rootid', 0);
557 if ($mode ==
'flat') {
561 $renderer->renderFlatView($admin_view);
562 } elseif ($mode ==
'thread') {
564 $comment_url = $plugin->pageName() .
'?';
565 if (is_array($extraParams = $plugin->extraParams())) {
567 foreach ($extraParams as $extra_param) {
570 if (isset($_POST[$extra_param])) {
571 $extra_params .= $extra_param .
'=' . $_POST[$extra_param] .
'&';
573 if (isset($_GET[$extra_param])) {
574 $extra_params .= $extra_param .
'=' . $_GET[$extra_param] .
'&';
576 $extra_params .= $extra_param .
'=&';
580 $comment_url .= $extra_params;
582 $xoops->tpl()->assign(
'comment_url', $comment_url . $plugin->itemName() .
'=' . $itemid .
'&com_mode=thread&com_order=' . $order);
583 if (!empty(
$id) && !empty($rootid) && (
$id != $rootid)) {
589 $renderer->renderThreadView(
$id, $admin_view);
594 $c_count = count($top_comments);
596 for (
$i = 0;
$i < $c_count; ++
$i) {
601 $renderer->renderThreadView($top_comments[
$i]->getVar(
'id'), $admin_view);
610 $c_count = count($top_comments);
612 for (
$i = 0;
$i < $c_count; ++
$i) {
616 $renderer->renderNestView($top_comments[
$i]->getVar(
'id'), $admin_view);
621 $xoops->tpl()->assign(
'page_name', $plugin->pageName());
622 $xoops->tpl()->assign(
'order', $order);
623 $xoops->tpl()->assign(
'COMMENTS_OLD1ST', COMMENTS_OLD1ST);
624 $xoops->tpl()->assign(
'COMMENTS_NEW1ST', COMMENTS_NEW1ST);
625 $xoops->tpl()->assign(
'itemid', $itemid);
626 $xoops->tpl()->assign(
'item_name', $plugin->itemName());
627 unset($postcomment_link);
628 if (
$xoops->getModuleConfig(
'com_anonpost') ||
$xoops->isUser()) {
629 $postcomment_link = $this->
url(
'comment_new.php?com_modid=' .
$modid .
'&com_itemid=' . $itemid .
'&com_order=' . $order .
'&com_mode=' . $mode);
630 $xoops->tpl()->assign(
'anon_canpost',
true);
633 if (is_array($extraParams = $plugin->extraParams())) {
634 foreach ($extraParams as $extra_param) {
635 if (isset($_POST[$extra_param])) {
636 $extra_param_val = $_POST[$extra_param];
638 if (isset($_GET[$extra_param])) {
639 $extra_param_val = $_GET[$extra_param];
642 if (isset($extra_param_val)) {
643 $link_extra .=
'&' . $extra_param .
'=' . $extra_param_val;
644 $hidden_value = htmlspecialchars($extra_param_val, ENT_QUOTES);
645 $xoops->tpl()->assign(
'extra_param', $extra_param);
646 $xoops->tpl()->assign(
'hidden_value', $hidden_value);
650 if (isset($postcomment_link)) {
651 $xoops->tpl()->assign(
'postcomment_link', $postcomment_link);
652 $xoops->tpl()->assign(
'link_extra', $link_extra);
654 $xoops->tpl()->assign(array(
655 'comments_editlink' => $this->
url(
'comment_edit.php?com_modid=' .
$modid .
'&com_itemid=' . $itemid .
'&com_order=' . $order .
'&com_mode=' . $mode .
'' . $link_extra),
656 'comments_deletelink' => $this->
url(
'comment_delete.php?com_modid=' .
$modid .
'&com_itemid=' . $itemid .
'&com_order=' . $order .
'&com_mode=' . $mode .
'' . $link_extra),
657 'comments_replylink' => $this->
url(
'comment_reply.php?com_modid=' .
$modid .
'&com_itemid=' . $itemid .
'&com_order=' . $order .
'&com_mode=' . $mode .
'' . $link_extra)
661 $xoops->tpl()->assign(array(
686 if (!is_object($comment)) {
694 if ((!
$xoops->isAdminSide && COMMENTS_APPROVENONE ==
$xoops->getModuleConfig(
'com_rule',
$module->getVar(
'dirname'))) || (!
$xoops->isUser() && !
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname'))) || !
$xoops->isModule()) {
699 if ($plugin = \
Xoops\Module\Plugin::getPlugin(
$module->getVar(
'dirname'),
'comments')) {
710 $op = Request::getCmd(
'op',
'delete',
'POST');
711 $mode = Request::getString(
'com_mode',
'flat');
712 $order = Request::getString(
'com_order', COMMENTS_OLD1ST);
713 $id = Request::getInt(
'com_id');
719 if (!is_object($comment)) {
727 if ((!
$xoops->isAdminSide && COMMENTS_APPROVENONE ==
$xoops->getModuleConfig(
'com_rule',
$module->getVar(
'dirname'))) || (!
$xoops->isUser() && !
$xoops->getModuleConfig(
'com_anonpost',
$module->getVar(
'dirname'))) || !
$xoops->isModule()) {
733 if ($plugin = \
Xoops\Module\Plugin::getPlugin(
$module->getVar(
'dirname'),
'comments')) {
734 if (
$xoops->isAdminSide) {
735 $redirect_page = $this->
url(
'admin/main.php?com_modid=' .
$modid .
'&com_itemid');
737 $redirect_page =
$xoops->url(
'modules/' .
$module->getVar(
'dirname') .
'/' . $plugin->pageName() .
'?');
738 $comment_confirm_extra = array();
739 if (is_array($extraParams = $plugin->extraParams())) {
740 foreach ($extraParams as $extra_param) {
741 if (isset($_GET[$extra_param])) {
742 $redirect_page .= $extra_param .
'=' . $_GET[$extra_param] .
'&';
744 $comment_confirm_extra[$extra_param] = $_GET[$extra_param];
748 $redirect_page .= $plugin->itemName();
751 $accesserror =
false;
760 if (
false != $accesserror) {
761 $ref =
$xoops->getEnv(
'HTTP_REFERER');
777 $itemid = $comment->getVar(
'itemid');
783 $plugin->update($itemid, $comment_count);
786 if ($comment->getVar(
'uid') != 0) {
789 if (is_object($poster)) {
790 $member_handler->updateUserByField($poster,
'posts', $poster->getVar(
'posts') - 1);
798 $child_comments = $xot->getFirstChild(
$id);
800 $new_pid = $comment->getVar(
'pid');
802 foreach (array_keys($child_comments) as
$i) {
803 $child_comments[
$i]->setVar(
'pid', $new_pid);
805 if (
false != $comment->isRoot()) {
806 $new_rootid = $child_comments[
$i]->getVar(
'id');
807 $child_comments[
$i]->setVar(
'rootid', $child_comments[$i]->getVar(
'id'));
809 $errs[] =
'Could not change comment parent ID from <strong>' .
$id .
'</strong> to <strong>' . $new_pid .
'</strong>. (ID: ' . $new_rootid .
')';
812 $c_child_comments = $xot->getAllChild($new_rootid);
813 $cc_count = count($c_child_comments);
814 foreach (array_keys($c_child_comments) as
$j) {
815 $c_child_comments[
$j]->setVar(
'rootid', $new_rootid);
817 $errs[] =
'Could not change comment root ID from <strong>' .
$id .
'</strong> to <strong>' . $new_rootid .
'</strong>.';
823 $errs[] =
'Could not change comment parent ID from <strong>' .
$id .
'</strong> to <strong>' . $new_pid .
'</strong>.';
827 if (count($errs) > 0) {
829 echo
$xoops->alert(
'error', $errs);
837 $rootid = $comment->getVar(
'rootid');
844 $child_comments = $xot->getAllChild(
$id);
846 $child_comments[
$id] = $comment;
848 $deleted_num = array();
850 foreach (array_keys($child_comments) as $i) {
856 $poster_id = $child_comments[
$i]->getVar(
'uid');
857 if ($poster_id > 0) {
858 $deleted_num[$poster_id] = !isset($deleted_num[$poster_id]) ? 1 : ($deleted_num[$poster_id] + 1);
862 foreach ($deleted_num as
$user_id => $post_num) {
865 if (is_object($poster)) {
866 $member_handler->updateUserByField($poster,
'posts', $poster->getVar(
'posts') - $post_num);
870 $itemid = $comment->getVar(
'itemid');
876 $plugin->update($itemid, $comment_count);
879 echo
$xoops->alert(
'info', $msgs);
880 echo
'<br /><a href="' . $redirect_page .
'=' . $itemid .
'&com_order=' . $order .
'&com_mode=' . $mode .
'">' .
XoopsLocale::GO_BACK .
'</a>';
887 $comment_confirm = array(
890 'com_order' => $order,
896 if (!empty($comment_confirm_extra) && is_array($comment_confirm_extra)) {
897 $comment_confirm = $comment_confirm + $comment_confirm_extra;
915 $order = count(
$xoops->getModuleConfigs($module->
getVar(
'dirname')));
918 $confobj->setVar(
'conf_modid', $module->
getVar(
'mid'));
919 $confobj->setVar(
'conf_catid', 0);
920 $confobj->setVar(
'conf_name', $config[
'name']);
921 $confobj->setVar(
'conf_title', $config[
'title'],
true);
922 $confobj->setVar(
'conf_desc', $config[
'description'],
true);
923 $confobj->setVar(
'conf_formtype', $config[
'formtype']);
924 $confobj->setVar(
'conf_valuetype', $config[
'valuetype']);
925 $confobj->setConfValueForInput($config[
'default'],
true);
926 $confobj->setVar(
'conf_order', $order);
927 if (isset($config[
'options']) && is_array($config[
'options'])) {
928 foreach ($config[
'options'] as $key => $value) {
930 $confop->setVar(
'confop_name', $key,
true);
931 $confop->setVar(
'confop_value', $value,
true);
932 $confobj->setConfOptions($confop);
950 $configNames = array(
'com_rule',
'com_anonpost');
956 $criteria->add(
new Criteria(
'conf_name',
"('" . implode(
"','", $configNames) .
"')",
'IN'));
971 'name' =>
'com_rule',
972 'title' =>
'_MD_COMMENTS_COMRULES',
974 'formtype' =>
'select',
975 'valuetype' =>
'int',
978 '_MD_COMMENTS_COMNOCOM' => COMMENTS_APPROVENONE,
979 '_MD_COMMENTS_COMAPPROVEALL' => COMMENTS_APPROVEALL,
980 '_MD_COMMENTS_COMAPPROVEUSER' => COMMENTS_APPROVEUSER,
981 '_MD_COMMENTS_COMAPPROVEADMIN' => COMMENTS_APPROVEADMIN
985 'name' =>
'com_anonpost',
986 'title' =>
'_MD_COMMENTS_COMANONPOST',
988 'formtype' =>
'yesno',
989 'valuetype' =>
'int',
static formatTimestamp($time, $format= 'l', $timeoffset=null)
if($uname== ''||$pass== '') $member_handler
const _MD_COMMENTS_JOINED
const _MD_COMMENTS_THREAD
getVar($key, $format= 's')
const _MD_COMMENTS_POSTER
const _MD_COMMENTS_UPDATED
const _MD_COMMENTS_DELETESELECT
const _MD_COMMENTS_COMDELETENG
static getUnameFromId($userid, $usereal=0)
if($_SERVER['REQUEST_METHOD']== 'POST') $config_handler
const _MD_COMMENTS_COMDELETED
if(!$xoops->isUser()) $uid
const _MD_COMMENTS_REPLIES
const E_NO_ACCESS_PERMISSION
const _MD_COMMENTS_POSTED
const _MD_COMMENTS_THANKSPOST
const _MD_COMMENTS_DELETEONE
const _MD_COMMENTS_NOTICE
static substr($str, $start, $length, $trimmarker= '...')
const _MD_COMMENTS_DELETEALL