Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2014-11-25 08:17:38 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-11-25 08:17:38 +0300
commitcca5f55a4dda92269da628c0068a9b0b7cbab8d2 (patch)
treec8229be27f256e8f8e543e2dac1635911f8372b6 /tbl_tracking.php
parent6b71a1130f6421403f7db00cc0816784ed248bee (diff)
Do not advertise on every table level page that tracking is active
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'tbl_tracking.php')
-rw-r--r--tbl_tracking.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tbl_tracking.php b/tbl_tracking.php
index ae39f12cb8..b6b2e07590 100644
--- a/tbl_tracking.php
+++ b/tbl_tracking.php
@@ -13,6 +13,22 @@ require_once './libraries/tracking.lib.php';
define('TABLE_MAY_BE_ABSENT', true);
require './libraries/tbl_common.inc.php';
+
+if (PMA_Tracker::isActive()
+ && PMA_Tracker::isTracked($GLOBALS["db"], $GLOBALS["table"])
+ && ! isset($_REQUEST['submit_deactivate_now'])
+ && ! (isset($_REQUEST['report_export'])
+ && $_REQUEST['export_type'] == 'sqldumpfile')
+) {
+ $msg = PMA_Message::notice(
+ sprintf(
+ __('Tracking of %s is activated.'),
+ htmlspecialchars($GLOBALS["db"] . '.' . $GLOBALS["table"])
+ )
+ );
+ PMA_Response::getInstance()->addHTML($msg->getDisplay());
+}
+
$url_query .= '&amp;goto=tbl_tracking.php&amp;back=tbl_tracking.php';
$url_params['goto'] = 'tbl_tracking.php';
$url_params['back'] = 'tbl_tracking.php';