"Fossies" - the Fresh Open Source Software Archive  

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

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

modcp.php  (mybb_1819):modcp.php  (mybb_1820)
skipping to change at line 3440 skipping to change at line 3440
} }
// No results? // No results?
if(!$users) if(!$users)
{ {
eval("\$users = \"".$templates->get("modcp_finduser_noresults")." \";"); eval("\$users = \"".$templates->get("modcp_finduser_noresults")." \";");
} }
$plugins->run_hooks("modcp_finduser_end"); $plugins->run_hooks("modcp_finduser_end");
$username = $mybb->get_input('username'); $username = htmlspecialchars_uni($mybb->get_input('username'));
eval("\$finduser = \"".$templates->get("modcp_finduser")."\";"); eval("\$finduser = \"".$templates->get("modcp_finduser")."\";");
output_page($finduser); output_page($finduser);
} }
if($mybb->input['action'] == "warninglogs") if($mybb->input['action'] == "warninglogs")
{ {
if($mybb->usergroup['canviewwarnlogs'] == 0) if($mybb->usergroup['canviewwarnlogs'] == 0)
{ {
error_no_permission(); error_no_permission();
} }
skipping to change at line 3581 skipping to change at line 3581
if($page <= 0) if($page <= 0)
{ {
$page = 1; $page = 1;
} }
$per_page = 20; $per_page = 20;
if(isset($mybb->input['filter']['per_page']) && (int)$mybb->input['filter ']['per_page'] > 0) if(isset($mybb->input['filter']['per_page']) && (int)$mybb->input['filter ']['per_page'] > 0)
{ {
$per_page = (int)$mybb->input['filter']['per_page']; $per_page = (int)$mybb->input['filter']['per_page'];
} }
$start = ($page-1) * $per_page; $start = ($page-1) * $per_page;
$pages = ceil($total_warning / $per_page); $pages = ceil($total_warnings / $per_page);
if($page > $pages) if($page > $pages)
{ {
$start = 0; $start = 0;
$page = 1; $page = 1;
} }
// Build the base URL for pagination links // Build the base URL for pagination links
$url = 'modcp.php?action=warninglogs'; $url = 'modcp.php?action=warninglogs';
if(is_array($mybb->input['filter']) && count($mybb->input['filter'])) if(is_array($mybb->input['filter']) && count($mybb->input['filter']))
{ {
foreach($mybb->input['filter'] as $field => $value) foreach($mybb->input['filter'] as $field => $value)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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