| | |
| | | if($tmp['number'] == 0) { |
| | | $message .= $wb['restore_info_txt']; |
| | | $sql = "INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) " . |
| | | "VALUES (?, ? 'backup_restore_mail', ?, 'pending','')"; |
| | | "VALUES (?, ?, 'backup_restore_mail', ?, 'pending','')"; |
| | | $app->db->query($sql, $this->form->dataRecord['server_id'], time(), $backup_id); |
| | | } else { |
| | | $error .= $wb['restore_pending_txt']; |
| | |
| | | if($tmp['number'] == 0) { |
| | | $message .= $wb['delete_info_txt']; |
| | | $sql = "INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) " . |
| | | "VALUES (". |
| | | (int)$this->form->dataRecord['server_id'] . ", " . |
| | | time() . ", " . |
| | | "'backup_delete_mail', " . |
| | | "'".$backup_id."', " . |
| | | "'pending', " . |
| | | "''" . |
| | | ")"; |
| | | $app->db->query($sql); |
| | | "VALUES (?, ?, 'backup_delete_mail, ?, 'pending', '')"; |
| | | $app->db->query($sql, $this->form->dataRecord['server_id'], time(), $backup_id); |
| | | } else { |
| | | $error .= $wb['delete_pending_txt']; |
| | | } |