| $mc_menus{'messages'} | ~; } $MCViewMenu .= qq~$mc_menus{'profile'} | $mc_menus{'posts'} |
| ~;
## links for profile pages. SID is now cloaked and controls whether or not
## the action goes to authenticate or straight to the page.
## The trick is to use $page to pass the intended page through and switch over on
## positive id.
if ($page && $page ne $GLOBAL::ACTION) { $GLOBAL::ACTION = $page; }
my $profileLink;
my $sid = $INFO{'sid'};
my $thisLink = '';
my $sidLink = '';
if (!$sid) {$sid = $FORM{'sid'}; }
if ($sid) { $sidLink = ";sid=$sid"; }
if (!$sid) { $profileLink = 'action=profileCheck;page='; }
else {$profileLink = 'action=';}
$thisLink = 'action=myviewprofile;username=' . $useraccount{$username};
$MCProfMenu .= qq~
~; $thisLink = $profileLink . 'myprofile;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; $thisLink = $profileLink . 'myprofileContacts;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; $thisLink = $profileLink . 'myprofileOptions;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; if ($buddyListEnabled) { $thisLink = $profileLink . 'myprofileBuddy;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; } if ($PM_level == 1 || ($PM_level == 2 && $staff) || ($PM_level == 3 && ($iamadmin || $iamgmod))) { $thisLink = $profileLink . 'myprofileIM;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; } if ($iamadmin || ($iamgmod && $allow_gmod_profile && $gmod_access2{'profileAdmin'} eq 'on')) { $thisLink = $profileLink . 'myprofileAdmin;username=' . $useraccount{$username} . $sidLink; $MCProfMenu .= qq~ ~; } $MCProfMenu .= qq~ |
|
~; if (${$uid.$username}{'postcount'} > 0 && $maxrecentdisplay > 0) { $MCPostsMenu .= qq~ ~; } $MCPostsMenu .= qq~ |
![]() |
||
![]() |
||
![]() |
||
![]() |
||
![]() |
$inmes_txt{'storage'} | |
| ~; if ($storeFoldersTotal > 0 && $folderCount[$x] == 0) { $DelAdFolder = 1; $MCPmMenuTemp .= qq~ ~; } else { $MCPmMenuTemp .= qq~ ~; } $MCPmMenuTemp .= qq~ | ||
|
|
||
|
|
||
| $pageindex1$pageindexjs | ||
| $inmes_txt{'70'} | $senderinfo | $dateColhead |
| $inmes_txt{'151'} | ||
~;
}
## replied to
elsif ($imRepliedTo && !$hasMultiRecs) {
$messageIcon = qq~
~;
}
## opened
elsif ($imOpened && !$hasMultiRecs) {
$messageIcon = qq~
~;
}
## not opened multi
elsif (!$imOpened && $hasMultiRecs) {
$messageIcon = qq~
~;
}
## opened multi
elsif ($imOpened && $hasMultiRecs) {
$messageIcon = qq~
~;
}
}
## outbox
elsif ($GLOBAL::ACTION eq 'imoutbox') {
## not opened
if (!$imOpened && !$hasMultiRecs) {
&LoadUser($musernameto);
if (${$uid.$musernameto}{'notify_me'} < 2 || $enable_notifications < 2) {
$messageIcon = qq~
~;
$callBack = qq~$inmes_imtxt{'83'} | ~;
} else {
$messageIcon = qq~
~;
}
}
## opened
elsif ($imOpened && !$hasMultiRecs) {
$messageIcon = $messageFlags =~ /c/i ? qq~
~ : qq~
~;
}
## for multi rec, and none opened
if ($hasMultiRecs) {
my ($countrecepients,$countread,@receivers);
my $tousers = $musernameto;
$tousers .= ",$musernamecc" if $musernamecc;
$tousers .= ",$musernamebcc" if $musernamebcc;
foreach my $recname (split(/,/, $tousers)) {
$countrecepients++;
&LoadUser($recname);
if (&checkIMS($recname, $messageid, 'messageopened') || (${$uid.$recname}{'notify_me'} > 1 && $enable_notifications > 1)) { $countread++; } else { push(@receivers, $useraccount{$recname}); }
}
if (!$countread) {
$messageIcon = qq~
~;
$callBack = qq~$inmes_imtxt{'83'} | ~;
} elsif ($countrecepients == $countread) {
$messageIcon = $messageFlags =~ /c/i ? qq~
~ : qq~
~;
} else {
$messageIcon = $messageFlags =~ /c/i ? qq~
~ : qq~
~;
$callBack = qq~$inmes_imtxt{'multicallback'} | ~;
}
}
}
}
## switch action if opening a draft - want this sending to the 'send' screen
my $actString = 'imshow';
if ($GLOBAL::ACTION eq 'imdraft') { $actString = 'imsend'; }
## if grouping, check bar here
if ($stkmess && $sortBy ne 'gpdate' && $normDateSet && $viewBMess) {
## sticky messages
$normDateSet = 0;
$MCContent .= qq~
~;
}
$MCContent .= qq~
~;
$immessage =~ s/\[quote(.*?)\](.+?)\[\/quote\]//ig;
}
if ($immessage =~ /\[code\s*(.*?)\]/isg) {
$codeimg = qq~
~;
$immessage =~ s/\[code\s*(.*?)\](.+?)\[\/code\]//ig;
}
$immessage =~ s~
$impercent %
~;
my $tabfill = qq~
~;
# pm link
if ($PM_level == 1 || ($PM_level == 2 && $staff) || ($PM_level == 3 && ($iamadmin || $iamgmod))) {
$yymcmenu .= qq~$tabsep
~;
}
# profile link
$yymcmenu .= qq~
~;
# posts link
$yymcmenu .= qq~$tabsep
~;
$yymcmenu .= qq~$tabsep~;
}
1;