Portions created by the Initial Developer are Copyright (C) 2008-2024 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ //includes files require_once dirname(__DIR__, 2) . "/resources/require.php"; require_once "resources/check_auth.php"; //permissions if (permission_exists('sql_query')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //load editor preferences/defaults $setting_size = (!empty($_SESSION["editor"]["font_size"]["text"])) ? $_SESSION["editor"]["font_size"]["text"] : '12px'; $setting_theme = (!empty($_SESSION["editor"]["theme"]["text"])) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt'; $setting_invisibles = (!empty($_SESSION["editor"]["invisibles"]["boolean"])) ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false'; $setting_indenting = (!empty($_SESSION["editor"]["indent_guides"]["boolean"])) ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false'; $setting_numbering = (!empty($_SESSION["editor"]["line_numbers"]["boolean"])) ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true'; //get the html values and set them as variables $code = trim($_POST["code"] ?? ''); $command = trim($_POST["command"] ?? ''); //set editor moder $mode = 'sql'; //show the header require_once "resources/header.php"; $document['title'] = $text['title-sql_query']; //pdo database connection require_once "sql_query_pdo.php"; //scripts and styles ?> create('/app/sql_query/sql_query.php'); //show the header echo "
\n"; echo ""; echo " "; echo " "; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
"; echo " ".$text['title-sql_query']."\n"; echo " "; //sql controls echo " "; //echo " ".$text['label-table']."
"; echo " \n"; //echo "

\n"; //echo " ".$text['label-result_type']."
"; echo " \n"; echo "
"; echo " "; //onclick=\"$('form#frm').submit();\" echo " "; echo "
\n"; echo $text['description-sql_query']."\n"; echo "
"; echo "
"; //html form echo "
\n"; echo " \n"; //sql db id echo " \n"; echo " "; echo " \n"; echo " "; echo " "; echo " \n"; echo "
"; echo " "; if (permission_exists('edit_view')) { echo " "; echo " "; echo " "; } echo "
"; echo " \n"; echo "
"; echo "
" ?>
"; echo "
"; echo " "; echo "

"; ?> "; //echo " ".$text['label-results']."\n"; //echo "

\n"; echo " \n"; echo " "; echo "
\n"; //show the footer require_once "resources/footer.php"; ?>