From 3ff76ffcf52b07a788f081f3f1f12f59d5e64bcb Mon Sep 17 00:00:00 2001 From: Crack Date: Fri, 18 Jun 2010 19:33:24 +0200 Subject: [PATCH] moved forms definition files --- .../config/setup.forms.php | 0 libraries/config/user_preferences.forms.php | 97 +++++++++++++++++++ libraries/user_preferences.lib.php | 89 +---------------- 3 files changed, 98 insertions(+), 88 deletions(-) rename setup/lib/forms.inc.php => libraries/config/setup.forms.php (100%) create mode 100644 libraries/config/user_preferences.forms.php diff --git a/setup/lib/forms.inc.php b/libraries/config/setup.forms.php similarity index 100% rename from setup/lib/forms.inc.php rename to libraries/config/setup.forms.php diff --git a/libraries/config/user_preferences.forms.php b/libraries/config/user_preferences.forms.php new file mode 100644 index 000000000..e9c93b3cd --- /dev/null +++ b/libraries/config/user_preferences.forms.php @@ -0,0 +1,97 @@ + \ No newline at end of file diff --git a/libraries/user_preferences.lib.php b/libraries/user_preferences.lib.php index e9c93b3cd..e28ec7208 100644 --- a/libraries/user_preferences.lib.php +++ b/libraries/user_preferences.lib.php @@ -6,92 +6,5 @@ * @package phpMyAdmin */ -$forms = array(); -$forms['Features']['General'] = array( - 'NaturalOrder', - 'InitialSlidersState', - 'ErrorIconic', - 'ReplaceHelpImg'); -$forms['Features']['Text_fields'] = array( - 'CharEditing', - 'CharTextareaCols', - 'CharTextareaRows', - 'TextareaCols', - 'TextareaRows', - 'LongtextDoubleTextarea'); -$forms['Sql_queries']['Sql_queries'] = array( - 'ShowSQL', - 'Confirm', - 'IgnoreMultiSubmitErrors', - 'VerboseMultiSubmit', - 'MaxCharactersInDisplayedSQL', - 'EditInWindow', - 'QueryWindowWidth', - 'QueryWindowHeight', - 'QueryWindowDefTab'); -$forms['Sql_queries']['Sql_box'] = array( - 'SQLQuery/Edit', - 'SQLQuery/Explain', - 'SQLQuery/ShowAsPHP', - 'SQLQuery/Validate',// [false or no override] - 'SQLQuery/Refresh'); -$forms['Features']['Page_titles'] = array( - 'TitleDefault', - 'TitleTable', - 'TitleDatabase', - 'TitleServer'); -$forms['Left_frame']['Left_frame'] = array( - 'LeftFrameLight', - 'LeftDisplayLogo', - 'LeftLogoLink', - 'LeftLogoLinkWindow', - 'LeftPointerEnable'); -$forms['Left_frame']['Left_servers'] = array( - 'LeftDisplayServers', - 'DisplayServersList'); -$forms['Left_frame']['Left_databases'] = array( - 'DisplayDatabasesList', - 'LeftFrameDBTree', - 'LeftFrameDBSeparator', - 'LeftFrameTableLevel', - 'ShowTooltipAliasDB'); -$forms['Left_frame']['Left_tables'] = array( - 'LeftDefaultTabTable', - 'LeftFrameTableSeparator', - 'LeftFrameTableLevel', - 'ShowTooltip', - 'ShowTooltipAliasTB'); -$forms['Main_frame']['Startup'] = array( - 'MainPageIconic', - 'SuggestDBName'); -$forms['Main_frame']['Browse'] = array( - 'NavigationBarIconic', - 'ShowAll', - 'MaxRows', - 'Order', - 'DisplayBinaryAsHex', - 'BrowsePointerEnable', - 'BrowseMarkerEnable', - 'RepeatCells', - 'LimitChars', - 'ModifyDeleteAtLeft', - 'ModifyDeleteAtRight', - 'DefaultDisplay'); -$forms['Main_frame']['Edit'] = array( - 'ProtectBinary', - 'ShowFunctionFields', - 'ShowFieldTypesInDataEditView', - 'InsertRows', - 'ForeignKeyDropdownOrder',// [s, ? custom text value] - 'ForeignKeyMaxLimit', - 'CtrlArrowsMoving', - 'DefaultPropDisplay'); -$forms['Main_frame']['Tabs'] = array( - 'LightTabs', - 'PropertiesIconic', - 'DefaultTabServer', - 'DefaultTabDatabase', - 'DefaultTabTable'); -$forms['Import']['Import_defaults'] = array(); -$forms['Export']['Export_defaults'] = array(); + ?> \ No newline at end of file