Vergleich admin/modules/tools/backupdb.php - 1.8.5 - 1.8.23

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


// Allows us to refresh cache to prevent over flowing






/**
* Allows us to refresh cache to prevent over flowing
*
* @param resource $fp
* @param string $contents
*/

function clear_overflow($fp, &$contents)
{
global $mybb;

function clear_overflow($fp, &$contents)
{
global $mybb;

Zeile 72Zeile 77
		header('Content-disposition: attachment; filename='.$file);
header("Content-type: ".$ext);
header("Content-length: ".filesize(MYBB_ADMIN_DIR.'backups/'.$file));

		header('Content-disposition: attachment; filename='.$file);
header("Content-type: ".$ext);
header("Content-length: ".filesize(MYBB_ADMIN_DIR.'backups/'.$file));

		echo file_get_contents(MYBB_ADMIN_DIR.'backups/'.$file);








$handle = fopen(MYBB_ADMIN_DIR.'backups/'.$file, 'rb');
while(!feof($handle))
{
echo fread($handle, 8192);
}
fclose($handle);

	}
else
{

	}
else
{

Zeile 169Zeile 180
				}

// Send headers for gzip file

				}

// Send headers for gzip file

				header('Content-Encoding: gzip');

 
				header('Content-Type: application/x-gzip');
header('Content-Disposition: attachment; filename="'.$file.'.sql.gz"');
}

				header('Content-Type: application/x-gzip');
header('Content-Disposition: attachment; filename="'.$file.'.sql.gz"');
}