Vergleich admin/modules/forum/attachments.php - 1.6.5 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: attachments.php 5453 2011-04-21 23:58:33Z jammerx2 $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 365Zeile 365
			$query = $db->simple_select("attachments", "*", "aid IN (".implode(",", $aids).")");
while($attachment = $db->fetch_array($query))
{

			$query = $db->simple_select("attachments", "*", "aid IN (".implode(",", $aids).")");
while($attachment = $db->fetch_array($query))
{

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


				if($missing_attachment_files[$attachment['aid']])
{
$reason = $lang->reason_file_missing;

				if($missing_attachment_files[$attachment['aid']])
{
$reason = $lang->reason_file_missing;

Zeile 453Zeile 455
			echo $form->generate_hidden_field("bad_attachments", $mybb->input['bad_attachments']);
}
if(is_array($missing_attachment_files) && count($missing_attachment_files) > 0)

			echo $form->generate_hidden_field("bad_attachments", $mybb->input['bad_attachments']);
}
if(is_array($missing_attachment_files) && count($missing_attachment_files) > 0)

		{

		{

			$missing_attachment_files = serialize($missing_attachment_files);
echo $form->generate_hidden_field("missing_attachment_files", $missing_attachment_files);
}

			$missing_attachment_files = serialize($missing_attachment_files);
echo $form->generate_hidden_field("missing_attachment_files", $missing_attachment_files);
}

Zeile 497Zeile 499
			if($dh = opendir($real_dir))
{
while(false !== ($file = readdir($dh)))

			if($dh = opendir($real_dir))
{
while(false !== ($file = readdir($dh)))

				{

				{

					if($file == "." || $file == ".." || $file == ".svn")
{
continue;

					if($file == "." || $file == ".." || $file == ".svn")
{
continue;

Zeile 586Zeile 588
		{
$bad_attachments = serialize($bad_attachments);
echo $form->generate_hidden_field("bad_attachments", $bad_attachments);

		{
$bad_attachments = serialize($bad_attachments);
echo $form->generate_hidden_field("bad_attachments", $bad_attachments);

		}

		}

		$form->end();
echo "<script type=\"text/javascript\">Event.observe(window, 'load', function() {
window.setTimeout(

		$form->end();
echo "<script type=\"text/javascript\">Event.observe(window, 'load', function() {
window.setTimeout(

Zeile 714Zeile 716
		// Now we fetch the results if there were 100% no errors
if(!$errors)
{

		// Now we fetch the results if there were 100% no errors
if(!$errors)
{

 
			$mybb->input['perpage'] = intval($mybb->input['perpage']);

			if(!$mybb->input['perpage'])
{
$mybb->input['perpage'] = 20;
}

			if(!$mybb->input['perpage'])
{
$mybb->input['perpage'] = 20;
}

			$mybb->input['perpage'] = intval($mybb->input['perpage']);

 

$mybb->input['page'] = intval($mybb->input['page']);
if($mybb->input['page'])


$mybb->input['page'] = intval($mybb->input['page']);
if($mybb->input['page'])

Zeile 875Zeile 877
function build_attachment_row($attachment, &$table, $use_form=false)
{
global $mybb, $form;

function build_attachment_row($attachment, &$table, $use_form=false)
{
global $mybb, $form;

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

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


// Here we do a bit of detection, we want to automatically check for removal any missing attachments and any not assigned to a post uploaded > 24hours ago
// Check if the attachment exists in the file system


// Here we do a bit of detection, we want to automatically check for removal any missing attachments and any not assigned to a post uploaded > 24hours ago
// Check if the attachment exists in the file system