Vergleich admin/modules/forum/attachments.php - 1.8.17 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 374Zeile 374
			foreach($bad_attachments as $file)
{
$file_path = MYBB_ROOT.$mybb->settings['uploadspath']."/".$file;

			foreach($bad_attachments as $file)
{
$file_path = MYBB_ROOT.$mybb->settings['uploadspath']."/".$file;

				$filesize = get_friendly_size(filesize($file_path));
$table->construct_cell($form->generate_check_box('orphaned_files[]', $file, '', array('checked' => true)));
$table->construct_cell(get_attachment_icon(get_extension($attachment['filename'])), array('width' => 1));
$table->construct_cell("<span class=\"float_right\">{$filesize}</span>{$file}");
$table->construct_cell($lang->reason_not_in_table, array('class' => 'align_center'));
$table->construct_cell(my_date('relative', filemtime($file_path)), array('class' => 'align_center'));
$table->construct_row();







if(file_exists($file_path))
{
$filename = htmlspecialchars_uni($file);
$filesize = get_friendly_size(filesize($file_path));
$table->construct_cell($form->generate_check_box('orphaned_files[]', $file, '', array('checked' => true)));
$table->construct_cell(get_attachment_icon(get_extension($attachment['filename'])), array('width' => 1));
$table->construct_cell("<span class=\"float_right\">{$filesize}</span>{$filename}");
$table->construct_cell($lang->reason_not_in_table, array('class' => 'align_center'));
$table->construct_cell(my_date('relative', filemtime($file_path)), array('class' => 'align_center'));
$table->construct_row();
}

			}
}


			}
}


Zeile 392Zeile 397
				$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

if($missing_attachment_files[$attachment['aid']])

				$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

if($missing_attachment_files[$attachment['aid']])

				{

				{

					$reason = $lang->reason_file_missing;

					$reason = $lang->reason_file_missing;

				}

				}

				else if($missing_threads[$attachment['aid']])

				else if($missing_threads[$attachment['aid']])

				{

				{

					$reason = $lang->reason_thread_deleted;
}
else if($incomplete_attachments[$attachment['aid']])

					$reason = $lang->reason_thread_deleted;
}
else if($incomplete_attachments[$attachment['aid']])

				{

				{

					$reason = $lang->reason_post_never_made;
}
$table->construct_cell($form->generate_check_box('orphaned_attachments[]', $attachment['aid'], '', array('checked' => true)));

					$reason = $lang->reason_post_never_made;
}
$table->construct_cell($form->generate_check_box('orphaned_attachments[]', $attachment['aid'], '', array('checked' => true)));

Zeile 437Zeile 442
		$page->output_nav_tabs($sub_tabs, 'find_orphans');
echo "<h3>{$lang->step2of2}</h3>";
echo "<p class=\"align_center\">{$lang->step2of2_line1}</p>";

		$page->output_nav_tabs($sub_tabs, 'find_orphans');
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=\"{$lang->scanning}\" id=\"spinner\" /></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=\"{$lang->scanning}\" id=\"spinner\" /></p>";


$page->output_footer(false);
flush();


$page->output_footer(false);
flush();

Zeile 492Zeile 497
		{
$incomplete_attachments = my_serialize($incomplete_attachments);
echo $form->generate_hidden_field("incomplete_attachments", $incomplete_attachments);

		{
$incomplete_attachments = my_serialize($incomplete_attachments);
echo $form->generate_hidden_field("incomplete_attachments", $incomplete_attachments);

		}
$form->end();
echo "<script type=\"text/javascript\">$(function() {
window.setTimeout(
function() {
$(\"#redirect_form\").submit();
}, 100
);

		}
$form->end();
echo "<script type=\"text/javascript\">$(function() {
window.setTimeout(
function() {
$(\"#redirect_form\").trigger('submit');
}, 100
);

			});</script>";
exit;
}

			});</script>";
exit;
}

Zeile 620Zeile 625
		echo "<script type=\"text/javascript\">$(function() {
window.setTimeout(
function() {

		echo "<script type=\"text/javascript\">$(function() {
window.setTimeout(
function() {

						$(\"#redirect_form\").submit();

						$(\"#redirect_form\").trigger('submit');

					}, 100
);
});</script>";

					}, 100
);
});</script>";

Zeile 679Zeile 684
					$errors[] = $lang->error_invalid_username;
}
else

					$errors[] = $lang->error_invalid_username;
}
else

				{

				{

					// Don't error if we are searching for guests or users & guests
$search_sql .= " AND p.username LIKE '%".$db->escape_string_like($mybb->input['username'])."%'";
}

					// Don't error if we are searching for guests or users & guests
$search_sql .= " AND p.username LIKE '%".$db->escape_string_like($mybb->input['username'])."%'";
}

Zeile 853Zeile 858
			if($num_results > $mybb->input['perpage'])
{
$pagination_url = "index.php?module=forum-attachments&amp;results=1";

			if($num_results > $mybb->input['perpage'])
{
$pagination_url = "index.php?module=forum-attachments&amp;results=1";

				$pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'fid', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');

				$pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');

				foreach($pagination_vars as $var)
{
if($mybb->input[$var])
{
$pagination_url .= "&{$var}=".urlencode($mybb->input[$var]);

				foreach($pagination_vars as $var)
{
if($mybb->input[$var])
{
$pagination_url .= "&{$var}=".urlencode($mybb->input[$var]);

 
					}
}
if(is_array($mybb->input['forum']) && !empty($mybb->input['forum']))
{
foreach($mybb->input['forum'] as $fid)
{
$pagination_url .= "&forum[]=".(int)$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);