diff --git a/app/exec/sql_query_db.php b/app/exec/sql_query_db.php index cd7d11b32c..cd082e8390 100644 --- a/app/exec/sql_query_db.php +++ b/app/exec/sql_query_db.php @@ -17,31 +17,37 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('exec_sql')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + require_once "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('exec_sql')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; $text = $language->get(); -require_once "resources/header.php"; -$document['title'] = $text['title-databases']; +//add the header and title + require_once "resources/header.php"; + $document['title'] = $text['title-databases']; -require_once "resources/paging.php"; +//include paging + require_once "resources/paging.php"; //get variables used to control the order $order_by = $_GET["order_by"];