From 2ffa06dfd63ce71f4f558d19a9167cf58730a9b7 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 25 Feb 2008 22:10:53 +0000 Subject: [PATCH] [gui] Events management: minimal support on db structure page --- ChangeLog | 2 + db_structure.php | 5 +++ lang/afrikaans-utf-8.inc.php | 1 + lang/albanian-utf-8.inc.php | 1 + lang/arabic-utf-8.inc.php | 1 + lang/azerbaijani-utf-8.inc.php | 1 + lang/basque-utf-8.inc.php | 1 + lang/belarusian_cyrillic-utf-8.inc.php | 1 + lang/belarusian_latin-utf-8.inc.php | 1 + lang/bosnian-utf-8.inc.php | 1 + lang/brazilian_portuguese-utf-8.inc.php | 1 + lang/bulgarian-utf-8.inc.php | 1 + lang/catalan-utf-8.inc.php | 1 + lang/chinese_simplified-utf-8.inc.php | 1 + lang/chinese_traditional-utf-8.inc.php | 1 + lang/croatian-utf-8.inc.php | 1 + lang/czech-utf-8.inc.php | 1 + lang/danish-utf-8.inc.php | 1 + lang/dutch-utf-8.inc.php | 1 + lang/english-utf-8.inc.php | 1 + lang/estonian-utf-8.inc.php | 1 + lang/finnish-utf-8.inc.php | 1 + lang/french-utf-8.inc.php | 1 + lang/galician-utf-8.inc.php | 1 + lang/georgian-utf-8.inc.php | 1 + lang/german-utf-8.inc.php | 1 + lang/greek-utf-8.inc.php | 1 + lang/hebrew-utf-8.inc.php | 1 + lang/hindi-utf-8.inc.php | 1 + lang/hungarian-utf-8.inc.php | 1 + lang/indonesian-utf-8.inc.php | 1 + lang/italian-utf-8.inc.php | 1 + lang/japanese-utf-8.inc.php | 1 + lang/korean-utf-8.inc.php | 1 + lang/latvian-utf-8.inc.php | 1 + lang/lithuanian-utf-8.inc.php | 1 + lang/macedonian_cyrillic-utf-8.inc.php | 1 + lang/malay-utf-8.inc.php | 1 + lang/mongolian-utf-8.inc.php | 1 + lang/norwegian-utf-8.inc.php | 1 + lang/persian-utf-8.inc.php | 1 + lang/polish-utf-8.inc.php | 1 + lang/portuguese-utf-8.inc.php | 1 + lang/romanian-utf-8.inc.php | 1 + lang/russian-utf-8.inc.php | 1 + lang/serbian_cyrillic-utf-8.inc.php | 1 + lang/serbian_latin-utf-8.inc.php | 1 + lang/sinhala-utf-8.inc.php | 1 + lang/slovak-utf-8.inc.php | 1 + lang/slovenian-utf-8.inc.php | 1 + lang/spanish-utf-8.inc.php | 1 + lang/swedish-utf-8.inc.php | 1 + lang/tatarish-utf-8.inc.php | 1 + lang/thai-utf-8.inc.php | 1 + lang/turkish-utf-8.inc.php | 1 + lang/ukrainian-utf-8.inc.php | 1 + libraries/database_interface.lib.php | 15 +++++++ libraries/db_events.inc.php | 55 +++++++++++++++++++++++++ 58 files changed, 131 insertions(+) create mode 100644 libraries/db_events.inc.php diff --git a/ChangeLog b/ChangeLog index 1b0689532..26debd989 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA + [lang] Norwegian update, thanks to Sven-Erik Andersen + [lang] Japanese update, thanks to Ishigaki Kenichi + [lang] Italian update, thanks to Luca Rebellato ++ [gui] Events management: minimal support on db structure page + (work in progress) 2.11.5.0 (not yet released) - bug #1862661 [GUI] Warn about rename deleting database diff --git a/db_structure.php b/db_structure.php index 2aa2332ff..c2ab4cb6b 100644 --- a/db_structure.php +++ b/db_structure.php @@ -520,6 +520,11 @@ PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'fr // Routines require './libraries/db_routines.inc.php'; +// Events +if (PMA_MYSQL_INT_VERSION > 50100) { + require './libraries/db_events.inc.php'; +} + /** * Work on the database * redesigned 2004-05-08 by mkkeck diff --git a/lang/afrikaans-utf-8.inc.php b/lang/afrikaans-utf-8.inc.php index 14ca4c436..49fab7d47 100644 --- a/lang/afrikaans-utf-8.inc.php +++ b/lang/afrikaans-utf-8.inc.php @@ -1071,4 +1071,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/albanian-utf-8.inc.php b/lang/albanian-utf-8.inc.php index 2f077a0f5..2bb618827 100644 --- a/lang/albanian-utf-8.inc.php +++ b/lang/albanian-utf-8.inc.php @@ -1070,4 +1070,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/arabic-utf-8.inc.php b/lang/arabic-utf-8.inc.php index aecace8e0..59cdc3de1 100644 --- a/lang/arabic-utf-8.inc.php +++ b/lang/arabic-utf-8.inc.php @@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/azerbaijani-utf-8.inc.php b/lang/azerbaijani-utf-8.inc.php index 439b89819..d903664ca 100644 --- a/lang/azerbaijani-utf-8.inc.php +++ b/lang/azerbaijani-utf-8.inc.php @@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/basque-utf-8.inc.php b/lang/basque-utf-8.inc.php index b1d5bfc51..26a9babb6 100644 --- a/lang/basque-utf-8.inc.php +++ b/lang/basque-utf-8.inc.php @@ -1064,4 +1064,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/belarusian_cyrillic-utf-8.inc.php b/lang/belarusian_cyrillic-utf-8.inc.php index 16f422533..1bafdde19 100644 --- a/lang/belarusian_cyrillic-utf-8.inc.php +++ b/lang/belarusian_cyrillic-utf-8.inc.php @@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/belarusian_latin-utf-8.inc.php b/lang/belarusian_latin-utf-8.inc.php index fdad3e9ed..35f25d191 100644 --- a/lang/belarusian_latin-utf-8.inc.php +++ b/lang/belarusian_latin-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/bosnian-utf-8.inc.php b/lang/bosnian-utf-8.inc.php index b99764fe7..c924e6ac3 100644 --- a/lang/bosnian-utf-8.inc.php +++ b/lang/bosnian-utf-8.inc.php @@ -1070,4 +1070,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/brazilian_portuguese-utf-8.inc.php b/lang/brazilian_portuguese-utf-8.inc.php index 715d5612b..4454341d1 100644 --- a/lang/brazilian_portuguese-utf-8.inc.php +++ b/lang/brazilian_portuguese-utf-8.inc.php @@ -1044,4 +1044,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/bulgarian-utf-8.inc.php b/lang/bulgarian-utf-8.inc.php index fbe5c89ae..478550817 100644 --- a/lang/bulgarian-utf-8.inc.php +++ b/lang/bulgarian-utf-8.inc.php @@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/catalan-utf-8.inc.php b/lang/catalan-utf-8.inc.php index ef2540242..bef321da3 100644 --- a/lang/catalan-utf-8.inc.php +++ b/lang/catalan-utf-8.inc.php @@ -1040,4 +1040,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/chinese_simplified-utf-8.inc.php b/lang/chinese_simplified-utf-8.inc.php index 276ce9e79..b5b92cddb 100644 --- a/lang/chinese_simplified-utf-8.inc.php +++ b/lang/chinese_simplified-utf-8.inc.php @@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/chinese_traditional-utf-8.inc.php b/lang/chinese_traditional-utf-8.inc.php index e98412f5c..f296619c4 100644 --- a/lang/chinese_traditional-utf-8.inc.php +++ b/lang/chinese_traditional-utf-8.inc.php @@ -1051,4 +1051,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/croatian-utf-8.inc.php b/lang/croatian-utf-8.inc.php index 5d0d3e0fd..6f9429b8e 100644 --- a/lang/croatian-utf-8.inc.php +++ b/lang/croatian-utf-8.inc.php @@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/czech-utf-8.inc.php b/lang/czech-utf-8.inc.php index fe0ee3314..b280ef5e0 100644 --- a/lang/czech-utf-8.inc.php +++ b/lang/czech-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strYes = 'Ano'; $strZeroRemovesTheLimit = 'Poznámka: Nastavení těchto parametrů na 0 (nulu) odstraní omezení.'; $strZip = '„zazipováno“'; +$strEvents = 'Events'; //to translate ?> diff --git a/lang/danish-utf-8.inc.php b/lang/danish-utf-8.inc.php index 7a99ab2f1..526919555 100644 --- a/lang/danish-utf-8.inc.php +++ b/lang/danish-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/dutch-utf-8.inc.php b/lang/dutch-utf-8.inc.php index 45b1ff2c6..8a5fdb322 100644 --- a/lang/dutch-utf-8.inc.php +++ b/lang/dutch-utf-8.inc.php @@ -1068,4 +1068,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/english-utf-8.inc.php b/lang/english-utf-8.inc.php index fa5996a15..93058849e 100644 --- a/lang/english-utf-8.inc.php +++ b/lang/english-utf-8.inc.php @@ -277,6 +277,7 @@ $strEscapeWildcards = 'Wildcards _ and % should be escaped with a \ to use them $strEsperanto = 'Esperanto'; $strEstonian = 'Estonian'; $strEvent = 'Event'; +$strEvents = 'Events'; $strExcelEdition = 'Excel edition'; $strExecuteBookmarked = 'Execute bookmarked query'; $strExplain = 'Explain SQL'; diff --git a/lang/estonian-utf-8.inc.php b/lang/estonian-utf-8.inc.php index ab804f89b..6cec59f05 100644 --- a/lang/estonian-utf-8.inc.php +++ b/lang/estonian-utf-8.inc.php @@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/finnish-utf-8.inc.php b/lang/finnish-utf-8.inc.php index 9cb8ac939..5772fb33f 100644 --- a/lang/finnish-utf-8.inc.php +++ b/lang/finnish-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/french-utf-8.inc.php b/lang/french-utf-8.inc.php index eda6a7070..15c74b9dc 100644 --- a/lang/french-utf-8.inc.php +++ b/lang/french-utf-8.inc.php @@ -1043,4 +1043,5 @@ $strYes = 'Oui'; $strZeroRemovesTheLimit = 'Note: Une valeur de 0 (zero) enlève la limite.'; $strZip = '"zippé"'; +$strEvents = 'Events'; //to translate ?> diff --git a/lang/galician-utf-8.inc.php b/lang/galician-utf-8.inc.php index f3c604917..3455da7e7 100644 --- a/lang/galician-utf-8.inc.php +++ b/lang/galician-utf-8.inc.php @@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/georgian-utf-8.inc.php b/lang/georgian-utf-8.inc.php index d0a6189db..d0f15a46a 100644 --- a/lang/georgian-utf-8.inc.php +++ b/lang/georgian-utf-8.inc.php @@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/german-utf-8.inc.php b/lang/german-utf-8.inc.php index dcea9156d..7bdf1b6b2 100644 --- a/lang/german-utf-8.inc.php +++ b/lang/german-utf-8.inc.php @@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/greek-utf-8.inc.php b/lang/greek-utf-8.inc.php index e4cb7d484..5610ed74c 100644 --- a/lang/greek-utf-8.inc.php +++ b/lang/greek-utf-8.inc.php @@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/hebrew-utf-8.inc.php b/lang/hebrew-utf-8.inc.php index ef5128563..c089e670a 100644 --- a/lang/hebrew-utf-8.inc.php +++ b/lang/hebrew-utf-8.inc.php @@ -1064,4 +1064,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/hindi-utf-8.inc.php b/lang/hindi-utf-8.inc.php index e8d204df0..dc348f415 100644 --- a/lang/hindi-utf-8.inc.php +++ b/lang/hindi-utf-8.inc.php @@ -1072,4 +1072,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/hungarian-utf-8.inc.php b/lang/hungarian-utf-8.inc.php index fa970755f..a4e57cb73 100644 --- a/lang/hungarian-utf-8.inc.php +++ b/lang/hungarian-utf-8.inc.php @@ -1063,4 +1063,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/indonesian-utf-8.inc.php b/lang/indonesian-utf-8.inc.php index 2793858ca..c2d99c698 100644 --- a/lang/indonesian-utf-8.inc.php +++ b/lang/indonesian-utf-8.inc.php @@ -1062,4 +1062,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/italian-utf-8.inc.php b/lang/italian-utf-8.inc.php index 9b293f25b..e917460f2 100644 --- a/lang/italian-utf-8.inc.php +++ b/lang/italian-utf-8.inc.php @@ -1047,4 +1047,5 @@ $strInterface = 'Interface'; //to translate $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/japanese-utf-8.inc.php b/lang/japanese-utf-8.inc.php index 88f754cb3..fb28099f1 100644 --- a/lang/japanese-utf-8.inc.php +++ b/lang/japanese-utf-8.inc.php @@ -1063,4 +1063,5 @@ $strTexyText = 'Texy!テキスト'; //to translate $strWebServerInformation = 'ウェブサーバ情報'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/korean-utf-8.inc.php b/lang/korean-utf-8.inc.php index cfbf8a46e..47dcab785 100644 --- a/lang/korean-utf-8.inc.php +++ b/lang/korean-utf-8.inc.php @@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/latvian-utf-8.inc.php b/lang/latvian-utf-8.inc.php index 0c7c78042..18136be1e 100644 --- a/lang/latvian-utf-8.inc.php +++ b/lang/latvian-utf-8.inc.php @@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/lithuanian-utf-8.inc.php b/lang/lithuanian-utf-8.inc.php index c43669b2d..50149885e 100644 --- a/lang/lithuanian-utf-8.inc.php +++ b/lang/lithuanian-utf-8.inc.php @@ -1062,4 +1062,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/macedonian_cyrillic-utf-8.inc.php b/lang/macedonian_cyrillic-utf-8.inc.php index bd56dcdcc..3a7fbcc82 100644 --- a/lang/macedonian_cyrillic-utf-8.inc.php +++ b/lang/macedonian_cyrillic-utf-8.inc.php @@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/malay-utf-8.inc.php b/lang/malay-utf-8.inc.php index f7b78050f..63f829671 100644 --- a/lang/malay-utf-8.inc.php +++ b/lang/malay-utf-8.inc.php @@ -1084,4 +1084,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/mongolian-utf-8.inc.php b/lang/mongolian-utf-8.inc.php index 4245f1efe..6a6ab7c12 100644 --- a/lang/mongolian-utf-8.inc.php +++ b/lang/mongolian-utf-8.inc.php @@ -1067,4 +1067,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/norwegian-utf-8.inc.php b/lang/norwegian-utf-8.inc.php index e2e304cf2..3dc3fdae3 100644 --- a/lang/norwegian-utf-8.inc.php +++ b/lang/norwegian-utf-8.inc.php @@ -1044,4 +1044,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/persian-utf-8.inc.php b/lang/persian-utf-8.inc.php index 8e5d465f1..c231b4a81 100644 --- a/lang/persian-utf-8.inc.php +++ b/lang/persian-utf-8.inc.php @@ -1069,4 +1069,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/polish-utf-8.inc.php b/lang/polish-utf-8.inc.php index c4f2690a7..955591dd6 100644 --- a/lang/polish-utf-8.inc.php +++ b/lang/polish-utf-8.inc.php @@ -1040,4 +1040,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/portuguese-utf-8.inc.php b/lang/portuguese-utf-8.inc.php index 07ea3d3c0..9c6f8601a 100644 --- a/lang/portuguese-utf-8.inc.php +++ b/lang/portuguese-utf-8.inc.php @@ -1073,4 +1073,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/romanian-utf-8.inc.php b/lang/romanian-utf-8.inc.php index a1c392d96..151dcf16b 100644 --- a/lang/romanian-utf-8.inc.php +++ b/lang/romanian-utf-8.inc.php @@ -1065,4 +1065,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/russian-utf-8.inc.php b/lang/russian-utf-8.inc.php index ddd04e2a9..cb5a86eda 100644 --- a/lang/russian-utf-8.inc.php +++ b/lang/russian-utf-8.inc.php @@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/serbian_cyrillic-utf-8.inc.php b/lang/serbian_cyrillic-utf-8.inc.php index ec8db1613..6e4ed214f 100644 --- a/lang/serbian_cyrillic-utf-8.inc.php +++ b/lang/serbian_cyrillic-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/serbian_latin-utf-8.inc.php b/lang/serbian_latin-utf-8.inc.php index c869c46f0..b8cdbbf40 100644 --- a/lang/serbian_latin-utf-8.inc.php +++ b/lang/serbian_latin-utf-8.inc.php @@ -1046,4 +1046,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/sinhala-utf-8.inc.php b/lang/sinhala-utf-8.inc.php index 177121fe7..4d2cb4328 100644 --- a/lang/sinhala-utf-8.inc.php +++ b/lang/sinhala-utf-8.inc.php @@ -1049,4 +1049,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/slovak-utf-8.inc.php b/lang/slovak-utf-8.inc.php index d9da81a2a..9a0f78f6d 100644 --- a/lang/slovak-utf-8.inc.php +++ b/lang/slovak-utf-8.inc.php @@ -1047,4 +1047,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/slovenian-utf-8.inc.php b/lang/slovenian-utf-8.inc.php index e4a3cc0c3..4caf88e8e 100644 --- a/lang/slovenian-utf-8.inc.php +++ b/lang/slovenian-utf-8.inc.php @@ -1066,4 +1066,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/spanish-utf-8.inc.php b/lang/spanish-utf-8.inc.php index d838327b5..5dde84fd8 100644 --- a/lang/spanish-utf-8.inc.php +++ b/lang/spanish-utf-8.inc.php @@ -1042,4 +1042,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/swedish-utf-8.inc.php b/lang/swedish-utf-8.inc.php index f9458ce8c..3e28f5006 100644 --- a/lang/swedish-utf-8.inc.php +++ b/lang/swedish-utf-8.inc.php @@ -1045,4 +1045,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server körs med Suhosin. Se %sdokumentation%s för möjliga frågor.'; +$strEvents = 'Events'; //to translate ?> diff --git a/lang/tatarish-utf-8.inc.php b/lang/tatarish-utf-8.inc.php index 0696c5cae..626aa2238 100644 --- a/lang/tatarish-utf-8.inc.php +++ b/lang/tatarish-utf-8.inc.php @@ -1058,4 +1058,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/thai-utf-8.inc.php b/lang/thai-utf-8.inc.php index 1bb3cf084..7094d51c2 100644 --- a/lang/thai-utf-8.inc.php +++ b/lang/thai-utf-8.inc.php @@ -1068,4 +1068,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/turkish-utf-8.inc.php b/lang/turkish-utf-8.inc.php index b0c352ef9..7eb1a5ae4 100644 --- a/lang/turkish-utf-8.inc.php +++ b/lang/turkish-utf-8.inc.php @@ -1052,4 +1052,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/lang/ukrainian-utf-8.inc.php b/lang/ukrainian-utf-8.inc.php index c29804bc2..b6fbe3007 100644 --- a/lang/ukrainian-utf-8.inc.php +++ b/lang/ukrainian-utf-8.inc.php @@ -1066,4 +1066,5 @@ $strMySQLServerInformation = 'MySQL server information'; //to translate $strWebServerInformation = 'Web server information'; //to translate $strAboutphpMyAdmin = 'About phpMyAdmin'; //to translate $strSuhosin = 'Server running with Suhosin. Please refer to %sdocumentation%s for possible issues.'; //to translate +$strEvents = 'Events'; //to translate ?> diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index 9df8e31d7..4c2aa4fcf 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -1223,6 +1223,21 @@ function PMA_DBI_get_procedure_or_function_def($db, $which, $proc_or_function_na $query = 'SHOW CREATE ' . $which . ' ' . PMA_backquote($db) . '.' . PMA_backquote($proc_or_function_name); return(PMA_DBI_fetch_value($query, 0, $returned_field[$which])); } +/** + * returns the definition of a specific EVENT + * + * @uses PMA_DBI_fetch_value() + * @param string $db db name + * @param string $event_name + * @param resource $link mysql link + * + * @return string the event's definition + */ +function PMA_DBI_get_event_def($db, $event_name, $link = null) +{ + $query = 'SHOW CREATE EVENT' . ' ' . PMA_backquote($db) . '.' . PMA_backquote($event_name); + return(PMA_DBI_fetch_value($query, 0, 'Create Event')); +} /** * returns details about the TRIGGERs of a specific table diff --git a/libraries/db_events.inc.php b/libraries/db_events.inc.php new file mode 100644 index 000000000..8d9a8421c --- /dev/null +++ b/libraries/db_events.inc.php @@ -0,0 +1,55 @@ +' . "\n"; + echo '
' . "\n"; + echo ' ' . $strEvents . '' . "\n"; + echo ''; + echo sprintf(' + + + + + ', + $strName, + $strType); + $ct=0; + $delimiter = '//'; + foreach ($events as $event) { + + // information_schema (at least in MySQL 5.1.22) does not return + // the full CREATE EVENT statement in a way that could be useful for us + // so we rely on PMA_DBI_get_event_def() which uses SHOW CREATE EVENT + + $definition = 'DROP EVENT ' . PMA_backquote($event['EVENT_NAME']) . $delimiter . "\n" + . PMA_DBI_get_event_def($db, $event['EVENT_NAME']) + . "\n"; + + $sqlDrop = 'DROP EVENT ' . PMA_backquote($event['EVENT_NAME']); + echo sprintf(' + + + + + ', + ($ct%2 == 0) ? 'even' : 'odd', + $event['EVENT_NAME'], + ! empty($definition) ? PMA_linkOrButton('db_sql.php?' . $url_query . '&sql_query=' . urlencode($definition) . '&show_query=1&delimiter=' . urlencode($delimiter), $titles['Structure']) : ' ', + '' . $titles['Drop'] . '', + $event['EVENT_TYPE']); + $ct++; + } + echo '
%s  %s
%s%s%s%s
'; + echo '
' . "\n"; + echo '' . "\n"; +} +?>