diff options
author | ninadsp <ninadsp16289@gmail.com> | 2010-08-13 22:04:10 +0400 |
---|---|---|
committer | ninadsp <ninadsp16289@gmail.com> | 2010-08-13 22:04:10 +0400 |
commit | 6a3d0a7f58a78fbe7e8d4bceea7f649dc031fe25 (patch) | |
tree | d45641447c439fbb886b1877c5f78c8789e53d41 /db_tracking.php | |
parent | 880e4665c3d87570188ba831cd14ec9475980fb7 (diff) |
Added documentation, fixed some minor bugs/typos
Diffstat (limited to 'db_tracking.php')
-rwxr-xr-x | db_tracking.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db_tracking.php b/db_tracking.php index d4a15b00a2..62f8554413 100755 --- a/db_tracking.php +++ b/db_tracking.php @@ -9,9 +9,12 @@ */ require_once './libraries/common.inc.php'; -//Get some js files needed for Ajax +//Get some js files needed for Ajax requests $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js'; +/** + * If we are not in an Ajax request, then do the common work and show the links etc. + */ if($GLOBALS['is_ajax_request'] != true) { require './libraries/db_common.inc.php'; } @@ -26,6 +29,10 @@ require './libraries/db_info.inc.php'; if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) { PMA_Tracker::deleteTracking($GLOBALS['db'], $_REQUEST['table']); + /** + * If in an Ajax request, generate the success message and use + * {@link PMA_ajaxResponse()} to send the output + */ if($GLOBALS['is_ajax_request'] == true) { $message = PMA_Message::success(); PMA_ajaxResponse($message, true); |