added backup delete option
This commit is contained in:
12
_include/include_delete_backup.php
Normal file
12
_include/include_delete_backup.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
if ($this->is_id()) {
|
||||
//$delete_query = "DELETE FROM user_kid WHERE uk_id = " . $this->get_id() . ";";
|
||||
//$sql->execute_query($delete_query);
|
||||
$sql->update_table('backup', array('bu_deleted' => 1), array('bu_id' => $this->get_id()));
|
||||
log::register('delete_backup', $this->get_id());
|
||||
header("Location: /admin/settings/3");
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -23,7 +23,7 @@ if ($this->is_id()) {
|
||||
|
||||
elseif ($new_setting->get_setv_setting()->get_set_setting_type_st_id() == 2) {
|
||||
//biztonsági mentés
|
||||
$backup_assoc_array = $sql->assoc_array("SELECT * FROM backup ORDER BY bu_date DESC, bu_id DESC limit 14;");
|
||||
$backup_assoc_array = $sql->assoc_array("SELECT * FROM backup WHERE bu_deleted = 0 ORDER BY bu_date DESC, bu_id DESC limit 14;");
|
||||
$backups = array();
|
||||
foreach ($backup_assoc_array as $value) {
|
||||
$new_backup = new backup();
|
||||
|
||||
Reference in New Issue
Block a user