40 $gperm_groupid =
$xoops->getUserGroups();
42 $criteria1->add(
new Criteria(
'gperm_groupid',
'(' . implode(
',', $gperm_groupid) .
')',
'IN'));
45 foreach ($perms as $item) {
46 $modIds[] = $item->getVar(
'gperm_itemid');
48 if (count($modIds) > 0) {
49 $modIds = array_unique($modIds);
59 $comment_config = array();
63 if (!isset($comment_config[
$mid])) {
64 $comment_config[
$mid] = \Xoops\Module\Plugin::getPlugin(
$modules[$mid]->getVar(
'dirname'),
'comments');
67 $com[
'title'] =
'<a href="' .
\XoopsBaseConfig::get(
'url') .
'/modules/' .
$modules[
$mid]->getVar(
'dirname') .
'/' . $comment_config[
$mid]->pageName() .
'?' . $comment_config[
$mid]->itemName() .
'=' .
$comments[
$i]->getVar(
'itemid') .
'&com_id=' . $i .
'&com_rootid=' .
$comments[
$i]->getVar(
'rootid') .
'&' . htmlspecialchars(
$comments[$i]->getVar(
'exparams')) .
'#comment' . $i .
'">' .
$comments[
$i]->getVar(
'title') .
'</a>';
68 $com[
'icon'] = htmlspecialchars(
$comments[$i]->getVar(
'icon'), ENT_QUOTES);
69 $com[
'icon'] = ($com[
'icon'] !=
'') ? $com[
'icon'] :
'icon1.gif';
73 if (is_object($poster)) {
74 $com[
'poster'] =
'<a href="' .
\XoopsBaseConfig::get(
'url') .
'/userinfo.php?uid=' .
$comments[
$i]->getVar(
'uid') .
'">' . $poster->getVar(
'uname') .
'</a>';
76 $com[
'poster'] =
$xoops->getConfig(
'anonymous');
79 $com[
'poster'] =
$xoops->getConfig(
'anonymous');
81 $block[
'comments'][] = $com;
90 $block_form->addElement(
new Xoops\Form\Text(_MB_SYSTEM_DISPLAYC,
'options[0]', 1, 3,
$options[0]),
true);
91 return $block_form->render();
static formatTimestamp($time, $format= 'l', $timeoffset=null)
if($uname== ''||$pass== '') $member_handler