Zeile 381 | Zeile 381 |
---|
} $table->construct_cell($form->generate_check_box('orphaned_attachments[]', $attachment['aid'], '', array('checked' => true))); $table->construct_cell(get_attachment_icon(get_extension($attachment['filename'])), array('width' => 1));
|
} $table->construct_cell($form->generate_check_box('orphaned_attachments[]', $attachment['aid'], '', array('checked' => true))); $table->construct_cell(get_attachment_icon(get_extension($attachment['filename'])), array('width' => 1));
|
$table->construct_cell("<span class=\"float_right\">".get_friendly_size($attachment['filesize'])."</span><a href=\"../attachment.php?aid={$attachment['aid']}\" target=\"_blank\">{$attachment['filename']}</a>", array('class' => $cell_class));
| $table->construct_cell("<span class=\"float_right\">".get_friendly_size($attachment['filesize'])."</span>{$attachment['filename']}", array('class' => $cell_class));
|
$table->construct_cell($reason, array('class' => 'align_center')); if($attachment['dateuploaded']) {
| $table->construct_cell($reason, array('class' => 'align_center')); if($attachment['dateuploaded']) {
|
Zeile 414 | Zeile 414 |
---|
echo "<h3>{$lang->step2of2}</h3>"; echo "<p class=\"align_center\">{$lang->step2of2_line1}</p>"; echo "<p class=\"align_center\">{$lang->step_line2}</p>";
|
echo "<h3>{$lang->step2of2}</h3>"; echo "<p class=\"align_center\">{$lang->step2of2_line1}</p>"; echo "<p class=\"align_center\">{$lang->step_line2}</p>";
|
echo "<p class=\"align_center\"><img src=\"styles/{$page->style}/images/spinner_big.gif\" alt=\"Scanning..\" id=\"spinner\" /></p>";
| echo "<p class=\"align_center\"><img src=\"styles/{$page->style}/images/spinner_big.gif\" alt=\"{$lang->scanning}\" id=\"spinner\" /></p>";
|
$page->output_footer(false); flush();
| $page->output_footer(false); flush();
|
Zeile 573 | Zeile 573 |
---|
echo "<h3>{$lang->step1of2}</h3>"; echo "<p class=\"align_center\">{$lang->step1of2_line1}</p>"; echo "<p class=\"align_center\">{$lang->step_line2}</p>";
|
echo "<h3>{$lang->step1of2}</h3>"; echo "<p class=\"align_center\">{$lang->step1of2_line1}</p>"; echo "<p class=\"align_center\">{$lang->step_line2}</p>";
|
echo "<p class=\"align_center\"><img src=\"styles/{$page->style}/images/spinner_big.gif\" alt=\"Scanning..\" id=\"spinner\" /></p>";
| echo "<p class=\"align_center\"><img src=\"styles/{$page->style}/images/spinner_big.gif\" alt=\"{$lang->scanning}\" id=\"spinner\" /></p>";
|
$page->output_footer(false);
| $page->output_footer(false);
|
Zeile 735 | Zeile 735 |
---|
switch($mybb->input['sortby']) {
|
switch($mybb->input['sortby']) {
|
case "lastactive":
| case "filesize":
|
$sort_field = "a.filesize"; break; case "downloads":
| $sort_field = "a.filesize"; break; case "downloads":
|
Zeile 752 | Zeile 752 |
---|
$mybb->input['sortby'] = "filename"; }
|
$mybb->input['sortby'] = "filename"; }
|
if($mybb->input['sortorder'] != "desc")
| if($mybb->input['order'] != "desc")
|
{
|
{
|
$mybb->input['sortorder'] = "asc";
| $mybb->input['order'] = "asc";
|
}
$page->add_breadcrumb_item($lang->results);
| }
$page->add_breadcrumb_item($lang->results);
|
Zeile 781 | Zeile 781 |
---|
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid) WHERE {$search_sql}
|
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=a.uid) WHERE {$search_sql}
|
ORDER BY {$sort_field} {$mybb->input['sortorder']}
| ORDER BY {$sort_field} {$mybb->input['order']}
|
LIMIT {$start}, {$mybb->input['perpage']} "); while($attachment = $db->fetch_array($query))
| LIMIT {$start}, {$mybb->input['perpage']} "); while($attachment = $db->fetch_array($query))
|
Zeile 793 | Zeile 793 |
---|
if($num_results > $mybb->input['perpage']) { $pagination_url = "index.php?module=forum-attachments&results=1";
|
if($num_results > $mybb->input['perpage']) { $pagination_url = "index.php?module=forum-attachments&results=1";
|
$pagination_vars = array('filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');
| $pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');
|
foreach($pagination_vars as $var) { if($mybb->input[$var])
| foreach($pagination_vars as $var) { if($mybb->input[$var])
|
Zeile 928 | Zeile 928 |
---|
$attachment['username'] = $attachment['username']; } $table->construct_cell(build_profile_link($attachment['username'], $attachment['uid'], "_blank"), array("class" => "align_center"));
|
$attachment['username'] = $attachment['username']; } $table->construct_cell(build_profile_link($attachment['username'], $attachment['uid'], "_blank"), array("class" => "align_center"));
|
$table->construct_cell("<a href=\"../".get_post_link($attachment['pid'])."\" target=\"_blank\">".htmlspecialchars($attachment['subject'])."</a>", array("class" => "align_center"));
| $table->construct_cell("<a href=\"../".get_post_link($attachment['pid'])."\" target=\"_blank\">".htmlspecialchars_uni($attachment['subject'])."</a>", array("class" => "align_center"));
|
$table->construct_cell(my_number_format($attachment['downloads']), array("class" => "align_center")); if($attachment['dateuploaded'] > 0) {
| $table->construct_cell(my_number_format($attachment['downloads']), array("class" => "align_center")); if($attachment['dateuploaded'] > 0) {
|