23 include __DIR__ .
'/mainfile.php';
27 $xoops->preload()->triggerEvent(
'core.userinfo.start');
29 $xoops->loadLanguage(
'user');
30 include_once
$xoops->path(
'modules/system/constants.php');
32 $uid = intval($_GET[
'uid']);
43 $xoops->header(
'module:system/system_userinfo.tpl');
44 $xoops->tpl()->assign(
'user_ownpage',
true);
50 $xoops->tpl()->assign(
'user_candelete',
true);
53 $xoops->tpl()->assign(
'user_candelete',
false);
62 $xoops->header(
'module:system/system_userinfo.tpl');
63 $xoops->tpl()->assign(
'user_ownpage',
false);
71 $xoops->header(
'module:system/system_userinfo.tpl');
72 $xoops->tpl()->assign(
'user_ownpage',
false);
87 $xoops->tpl()->assign(
'btn', $btn);
100 if (
$thisUser->getVar(
'url',
'E') ==
'') {
101 $xoops->tpl()->assign(
'user_websiteurl',
'');
105 '<a href="' .
$thisUser->getVar(
'url',
'E') .
'" rel="external">' .
$thisUser->getVar(
'url') .
'</a>'
119 $xoops->tpl()->assign(
'user_location',
$thisUser->getVar(
'user_from'));
121 $xoops->tpl()->assign(
'user_occupation',
$thisUser->getVar(
'user_occ'));
123 $xoops->tpl()->assign(
'user_interest',
$thisUser->getVar(
'user_intrest'));
126 $xoops->tpl()->assign(
'user_extrainfo',
$myts->displayTarea(
$var, 0, 1, 1));
141 $xoops->tpl()->assign(
'user_signature',
$myts->displayTarea(
$var, 0, 1, 1));
142 if (
$thisUser->getVar(
'user_viewemail') == 1) {
151 $xoops->tpl()->assign(
'user_email',
' ');
158 "<a href=\"javascript:openWithSelfMain('" .
$xoops_url .
"/pmlite.php?send2=1&to_userid="
160 .
"/images/icons/pm.gif\" alt=\""
164 $xoops->tpl()->assign(
'user_pmlink',
'');
166 if (
$xoops->isActiveModule(
'userrank')) {
168 if (isset($userrank[
'image']) && $userrank[
'image']) {
174 $xoops->tpl()->assign(
'user_ranktitle', $userrank[
'title']);
193 $plugin = \Xoops\Module\Plugin::getPlugin(
$modules[$i]->getVar(
'dirname'),
'search');
194 if (method_exists($plugin,
'search')) {
195 $results = $plugin->search(
'',
'', 5, 0,
$thisUser->getVar(
'uid'));
197 if (is_array($results) && count($results) > 0) {
200 foreach ($results as $k =>
$result) {
202 $results[$k][
'image']
205 $results[$k][
'image'] =
$xoops->url(
'images/icons/posticon2.gif');
208 if (!preg_match(
"/^http[s]*:\/\//i",
$result[
'link'])) {
213 $results[$k][
'title'] =
$myts->htmlspecialchars(
$result[
'title']);
214 $results[$k][
'title_highligh'] =
$myts->htmlspecialchars(
$result[
'title']);
218 if (!empty($results[$k][
'uid'])) {
219 $results[$k][
'uid'] = @intval($results[$k][
'uid']);
224 $showall_link =
'<a href="search.php?action=showallbyuser&mid='
233 'name' =>
$modules[$i]->getVar(
'name'),
234 'image' =>
$xoops->url(
'modules/' .
$modules[$i]->getVar(
'dirname') .
'/icons/logo_large.png'),
235 'result' => $results,
236 'showall_link' => $showall_link
static formatTimestamp($time, $format= 'l', $timeoffset=null)
if($uname== ''||$pass== '') $member_handler
const F_SEND_PRIVATE_MESSAGE_TO
if($uid<=0) $gperm_handler
static getUnameFromId($userid, $usereal=0)
if($xoops->isUser()&&$isAdmin) $response
if(!empty($date)) $module_handler