Adjust the indentation and organization of these to xml cdr files.

This commit is contained in:
markjcrane 2016-07-26 20:51:50 -06:00
parent d47151ba8d
commit 7895492492
2 changed files with 48 additions and 41 deletions

View File

@ -24,9 +24,13 @@
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx> Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/ */
//includes
require_once "root.php"; require_once "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//check permisions
if (permission_exists('xml_cdr_view')) { if (permission_exists('xml_cdr_view')) {
//access granted //access granted
} }

View File

@ -23,9 +23,13 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
//includes
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//check permisions
if (permission_exists('xml_cdr_delete')) { if (permission_exists('xml_cdr_delete')) {
//access granted //access granted
} }
@ -40,7 +44,6 @@ else {
//get posted values, if any //get posted values, if any
if (sizeof($_REQUEST) > 0) { if (sizeof($_REQUEST) > 0) {
$xml_cdr_uuids = $_REQUEST["id"]; $xml_cdr_uuids = $_REQUEST["id"];
$recording_file_path = $_REQUEST["rec"]; $recording_file_path = $_REQUEST["rec"];
@ -59,10 +62,10 @@ if (sizeof($_REQUEST) > 0) {
} }
} }
} }
} }
// set message //set message and redirect the user
$_SESSION["message"] = $text['message-delete'].": ".sizeof($xml_cdr_uuids); $_SESSION["message"] = $text['message-delete'].": ".sizeof($xml_cdr_uuids);
header("Location: xml_cdr.php".(($_SESSION['xml_cdr']['last_query'] != '') ? "?".$_SESSION['xml_cdr']['last_query'] : null)); header("Location: xml_cdr.php".(($_SESSION['xml_cdr']['last_query'] != '') ? "?".$_SESSION['xml_cdr']['last_query'] : null));
?> ?>