// // ------------------------------------------------------------------------- // // Original Author: The Xoops Project // Author Website : http://www.xoops.org // License Type : GPL: See /manual/LICENSES/GPL.txt // ------------------------------------------------------------------------- // $xoopsOption['pagetype'] = 'user'; $xoopsOption['page_style'] = 8; include_once("./mainfile.php"); $uid = intval($_GET['uid']); if ( empty($uid) ) { redirect_header("index.php", 3, _US_SELECTNG); exit(); } if ($xoopsUser) { if ( $uid == $xoopsUser->getVar("uid") ) { include_once("header.php"); OpenTable(); echo "

"; printf(_WELCOME, $bcoosConfig['title']); echo "


"; echo "

"._US_THISISYOURPAGE."


"; echo "
"; if ( $bcoosConfig['avatar_allow_upload'] == 1 ) { echo ""; } echo ""; if ( $bcoosConfig['self_delete'] ) { echo ""; } echo "


"; $thisUser =& $xoopsUser; } else { $thisUser= new XoopsUser($uid); if ( !$thisUser->isActive() ) { redirect_header("index.php", 3, _US_SELECTNG); exit(); } include_once("header.php"); OpenTable(); echo "

"; if ($xoopsUser->isAdmin()) { echo ""._EDIT.""; } printf(_US_PROFILEFOR, $thisUser->getVar("uname")); echo "

"; } } else { $thisUser = new XoopsUser($uid); if ( !$thisUser->isActive() ) { redirect_header("index.php", 3, _US_SELECTNG); exit(); } include_once("header.php"); OpenTable(); echo "

"; printf(_US_PROFILEFOR, $thisUser->getVar("uname")); echo "


"; } if ( $thisUser->isActive() ) { echo " "; echo "
"; if ($thisUser->getVar("user_avatar")) { echo ""; echo ""; echo ""; } if ($xoopsUser && ($thisUser->getVar("name") != '') ) { echo ""; } if ($thisUser->getVar("url") != "") { echo ""; } if ($xoopsUser) { if ($xoopsUser->isAdmin() || ($xoopsUser->getVar("uid") == $thisUser->getVar("uid")) || ($thisUser->getVar("user_viewemail") == 1)) { echo ""; } } if ($xoopsUser) { echo ""; } if ($xoopsUser && ($thisUser->getVar("user_icq") != '') ) { echo ""; } if ($xoopsUser && ($thisUser->getVar("user_aim") != '') ) { echo ""; } if ($xoopsUser && ($thisUser->getVar("user_yim") != '') ) { echo ""; } if ($xoopsUser && ($thisUser->getVar("user_msnm") != '') ) { echo ""; } if ($thisUser->getVar("user_from") != '') { echo ""; } if ($thisUser->getVar("user_occ") != '') { echo ""; } if ($thisUser->getVar("user_intrest") != '') { echo ""; } if ($thisUser->getVar("bio") != '') { echo ""; } echo "
".sprintf(_US_ALLABOUT, $thisUser->getVar("uname"))."
"._US_AVATAR.":
"._US_REALNAME.":".$thisUser->getVar("name")."
"._US_WEBSITE.":"; echo "".$thisUser->getVar("url")."\n"; echo "
"._EMAIL.":"; echo "".$thisUser->getVar("email").""; echo "
"._US_PM.":"; echo "".sprintf(_SENDPMTO, $thisUser->getVar("uname")).""; echo ""; echo "
"._US_ICQ.":"; echo $thisUser->getVar("user_icq"); echo "
"._US_AIM.":"; echo $thisUser->getVar("user_aim"); echo "
"._US_YIM.":"; echo $thisUser->getVar("user_yim"); echo "
"._US_MSNM.":"; echo $thisUser->getVar("user_msnm"); echo "
"._LOCATION.":"; echo $thisUser->getVar("user_from"); echo "
"._US_OCCUPATION.":"; echo $thisUser->getVar("user_occ"); echo "
"._US_INTEREST.":"; echo $thisUser->getVar("user_intrest"); echo "
"._US_EXTRAINFO.":"; echo $myts->makeTareaData4Show($thisUser->getVar("bio", "N"), 0, 1, 1); echo "
"; echo "
\n"; $userrank = $thisUser->rank(); echo "\n"; $date = $thisUser->getVar("last_login"); if ( !empty($date) ) { echo "\n"; } echo "
"._US_STATISTICS."
"._US_MEMBERSINCE.":".formatTimestamp($thisUser->getVar("user_regdate"),"s")."
"._RANK.":"; if ( $userrank['image'] ) { echo "
"; } echo $userrank['title']."
"._US_POSTS.":".$thisUser->getVar("posts")."
"._US_LASTLOGIN.":".formatTimestamp($date,"m")."
"; if ( $thisUser->getVar("user_sig") ) { echo "
"._US_SIGNATURE."
"; echo $myts->makeTareaData4Show($thisUser->getVar("user_sig", "N"), 0, 1, 1); echo "
"; } echo "
"; } else { printf(_US_INACTIVE, $uid); } CloseTable(); $mids =& XoopsModule::getHasSearchModulesList(false); $output = ''; foreach ($mids as $mid) { $module = new XoopsModule($mid); $results = array(); $results = $module->search("", "", 5, 0, $thisUser->getVar("uid")); $count = count($results); if ( is_array($results) && $count) { $output .= "

".$module->name()."

"; for ($i=0; $i<$count; $i++) { if ( isset($results[$i]['image']) && $results[$i]['image'] != "" ) { $output .= "".$module->name()." "; } else { $output .= "".$module->name()." "; } $output .= "".$myts->makeTboxData4Show($results[$i]['title'])."
"; $output .= $results[$i]['time'] ? " (". formatTimestamp($results[$i]['time']).")" : "
"; } if ( $count == 5 ) { $output .= "
"._US_SHOWALL."
"; } } } if ($output != '') { echo "

"; OpenTable(); echo $output; CloseTable(); } include_once("footer.php"); ?>