id != "" && $my->id != 0) {//we got a valid and logged on user so we can go on //debug ("Yippie, we got in!! up#39"); //What should we do? if($do=="show") {//show it is.. if (!$sbConfig['cb_profile']) { //first we gather some information about this person $database->setQuery("SELECT * FROM #__sb_users LEFT JOIN #__users on #__users.id=#__sb_users.userid WHERE userid=$my->id"); $userDetails=$database->loadObjectList(); //Mambo userids are unique, so we don't worry about that //fill the variables needed later foreach($userDetails as $user) { $prefview = $user->view ; $signature = $user->signature; $username = $user->name ; $moderator = $user->moderator; $sbavatar = $user->avatar; $ordering = $user->ordering; list($avWidth, $avHeight) = @getimagesize($avatar); //that's it we got now; later the 'future_use' columns can be used.. } //use mypms pro avatar if configured if ($sbConfig['avatar_src']=="pmspro") { $database->setQuery("SELECT picture FROM #__mypms_profiles WHERE name='$username'"); $avatar=$database->loadResult(); } elseif ($sbConfig['avatar_src']=="cb") { $database->setQuery("SELECT avatar FROM #__comprofiler WHERE user_id='$my->id'"); $avatar=$database->loadResult(); } else { $avatar = $sbavatar; } } //get all subscriptions for this user $database->setQuery("select thread from #__sb_subscriptions where userid=$my->id"); $subslist=$database->loadObjectList(); $csubslist=count($subslist); //get all forums for which this user is assigned as moderator, BUT only if the user isn't an admin //since these are moderators for all forums (regardless if a forum is set to be moderated) if (!$is_admin) { $database->setQuery("select #__sb_moderation.catid,#__sb_categories.name from #__sb_moderation left join #__sb_categories on #__sb_categories.id=#__sb_moderation.catid where #__sb_moderation.userid=$my->id"); $modslist=$database->loadObjectList(); $cmodslist=count($modslist); } //here we go: ?>
' ._FORUM_IS_OFFLINE. '' : ' ' ;?>

' : _HOME; ?> ' : _GEN_HELP; ?> '; echo $sbIcons['rules'] ? ''._GEN_RULES.'' : _GEN_RULES; echo ''; }?>



 "; echo ''; }?>
*:
*: *'._USER_CHANGE_VIEW.''; ?>
:




Colour: Size:


   
"; if ($sbConfig['avatar_src']=="pmspro"){ if ($avatar!=""){?>



   
 

0){ foreach($subslist as $subs){//get all message details for each subscription $database->setQuery("select * from #__sb_messages where id=$subs->thread"); $subdet=$database->loadObjectList(); foreach($subdet as $sub){ $k=1-$k; echo ""; echo ' "; $enum++; } } } else{ echo ''; } ?>
'.$enum.': '.$sub->subject.' - ' ._GEN_BY. ' ' .$sub->name; echo ' ' ._THREAD_UNSUBSCRIBE. ''; echo "
'._USER_NOSUBSCRIPTIONS.'

0){ foreach($modslist as $mods){//get all moderator details for each moderation $k=1-$k; echo ""; echo ' '; echo ""; $enum++; } } else { echo ""; } } else { echo ""; } echo "
:
'.$enum.': '.$mods->name.'
"._USER_MODERATOR_NONE."
"._USER_MODERATOR_ADMIN."
"; } else if($do == "update") {//we update anything $rowItemid = mosGetParam( $_REQUEST, 'Itemid' ); $deleteAvatar = mosGetParam( $_POST, 'deleteAvatar' , 0 ); $deleteSig = mosGetParam( $_POST, 'deleteSig' , 0 ); $unsubscribeAll = mosGetParam( $_POST, 'unsubscribeAll', 0 ); $signature = mosGetParam( $_POST, 'message' , '' ); $newview = mosGetParam( $_POST, 'newview' , 'flat' ); $avatar = mosGetParam( $_POST, 'avatar' , '' ); (int)$neworder = mosGetParam( $_POST, 'neworder' , 0 ); if($deleteSig == 1){$signature="";} $signature=trim(htmlentities(addslashes($signature))); //parse the message for some preliminary bbcode and stripping of HTML $signature = smile::bbencode_first_pass($signature); if($deleteAvatar == 1){$avatar="";} $database->setQuery("UPDATE #__sb_users set signature='$signature', view='$newview', avatar='$avatar', ordering='$neworder' where userid=$my_id"); setcookie("sboard_settings[current_view]",$newview); if(!$database->query()) { echo _USER_PROFILE_NOT_A." "._USER_PROFILE_NOT_B." "._USER_PROFILE_NOT_C.".

"; }else { echo _USER_PROFILE_UPDATED."

"; } echo _USER_RETURN_A." "._USER_RETURN_B."

"; if ($unsubscribeAll){ $database->setQuery("DELETE FROM #__sb_subscriptions WHERE userid='$my_id'"); $database->query(); } ?> setQuery("DELETE from #__sb_subscriptions where userid=$my->id and thread=$thread"); if(!$database->query()) { echo _USER_UNSUBSCRIBE_A." "._USER_UNSUBSCRIBE_B." "._USER_UNSUBSCRIBE_C.".

"; }else { echo _USER_UNSUBSCRIBE_YES.".

"; } if ($sbConfig['cb_profile']) { echo _USER_RETURN_A." "._USER_RETURN_B."

"; ?> "._USER_RETURN_B."

"; ?>
"; echo _USER_ERROR_C."

"._USER_ERROR_D.": SB001-up-02NoDO

"; } } else {//get outa here, you fraud! echo _USER_ERROR_A; echo _USER_ERROR_B."

"; echo _USER_ERROR_C."

"._USER_ERROR_D.": SB001-up-01NLO

"; //that should scare 'em off enough... ;-) } ?>