Browse Source

Limit unlink folder

pull/405/merge
danpros 4 years ago
parent
commit
2b147ebb35
3 changed files with 3 additions and 52 deletions
  1. +1
    -50
      humans.txt
  2. +1
    -1
      system/admin/admin.php
  3. +1
    -1
      system/admin/views/backup.html.php

+ 1
- 50
humans.txt View File

@ -3,56 +3,7 @@ Owner: danpros
Github: https://github.com/danpros Github: https://github.com/danpros
Weblog: http://www.danpros.com Weblog: http://www.danpros.com
Contributor: Kanti
Github: https://github.com/Kanti
Weblog: https://kanti.de
Contributor: fahmi182
Github: https://github.com/fahmi182
Weblog: http://ifahmi.com
Contributor: fanningert
Github: https://github.com/fanningert
Contributor: BlackCodec
Github: https://github.com/BlackCodec
Contributor: mlncn
Github: https://github.com/mlncn
Contributor: Tea23
Github: https://github.com/Tea23
Contributor: greenphp
Github: https://github.com/greenphp
Contributor: brh55
Github: https://github.com/brh55
Contributor: ecc
Github: https://github.com/ecc
Contributor: bluebirch
Github: https://github.com/bluebirch
Contributor: EBethus
Github: https://github.com/EBethus
Contributor: nikkolai14
Github: https://github.com/nikkolai14
Contributor: RalfZim
Github: https://github.com/RalfZim
Contributor: NightPurrer
Github: https://github.com/NightPurrer
Contributor: EtherialNL
Github: https://github.com/EtherialNL
/* THANKS */
Name: Martin Angelov (http://tutorialzine.com)
Name: Xiaoying Riley (http://themes.3rdwavemedia.com)
Contributor: https://github.com/danpros/htmly/graphs/contributors
/* SITE */ /* SITE */
Software: HTMLy Software: HTMLy

+ 1
- 1
system/admin/admin.php View File

@ -795,7 +795,7 @@ function get_backup_files()
echo '<tr class="' . $class . '">'; echo '<tr class="' . $class . '">';
echo '<td>' . $name . '</td>'; echo '<td>' . $name . '</td>';
echo '<td>' . $timestamp . '</td>'; echo '<td>' . $timestamp . '</td>';
echo '<td><a target="_blank" href="' . $url . '">Download</a> <form method="GET"><input type="hidden" name="file" value="' . $file . '"/><input type="submit" name="submit" value="Delete"/></form></td>';
echo '<td><a target="_blank" href="' . $url . '">Download</a> <form method="GET"><input type="hidden" name="file" value="' . $name . '"/><input type="submit" name="submit" value="Delete"/></form></td>';
echo '</tr>'; echo '</tr>';
} }
echo '</table>'; echo '</table>';


+ 1
- 1
system/admin/views/backup.html.php View File

@ -4,7 +4,7 @@ if (login()) {
$file = _h($_GET['file']); $file = _h($_GET['file']);
if (!empty($file)) { if (!empty($file)) {
unlink($file);
unlink("backup/$file");
} }
} }


Loading…
Cancel
Save