function xoops_user_validate($username, $password, $validate) { global $xoopsModuleConfig, $xoopsConfig; if ($xoopsModuleConfig['site_user_auth'] == 1) { if ($ret = check_for_lock(basename(__FILE__), $username, $password)) { return $ret; } if (!checkright(basename(__FILE__), $username, $password)) { mark_for_lock(basename(__FILE__), $username, $password); return array('ErrNum' => 9, "ErrDesc" => 'No Permission for plug-in'); } } if ($validate['passhash'] != '') { if ($validate['passhash'] != sha1($validate['time'] - $validate['rand'] . $validate['uname'] . $validate['pass'])) { return array("ERRNUM" => 4, "ERRTXT" => 'No Passhash'); } } else { return array("ERRNUM" => 4, "ERRTXT" => 'No Passhash'); } include_once XOOPS_ROOT_PATH . '/class/auth/authfactory.php'; include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/auth.php'; $xoopsAuth =& XoopsAuthFactory::getAuthConnection($myts->addSlashes($validate['uname'])); if (check_auth_class($xoopsAuth) == true) { $result = $xoopsAuth->validate($validate['uname'], $validate['email'], $validate['pass'], $validate['vpass']); return $result; } else { return array('ERRNUM' => 1, 'RESULT' => XoopsUserUtility::validate($validate['uname'], $validate['email'], $validate['pass'], $validate['vpass'])); } }
/** * @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ * @license GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package Publisher * @since 1.0 * @author trabis <*****@*****.**> * @version $Id$ */ function publisher_search($queryarray, $andor, $limit, $offset, $userid, $categories = array(), $sortby = 0, $searchin = "", $extra = "") { $publisher = Publisher::getInstance(); $ret = array(); if ($queryarray == '' || count($queryarray) == 0) { $hightlight_key = ''; } else { $keywords = implode('+', $queryarray); $hightlight_key = "&keywords=" . $keywords; } $itemsObjs = $publisher->getItemHandler()->getItemsFromSearch($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); $withCategoryPath = $publisher->getConfig('search_cat_path'); $usersIds = array(); /* @var $obj PublisherItem */ foreach ($itemsObjs as $obj) { $item['image'] = "images/item_icon.gif"; $item['link'] = $obj->getItemUrl(); $item['link'] .= !empty($hightlight_key) && strpos($item['link'], '.php?') === false ? "?" . ltrim($hightlight_key, '&') : $hightlight_key; if ($withCategoryPath) { $item['title'] = $obj->getCategoryPath(false) . " > " . $obj->title(); } else { $item['title'] = $obj->title(); } $item['time'] = $obj->getVar('datesub'); //must go has unix timestamp $item['uid'] = $obj->getVar('uid'); //"Fulltext search/highlight $text = $obj->body(); $sanitized_text = ""; $text_i = strtolower($text); $queryarray = is_array($queryarray) ? $queryarray : array($queryarray); //@todo look into xoopslocal foreach ($queryarray as $query) { $pos = strpos($text_i, strtolower($query)); //xoops_local("strpos", $text_i, strtolower($query)); $start = max($pos - 100, 0); $length = strlen($query) + 200; //xoops_local("strlen", $query) + 200; $context = $obj->highlight(XoopsLocale::substr($text, $start, $length, " [...]"), $query); $sanitized_text .= "<p>[...] " . $context . "</p>"; } //End of highlight $item['text'] = $sanitized_text; $item['author'] = $obj->getVar('author_alias'); $item['datesub'] = $obj->datesub($publisher->getConfig('format_date')); $usersIds[$obj->getVar('uid')] = $obj->getVar('uid'); $ret[] = $item; unset($item, $sanitized_text); } $usersNames = XoopsUserUtility::getUnameFromIds($usersIds, $publisher->getConfig('format_realname'), true); foreach ($ret as $key => $item) { if ($item["author"] == '') { $ret[$key]["author"] = @$usersNames[$item["uid"]]; } } unset($usersNames, $usersIds); return $ret; }
/** * Function to a list of user names associated with their user IDs * */ function &art_getUnameFromId($uid, $usereal = 0, $linked = false) { if (!is_array($uid)) { $uid = array($uid); } xoops_load("userUtility"); $ids = XoopsUserUtility::getUnameFromIds($uid, $usereal, $linked); return $ids; }
/** * Function to a list of user names associated with their user IDs * */ function &art_getAuthorNameFromId($userid, $usereal = 0, $linked = false) { if (!is_array($userid)) { $userid = array($userid); } xoops_load("userUtility"); $users = XoopsUserUtility::getUnameFromIds($userid, $usereal); if (!empty($linked)) { mod_loadFunctions("url", $GLOBALS["artdirname"]); foreach (array_keys($users) as $uid) { $users[$uid] = "<a href=\"" . art_buildUrl(XOOPS_URL . "/modules/" . $GLOBALS["artdirname"] . "/view.author.php", array("uid" => $uid)) . "\">" . $users[$uid] . "</a>"; } } return $users; }
public function searchAdvanced($queryarray, $andor, $limit, $offset, $userid, $categories = array(), $sortby = 0, $searchin = "", $extra = "") { $publisher = Publisher::getInstance(); $ret = array(); if ($queryarray == '' || count($queryarray) == 0) { $hightlight_key = ''; } else { $keywords = implode('+', $queryarray); $hightlight_key = "&keywords=" . $keywords; } $itemsObjs = $publisher->getItemHandler()->getItemsFromSearch($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); $withCategoryPath = $publisher->getConfig('search_cat_path'); $usersIds = array(); /* @var $obj PublisherItem */ foreach ($itemsObjs as $obj) { $item['image'] = "images/item_icon.gif"; $item['link'] = $obj->getItemUrl(); $item['link'] .= !empty($hightlight_key) && strpos($item['link'], '.php?') === false ? "?" . ltrim($hightlight_key, '&') : $hightlight_key; if ($withCategoryPath) { $item['title'] = $obj->getCategoryPath(false) . " > " . $obj->title(); } else { $item['title'] = $obj->title(); } $item['time'] = $obj->getVar('datesub'); //must go has unix timestamp $item['uid'] = $obj->getVar('uid'); $item['content'] = Metagen::getSearchSummary($obj->body(), $queryarray); $item['author'] = $obj->getVar('author_alias'); $item['datesub'] = $obj->datesub($publisher->getConfig('format_date')); $usersIds[$obj->getVar('uid')] = $obj->getVar('uid'); $ret[] = $item; unset($item, $sanitized_text); } $usersNames = XoopsUserUtility::getUnameFromIds($usersIds, $publisher->getConfig('format_realname'), true); foreach ($ret as $key => $item) { if ($item["author"] == '') { $ret[$key]["author"] = @$usersNames[$item["uid"]]; } } unset($usersNames, $usersIds); return $ret; }
/** * @param $uid * @param int $usereal * @param bool $linked * * @return string */ function mod_getUnameFromId($uid, $usereal = 0, $linked = false) { $GLOBALS['xoopsLogger']->addDeprecated("Deprecated function '" . __FUNCTION__ . "', user XoopsUserUtility directly."); return XoopsUserUtility::getUnameFromId($uid, $usereal, $linked); }
$mode_tray->addElement($mode[$key]); } $form_element["active"]["form_mode"][] = $mode_tray; $form_element["active"]["form_mode"][] = new XoopsFormHidden("form_mode", @$form_mode); } // The title $form_element["active"]["art_title"] = new XoopsFormText(art_constant("MD_TITLE"), "art_title", 60, 255, $art_title); $form_element["inactive"]["art_title"] = new XoopsFormHidden("art_title", $art_title); // The uid $form_element["inactive"]["uid"] = new XoopsFormHidden("uid", $uid); if ($isModerator) { include_once XOOPS_ROOT_PATH . "/Frameworks/art/functions.user.php"; $user_tray = new XoopsFormElementTray("UID"); $user_tray->addElement(new XoopsFormText("", "uid", 20, 255, $uid)); xoops_load("userUtility"); $user_tray->addElement(new XoopsFormLabel("", XoopsUserUtility::getUnameFromId($article_obj->getVar("uid"), false, true))); $form_element["active"]["uid"] =& $user_tray; } else { $form_element["active"]["uid"] =& $form_element["inactive"]["uid"]; } // Summary $form_element["active"]["art_summary"] = new XoopsFormTextArea(art_constant("MD_SUMMARY"), "art_summary", $art_summary, 5, 60); $form_element["inactive"]["art_summary"] = new XoopsFormHidden("art_summary", $art_summary); // Text subtitle $form_element["active"]["subtitle"] = new XoopsFormText(art_constant("MD_SUBTITLE"), "subtitle", 60, 255, $subtitle); $form_element["inactive"]["subtitle"] = new XoopsFormHidden("subtitle", $subtitle); // The editor selection $nohtml = empty($canhtml); if (!empty($editor)) { //art_setcookie("editor",$editor); } else {
function xoops_getLinkedUnameFromId($userid) { $GLOBALS['xoopsLogger']->addDeprecated("Function " . __FUNCTION__ . "() is deprecated, use XoopsUserUtility::getUnameFromId() instead"); xoops_load("XoopsUserUtility"); return XoopsUserUtility::getUnameFromId($userid, false, true); }
$myts =& MyTextSanitizer::getInstance(); $user->setVar('uname', $_POST['uname']); $user->setVar('email', trim($_POST['email'])); if (isset($_POST['level']) && $user->getVar('level') != intval($_POST['level'])) { $user->setVar('level', intval($_POST['level'])); } $password = $vpass = null; if (!empty($_POST['password'])) { $password = $myts->stripSlashesGPC(trim($_POST['password'])); $vpass = @$myts->stripSlashesGPC(trim($_POST['vpass'])); $user->setVar('pass', md5($password)); } elseif ($user->isNew()) { $password = $vpass = ''; } xoops_load("userUtility"); $stop = XoopsUserUtility::validate($user, $password, $vpass); $errors = array(); if ($stop != "") { $errors[] = $stop; } foreach (array_keys($fields) as $i) { $fieldname = $fields[$i]->getVar('field_name'); if (in_array($fields[$i]->getVar('field_id'), $editable_fields) && isset($_REQUEST[$fieldname])) { if (in_array($fieldname, $userfields)) { $value = $fields[$i]->getValueForSave($_REQUEST[$fieldname], $user->getVar($fieldname, 'n')); $user->setVar($fieldname, $value); } else { $value = $fields[$i]->getValueForSave(isset($_REQUEST[$fieldname]) ? $_REQUEST[$fieldname] : "", $profile->getVar($fieldname, 'n')); $profile->setVar($fieldname, $value); } }
} if (!$publisher->getConfig('perm_author_items')) { $xoops->redirect('index.php', 2, _CO_PUBLISHER_ERROR); } $myts = MyTextSanitizer::getInstance(); $xoops->header('publisher_author_items.tpl'); $xoopsTpl = $xoops->tpl(); XoopsLoad::loadFile($publisher->path('footer.php')); $criteria = new CriteriaCompo(new Criteria('datesub', time(), '<=')); $criteria->add(new Criteria('uid', $uid)); $items = $publisher->getItemHandler()->getItems($limit = 0, $start = 0, array(_PUBLISHER_STATUS_PUBLISHED), -1, 'datesub', 'DESC', '', true, $criteria); unset($criteria); $count = count($items); $xoopsTpl->assign('total_items', $count); $xoopsTpl->assign('rating', $publisher->getConfig('perm_rating')); $author_name = XoopsUserUtility::getUnameFromId($uid, $publisher->getConfig('format_realname'), true); $xoopsTpl->assign('author_name_with_link', $author_name); $xoopsTpl->assign('user_avatarurl', $xoops->service('avatar')->getAvatarUrl($uid)->getValue()); $categories = array(); if ($count > 0) { /* @var $item PublisherItem */ foreach ($items as $item) { $catid = $item->getVar('categoryid'); if (!isset($categories[$catid])) { $categories[$catid] = array('count_items' => 0, 'count_hits' => 0, 'title' => $item->getCategoryName(), 'link' => $item->getCategoryLink()); } $categories[$catid]['count_items']++; $categories[$catid]['count_hits'] += $item->getVar('counter'); $categories[$catid]['items'][] = array('title' => $item->title(), 'hits' => $item->getVar('counter'), 'link' => $item->getItemLink(), 'published' => $item->datesub(), 'rating' => $item->getVar('rating')); } }
$myts = \Xoops\Core\Text\Sanitizer::getInstance(); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'editprofile'; $xoops->getConfigs(); if ($op === 'save') { if (!$xoops->security()->check()) { $xoops->redirect(\XoopsBaseConfig::get('url') . "/modules/" . $xoops->module->getVar('dirname', 'n') . "/", 3, XoopsLocale::E_NO_ACTION_PERMISSION . "<br />" . implode('<br />', $xoops->security()->getErrors())); exit; } $uid = $xoops->user->getVar('uid'); $errors = array(); $edituser = $xoops->user; if ($xoops->user->isAdmin()) { $edituser->setVar('uname', trim($_POST['uname'])); $edituser->setVar('email', trim($_POST['email'])); } $stop = XoopsUserUtility::validate($edituser); if (!empty($stop)) { $op = 'editprofile'; } else { // Dynamic fields /* @var $profile_handler ProfileProfileHandler */ $profile_handler = \Xoops::getModuleHelper('profile')->getHandler('profile'); // Get fields $fields = $profile_handler->loadFields(); // Get ids of fields that can be edited $gperm_handler = $xoops->getHandlerGroupPermission(); $editable_fields = $gperm_handler->getItemIds('profile_edit', $xoops->user->getGroups(), $xoops->module->getVar('mid')); if (!($profile = $profile_handler->getProfile($edituser->getVar('uid')))) { $profile = $profile_handler->create(); $profile->setVar('profile_id', $edituser->getVar('uid')); }
} } } } xoops_cp_header(); xoops_error($adduser_errormsg); xoops_cp_footer(); break; case "synchronize": if (!$GLOBALS['xoopsSecurity']->check()) { redirect_header("admin.php?fct=users", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); } synchronize($id, $type); break; case "reactivate": $result = $xoopsDB->query("UPDATE " . $xoopsDB->prefix("users") . " SET level=1 WHERE uid=" . $uid); if (!$result) { $msg = _MD_AM_DBERROR; } else { $msg = _AM_DBUPDATED; xoops_load("userUtility"); XoopsUserUtility::sendWelcome($uid); } redirect_header("admin.php?fct=users&op=modifyUser&uid=" . $uid, 1, $msg); break; case "mod_users": default: include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; displayUsers(); break; }
/** * @return string */ public function linkedPosterName() { xoops_load('XoopsUserUtility'); $ret = $this->author_alias(); if ($ret == '') { $ret = XoopsUserUtility::getUnameFromId($this->uid(), $this->publisher->getConfig('format_realname'), true); } return $ret; }
function mod_getUnameFromId($uid, $usereal = 0, $linked = false) { trigger_error("Deprecated function '" . __FUNCTION__ . "', user XoopsUserUtility directly.", E_USER_NOTICE); return XoopsUserUtility::getUnameFromId($uid, $usereal, $linked); }
function userCheck($uname, $email, $pass, $vpass) { return XoopsUserUtility::validate($uname, $email, $pass, $vpass); }
/** * @param $uname * @param $email * @param $pass * @param $vpass * * @return bool|string */ function userCheck($uname, $email, $pass, $vpass) { $GLOBALS['xoopsLogger']->addDeprecated('Function ' . __FUNCTION__ . ' is deprecated, use XoopsUserUtility::validate() instead'); return XoopsUserUtility::validate($uname, $email, $pass, $vpass); }
/** * @return string */ public function linkedPosterName() { $ret = $this->getVar('author_alias'); if ($ret == '') { $ret = XoopsUserUtility::getUnameFromId($this->getVar('uid'), $this->publisher->getConfig('format_realname'), true); } return $ret; }
function xoops_getLinkedUnameFromId($userid) { trigger_error("Function " . __FUNCTION__ . "() is deprecated, use XoopsUserUtility::getUnameFromId() instead", E_USER_NOTICE); xoops_load("userutility"); return XoopsUserUtility::getUnameFromId($userid, false, true); }
function userCheck($uname, $email, $pass, $vpass) { trigger_error("Function " . __FUNCTION__ . " is deprecated, use XoopsUserUtility::validate() instead", E_USER_WARNING); return XoopsUserUtility::validate($uname, $email, $pass, $vpass); }
/** * @param $queryarray * @param $andor * @param $limit * @param $offset * @param $userid * @param array $categories * @param int $sortby * @param string $searchin * @param string $extra * * @return array */ function publisher_search($queryarray, $andor, $limit, $offset, $userid, $categories = array(), $sortby = 0, $searchin = '', $extra = '') { $publisher =& PublisherPublisher::getInstance(); $ret = array(); if ($queryarray == '' || count($queryarray) == 0) { $hightlightKey = ''; } else { $keywords = implode('+', $queryarray); $hightlightKey = '&keywords=' . $keywords; } $itemsObjs =& $publisher->getHandler('item')->getItemsFromSearch($queryarray, $andor, $limit, $offset, $userid, $categories, $sortby, $searchin, $extra); $withCategoryPath = $publisher->getConfig('search_cat_path'); //xoops_load("xoopslocal"); $usersIds = array(); foreach ($itemsObjs as $obj) { $item['image'] = 'assets/images/item_icon.gif'; $item['link'] = $obj->getItemUrl(); $item['link'] .= !empty($hightlightKey) && strpos($item['link'], '.php?') === false ? '?' . ltrim($hightlightKey, '&') : $hightlightKey; if ($withCategoryPath) { $item['title'] = $obj->getCategoryPath(false) . ' > ' . $obj->getTitle(); } else { $item['title'] = $obj->getTitle(); } $item['time'] = $obj->getVar('datesub'); //must go has unix timestamp $item['uid'] = $obj->uid(); //"Fulltext search/highlight $text = $obj->getBody(); $sanitizedText = ''; $textLower = strtolower($text); $queryarray = is_array($queryarray) ? $queryarray : array($queryarray); if ($queryarray[0] != '' && count($queryarray) > 0) { foreach ($queryarray as $query) { $pos = strpos($textLower, strtolower($query)); //xoops_local("strpos", $textLower, strtolower($query)); $start = max($pos - 100, 0); $length = strlen($query) + 200; //xoops_local("strlen", $query) + 200; $context = $obj->highlight(xoops_substr($text, $start, $length, ' [...]'), $query); $sanitizedText .= '<p>[...] ' . $context . '</p>'; } } //End of highlight $item['text'] = $sanitizedText; $item['author'] = $obj->author_alias(); $item['datesub'] = $obj->getDatesub($publisher->getConfig('format_date')); $usersIds[$obj->uid()] = $obj->uid(); $ret[] = $item; unset($item, $sanitizedText); } xoops_load('XoopsUserUtility'); $usersNames = XoopsUserUtility::getUnameFromIds($usersIds, $publisher->getConfig('format_realname'), true); foreach ($ret as $key => $item) { if ($item['author'] == '') { $ret[$key]['author'] = isset($usersNames[$item['uid']]) ? $usersNames[$item['uid']] : ''; } } unset($usersNames, $usersIds); return $ret; }
/** * Get an array with info about the poster * * @param int $poster_id * * @return array * @access private */ private function getPosterArray($poster_id) { $xoops = Xoops::getInstance(); $poster['id'] = (int) $poster_id; if ($poster['id'] > 0) { $member_handler = $xoops->getHandlerMember(); $user = $member_handler->getUser($poster['id']); if (is_object($user)) { $poster['uname'] = XoopsUserUtility::getUnameFromId($poster['id'], false, true); $poster_rank = $user->rank(); $poster['rank_image'] = $poster_rank['image']; $poster['rank_title'] = $poster_rank['title']; $response = $xoops->service("Avatar")->getAvatarUrl($user); $avatar = $response->getValue(); $avatar = empty($avatar) ? $xoops->url('uploads/blank.gif') : $avatar; $poster['avatar'] = $avatar; $poster['regdate'] = XoopsLocale::formatTimestamp($user->getVar('user_regdate'), 's'); $poster['from'] = $user->getVar('user_from'); $poster['postnum'] = $user->getVar('posts'); $poster['status'] = $user->isOnline() ? _MD_COMMENTS_ONLINE : ''; return $poster; } else { $poster['id'] = 0; } } $poster['uname'] = XoopsUserUtility::getUnameFromId($poster['id'], false, true); $poster['rank_title'] = ''; $poster['avatar'] = $xoops->url('uploads/blank.gif'); $poster['regdate'] = ''; $poster['from'] = ''; $poster['postnum'] = 0; $poster['status'] = ''; return $poster; }
function shoutbox_getUserName($uid = 0) { xoops_load('XoopsUserUtility'); $uname = XoopsUserUtility::getUnameFromId($uid, shoutbox_getOption('user_realname')); return $uname; }
* @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package userconfigs * @version $Id$ */ include dirname(dirname(__DIR__)) . '/mainfile.php'; $xoops = Xoops::getInstance(); $helper = Userconfigs::getInstance(); if (!$xoops->isUser()) { $xoops->redirect($xoops->url('index.php'), 3, _MD_USERCONFIGS_NOACCESS); } $mid = Request::getInt('mid', 0); $uid = $xoops->user->getVar('uid'); $op = Request::getCmd('op', 'show'); $xoops->header('module:userconfigs/list.tpl'); $xoops->tpl()->assign('welcome', sprintf(_MD_USERCONFIGS_WELCOME, XoopsUserUtility::getUnameFromId($xoops->user->getVar('uid'), true))); //Display part switch ($op) { case 'showmod': if (!$mid) { $xoops->redirect($xoops->url('index.php'), 3, _MD_USERCONFIGS_NOMOD); } $module = $xoops->getModuleById($mid); /* @var $plugin UserconfigsPluginInterface */ if (!($plugin = \Xoops\Module\Plugin::getPlugin($module->getVar('dirname'), 'userconfigs'))) { $xoops->redirect($xoops->url('index.php'), 3, _MD_USERCONFIGS_NOPLUGIN); } $config_handler = $helper->getHandlerConfig(); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('conf_modid', $module->getVar('mid'))); $criteria->add(new Criteria('conf_uid', $uid));
function newbb_getIP($asString = false) { xoops_load("xoopsuserutility"); return XoopsUserUtility::getIP($asString); }
if (!$member_handler->insertUser($newuser)) { $adduser_errormsg = _AM_SYSTEM_USERS_CNRNU; } else { $groups_failed = array(); foreach ($_REQUEST['groups'] as $group) { $group = intval($group); if (!$member_handler->addUserToGroup($group, $newuser->getVar('uid'))) { $groups_failed[] = $group; } } if (!empty($groups_failed)) { $group_names = $member_handler->getGroupList(new Criteria('groupid', "(" . implode(", ", $groups_failed) . ")", 'IN')); $adduser_errormsg = sprintf(_AM_SYSTEM_USERS_CNRNU2, implode(", ", $group_names)); } else { xoops_load("XoopsUserUtility"); XoopsUserUtility::sendWelcome($newuser); redirect_header("admin.php?fct=users", 1, _AM_SYSTEM_DBUPDATED); exit; } } } } xoops_error($adduser_errormsg); } break; // Activ member // Activ member case 'users_active': if (isset($_REQUEST["uid"])) { $obj =& $member_handler->getUser($uid); //echo $_REQUEST["uid"];
* uid * tags */ if (!($item = @$items_module[$items[$key]["modid"]][$items[$key]["catid"]][$items[$key]["itemid"]])) { continue; } $item["module"] = $modules_obj[$items[$key]["modid"]]->getVar("name"); $item["dirname"] = $modules_obj[$items[$key]["modid"]]->getVar("dirname", "n"); $time = empty($item["time"]) ? $items[$key]["time"] : $item["time"]; $item["time"] = formatTimestamp($time, "s"); $item["tags"] = @tagBar($item["tags"]); $items_data[] = $item; $uids[$item["uid"]] = 1; } xoops_load("UserUtility"); $users = XoopsUserUtility::getUnameFromIds(array_keys($uids)); foreach (array_keys($items_data) as $key) { $items_data[$key]["uname"] = $users[$items_data[$key]["uid"]]; } if (!empty($start) || count($items_data) >= $limit) { $count_item = $tag_handler->getItemCount($tag_id, $modid, $catid); // Tag, modid, catid include_once XOOPS_ROOT_PATH . "/class/pagenav.php"; $nav = new XoopsPageNav($count_item, $limit, $start, "start", "tag={$tag_id}&catid={$catid}"); $pagenav = $nav->renderNav(4); } else { $pagenav = ""; } $tag_addon = array(); if (!empty($GLOBALS["TAG_MD_ADDONS"])) { $tag_addon["title"] = TAG_MD_TAG_ON;