From b61e5a08be11a3691fcef6cc163fd869ab8c2b0b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 17 Nov 2017 20:14:01 +0400 Subject: Generate another backup file --- managerservice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'managerservice.php') diff --git a/managerservice.php b/managerservice.php index ee86e3c..48b14a9 100644 --- a/managerservice.php +++ b/managerservice.php @@ -57,8 +57,8 @@ $callbacks = $DB->get_records_select("local_webhooks_service", null, null, $DB-> /* Upload settings as a file */ if (boolval($backupservices)) { - $filecontent = serialize($callbacks); - $filename = "webhooks_" . date("U") . ".backup"; + $filecontent = base64_encode(gzcompress(serialize($callbacks), 9)); + $filename = "webhooks_" . date("U") . ".backup"; send_file($filecontent, $filename, 0, 0, true, true); } -- cgit v1.2.3