mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-02 11:20:52 +02:00
@@ -49,7 +49,7 @@ class BackupAdmin extends Backend
|
||||
if (Security::check(Request::get('token'))) {
|
||||
|
||||
File::delete($backups_path . DS . Request::get('delete_file'));
|
||||
Request::redirect(Option::get('siteurl').'admin/index.php?id=backup');
|
||||
Request::redirect(Option::get('siteurl').'/admin/index.php?id=backup');
|
||||
|
||||
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
|
||||
}
|
||||
|
@@ -43,7 +43,7 @@ $().ready(function(){$('[name=create_backup]').click(function(){$(this).button('
|
||||
<tr>
|
||||
<td>
|
||||
<?php $name = strtotime(str_replace('-', '', basename($backup, '.zip'))); ?>
|
||||
<?php echo Html::anchor(Date::format($name, 'F jS, Y - g:i A'), Option::get('siteurl').'admin/index.php?id=backup&download='.$backup.'&token='.Security::token()); ?>
|
||||
<?php echo Html::anchor(Date::format($name, 'F jS, Y - g:i A'), Option::get('siteurl').'/admin/index.php?id=backup&download='.$backup.'&token='.Security::token()); ?>
|
||||
</td>
|
||||
<td><?php echo Number::byteFormat(filesize(ROOT . DS . 'backups' . DS . $backup)); ?></td>
|
||||
<td>
|
||||
|
@@ -48,7 +48,7 @@
|
||||
|
||||
$pos = strpos($item['link'], 'http://');
|
||||
if ($pos === false) {
|
||||
$link = Option::get('siteurl').$item['link'];
|
||||
$link = Option::get('siteurl').'/'.$item['link'];
|
||||
} else {
|
||||
$link = $item['link'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user