Adjust the indentation and organization of these to xml cdr files.
This commit is contained in:
parent
d47151ba8d
commit
7895492492
|
|
@ -24,16 +24,20 @@
|
||||||
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>
|
||||||
*/
|
*/
|
||||||
require_once "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
require_once "root.php";
|
||||||
if (permission_exists('xml_cdr_view')) {
|
require_once "resources/require.php";
|
||||||
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
|
//check permisions
|
||||||
|
if (permission_exists('xml_cdr_view')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
|
||||||
|
|
@ -23,24 +23,27 @@
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
include "root.php";
|
||||||
if (permission_exists('xml_cdr_delete')) {
|
require_once "resources/require.php";
|
||||||
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
|
//check permisions
|
||||||
|
if (permission_exists('xml_cdr_delete')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//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 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));
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue