From ce7225e6433df005dbea4b5d436bc041e5f04839 Mon Sep 17 00:00:00 2001 From: ioguix Date: Thu, 29 Nov 2007 23:23:56 +0000 Subject: [PATCH] add request history popup + fix redirect.php to really get the latest tab --- HISTORY | 6 +- TODO | 1 + classes/Misc.php | 88 ++++++++++++++++++++++++++--- database.php | 3 +- display.php | 13 ++++- history.php | 144 +++++++++++++++++++++++++++++++++++++++++++++++ lang/english.php | 11 +++- redirect.php | 11 ++-- sql.php | 6 +- sqledit.php | 50 ++-------------- 10 files changed, 267 insertions(+), 66 deletions(-) create mode 100644 history.php diff --git a/HISTORY b/HISTORY index 49f3a948..c3b0fa71 100644 --- a/HISTORY +++ b/HISTORY @@ -20,7 +20,11 @@ Features properties page (ioguix) * Add Support for Enum type creation (ioguix,xzilla) * Add alter name, owner, comment and properties for sequences (ioguix) -* Add function costing options +* Add function costing options (xzilla) +* Add alter owner & schema on function (xzilla) +* Add a popup window for the session requests history (karl, ioguix) +* Add alter table schema (ioguix) +* Add alter sequence schema (ioguix) Bugs * Fix inability to assign a field type/domain of a different schema diff --git a/TODO b/TODO index bebca71c..456c8f30 100644 --- a/TODO +++ b/TODO @@ -212,6 +212,7 @@ Miscellaneous * Translated FAQ * Pull FAQ/HISTORY/CREDITS/etc... from CVS for website. * Add support for csvlogs [8.3] +* Add exectued file scripts in history Exotic ------ diff --git a/classes/Misc.php b/classes/Misc.php index 69110676..3b267cb8 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -2,7 +2,7 @@ /** * Class to hold various commonly used functions * - * $Id: Misc.php,v 1.164 2007/11/23 17:58:47 xzilla Exp $ + * $Id: Misc.php,v 1.165 2007/11/29 23:23:56 ioguix Exp $ */ class Misc { @@ -1072,7 +1072,7 @@ else $tab = reset($tabs); - return isset($tab['url']) ? $tab['url'] : null; + return isset($tab['url']) ? $tab : null; } function printTopbar() { @@ -1096,15 +1096,18 @@ echo ""; if (isset($_REQUEST['server'])) { - $url = "sqledit.php?{$this->href}&action="; - - $window_id = htmlspecialchars('sqledit:'.$_REQUEST['server']); + $sql_url = "sqledit.php?{$this->href}&action="; + $sql_window_id = htmlspecialchars('sqledit:'.$_REQUEST['server']); + $history_url = "history.php?{$this->href}&action=pophistory"; + $history_window_id = htmlspecialchars('history:'.$_REQUEST['server']); echo ""; - echo "