"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/forum/attachments.php" between
mybb_1822.zip and mybb_1823.zip

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

attachments.php  (mybb_1822):attachments.php  (mybb_1823)
skipping to change at line 861 skipping to change at line 861
"); ");
while($attachment = $db->fetch_array($query)) while($attachment = $db->fetch_array($query))
{ {
build_attachment_row($attachment, $table, true); build_attachment_row($attachment, $table, true);
} }
// Need to draw pagination for this result set // Need to draw pagination for this result set
if($num_results > $mybb->input['perpage']) if($num_results > $mybb->input['perpage'])
{ {
$pagination_url = "index.php?module=forum-attachm ents&results=1"; $pagination_url = "index.php?module=forum-attachm ents&results=1";
$pagination_vars = array('perpage', 'sortby', 'or der', 'filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', ' dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir'); $pagination_vars = array('perpage', 'sortby', 'or der', 'filename', 'mimetype', 'username', 'downloads', 'downloads_dir', 'dateupl oaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');
foreach($pagination_vars as $var) foreach($pagination_vars as $var)
{ {
if($mybb->input[$var]) if($mybb->input[$var])
{ {
$pagination_url .= "&{$var}=".url encode($mybb->input[$var]); $pagination_url .= "&{$var}=".url encode($mybb->input[$var]);
} }
} }
if(is_array($mybb->input['forum']) && !empty($myb
b->input['forum']))
{
foreach($mybb->input['forum'] as $fid)
{
$pagination_url .= "&forum[]=".(i
nt)$fid;
}
}
$pagination = draw_admin_pagination($mybb->input[ 'page'], $mybb->input['perpage'], $num_results, $pagination_url); $pagination = draw_admin_pagination($mybb->input[ 'page'], $mybb->input['perpage'], $num_results, $pagination_url);
} }
echo $pagination; echo $pagination;
$table->output($lang->results); $table->output($lang->results);
echo $pagination; echo $pagination;
$buttons[] = $form->generate_submit_button($lang->button_ delete_attachments); $buttons[] = $form->generate_submit_button($lang->button_ delete_attachments);
$form->output_submit_wrapper($buttons); $form->output_submit_wrapper($buttons);
 End of changes. 2 change blocks. 
1 lines changed or deleted 10 lines changed or added

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