diff --git a/app/calls/calls.php b/app/calls/calls.php index 1071d3fa94..fd82af4500 100644 --- a/app/calls/calls.php +++ b/app/calls/calls.php @@ -23,16 +23,20 @@ Contributor(s): Mark J Crane */ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) { + //access granted + } + else { + echo "access denied"; + exit; + } //get the https values and set as variables $order_by = check_str($_GET["order_by"]); @@ -112,18 +116,13 @@ else { $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; - echo "
"; - echo " ".$text['header-call_routing']."
"; - if (!$is_included) { - echo $text['description-call_routing']."
"; - } - echo "
"; - echo "
\n"; - - echo "
"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo "
\n"; +//start the content + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; - echo " \n"; - echo "
"; + echo " ".$text['header-call_routing']."
"; + echo "
\n"; if ($result_count > 10 && $is_included) { echo " "; } @@ -135,11 +134,17 @@ else { if ($paging_controls_mini != '') { echo "".$paging_controls_mini."\n"; } + } echo "
"; + if (!$is_included) { + echo $text['description-call_routing']."
"; } - echo "
\n"; - echo "\n"; + echo "
\n"; + echo "
"; echo "\n"; echo "\n"; @@ -212,4 +217,4 @@ else { require_once "resources/footer.php"; } -?> \ No newline at end of file +?>