From a55f1cd5d8edd655058152e9acf212680d5b75f3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 21 Aug 2019 00:17:57 -0600 Subject: [PATCH] Update sip_status.php --- app/sip_status/sip_status.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index d89bfc0ed7..ce70403874 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -49,30 +49,6 @@ $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; -if ($_GET['a'] == "download") { - if ($_GET['t'] == "cdrcsv") { - $tmp = $_SESSION['switch']['log']['dir'].'/cdr-csv/'; - $filename = 'Master.csv'; - } - if ($_GET['t'] == "backup") { - $tmp = $backup_dir.'/'; - $filename = 'backup.tgz'; - if (!is_dir($backup_dir.'/')) { - exec("mkdir ".$backup_dir."/"); - } - $parent_dir = realpath($_SESSION['switch']['base']['dir']."/.."); - chdir($parent_dir); - shell_exec('tar cvzf freeswitch '.$backup_dir.'/backup.tgz'); - } - session_cache_limiter('public'); - $fd = fopen($tmp.$filename, "rb"); - header("Content-Type: binary/octet-stream"); - header("Content-Length: " . filesize($tmp.$filename)); - header('Content-Disposition: attachment; filename="'.$filename.'"'); - fpassthru($fd); - exit; -} - //show the content require_once "resources/header.php"; $document['title'] = $text['title-sip-status'];