backup list and backup download (.sql)

This commit is contained in:
Ricsi
2017-02-23 23:32:02 +01:00
parent 7096af6df3
commit 9440072ee0
9 changed files with 217 additions and 1 deletions

View File

@@ -17,6 +17,22 @@ if ($this->is_id()) {
$new_setting = new setting_value();
$new_setting->set_setting_value_data_by_id($this->get_id());
if ($new_setting->get_setv_setting()->get_set_setting_type_st_id() == 1) {
//textarea
}
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;");
$backups = array();
foreach ($backup_assoc_array as $value) {
$new_backup = new backup();
$new_backup->set_backup_data_by_id($value['bu_id']);
$backups[] = $new_backup;
}
$smarty->assign('backups', $backups);
}
$smarty->assign("setting", $new_setting);