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 a73b8680cb
commit 98f326a7f6
2 changed files with 48 additions and 41 deletions

View File

@ -24,16 +24,20 @@
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('xml_cdr_view')) {
//includes
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permisions
if (permission_exists('xml_cdr_view')) {
//access granted
}
else {
}
else {
echo "access denied";
exit;
}
}
//add multi-lingual support
$language = new text;

View File

@ -23,24 +23,27 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('xml_cdr_delete')) {
//includes
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permisions
if (permission_exists('xml_cdr_delete')) {
//access granted
}
else {
}
else {
echo "access denied";
exit;
}
}
//add multi-lingual support
$language = new text;
$text = $language->get();
//get posted values, if any
if (sizeof($_REQUEST) > 0) {
if (sizeof($_REQUEST) > 0) {
$xml_cdr_uuids = $_REQUEST["id"];
$recording_file_path = $_REQUEST["rec"];
@ -59,10 +62,10 @@ if (sizeof($_REQUEST) > 0) {
}
}
}
}
}
//set message and redirect the user
$_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));
// set message
$_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));
?>