Zeile 77 | Zeile 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 174 | Zeile 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"'); }
|