diff --git a/app/emergency/download.php b/app/emergency/download.php new file mode 100644 index 0000000000..7e2e09200e --- /dev/null +++ b/app/emergency/download.php @@ -0,0 +1,48 @@ + + Portions created by the Initial Developer are Copyright (C) 2016-2020 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ + +//includes files + require_once dirname(__DIR__, 2) . "/resources/require.php"; + require_once "resources/check_auth.php"; + +//check permisions + if (permission_exists('call_recording_play') || permission_exists('call_recording_download')) { + //access granted + } + else { + echo "access denied"; + exit; + } + +//download + if (is_uuid($_GET['id'])) { + $obj = new call_recordings; + $obj->recording_uuid = $_GET['id']; + $obj->binary = isset($_GET['binary']) ? true : false; + $obj->download(); + } + +?>