aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/tbl_recent_favorite.php
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/phpmyadmin/tbl_recent_favorite.php')
-rw-r--r--srcs/phpmyadmin/tbl_recent_favorite.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/tbl_recent_favorite.php b/srcs/phpmyadmin/tbl_recent_favorite.php
new file mode 100644
index 0000000..b19360a
--- /dev/null
+++ b/srcs/phpmyadmin/tbl_recent_favorite.php
@@ -0,0 +1,24 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ * Browse recent and favourite tables chosen from navigation
+ *
+ * @package PhpMyAdmin
+ */
+declare(strict_types=1);
+
+use PhpMyAdmin\RecentFavoriteTable;
+
+if (! defined('ROOT_PATH')) {
+ define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
+}
+
+require_once ROOT_PATH . 'libraries/common.inc.php';
+
+RecentFavoriteTable::getInstance('recent')
+ ->removeIfInvalid($_REQUEST['db'], $_REQUEST['table']);
+
+RecentFavoriteTable::getInstance('favorite')
+ ->removeIfInvalid($_REQUEST['db'], $_REQUEST['table']);
+
+require ROOT_PATH . 'sql.php';