diff --git a/app/exec/sql_query_pdo.php b/app/exec/sql_query_pdo.php index 31fd525535..c70078e042 100644 --- a/app/exec/sql_query_pdo.php +++ b/app/exec/sql_query_pdo.php @@ -23,16 +23,20 @@ Contributor(s): Mark J Crane */ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (if_group("admin") || if_group("superadmin")) { - //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 (if_group("admin") || if_group("superadmin")) { + //access granted + } + else { + echo "access denied"; + exit; + } //set the default values if (isset($db_file_path) > 0) { @@ -235,4 +239,4 @@ if ($db_type == "odbc") { } } //end if db_type odbc -?> \ No newline at end of file +?>