From e2cef4bc231be49482c270b4ea45a6252f9c9e40 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Mon, 28 Jun 2010 01:24:05 +0530 Subject: [PATCH] Suppress the printing of the serverlinks and topmenucontainer divs when in an ajax request --- sql.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/sql.php b/sql.php index 288f150d4..60da5efd6 100755 --- a/sql.php +++ b/sql.php @@ -576,17 +576,19 @@ else { } else { $GLOBALS['js_include'][] = 'functions.js'; unset($message); - if (strlen($table)) { - require './libraries/tbl_common.php'; - $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; - require './libraries/tbl_info.inc.php'; - require './libraries/tbl_links.inc.php'; - } elseif (strlen($db)) { - require './libraries/db_common.inc.php'; - require './libraries/db_info.inc.php'; - } else { - require './libraries/server_common.inc.php'; - require './libraries/server_links.inc.php'; + if( $GLOBALS['is_ajax_request'] != true) { + if (strlen($table)) { + require './libraries/tbl_common.php'; + $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; + require './libraries/tbl_info.inc.php'; + require './libraries/tbl_links.inc.php'; + } elseif (strlen($db)) { + require './libraries/db_common.inc.php'; + require './libraries/db_info.inc.php'; + } else { + require './libraries/server_common.inc.php'; + require './libraries/server_links.inc.php'; + } } }