dir|^|Packages
file|^|Packages/modification.php|^|647|^|1043357535
global $db_prefix, $YaBBversion;
$pos = strpos($YaBBversion, "YaBB SE 1.5.1");
if (!($pos === false))
$myversion = '1.5.1';
if ($myversion == '1.5.1')
{
rename('Packages/modification1.5.1.mod', 'Packages/modification.mod');
unlink('Packages/modification1.4.1.mod');
}
else
{
rename('Packages/modification1.4.1.mod', 'Packages/modification.mod');
unlink('Packages/modification1.5.1.mod');
}
if (file_exists("Packages/uninstall.php"))
unlink("Packages/uninstall.php");
if (file_exists("Packages/uninstall.txt"))
unlink("Packages/uninstall.txt");
if (file_exists("Packages/uninstall.sql"))
unlink("Packages/uninstall.sql");
?>file|^|Packages/modification.txt|^|54|^|1043357535
This mod allows for the Admin to view any members PMs.file|^|Packages/modification1.4.1.mod|^|504|^|1043357536
english.lng
$txt[1] =
$txt[viewimbymember] = "View IM By Member";
index.php
else if ($action == 'imprefs')
else if ($action == 'imadmin') { include_once "$sourcedir/ViewIMByMember.php"; IMAdminIndex($IMuser); }
Sources/Admin.php
$txt[viewimbymember]
file|^|Packages/modification1.5.1.mod|^|972|^|1043357536
View PM By Member
1.0 (YabbSE 1.5.1)
Jack.R.Abbit
Jack.R.Abbit
Jack.R.Abbit
This mod allows for the Admin to view any members PMs.
no
english.lng
$txt[1] =
$txt['viewimbymember'] = 'View PM By Member';
index.php
$actionArray = array(
'imadmin' => array("$sourcedir/ViewIMByMember.php", 'IMAdminIndex'),
Sources/Admin.php
' . $txt[6] . '
' . $txt['viewimbymember'] . '
file|^|Packages/uninstall.php|^|583|^|1043357537
global $db_prefix, $YaBBversion;
$pos = strpos($YaBBversion, "YaBB SE 1.5.1");
if (!($pos === false))
$myversion = '1.5.1';
echo 'Building modification.mod
';
if ($myversion == '1.5.1')
{
rename('Packages/modification1.5.1.mod', 'Packages/modification.mod');
unlink('Packages/modification1.4.1.mod');
}
else
{
rename('Packages/modification1.4.1.mod', 'Packages/modification.mod');
unlink('Packages/modification1.5.1.mod');
}
if (file_exists("Sources/ViewIMByMember.php"))
{
echo 'Removing ViewIMByMember.php
';
unlink("Sources/ViewIMByMember.php");
}
?>file|^|Packages/uninstall.txt|^|59|^|1043357537
Trying to run uninstall files for viewimbymember.mod.yp....dir|^|Sources
file|^|Sources/ViewIMByMember.php|^|18740|^|1043357538
| ';
/* Load Messages */
$request = mysql_query("SELECT * FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_TO='$IMuser' AND (deletedBy!=1)) ORDER BY msgtime") or database_error(__FILE__, __LINE__);
echo '
' . $txt[316] . '
|
| ' . $txt[317] . ' |
' . $txt[318] . ' |
' . $txt[319] . ' |
';
if (mysql_num_rows($request) == 0)
{
echo '
| ' . $txt[151] . ' |
';
}
$bgcolors = array($color['windowbg'], $color['windowbg2']);
$bgstyles = array("windowbg", "windowbg2");
$bgcolornum = sizeof($bgcolors);
$bgstylenum = sizeof($bgstyles);
$counter = 0;
while ($row = mysql_fetch_array($request))
{
$counter++;
$musername = $row['fromName'];
$msub = $row['subject'];
$mdate = $row['msgtime'];
$immessage = $row['body'];
$messageid = $row['ID_IM'];
$windowbg = $bgcolors[($counter % $bgcolornum)];
$windowcss = $bgstyles[($counter % $bgstylenum)];
if ($msub == '')
$msub = $txt[24];
CensorTxt($msub);
$mydate = timeformat($mdate);
echo '
| ' . $mydate . ' |
' . $musername . ' |
' . $msub . ' |
';
}
echo '
|
';
if (mysql_num_rows($request) > 0)
{
echo '
| ' . $txt[29] . ' |
' . $txt[118] . ' |
';
$request = mysql_query("SELECT * FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_TO=$IMuser && deletedBy != 1) ORDER BY msgtime") or database_error(__FILE__, __LINE__);
$counter = 0;
while ($row = mysql_fetch_array($request))
{
$counter++;
$windowbg = $bgcolors[($counter % $bgcolornum)];
$windowcss = $bgstyles[($counter % $bgstylenum)];
$musername = $row['fromName'];
$msub = $row['subject'];
$mdate = $row['msgtime'];
$immessage = $row['body'];
$messageid = $row['ID_IM'];
if ($msub == '')
$msub = $txt[24];
$mydate = timeformat($mdate);
$result = mysql_query("SELECT ID_MEMBER FROM {$db_prefix}members WHERE memberName='$musername'") or database_error(__FILE__, __LINE__);
# If user is not in memory, s/he must be loaded.
if ($musername != 'Guest' && !isset($yyUDLoaded[$musername]))
LoadUserDisplay($musername);
$online = '';
$title = '';
if ($yyUDLoaded[$musername])
{
$deleted = 0;
$star = $memberstar[$musername];
$memberinf = $memberinfo[$musername];
$icq = $icqad[$musername];
$yim = $yimon[$musername];
$euser = urlencode($musername);
$usernamelink = '' . $userprofile[$musername]['realName'] . '';
$profbutton = ($profilebutton != '' && $musername != 'Guest') ? $menusep . '' . $img['viewprofile'] . '' : '';
$postinfo = $txt[26] . ': ' . $userprofile[$musername]['posts'] . '
';
$memail = $userprofile[$musername]['emailAddress'];
if ($modSettings['titlesEnable'] != '0' && $userprofile[$musername]['usertitle'] != '')
$title = $userprofile[$musername]['usertitle'] . '
';
if ($modSettings['onlineEnable'] != '0')
{
if (OnlineStatus($musername) > 0)
$online = $txt['online2'] . '
';
else
$online = $txt['online3'] . '
';
}
else
$online = '';
}
else // user has been deleted
{
$deleted = 1;
$star = '';
$memberinf = '';
$icq = '';
$yim = '';
$usernamelink = $musername;
$postinfo = '';
$memail = '';
$profbutton = '';
}
CensorTxt($immessage);
CensorTxt($msub);
$message = $immessage; # put the message back in the proper variable for doing ubbc
if ($enable_ubbc)
$message = DoUBBC($message);
echo '
'
. $usernamelink . ' '
. $title . ' ' . $memberinf . ' '
. $star . '
'
. $online . ' ' . $postinfo . ' ' . $userprofile[$musername]['gender']
. '' . $userprofile[$musername]['avatar'] . ' '
. $userprofile[$musername]['personalText'] . ' ' . $userprofile[$musername]['ICQ'] . ' '
. $icq . ' ' . $userprofile[$musername]['YIM'] . ' ' .$yim . ' '
. $userprofile[$musername]['AIM'] . '
|
| ' . $msub . ' |
' . $txt[30] . ': ' . $mydate . ' |
' . $message . '
|
' . $userprofile[$musername]['signature'] . '
|
|
' . $userprofile[$musername]['websiteUrl_IM'] . '' . $img['email'] . '' . $profbutton . '
|
|
|
';
}
echo '
';
}
echo '
| ';
/* Load Messages */
$request = mysql_query("SELECT * FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_FROM='$IMuser' AND (deletedBy!=1)) ORDER BY msgtime") or database_error(__FILE__, __LINE__);
echo '
' . $txt[320] . '
|
| ' . $txt[317] . ' |
' . $txt[324] . ' |
' . $txt[319] . ' |
';
if (mysql_num_rows($request) == 0)
{
echo '
| ' . $txt[151] . ' |
';
}
$bgcolors = array($color['windowbg'], $color['windowbg2']);
$bgstyles = array("windowbg", "windowbg2");
$bgcolornum = sizeof($bgcolors);
$bgstylenum = sizeof($bgstyles);
$counter = 0;
while ($row = mysql_fetch_array($request))
{
$counter++;
$musername = $row['fromName'];
$msub = $row['subject'];
$mdate = $row['msgtime'];
$immessage = $row['body'];
$messageid = $row['ID_IM'];
$windowbg = $bgcolors[($counter % $bgcolornum)];
$windowcss = $bgstyles[($counter % $bgstylenum)];
if ($msub == '')
$msub = $txt[24];
CensorTxt($msub);
$mydate = timeformat($mdate);
echo '
| ' . $mydate . ' |
' . $musername . ' |
' . $msub . ' |
';
}
echo '
|
';
if (mysql_num_rows($request) > 0)
{
echo '
| ' . $txt[535] . ' |
' . $txt[118] . ' |
';
$request = mysql_query("SELECT * FROM {$db_prefix}instant_messages WHERE (ID_MEMBER_FROM=$IMuser && deletedBy != 0) ORDER BY msgtime") or database_error(__FILE__, __LINE__);
$counter = 0;
while ($row = mysql_fetch_array($request))
{
$counter++;
$windowbg = $bgcolors[($counter % $bgcolornum)];
$windowcss = $bgstyles[($counter % $bgstylenum)];
$musername = $row['toName'];
$msub = $row['subject'];
$mdate = $row['msgtime'];
$immessage = $row['body'];
$messageid = $row['ID_IM'];
if ($msub == '')
$msub = $txt[24];
$mydate = timeformat($mdate);
$result = mysql_query("SELECT ID_MEMBER FROM {$db_prefix}members WHERE memberName='$musername'") or database_error(__FILE__, __LINE__);
# If user is not in memory, s/he must be loaded.
$online = '';
$title = '';
if ($musername != 'Guest' && ! isset($yyUDLoaded[$musername]) && mysql_num_rows($result)>0)
LoadUserDisplay($musername);
if ($yyUDLoaded[$musername])
{
$star = $memberstar[$musername];
$memberinf = $memberinfo[$musername];
$icq = $icqad[$musername];
$yim = $yimon[$musername];
$euser = urlencode($musername);
$usernamelink = '' . $userprofile[$musername]['realName'] . '';
$profbutton = ($profilebutton != '' && $musername != 'Guest') ? $menusep . '' . $img['viewprofile'] . '' : '';
$postinfo = $txt[26] . ': ' . $userprofile[$musername]['posts'] . '
';
$memail = $userprofile[$musername]['emailAddress'];
if ($modSettings['titlesEnable'] != '0' && $userprofile[$musername]['usertitle'] != '')
$title = $userprofile[$musername]['usertitle'] . '
';
if ($modSettings['onlineEnable'] != '0')
{
if (OnlineStatus($musername) > 0)
$online = $txt[online2] . '
';
else
$online = $txt[online3] . '
';
}
else
$online = '';
}
$message = $immessage; # put the message back in the proper variable for doing ubbc
CensorTxt($immessage);
CensorTxt($msub);
$message = $immessage; # put the message back in the proper variable for doing ubbc
if ($enable_ubbc)
$message = DoUBBC($message);
echo '
'
. $usernamelink . ' '
. $title . ' ' . $memberinf . ' '
. $star . '
'
. $online . ' ' . $postinfo . ' ' . $userprofile[$musername]['gender']
. '' . $userprofile[$musername]['avatar'] . ' '
. $userprofile[$musername]['personalText'] . ' ' . $userprofile[$musername]['ICQ'] . ' '
. $icq . ' ' . $userprofile[$musername]['YIM'] . ' ' .$yim . ' '
. $userprofile[$musername]['AIM'] . '
|
|
';
}
echo '
';
}
footer();
obExit();
}
?>