' . escapeshellarg($BackupFile); /// @todo check for failure exec($Command, $Output, $Result); prnMsg(__('The backup file has now been created. You must now download this to your computer because in case the web-server has a disk failure the backup would then not on the same machine. Use the link below') . '

' . __('Download the backup file to your locale machine') . '', 'success'); prnMsg(__('Once you have downloaded the database backup file to your local machine you should use the link below to delete it - backup files can consume a lot of space on your hosting account and will accumulate if not deleted - they also contain sensitive information which would otherwise be available for others to download!'), 'info'); echo '

' . __('Delete the backup file off the server') . ''; } /* //this could be a weighty file attachment!! SendEmailFromWebERP($_SESSION['CompanyRecord']['email'], array('"' . $_SESSION['UsersRealName'] . '" <' . $_SESSION['UserEmail'] . '>'), __('Database Backup'), __('webERP backup file attached'), $BackupFile, false); prnMsg(__('A backup of the database has been taken and emailed to you'), 'info'); unlink($BackupFile); // would be a security issue to leave it there for all to download/see */ include(__DIR__ . '/includes/footer.php');