"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/usercp.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

usercp.php  (mybb_1819):usercp.php  (mybb_1820)
skipping to change at line 4110 skipping to change at line 4110
$username = format_name(htmlspecialchars_uni($mybb->user['username']), $m ybb->user['usergroup'], $mybb->user['displaygroup']); $username = format_name(htmlspecialchars_uni($mybb->user['username']), $m ybb->user['usergroup'], $mybb->user['displaygroup']);
$username = build_profile_link($username, $mybb->user['uid']); $username = build_profile_link($username, $mybb->user['uid']);
// Format post numbers // Format post numbers
$mybb->user['posts'] = my_number_format($mybb->user['postnum']); $mybb->user['posts'] = my_number_format($mybb->user['postnum']);
// Build referral link // Build referral link
if($mybb->settings['usereferrals'] == 1) if($mybb->settings['usereferrals'] == 1)
{ {
$referral_link = $lang->sprintf($lang->referral_link, $settings[' bburl'], $mybb->user['uid']); $referral_link = $lang->sprintf($lang->referral_link, $settings[' bburl'], $mybb->user['uid']);
$referral_count = (int) $mybb->user['referrals'];
if($referral_count > 0)
{
$uid = (int) $mybb->user['uid'];
eval("\$mybb->user['referrals'] = \"".$templates->get('me
mber_referrals_link')."\";");
}
eval("\$referral_info = \"".$templates->get("usercp_referrals")." \";"); eval("\$referral_info = \"".$templates->get("usercp_referrals")." \";");
} }
// User Notepad // User Notepad
$plugins->run_hooks("usercp_notepad_start"); $plugins->run_hooks("usercp_notepad_start");
$mybb->user['notepad'] = htmlspecialchars_uni($mybb->user['notepad']); $mybb->user['notepad'] = htmlspecialchars_uni($mybb->user['notepad']);
eval("\$user_notepad = \"".$templates->get("usercp_notepad")."\";"); eval("\$user_notepad = \"".$templates->get("usercp_notepad")."\";");
$plugins->run_hooks("usercp_notepad_end"); $plugins->run_hooks("usercp_notepad_end");
// Thread Subscriptions with New Posts // Thread Subscriptions with New Posts
skipping to change at line 4187 skipping to change at line 4195
{ {
$subscriptions[$post['tid']]['dot icon'] = 1; $subscriptions[$post['tid']]['dot icon'] = 1;
} }
} }
$icon_cache = $cache->read("posticons"); $icon_cache = $cache->read("posticons");
$threadprefixes = build_prefixes(); $threadprefixes = build_prefixes();
foreach($subscriptions as $thread) foreach($subscriptions as $thread)
{ {
$plugins->run_hooks("usercp_thread_subscr iptions_thread");
$folder = ''; $folder = '';
$folder_label = ''; $folder_label = '';
$gotounread = ''; $gotounread = '';
if($thread['tid']) if($thread['tid'])
{ {
$bgcolor = alt_trow(); $bgcolor = alt_trow();
$thread['subject'] = $parser->par se_badwords($thread['subject']); $thread['subject'] = $parser->par se_badwords($thread['subject']);
$thread['subject'] = htmlspecialc hars_uni($thread['subject']); $thread['subject'] = htmlspecialc hars_uni($thread['subject']);
$thread['threadlink'] = get_threa d_link($thread['tid']); $thread['threadlink'] = get_threa d_link($thread['tid']);
skipping to change at line 4379 skipping to change at line 4388
} }
} }
$icon_cache = $cache->read("posticons"); $icon_cache = $cache->read("posticons");
$threadprefixes = build_prefixes(); $threadprefixes = build_prefixes();
// Run the threads... // Run the threads...
$latest_threads_threads = ''; $latest_threads_threads = '';
foreach($threadcache as $thread) foreach($threadcache as $thread)
{ {
$plugins->run_hooks("usercp_latest_threads_thread");
if($thread['tid']) if($thread['tid'])
{ {
$bgcolor = alt_trow(); $bgcolor = alt_trow();
$folder = ''; $folder = '';
$folder_label = ''; $folder_label = '';
$prefix = ''; $prefix = '';
$gotounread = ''; $gotounread = '';
$isnew = 0; $isnew = 0;
$donenew = 0; $donenew = 0;
$lastread = 0; $lastread = 0;
skipping to change at line 4495 skipping to change at line 4505
} }
// Is our thread visible? // Is our thread visible?
if($thread['visible'] == 0) if($thread['visible'] == 0)
{ {
$bgcolor = 'trow_shaded'; $bgcolor = 'trow_shaded';
} }
if($thread['closed'] == 1) if($thread['closed'] == 1)
{ {
$folder .= "lock"; $folder .= "close";
$folder_label .= $lang->icon_lock; $folder_label .= $lang->icon_close;
} }
$folder .= "folder"; $folder .= "folder";
$lastpostdate = my_date('relative', $thread['last post']); $lastpostdate = my_date('relative', $thread['last post']);
$lastposter = htmlspecialchars_uni($thread['lastp oster']); $lastposter = htmlspecialchars_uni($thread['lastp oster']);
$lastposteruid = $thread['lastposteruid']; $lastposteruid = $thread['lastposteruid'];
if($lastposteruid == 0) if($lastposteruid == 0)
{ {
 End of changes. 4 change blocks. 
2 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)