Now adding random prefix to backups
This commit is contained in:
parent
02f6200922
commit
9d77c57838
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
'backup' => [
|
||||
|
@ -109,7 +111,7 @@ return [
|
|||
/*
|
||||
* The filename prefix used for the backup zip file.
|
||||
*/
|
||||
'filename_prefix' => '',
|
||||
'filename_prefix' => Str::random(16).'-',
|
||||
|
||||
/*
|
||||
* The disk names on which the backups will be stored.
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
if ($handle = opendir('backups/updater-backups')) {
|
||||
while (false !== ($entry = readdir($handle))) {
|
||||
if ($entry != "." && $entry != "..") {
|
||||
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '/?' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i> '; print_r($entry); echo '</a></div><br>';
|
||||
$entrys = substr($entry, 17);
|
||||
echo '<div class="button-entrance"><a class="buttondm button-hover icon-hover" style="color:#ffffff; background-color:#000;" href="' . url('admin/backups') . '/?' . $entry . '"><i style="color: " class="icon hvr-icon fa fa-download"></i> '; print_r($entrys); echo '</a></div><br>';
|
||||
}}} ?>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue