"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/moderation.php" between
mybb_1822.zip and mybb_1823.zip

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

moderation.php  (mybb_1822):moderation.php  (mybb_1823)
skipping to change at line 538 skipping to change at line 538
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=d.fid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=d.fid)
WHERE CONCAT(',',d.tids,',') LIKE '%,{$tid},%' WHERE CONCAT(',',d.tids,',') LIKE '%,{$tid},%'
ORDER BY d.dateline DESC ORDER BY d.dateline DESC
LIMIT 0, 20 LIMIT 0, 20
"); ");
} }
} }
while($delayedmod = $db->fetch_array($query)) while($delayedmod = $db->fetch_array($query))
{ {
$delayedmod['dateline'] = my_date("jS M Y, {$mybb->settin gs['timeformat']}", $delayedmod['delaydateline']); $delayedmod['dateline'] = my_date('normal', $delayedmod[' delaydateline'], "", 2);
$delayedmod['username'] = htmlspecialchars_uni($delayedmo d['username']); $delayedmod['username'] = htmlspecialchars_uni($delayedmo d['username']);
$delayedmod['profilelink'] = build_profile_link($delayedm od['username'], $delayedmod['uid']); $delayedmod['profilelink'] = build_profile_link($delayedm od['username'], $delayedmod['uid']);
$delayedmod['action'] = $actions[$delayedmod['type']]; $delayedmod['action'] = $actions[$delayedmod['type']];
$info = ''; $info = '';
if(strpos($delayedmod['tids'], ',') === false) if(strpos($delayedmod['tids'], ',') === false)
{ {
$delayed_thread = get_thread($delayedmod['tids']) ; $delayed_thread = get_thread($delayedmod['tids']) ;
$delayed_thread['link'] = get_thread_link($delaye d_thread['tid']); $delayed_thread['link'] = get_thread_link($delaye d_thread['tid']);
$delayed_thread['subject'] = htmlspecialchars_uni ($parser->parse_badwords($delayed_thread['subject'])); $delayed_thread['subject'] = htmlspecialchars_uni ($parser->parse_badwords($delayed_thread['subject']));
eval("\$info .= \"".$templates->get("moderation_d elayedmodaction_notes_thread_single")."\";"); eval("\$info .= \"".$templates->get("moderation_d elayedmodaction_notes_thread_single")."\";");
skipping to change at line 1138 skipping to change at line 1138
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.t id) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=l.t id)
LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fi d) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=l.fi d)
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid ) LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=l.pid )
WHERE t.tid='$tid' WHERE t.tid='$tid'
ORDER BY l.dateline DESC ORDER BY l.dateline DESC
LIMIT 0, 20 LIMIT 0, 20
"); ");
$modactions = ''; $modactions = '';
while($modaction = $db->fetch_array($query)) while($modaction = $db->fetch_array($query))
{ {
$modaction['dateline'] = my_date("jS M Y, G:i", $ modaction['dateline']); $modaction['dateline'] = my_date('relative', $mod action['dateline']);
$modaction['username'] = htmlspecialchars_uni($mo daction['username']); $modaction['username'] = htmlspecialchars_uni($mo daction['username']);
$modaction['profilelink'] = build_profile_link($m odaction['username'], $modaction['uid']); $modaction['profilelink'] = build_profile_link($m odaction['username'], $modaction['uid']);
$modaction['action'] = htmlspecialchars_uni($moda ction['action']); $modaction['action'] = htmlspecialchars_uni($moda ction['action']);
$info = ''; $info = '';
if($modaction['tsubject']) if($modaction['tsubject'])
{ {
$modaction['tsubject'] = htmlspecialchars _uni($parser->parse_badwords($modaction['tsubject'])); $modaction['tsubject'] = htmlspecialchars _uni($parser->parse_badwords($modaction['tsubject']));
$modaction['threadlink'] = get_thread_lin k($modaction['tid']); $modaction['threadlink'] = get_thread_lin k($modaction['tid']);
eval("\$info .= \"".$templates->get("mode ration_threadnotes_modaction_thread")."\";"); eval("\$info .= \"".$templates->get("mode ration_threadnotes_modaction_thread")."\";");
} }
skipping to change at line 1228 skipping to change at line 1228
LEFT JOIN ".TABLE_PREFIX."users u ON (u.u id=d.uid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.u id=d.uid)
LEFT JOIN ".TABLE_PREFIX."forums f ON (f. fid=d.fid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f. fid=d.fid)
WHERE CONCAT(',',d.tids,',') LIKE '%,{$ti d},%' WHERE CONCAT(',',d.tids,',') LIKE '%,{$ti d},%'
ORDER BY d.dateline DESC ORDER BY d.dateline DESC
LIMIT 0, 20 LIMIT 0, 20
"); ");
} }
$delayedmods = ''; $delayedmods = '';
while($delayedmod = $db->fetch_array($query)) while($delayedmod = $db->fetch_array($query))
{ {
$delayedmod['dateline'] = my_date("jS M Y, G:i", $delayed mod['delaydateline']); $delayedmod['dateline'] = my_date('normal', $delayedmod[' delaydateline'], "", 2);
$delayedmod['username'] = htmlspecialchars_uni($delayedmo d['username']); $delayedmod['username'] = htmlspecialchars_uni($delayedmo d['username']);
$delayedmod['profilelink'] = build_profile_link($delayedm od['username'], $delayedmod['uid']); $delayedmod['profilelink'] = build_profile_link($delayedm od['username'], $delayedmod['uid']);
$delayedmod['action'] = $actions[$delayedmod['type']]; $delayedmod['action'] = $actions[$delayedmod['type']];
$info = ''; $info = '';
if(strpos($delayedmod['tids'], ',') === false) if(strpos($delayedmod['tids'], ',') === false)
{ {
$delayed_thread['link'] = get_thread_link($delaye dmod['tids']); $delayed_thread['link'] = get_thread_link($delaye dmod['tids']);
$delayed_thread['subject'] = htmlspecialchars_uni ($thread['subject']); $delayed_thread['subject'] = htmlspecialchars_uni ($thread['subject']);
eval("\$info .= \"".$templates->get("moderation_d elayedmodaction_notes_thread_single")."\";"); eval("\$info .= \"".$templates->get("moderation_d elayedmodaction_notes_thread_single")."\";");
} }
skipping to change at line 3083 skipping to change at line 3083
"type" => 1, "type" => 1,
"dateline" => TIME_NOW "dateline" => TIME_NOW
); );
$db->insert_query("banfilters", $ insert); $db->insert_query("banfilters", $ insert);
} }
} }
// Clear the profile // Clear the profile
$userhandler->clear_profile($uid, $mybb->settings ['purgespammerbangroup']); $userhandler->clear_profile($uid, $mybb->settings ['purgespammerbangroup']);
$cache->update_banned();
$cache->update_bannedips(); $cache->update_bannedips();
$cache->update_awaitingactivation(); $cache->update_awaitingactivation();
// Update reports cache // Update reports cache
$cache->update_reportedcontent(); $cache->update_reportedcontent();
} }
elseif($mybb->settings['purgespammerbandelete'] == "delet e") elseif($mybb->settings['purgespammerbandelete'] == "delet e")
{ {
$user_deleted = $userhandler->delete_user($uid, 1 ); $user_deleted = $userhandler->delete_user($uid, 1 );
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 3 lines changed or added

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