simpletool 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1707) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simpletool.rb +46 -11
  3. data/lib/support/ftp/vsftpd.conf +152 -0
  4. data/lib/support/phpmyadmin/nginx.phpmyadmin.default +112 -0
  5. data/lib/support/phpmyadmin/phpmyadmin/CONTRIBUTING.md +25 -0
  6. data/lib/support/phpmyadmin/phpmyadmin/ChangeLog +312 -0
  7. data/lib/support/phpmyadmin/phpmyadmin/DCO +44 -0
  8. data/lib/support/phpmyadmin/phpmyadmin/LICENSE +340 -0
  9. data/lib/support/phpmyadmin/phpmyadmin/README +52 -0
  10. data/lib/support/phpmyadmin/phpmyadmin/RELEASE-DATE-4.4.8 +1 -0
  11. data/lib/support/phpmyadmin/phpmyadmin/browse_foreigners.php +61 -0
  12. data/lib/support/phpmyadmin/phpmyadmin/changelog.php +153 -0
  13. data/lib/support/phpmyadmin/phpmyadmin/chk_rel.php +27 -0
  14. data/lib/support/phpmyadmin/phpmyadmin/composer.json +30 -0
  15. data/lib/support/phpmyadmin/phpmyadmin/config.sample.inc.php +152 -0
  16. data/lib/support/phpmyadmin/phpmyadmin/db_central_columns.php +134 -0
  17. data/lib/support/phpmyadmin/phpmyadmin/db_create.php +141 -0
  18. data/lib/support/phpmyadmin/phpmyadmin/db_datadict.php +208 -0
  19. data/lib/support/phpmyadmin/phpmyadmin/db_designer.php +173 -0
  20. data/lib/support/phpmyadmin/phpmyadmin/db_events.php +26 -0
  21. data/lib/support/phpmyadmin/phpmyadmin/db_export.php +94 -0
  22. data/lib/support/phpmyadmin/phpmyadmin/db_import.php +25 -0
  23. data/lib/support/phpmyadmin/phpmyadmin/db_operations.php +291 -0
  24. data/lib/support/phpmyadmin/phpmyadmin/db_printview.php +175 -0
  25. data/lib/support/phpmyadmin/phpmyadmin/db_qbe.php +131 -0
  26. data/lib/support/phpmyadmin/phpmyadmin/db_routines.php +27 -0
  27. data/lib/support/phpmyadmin/phpmyadmin/db_search.php +63 -0
  28. data/lib/support/phpmyadmin/phpmyadmin/db_sql.php +45 -0
  29. data/lib/support/phpmyadmin/phpmyadmin/db_sql_autocomplete.php +24 -0
  30. data/lib/support/phpmyadmin/phpmyadmin/db_sql_format.php +18 -0
  31. data/lib/support/phpmyadmin/phpmyadmin/db_structure.php +345 -0
  32. data/lib/support/phpmyadmin/phpmyadmin/db_tracking.php +350 -0
  33. data/lib/support/phpmyadmin/phpmyadmin/db_triggers.php +25 -0
  34. data/lib/support/phpmyadmin/phpmyadmin/doc/Makefile +197 -0
  35. data/lib/support/phpmyadmin/phpmyadmin/doc/_ext/configext.py +188 -0
  36. data/lib/support/phpmyadmin/phpmyadmin/doc/conf.py +304 -0
  37. data/lib/support/phpmyadmin/phpmyadmin/doc/config.rst +2794 -0
  38. data/lib/support/phpmyadmin/phpmyadmin/doc/copyright.rst +50 -0
  39. data/lib/support/phpmyadmin/phpmyadmin/doc/credits.rst +657 -0
  40. data/lib/support/phpmyadmin/phpmyadmin/doc/developers.rst +12 -0
  41. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/config.doctree +0 -0
  42. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/copyright.doctree +0 -0
  43. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/credits.doctree +0 -0
  44. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/developers.doctree +0 -0
  45. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/environment.pickle +0 -0
  46. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/faq.doctree +0 -0
  47. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/glossary.doctree +0 -0
  48. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/import_export.doctree +0 -0
  49. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/index.doctree +0 -0
  50. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/intro.doctree +0 -0
  51. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/other.doctree +0 -0
  52. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/privileges.doctree +0 -0
  53. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/require.doctree +0 -0
  54. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/setup.doctree +0 -0
  55. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/transformations.doctree +0 -0
  56. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/user.doctree +0 -0
  57. data/lib/support/phpmyadmin/phpmyadmin/doc/doctrees/vendors.doctree +0 -0
  58. data/lib/support/phpmyadmin/phpmyadmin/doc/faq.rst +2112 -0
  59. data/lib/support/phpmyadmin/phpmyadmin/doc/glossary.rst +399 -0
  60. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/config.txt +2794 -0
  61. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/copyright.txt +50 -0
  62. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/credits.txt +657 -0
  63. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/developers.txt +12 -0
  64. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/faq.txt +2112 -0
  65. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/glossary.txt +399 -0
  66. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/import_export.txt +27 -0
  67. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/index.txt +32 -0
  68. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/intro.txt +68 -0
  69. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/other.txt +18 -0
  70. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/privileges.txt +50 -0
  71. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/require.txt +54 -0
  72. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/setup.txt +543 -0
  73. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/transformations.txt +138 -0
  74. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/user.txt +10 -0
  75. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_sources/vendors.txt +35 -0
  76. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/ajax-loader.gif +0 -0
  77. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/basic.css +540 -0
  78. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/comment-bright.png +0 -0
  79. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/comment-close.png +0 -0
  80. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/comment.png +0 -0
  81. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/default.css +256 -0
  82. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/doctools.js +247 -0
  83. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/down-pressed.png +0 -0
  84. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/down.png +0 -0
  85. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/file.png +0 -0
  86. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/jquery.js +154 -0
  87. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/minus.png +0 -0
  88. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/plus.png +0 -0
  89. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/pygments.css +62 -0
  90. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/searchtools.js +560 -0
  91. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/sidebar.js +151 -0
  92. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/underscore.js +23 -0
  93. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/up-pressed.png +0 -0
  94. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/up.png +0 -0
  95. data/lib/support/phpmyadmin/phpmyadmin/doc/html/_static/websupport.js +808 -0
  96. data/lib/support/phpmyadmin/phpmyadmin/doc/html/config.html +5000 -0
  97. data/lib/support/phpmyadmin/phpmyadmin/doc/html/copyright.html +157 -0
  98. data/lib/support/phpmyadmin/phpmyadmin/doc/html/credits.html +714 -0
  99. data/lib/support/phpmyadmin/phpmyadmin/doc/html/developers.html +118 -0
  100. data/lib/support/phpmyadmin/phpmyadmin/doc/html/faq.html +1871 -0
  101. data/lib/support/phpmyadmin/phpmyadmin/doc/html/genindex.html +3807 -0
  102. data/lib/support/phpmyadmin/phpmyadmin/doc/html/glossary.html +618 -0
  103. data/lib/support/phpmyadmin/phpmyadmin/doc/html/import_export.html +148 -0
  104. data/lib/support/phpmyadmin/phpmyadmin/doc/html/index.html +210 -0
  105. data/lib/support/phpmyadmin/phpmyadmin/doc/html/intro.html +182 -0
  106. data/lib/support/phpmyadmin/phpmyadmin/doc/html/objects.inv +0 -0
  107. data/lib/support/phpmyadmin/phpmyadmin/doc/html/other.html +135 -0
  108. data/lib/support/phpmyadmin/phpmyadmin/doc/html/privileges.html +169 -0
  109. data/lib/support/phpmyadmin/phpmyadmin/doc/html/require.html +168 -0
  110. data/lib/support/phpmyadmin/phpmyadmin/doc/html/search.html +100 -0
  111. data/lib/support/phpmyadmin/phpmyadmin/doc/html/searchindex.js +1 -0
  112. data/lib/support/phpmyadmin/phpmyadmin/doc/html/setup.html +909 -0
  113. data/lib/support/phpmyadmin/phpmyadmin/doc/html/transformations.html +240 -0
  114. data/lib/support/phpmyadmin/phpmyadmin/doc/html/user.html +139 -0
  115. data/lib/support/phpmyadmin/phpmyadmin/doc/html/vendors.html +149 -0
  116. data/lib/support/phpmyadmin/phpmyadmin/doc/import_export.rst +27 -0
  117. data/lib/support/phpmyadmin/phpmyadmin/doc/index.rst +32 -0
  118. data/lib/support/phpmyadmin/phpmyadmin/doc/intro.rst +68 -0
  119. data/lib/support/phpmyadmin/phpmyadmin/doc/make.bat +242 -0
  120. data/lib/support/phpmyadmin/phpmyadmin/doc/other.rst +18 -0
  121. data/lib/support/phpmyadmin/phpmyadmin/doc/privileges.rst +50 -0
  122. data/lib/support/phpmyadmin/phpmyadmin/doc/require.rst +54 -0
  123. data/lib/support/phpmyadmin/phpmyadmin/doc/setup.rst +543 -0
  124. data/lib/support/phpmyadmin/phpmyadmin/doc/transformations.rst +138 -0
  125. data/lib/support/phpmyadmin/phpmyadmin/doc/user.rst +10 -0
  126. data/lib/support/phpmyadmin/phpmyadmin/doc/vendors.rst +35 -0
  127. data/lib/support/phpmyadmin/phpmyadmin/error_report.php +130 -0
  128. data/lib/support/phpmyadmin/phpmyadmin/examples/config.manyhosts.inc.php +51 -0
  129. data/lib/support/phpmyadmin/phpmyadmin/examples/openid.php +160 -0
  130. data/lib/support/phpmyadmin/phpmyadmin/examples/signon-script.php +37 -0
  131. data/lib/support/phpmyadmin/phpmyadmin/examples/signon.php +71 -0
  132. data/lib/support/phpmyadmin/phpmyadmin/examples/swekey.sample.conf +44 -0
  133. data/lib/support/phpmyadmin/phpmyadmin/export.php +480 -0
  134. data/lib/support/phpmyadmin/phpmyadmin/favicon.ico +0 -0
  135. data/lib/support/phpmyadmin/phpmyadmin/file_echo.php +81 -0
  136. data/lib/support/phpmyadmin/phpmyadmin/gis_data_editor.php +429 -0
  137. data/lib/support/phpmyadmin/phpmyadmin/import.php +770 -0
  138. data/lib/support/phpmyadmin/phpmyadmin/import_status.php +118 -0
  139. data/lib/support/phpmyadmin/phpmyadmin/index.php +701 -0
  140. data/lib/support/phpmyadmin/phpmyadmin/js/OpenStreetMap.js +126 -0
  141. data/lib/support/phpmyadmin/phpmyadmin/js/ajax.js +1031 -0
  142. data/lib/support/phpmyadmin/phpmyadmin/js/big_ints.js +67 -0
  143. data/lib/support/phpmyadmin/phpmyadmin/js/canvg/MIT-LICENSE.txt +22 -0
  144. data/lib/support/phpmyadmin/phpmyadmin/js/canvg/canvg.js +2509 -0
  145. data/lib/support/phpmyadmin/phpmyadmin/js/chart.js +664 -0
  146. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/LICENSE +19 -0
  147. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/addon/hint/show-hint.js +394 -0
  148. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/addon/hint/sql-hint.js +248 -0
  149. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/addon/runmode/runmode.js +72 -0
  150. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/lib/codemirror.js +8645 -0
  151. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/mode/javascript/javascript.js +692 -0
  152. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/mode/sql/sql.js +391 -0
  153. data/lib/support/phpmyadmin/phpmyadmin/js/codemirror/mode/xml/xml.js +384 -0
  154. data/lib/support/phpmyadmin/phpmyadmin/js/common.js +515 -0
  155. data/lib/support/phpmyadmin/phpmyadmin/js/config.js +798 -0
  156. data/lib/support/phpmyadmin/phpmyadmin/js/console.js +1032 -0
  157. data/lib/support/phpmyadmin/phpmyadmin/js/cross_framing_protection.js +10 -0
  158. data/lib/support/phpmyadmin/phpmyadmin/js/db_central_columns.js +200 -0
  159. data/lib/support/phpmyadmin/phpmyadmin/js/db_operations.js +157 -0
  160. data/lib/support/phpmyadmin/phpmyadmin/js/db_qbe.js +64 -0
  161. data/lib/support/phpmyadmin/phpmyadmin/js/db_search.js +239 -0
  162. data/lib/support/phpmyadmin/phpmyadmin/js/db_structure.js +391 -0
  163. data/lib/support/phpmyadmin/phpmyadmin/js/db_tracking.js +85 -0
  164. data/lib/support/phpmyadmin/phpmyadmin/js/doclinks.js +365 -0
  165. data/lib/support/phpmyadmin/phpmyadmin/js/error_report.js +340 -0
  166. data/lib/support/phpmyadmin/phpmyadmin/js/export.js +401 -0
  167. data/lib/support/phpmyadmin/phpmyadmin/js/functions.js +4579 -0
  168. data/lib/support/phpmyadmin/phpmyadmin/js/get_image.js.php +148 -0
  169. data/lib/support/phpmyadmin/phpmyadmin/js/get_scripts.js.php +62 -0
  170. data/lib/support/phpmyadmin/phpmyadmin/js/gis_data_editor.js +396 -0
  171. data/lib/support/phpmyadmin/phpmyadmin/js/import.js +167 -0
  172. data/lib/support/phpmyadmin/phpmyadmin/js/indexes.js +697 -0
  173. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/excanvas.js +1438 -0
  174. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/jquery.jqplot.js +11411 -0
  175. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.barRenderer.js +801 -0
  176. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.byteFormatter.js +46 -0
  177. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +203 -0
  178. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.canvasTextRenderer.js +449 -0
  179. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.categoryAxisRenderer.js +679 -0
  180. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.cursor.js +1108 -0
  181. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.dateAxisRenderer.js +741 -0
  182. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.highlighter.js +465 -0
  183. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.pieRenderer.js +904 -0
  184. data/lib/support/phpmyadmin/phpmyadmin/js/jqplot/plugins/jqplot.pointLabels.js +377 -0
  185. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/MIT-LICENSE.txt +21 -0
  186. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery-1.11.1.min.js +4 -0
  187. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery-ui-1.11.2.min.js +13 -0
  188. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery-ui-timepicker-addon.js +2223 -0
  189. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.ba-hashchange-1.3.js +390 -0
  190. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.cookie.js +91 -0
  191. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.debounce-1.0.5.js +71 -0
  192. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.event.drag-2.2.js +402 -0
  193. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.fullscreen.js +60 -0
  194. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.mousewheel.js +221 -0
  195. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.sortableTable.js +272 -0
  196. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.svg.js +1352 -0
  197. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.tablesorter.js +1033 -0
  198. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/jquery.uitablefilter.js +117 -0
  199. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/README +9 -0
  200. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/jsonp.js +89 -0
  201. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/load.js +75 -0
  202. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/parseJSON.js +51 -0
  203. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/parseXML.js +31 -0
  204. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/script.js +93 -0
  205. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/var/nonce.js +5 -0
  206. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/var/rquery.js +3 -0
  207. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax/xhr.js +196 -0
  208. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/ajax.js +807 -0
  209. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes/attr.js +271 -0
  210. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes/classes.js +157 -0
  211. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes/prop.js +134 -0
  212. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes/support.js +62 -0
  213. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes/val.js +178 -0
  214. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/attributes.js +11 -0
  215. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/callbacks.js +205 -0
  216. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core/access.js +60 -0
  217. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core/init.js +132 -0
  218. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core/parseHTML.js +39 -0
  219. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core/ready.js +152 -0
  220. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core/var/rsingleTag.js +4 -0
  221. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/core.js +534 -0
  222. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/addGetHookIf.js +32 -0
  223. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/curCSS.js +117 -0
  224. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/defaultDisplay.js +69 -0
  225. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/hiddenVisibleSelectors.js +20 -0
  226. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/support.js +149 -0
  227. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/swap.js +28 -0
  228. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/var/cssExpand.js +3 -0
  229. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/var/isHidden.js +13 -0
  230. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/var/rmargin.js +3 -0
  231. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css/var/rnumnonpx.js +5 -0
  232. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/css.js +504 -0
  233. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/data/accepts.js +21 -0
  234. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/data/support.js +25 -0
  235. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/data.js +335 -0
  236. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/deferred.js +150 -0
  237. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/deprecated.js +13 -0
  238. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/dimensions.js +50 -0
  239. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/effects/Tween.js +114 -0
  240. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/effects/animatedSelector.js +13 -0
  241. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/effects/support.js +55 -0
  242. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/effects.js +656 -0
  243. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/event/alias.js +39 -0
  244. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/event/support.js +26 -0
  245. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/event.js +1037 -0
  246. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/exports/amd.js +24 -0
  247. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/exports/global.js +32 -0
  248. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/intro.js +44 -0
  249. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/jquery.js +37 -0
  250. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/manipulation/_evalUrl.js +18 -0
  251. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/manipulation/support.js +76 -0
  252. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/manipulation/var/rcheckableType.js +3 -0
  253. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/manipulation.js +744 -0
  254. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/offset.js +211 -0
  255. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/outro.js +1 -0
  256. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/queue/delay.js +22 -0
  257. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/queue.js +142 -0
  258. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/selector-sizzle.js +14 -0
  259. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/selector.js +1 -0
  260. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/serialize.js +110 -0
  261. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/dist/sizzle.js +2044 -0
  262. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/dist/sizzle.min.js +3 -0
  263. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/dist/sizzle.min.map +1 -0
  264. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/data/empty.js +0 -0
  265. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/data/mixed_sort.html +22 -0
  266. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/data/testinit.js +136 -0
  267. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/index.html +242 -0
  268. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/jquery.js +9597 -0
  269. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/unit/extending.js +95 -0
  270. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/unit/selector.js +1149 -0
  271. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/sizzle/test/unit/utilities.js +169 -0
  272. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/support.js +58 -0
  273. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/traversing/findFilter.js +100 -0
  274. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/traversing/var/rneedsContext.js +6 -0
  275. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/traversing.js +200 -0
  276. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/class2type.js +4 -0
  277. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/concat.js +5 -0
  278. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/deletedIds.js +3 -0
  279. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/hasOwn.js +5 -0
  280. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/indexOf.js +5 -0
  281. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/pnum.js +3 -0
  282. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/push.js +5 -0
  283. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/rnotwhite.js +3 -0
  284. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/slice.js +5 -0
  285. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/strundefined.js +3 -0
  286. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/support.js +4 -0
  287. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/var/toString.js +5 -0
  288. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery/wrap.js +75 -0
  289. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/accordion.js +584 -0
  290. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/autocomplete.js +628 -0
  291. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/button.js +411 -0
  292. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/core.js +304 -0
  293. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/datepicker.js +2080 -0
  294. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/dialog.js +875 -0
  295. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/draggable.js +1128 -0
  296. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/droppable.js +413 -0
  297. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-blind.js +90 -0
  298. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-bounce.js +123 -0
  299. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-clip.js +77 -0
  300. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-drop.js +75 -0
  301. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-explode.js +107 -0
  302. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-fade.js +40 -0
  303. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-fold.js +86 -0
  304. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-highlight.js +60 -0
  305. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-puff.js +60 -0
  306. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-pulsate.js +73 -0
  307. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-scale.js +89 -0
  308. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-shake.js +84 -0
  309. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-size.js +233 -0
  310. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-slide.js +74 -0
  311. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect-transfer.js +57 -0
  312. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/effect.js +1301 -0
  313. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/menu.js +646 -0
  314. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/mouse.js +199 -0
  315. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/position.js +517 -0
  316. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/progressbar.js +159 -0
  317. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/resizable.js +1179 -0
  318. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/selectable.js +287 -0
  319. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/selectmenu.js +616 -0
  320. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/slider.js +699 -0
  321. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/sortable.js +1304 -0
  322. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/spinner.js +514 -0
  323. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/tabs.js +880 -0
  324. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/tooltip.js +461 -0
  325. data/lib/support/phpmyadmin/phpmyadmin/js/jquery/src/jquery-ui/widget.js +557 -0
  326. data/lib/support/phpmyadmin/phpmyadmin/js/keyhandler.js +145 -0
  327. data/lib/support/phpmyadmin/phpmyadmin/js/line_counts.php +523 -0
  328. data/lib/support/phpmyadmin/phpmyadmin/js/makegrid.js +1973 -0
  329. data/lib/support/phpmyadmin/phpmyadmin/js/menu-resizer.js +182 -0
  330. data/lib/support/phpmyadmin/phpmyadmin/js/messages.php +718 -0
  331. data/lib/support/phpmyadmin/phpmyadmin/js/multi_column_sort.js +81 -0
  332. data/lib/support/phpmyadmin/phpmyadmin/js/navigation.js +1505 -0
  333. data/lib/support/phpmyadmin/phpmyadmin/js/normalization.js +707 -0
  334. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/OpenLayers.js +2681 -0
  335. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/blank.gif +0 -0
  336. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/cloud-popup-relative.png +0 -0
  337. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/drag-rectangle-off.png +0 -0
  338. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/drag-rectangle-on.png +0 -0
  339. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/east-mini.png +0 -0
  340. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/layer-switcher-maximize.png +0 -0
  341. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/layer-switcher-minimize.png +0 -0
  342. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/marker-blue.png +0 -0
  343. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/marker-gold.png +0 -0
  344. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/marker-green.png +0 -0
  345. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/marker.png +0 -0
  346. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/measuring-stick-off.png +0 -0
  347. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/measuring-stick-on.png +0 -0
  348. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/north-mini.png +0 -0
  349. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/panning-hand-off.png +0 -0
  350. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/panning-hand-on.png +0 -0
  351. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/slider.png +0 -0
  352. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/south-mini.png +0 -0
  353. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/west-mini.png +0 -0
  354. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/zoom-minus-mini.png +0 -0
  355. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/zoom-plus-mini.png +0 -0
  356. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/zoom-world-mini.png +0 -0
  357. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/img/zoombar.png +0 -0
  358. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/README +12 -0
  359. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/errorIcon.png +0 -0
  360. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/firebug.css +209 -0
  361. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/firebug.html +23 -0
  362. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/firebug.js +674 -0
  363. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/firebugx.js +9 -0
  364. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/infoIcon.png +0 -0
  365. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/license.txt +30 -0
  366. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/readme.txt +13 -0
  367. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Firebug/warningIcon.png +0 -0
  368. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Gears/gears_init.js +88 -0
  369. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Ajax.js +678 -0
  370. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/Bounds.js +681 -0
  371. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/Class.js +116 -0
  372. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/Element.js +251 -0
  373. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/LonLat.js +190 -0
  374. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/Pixel.js +125 -0
  375. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes/Size.js +85 -0
  376. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/BaseTypes.js +682 -0
  377. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Console.js +246 -0
  378. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ArgParser.js +166 -0
  379. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Attribution.js +97 -0
  380. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Button.js +44 -0
  381. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/DragFeature.js +303 -0
  382. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/DragPan.js +94 -0
  383. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/DrawFeature.js +126 -0
  384. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/EditingToolbar.js +63 -0
  385. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/GetFeature.js +595 -0
  386. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Graticule.js +373 -0
  387. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/KeyboardDefaults.js +127 -0
  388. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/LayerSwitcher.js +620 -0
  389. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Measure.js +321 -0
  390. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ModifyFeature.js +777 -0
  391. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/MouseDefaults.js +368 -0
  392. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/MousePosition.js +213 -0
  393. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/MouseToolbar.js +406 -0
  394. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/NavToolbar.js +55 -0
  395. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Navigation.js +303 -0
  396. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/NavigationHistory.js +423 -0
  397. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/OverviewMap.js +720 -0
  398. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Pan.js +86 -0
  399. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/PanPanel.js +63 -0
  400. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/PanZoom.js +246 -0
  401. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/PanZoomBar.js +396 -0
  402. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Panel.js +371 -0
  403. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Permalink.js +220 -0
  404. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/SLDSelect.js +570 -0
  405. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Scale.js +99 -0
  406. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ScaleLine.js +223 -0
  407. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/SelectFeature.js +613 -0
  408. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Snapping.js +547 -0
  409. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Split.js +498 -0
  410. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/TransformFeature.js +579 -0
  411. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/WMSGetFeatureInfo.js +524 -0
  412. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js +442 -0
  413. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ZoomBox.js +95 -0
  414. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ZoomIn.js +35 -0
  415. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ZoomOut.js +35 -0
  416. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ZoomPanel.js +54 -0
  417. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/ZoomToMaxExtent.js +40 -0
  418. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control.js +368 -0
  419. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Events.js +855 -0
  420. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Feature/Vector.js +454 -0
  421. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Feature/WFS.js +80 -0
  422. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Feature.js +227 -0
  423. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Filter/Comparison.js +258 -0
  424. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Filter/FeatureId.js +81 -0
  425. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Filter/Logical.js +119 -0
  426. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Filter/Spatial.js +128 -0
  427. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Filter.js +68 -0
  428. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/ArcXML/Features.js +49 -0
  429. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/ArcXML.js +1028 -0
  430. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Atom.js +727 -0
  431. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/CSWGetDomain/v2_0_2.js +243 -0
  432. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/CSWGetDomain.js +34 -0
  433. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js +440 -0
  434. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/CSWGetRecords.js +34 -0
  435. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Context.js +334 -0
  436. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Filter/v1.js +426 -0
  437. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Filter/v1_0_0.js +169 -0
  438. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Filter/v1_1_0.js +182 -0
  439. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Filter.js +115 -0
  440. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GML/Base.js +578 -0
  441. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GML/v2.js +193 -0
  442. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GML/v3.js +462 -0
  443. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GML.js +924 -0
  444. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GPX.js +184 -0
  445. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GeoJSON.js +716 -0
  446. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/GeoRSS.js +420 -0
  447. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/JSON.js +389 -0
  448. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/KML.js +1429 -0
  449. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OSM.js +457 -0
  450. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OWSCommon/v1.js +256 -0
  451. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OWSCommon/v1_0_0.js +50 -0
  452. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OWSCommon/v1_1_0.js +64 -0
  453. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js +589 -0
  454. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/OWSContext.js +81 -0
  455. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SLD/v1.js +1100 -0
  456. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SLD/v1_0_0.js +51 -0
  457. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SLD.js +131 -0
  458. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SOSCapabilities/v1_0_0.js +158 -0
  459. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SOSCapabilities.js +83 -0
  460. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SOSGetFeatureOfInterest.js +193 -0
  461. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/SOSGetObservation.js +262 -0
  462. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/Text.js +152 -0
  463. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFS.js +220 -0
  464. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1.js +126 -0
  465. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1_0_0.js +157 -0
  466. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFSCapabilities/v1_1_0.js +36 -0
  467. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFSCapabilities.js +80 -0
  468. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFSDescribeFeatureType.js +198 -0
  469. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFST/v1.js +368 -0
  470. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFST/v1_0_0.js +150 -0
  471. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFST/v1_1_0.js +161 -0
  472. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WFST.js +34 -0
  473. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WKT.js +358 -0
  474. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMC/v1.js +835 -0
  475. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMC/v1_0_0.js +76 -0
  476. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMC/v1_1_0.js +127 -0
  477. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMC.js +152 -0
  478. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1.js +418 -0
  479. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1.js +118 -0
  480. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_0.js +62 -0
  481. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1_1.js +58 -0
  482. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_3.js +128 -0
  483. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_3_0.js +30 -0
  484. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSCapabilities.js +82 -0
  485. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js +100 -0
  486. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSDescribeLayer.js +91 -0
  487. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMSGetFeatureInfo.js +284 -0
  488. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMTSCapabilities/v1_0_0.js +221 -0
  489. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/WMTSCapabilities.js +162 -0
  490. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format/XML.js +881 -0
  491. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Format.js +123 -0
  492. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Collection.js +546 -0
  493. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Curve.js +93 -0
  494. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/LineString.js +552 -0
  495. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/LinearRing.js +417 -0
  496. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/MultiLineString.js +262 -0
  497. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/MultiPoint.js +70 -0
  498. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/MultiPolygon.js +46 -0
  499. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Point.js +283 -0
  500. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Polygon.js +259 -0
  501. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Rectangle.js +99 -0
  502. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry/Surface.js +17 -0
  503. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Geometry.js +456 -0
  504. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Box.js +221 -0
  505. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Click.js +325 -0
  506. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Drag.js +420 -0
  507. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Feature.js +388 -0
  508. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Hover.js +183 -0
  509. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Keyboard.js +109 -0
  510. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/MouseWheel.js +283 -0
  511. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Path.js +302 -0
  512. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Point.js +373 -0
  513. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/Polygon.js +144 -0
  514. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler/RegularPolygon.js +421 -0
  515. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Handler.js +287 -0
  516. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Icon.js +227 -0
  517. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ar.js +38 -0
  518. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/be-tarask.js +80 -0
  519. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/bg.js +29 -0
  520. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/br.js +79 -0
  521. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ca.js +128 -0
  522. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/cs-CZ.js +69 -0
  523. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/da-DK.js +119 -0
  524. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/de.js +81 -0
  525. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/el.js +19 -0
  526. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/en-CA.js +21 -0
  527. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/en.js +128 -0
  528. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/es.js +129 -0
  529. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/fi.js +34 -0
  530. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/fr.js +80 -0
  531. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/fur.js +35 -0
  532. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/gl.js +79 -0
  533. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/gsw.js +79 -0
  534. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/hr.js +61 -0
  535. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/hsb.js +79 -0
  536. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/hu.js +80 -0
  537. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ia.js +79 -0
  538. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/id.js +80 -0
  539. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/io.js +19 -0
  540. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/is.js +37 -0
  541. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/it.js +116 -0
  542. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ja.js +80 -0
  543. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/km.js +25 -0
  544. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ksh.js +79 -0
  545. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/nb.js +118 -0
  546. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/nds.js +61 -0
  547. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/nl.js +79 -0
  548. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/nn.js +27 -0
  549. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/oc.js +79 -0
  550. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/pt-BR.js +80 -0
  551. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/pt.js +81 -0
  552. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/ru.js +82 -0
  553. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/sk.js +71 -0
  554. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/sv-SE.js +71 -0
  555. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/te.js +27 -0
  556. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/vi.js +79 -0
  557. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/zh-CN.js +116 -0
  558. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang/zh-TW.js +117 -0
  559. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Lang.js +133 -0
  560. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/ArcGIS93Rest.js +253 -0
  561. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/ArcIMS.js +466 -0
  562. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Boxes.js +76 -0
  563. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/EventPane.js +418 -0
  564. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/FixedZoomLevels.js +315 -0
  565. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/GML.js +174 -0
  566. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/GeoRSS.js +266 -0
  567. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Google/v3.js +419 -0
  568. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Google.js +795 -0
  569. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Grid.js +755 -0
  570. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/HTTPRequest.js +230 -0
  571. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Image.js +254 -0
  572. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/KaMap.js +206 -0
  573. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/KaMapCache.js +148 -0
  574. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/MapGuide.js +489 -0
  575. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/MapServer/Untiled.js +72 -0
  576. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/MapServer.js +199 -0
  577. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Markers.js +187 -0
  578. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/MultiMap.js +284 -0
  579. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/PointTrack.js +103 -0
  580. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/SphericalMercator.js +196 -0
  581. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/TMS.js +167 -0
  582. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Text.js +264 -0
  583. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/TileCache.js +165 -0
  584. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Vector/RootContainer.js +157 -0
  585. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Vector.js +947 -0
  586. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/VirtualEarth.js +368 -0
  587. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WFS.js +609 -0
  588. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WMS/Post.js +99 -0
  589. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WMS/Untiled.js +72 -0
  590. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WMS.js +268 -0
  591. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WMTS.js +476 -0
  592. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/WorldWind.js +120 -0
  593. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/XYZ.js +196 -0
  594. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Yahoo.js +430 -0
  595. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer/Zoomify.js +308 -0
  596. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Layer.js +1304 -0
  597. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Map.js +2417 -0
  598. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Marker/Box.js +120 -0
  599. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Marker.js +242 -0
  600. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Popup/Anchored.js +198 -0
  601. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Popup/AnchoredBubble.js +190 -0
  602. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Popup/Framed.js +343 -0
  603. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Popup/FramedCloud.js +231 -0
  604. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Popup.js +1052 -0
  605. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Projection.js +178 -0
  606. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/HTTP.js +655 -0
  607. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/SOS/v1_0_0.js +132 -0
  608. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/SOS.js +33 -0
  609. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/SQL/Gears.js +561 -0
  610. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/SQL.js +88 -0
  611. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/WFS/v1.js +342 -0
  612. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/WFS/v1_0_0.js +44 -0
  613. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/WFS/v1_1_0.js +48 -0
  614. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol/WFS.js +71 -0
  615. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Protocol.js +272 -0
  616. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Renderer/Canvas.js +494 -0
  617. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Renderer/Elements.js +1010 -0
  618. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Renderer/SVG.js +995 -0
  619. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Renderer/VML.js +999 -0
  620. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Renderer.js +362 -0
  621. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Request/XMLHttpRequest.js +384 -0
  622. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Request.js +358 -0
  623. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Rule.js +240 -0
  624. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/SingleFile.js +10 -0
  625. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/BBOX.js +278 -0
  626. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Cluster.js +280 -0
  627. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Filter.js +164 -0
  628. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Fixed.js +138 -0
  629. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Paging.js +236 -0
  630. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Refresh.js +140 -0
  631. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy/Save.js +229 -0
  632. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Strategy.js +117 -0
  633. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Style.js +443 -0
  634. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Style2.js +111 -0
  635. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/StyleMap.js +160 -0
  636. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer/Line.js +69 -0
  637. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer/Point.js +141 -0
  638. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer/Polygon.js +81 -0
  639. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer/Raster.js +34 -0
  640. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer/Text.js +65 -0
  641. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Symbolizer.js +51 -0
  642. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Tile/Image/IFrame.js +262 -0
  643. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Tile/Image.js +578 -0
  644. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Tile/WFS.js +192 -0
  645. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Tile.js +281 -0
  646. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Tween.js +318 -0
  647. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Util.js +1797 -0
  648. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers.js +348 -0
  649. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Rico/Color.js +244 -0
  650. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/src/openlayers/lib/Rico/Corner.js +330 -0
  651. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/framedCloud.css +0 -0
  652. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/google.css +10 -0
  653. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/ie6-style.css +7 -0
  654. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/add_point_off.png +0 -0
  655. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/add_point_on.png +0 -0
  656. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/blank.gif +0 -0
  657. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/close.gif +0 -0
  658. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/drag-rectangle-off.png +0 -0
  659. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/drag-rectangle-on.png +0 -0
  660. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_line_off.png +0 -0
  661. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_line_on.png +0 -0
  662. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_point_off.png +0 -0
  663. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_point_on.png +0 -0
  664. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_polygon_off.png +0 -0
  665. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/draw_polygon_on.png +0 -0
  666. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/editing_tool_bar.png +0 -0
  667. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/move_feature_off.png +0 -0
  668. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/move_feature_on.png +0 -0
  669. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/navigation_history.png +0 -0
  670. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/overview_replacement.gif +0 -0
  671. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/pan-panel-NOALPHA.png +0 -0
  672. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/pan-panel.png +0 -0
  673. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/pan_off.png +0 -0
  674. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/pan_on.png +0 -0
  675. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/panning-hand-off.png +0 -0
  676. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/panning-hand-on.png +0 -0
  677. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/remove_point_off.png +0 -0
  678. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/remove_point_on.png +0 -0
  679. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/ruler.png +0 -0
  680. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/save_features_off.png +0 -0
  681. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/save_features_on.png +0 -0
  682. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/view_next_off.png +0 -0
  683. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/view_next_on.png +0 -0
  684. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/view_previous_off.png +0 -0
  685. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/view_previous_on.png +0 -0
  686. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/zoom-panel-NOALPHA.png +0 -0
  687. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/img/zoom-panel.png +0 -0
  688. data/lib/support/phpmyadmin/phpmyadmin/js/openlayers/theme/default/style.css +397 -0
  689. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/designer_db.js +136 -0
  690. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/designer_objects.js +17 -0
  691. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/designer_page.js +164 -0
  692. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/history.js +812 -0
  693. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/iecanvas.js +147 -0
  694. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/init.js +40 -0
  695. data/lib/support/phpmyadmin/phpmyadmin/js/pmd/move.js +1993 -0
  696. data/lib/support/phpmyadmin/phpmyadmin/js/replication.js +72 -0
  697. data/lib/support/phpmyadmin/phpmyadmin/js/rte.js +944 -0
  698. data/lib/support/phpmyadmin/phpmyadmin/js/server_databases.js +137 -0
  699. data/lib/support/phpmyadmin/phpmyadmin/js/server_plugins.js +30 -0
  700. data/lib/support/phpmyadmin/phpmyadmin/js/server_privileges.js +451 -0
  701. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_advisor.js +93 -0
  702. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_monitor.js +2172 -0
  703. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_processes.js +189 -0
  704. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_queries.js +34 -0
  705. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_sorter.js +89 -0
  706. data/lib/support/phpmyadmin/phpmyadmin/js/server_status_variables.js +103 -0
  707. data/lib/support/phpmyadmin/phpmyadmin/js/server_user_groups.js +42 -0
  708. data/lib/support/phpmyadmin/phpmyadmin/js/server_variables.js +147 -0
  709. data/lib/support/phpmyadmin/phpmyadmin/js/sprintf.js +211 -0
  710. data/lib/support/phpmyadmin/phpmyadmin/js/sql.js +842 -0
  711. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_change.js +754 -0
  712. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_chart.js +437 -0
  713. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_find_replace.js +47 -0
  714. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_gis_visualization.js +353 -0
  715. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_operations.js +240 -0
  716. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_relation.js +233 -0
  717. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_select.js +395 -0
  718. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_structure.js +397 -0
  719. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_tracking.js +96 -0
  720. data/lib/support/phpmyadmin/phpmyadmin/js/tbl_zoom_plot_jqplot.js +638 -0
  721. data/lib/support/phpmyadmin/phpmyadmin/js/tracekit/tracekit.js +1114 -0
  722. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/image_upload.js +28 -0
  723. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/json.js +18 -0
  724. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/json_editor.js +17 -0
  725. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/sql_editor.js +30 -0
  726. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/xml.js +18 -0
  727. data/lib/support/phpmyadmin/phpmyadmin/js/transformations/xml_editor.js +16 -0
  728. data/lib/support/phpmyadmin/phpmyadmin/js/whitelist.php +38 -0
  729. data/lib/support/phpmyadmin/phpmyadmin/libraries/Advisor.class.php +526 -0
  730. data/lib/support/phpmyadmin/phpmyadmin/libraries/Config.class.php +1926 -0
  731. data/lib/support/phpmyadmin/phpmyadmin/libraries/Console.class.php +320 -0
  732. data/lib/support/phpmyadmin/phpmyadmin/libraries/DBQbe.class.php +1593 -0
  733. data/lib/support/phpmyadmin/phpmyadmin/libraries/DatabaseInterface.class.php +2864 -0
  734. data/lib/support/phpmyadmin/phpmyadmin/libraries/DbSearch.class.php +502 -0
  735. data/lib/support/phpmyadmin/phpmyadmin/libraries/DisplayResults.class.php +5685 -0
  736. data/lib/support/phpmyadmin/phpmyadmin/libraries/Error.class.php +470 -0
  737. data/lib/support/phpmyadmin/phpmyadmin/libraries/Error_Handler.class.php +561 -0
  738. data/lib/support/phpmyadmin/phpmyadmin/libraries/File.class.php +732 -0
  739. data/lib/support/phpmyadmin/phpmyadmin/libraries/Font.class.php +145 -0
  740. data/lib/support/phpmyadmin/phpmyadmin/libraries/Footer.class.php +351 -0
  741. data/lib/support/phpmyadmin/phpmyadmin/libraries/Header.class.php +752 -0
  742. data/lib/support/phpmyadmin/phpmyadmin/libraries/Index.class.php +1011 -0
  743. data/lib/support/phpmyadmin/phpmyadmin/libraries/List.class.php +122 -0
  744. data/lib/support/phpmyadmin/phpmyadmin/libraries/List_Database.class.php +193 -0
  745. data/lib/support/phpmyadmin/phpmyadmin/libraries/Menu.class.php +631 -0
  746. data/lib/support/phpmyadmin/phpmyadmin/libraries/Message.class.php +759 -0
  747. data/lib/support/phpmyadmin/phpmyadmin/libraries/OutputBuffering.class.php +139 -0
  748. data/lib/support/phpmyadmin/phpmyadmin/libraries/PDF.class.php +149 -0
  749. data/lib/support/phpmyadmin/phpmyadmin/libraries/PMA.php +109 -0
  750. data/lib/support/phpmyadmin/phpmyadmin/libraries/Partition.class.php +77 -0
  751. data/lib/support/phpmyadmin/phpmyadmin/libraries/RecentFavoriteTable.class.php +393 -0
  752. data/lib/support/phpmyadmin/phpmyadmin/libraries/Response.class.php +397 -0
  753. data/lib/support/phpmyadmin/phpmyadmin/libraries/SavedSearches.class.php +447 -0
  754. data/lib/support/phpmyadmin/phpmyadmin/libraries/Scripts.class.php +284 -0
  755. data/lib/support/phpmyadmin/phpmyadmin/libraries/ServerStatusData.class.php +448 -0
  756. data/lib/support/phpmyadmin/phpmyadmin/libraries/StorageEngine.class.php +451 -0
  757. data/lib/support/phpmyadmin/phpmyadmin/libraries/String.class.php +188 -0
  758. data/lib/support/phpmyadmin/phpmyadmin/libraries/StringAbstractType.class.php +35 -0
  759. data/lib/support/phpmyadmin/phpmyadmin/libraries/StringByte.int.php +173 -0
  760. data/lib/support/phpmyadmin/phpmyadmin/libraries/StringCType.class.php +110 -0
  761. data/lib/support/phpmyadmin/phpmyadmin/libraries/StringNativeType.class.php +138 -0
  762. data/lib/support/phpmyadmin/phpmyadmin/libraries/StringType.int.php +84 -0
  763. data/lib/support/phpmyadmin/phpmyadmin/libraries/Table.class.php +1806 -0
  764. data/lib/support/phpmyadmin/phpmyadmin/libraries/TableSearch.class.php +1587 -0
  765. data/lib/support/phpmyadmin/phpmyadmin/libraries/Theme.class.php +485 -0
  766. data/lib/support/phpmyadmin/phpmyadmin/libraries/Theme_Manager.class.php +460 -0
  767. data/lib/support/phpmyadmin/phpmyadmin/libraries/Tracker.class.php +1030 -0
  768. data/lib/support/phpmyadmin/phpmyadmin/libraries/Types.class.php +1071 -0
  769. data/lib/support/phpmyadmin/phpmyadmin/libraries/Util.class.php +4602 -0
  770. data/lib/support/phpmyadmin/phpmyadmin/libraries/advisory_rules.txt +470 -0
  771. data/lib/support/phpmyadmin/phpmyadmin/libraries/bfShapeFiles/ShapeFile.lib.php +682 -0
  772. data/lib/support/phpmyadmin/phpmyadmin/libraries/bookmark.lib.php +273 -0
  773. data/lib/support/phpmyadmin/phpmyadmin/libraries/browse_foreigners.lib.php +316 -0
  774. data/lib/support/phpmyadmin/phpmyadmin/libraries/build_html_for_db.lib.php +184 -0
  775. data/lib/support/phpmyadmin/phpmyadmin/libraries/central_columns.lib.php +1003 -0
  776. data/lib/support/phpmyadmin/phpmyadmin/libraries/charset_conversion.lib.php +120 -0
  777. data/lib/support/phpmyadmin/phpmyadmin/libraries/check_user_privileges.lib.php +195 -0
  778. data/lib/support/phpmyadmin/phpmyadmin/libraries/cleanup.lib.php +50 -0
  779. data/lib/support/phpmyadmin/phpmyadmin/libraries/common.inc.php +1203 -0
  780. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/ConfigFile.class.php +543 -0
  781. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/Form.class.php +231 -0
  782. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/FormDisplay.class.php +837 -0
  783. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/FormDisplay.tpl.php +491 -0
  784. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/ServerConfigChecks.class.php +577 -0
  785. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/Validator.class.php +624 -0
  786. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/config_functions.lib.php +54 -0
  787. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/messages.inc.php +818 -0
  788. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/setup.forms.php +384 -0
  789. data/lib/support/phpmyadmin/phpmyadmin/libraries/config/user_preferences.forms.php +281 -0
  790. data/lib/support/phpmyadmin/phpmyadmin/libraries/config.default.php +3011 -0
  791. data/lib/support/phpmyadmin/phpmyadmin/libraries/config.values.php +270 -0
  792. data/lib/support/phpmyadmin/phpmyadmin/libraries/core.lib.php +1013 -0
  793. data/lib/support/phpmyadmin/phpmyadmin/libraries/create_addfield.lib.php +376 -0
  794. data/lib/support/phpmyadmin/phpmyadmin/libraries/data_dictionary_relations.lib.php +167 -0
  795. data/lib/support/phpmyadmin/phpmyadmin/libraries/database_interface.inc.php +74 -0
  796. data/lib/support/phpmyadmin/phpmyadmin/libraries/db_common.inc.php +105 -0
  797. data/lib/support/phpmyadmin/phpmyadmin/libraries/db_designer.lib.php +1397 -0
  798. data/lib/support/phpmyadmin/phpmyadmin/libraries/db_info.inc.php +248 -0
  799. data/lib/support/phpmyadmin/phpmyadmin/libraries/db_printview.lib.php +30 -0
  800. data/lib/support/phpmyadmin/phpmyadmin/libraries/db_table_exists.lib.php +106 -0
  801. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/DBIDrizzle.class.php +583 -0
  802. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/DBIDummy.class.php +906 -0
  803. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/DBIExtension.int.php +262 -0
  804. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/DBIMysql.class.php +469 -0
  805. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/DBIMysqli.class.php +620 -0
  806. data/lib/support/phpmyadmin/phpmyadmin/libraries/dbi/drizzle-wrappers.lib.php +427 -0
  807. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_change_password.lib.php +113 -0
  808. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_create_database.lib.php +62 -0
  809. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_create_table.lib.php +82 -0
  810. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_export.inc.php +72 -0
  811. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_export.lib.php +872 -0
  812. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_git_revision.lib.php +83 -0
  813. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_import.inc.php +64 -0
  814. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_import.lib.php +602 -0
  815. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_import_ajax.lib.php +129 -0
  816. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_select_lang.lib.php +98 -0
  817. data/lib/support/phpmyadmin/phpmyadmin/libraries/display_structure.inc.php +272 -0
  818. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/bdb.lib.php +87 -0
  819. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/berkeleydb.lib.php +26 -0
  820. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/binlog.lib.php +31 -0
  821. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/innobase.lib.php +25 -0
  822. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/innodb.lib.php +392 -0
  823. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/memory.lib.php +34 -0
  824. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/merge.lib.php +21 -0
  825. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/mrg_myisam.lib.php +36 -0
  826. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/myisam.lib.php +69 -0
  827. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/ndbcluster.lib.php +55 -0
  828. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/pbxt.lib.php +149 -0
  829. data/lib/support/phpmyadmin/phpmyadmin/libraries/engines/performance_schema.lib.php +31 -0
  830. data/lib/support/phpmyadmin/phpmyadmin/libraries/error.inc.php +58 -0
  831. data/lib/support/phpmyadmin/phpmyadmin/libraries/error_report.lib.php +432 -0
  832. data/lib/support/phpmyadmin/phpmyadmin/libraries/export.lib.php +858 -0
  833. data/lib/support/phpmyadmin/phpmyadmin/libraries/file_listing.lib.php +99 -0
  834. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Factory.class.php +66 -0
  835. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Geometry.class.php +376 -0
  836. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Geometrycollection.class.php +364 -0
  837. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Linestring.class.php +323 -0
  838. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Multilinestring.class.php +394 -0
  839. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Multipoint.class.php +367 -0
  840. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Multipolygon.class.php +564 -0
  841. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Point.class.php +314 -0
  842. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Polygon.class.php +581 -0
  843. data/lib/support/phpmyadmin/phpmyadmin/libraries/gis/GIS_Visualization.class.php +504 -0
  844. data/lib/support/phpmyadmin/phpmyadmin/libraries/iconv_wrapper.lib.php +128 -0
  845. data/lib/support/phpmyadmin/phpmyadmin/libraries/import.lib.php +1954 -0
  846. data/lib/support/phpmyadmin/phpmyadmin/libraries/index.lib.php +48 -0
  847. data/lib/support/phpmyadmin/phpmyadmin/libraries/information_schema_relations.lib.php +327 -0
  848. data/lib/support/phpmyadmin/phpmyadmin/libraries/insert_edit.lib.php +2931 -0
  849. data/lib/support/phpmyadmin/phpmyadmin/libraries/ip_allow_deny.lib.php +341 -0
  850. data/lib/support/phpmyadmin/phpmyadmin/libraries/js_escape.lib.php +135 -0
  851. data/lib/support/phpmyadmin/phpmyadmin/libraries/kanji-encoding.lib.php +168 -0
  852. data/lib/support/phpmyadmin/phpmyadmin/libraries/language_stats.inc.php +87 -0
  853. data/lib/support/phpmyadmin/phpmyadmin/libraries/logging.lib.php +30 -0
  854. data/lib/support/phpmyadmin/phpmyadmin/libraries/mime.lib.php +34 -0
  855. data/lib/support/phpmyadmin/phpmyadmin/libraries/mult_submits.inc.php +307 -0
  856. data/lib/support/phpmyadmin/phpmyadmin/libraries/mult_submits.lib.php +647 -0
  857. data/lib/support/phpmyadmin/phpmyadmin/libraries/mysql_charsets.inc.php +129 -0
  858. data/lib/support/phpmyadmin/phpmyadmin/libraries/mysql_charsets.lib.php +379 -0
  859. data/lib/support/phpmyadmin/phpmyadmin/libraries/mysql_relations.lib.php +169 -0
  860. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Navigation.class.php +228 -0
  861. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/NavigationHeader.class.php +223 -0
  862. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/NavigationTree.class.php +1452 -0
  863. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/NodeFactory.class.php +97 -0
  864. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node.class.php +813 -0
  865. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Column.class.php +47 -0
  866. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Column_Container.class.php +57 -0
  867. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Database.class.php +663 -0
  868. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_DatabaseChild.class.php +52 -0
  869. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Database_Container.class.php +51 -0
  870. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Event.class.php +57 -0
  871. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Event_Container.class.php +54 -0
  872. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Function.class.php +57 -0
  873. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Function_Container.class.php +53 -0
  874. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Index.class.php +45 -0
  875. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Index_Container.class.php +57 -0
  876. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Procedure.class.php +57 -0
  877. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Procedure_Container.class.php +55 -0
  878. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Table.class.php +294 -0
  879. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Table_Container.class.php +60 -0
  880. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Trigger.class.php +45 -0
  881. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_Trigger_Container.class.php +57 -0
  882. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_View.class.php +57 -0
  883. data/lib/support/phpmyadmin/phpmyadmin/libraries/navigation/Nodes/Node_View_Container.class.php +60 -0
  884. data/lib/support/phpmyadmin/phpmyadmin/libraries/normalization.lib.php +945 -0
  885. data/lib/support/phpmyadmin/phpmyadmin/libraries/opendocument.lib.php +171 -0
  886. data/lib/support/phpmyadmin/phpmyadmin/libraries/operations.lib.php +1649 -0
  887. data/lib/support/phpmyadmin/phpmyadmin/libraries/parse_analyze.inc.php +144 -0
  888. data/lib/support/phpmyadmin/phpmyadmin/libraries/php-gettext/gettext.inc +536 -0
  889. data/lib/support/phpmyadmin/phpmyadmin/libraries/php-gettext/gettext.php +432 -0
  890. data/lib/support/phpmyadmin/phpmyadmin/libraries/php-gettext/streams.php +167 -0
  891. data/lib/support/phpmyadmin/phpmyadmin/libraries/phpseclib/Crypt/AES.php +184 -0
  892. data/lib/support/phpmyadmin/phpmyadmin/libraries/phpseclib/Crypt/Base.php +1984 -0
  893. data/lib/support/phpmyadmin/phpmyadmin/libraries/phpseclib/Crypt/Random.php +251 -0
  894. data/lib/support/phpmyadmin/phpmyadmin/libraries/phpseclib/Crypt/Rijndael.php +1370 -0
  895. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugin_interface.lib.php +557 -0
  896. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/AuthenticationPlugin.class.php +100 -0
  897. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/ExportPlugin.class.php +326 -0
  898. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/IOTransformationsPlugin.class.php +91 -0
  899. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/ImportPlugin.class.php +77 -0
  900. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/SchemaPlugin.class.php +76 -0
  901. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/TransformationsInterface.int.php +49 -0
  902. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/TransformationsPlugin.class.php +69 -0
  903. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/UploadInterface.int.php +36 -0
  904. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/AuthenticationConfig.class.php +183 -0
  905. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/AuthenticationCookie.class.php +871 -0
  906. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/AuthenticationHttp.class.php +289 -0
  907. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/AuthenticationSignon.class.php +267 -0
  908. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/recaptcha/LICENSE +29 -0
  909. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/recaptcha/recaptchalib.php +140 -0
  910. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/swekey/authentication.inc.php +176 -0
  911. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/swekey/musbe-ca.crt +25 -0
  912. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/swekey/swekey.auth.lib.php +318 -0
  913. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/auth/swekey/swekey.php +536 -0
  914. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportCodegen.class.php +434 -0
  915. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportCsv.class.php +323 -0
  916. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportExcel.class.php +92 -0
  917. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportHtmlword.class.php +644 -0
  918. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportJson.class.php +215 -0
  919. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportLatex.class.php +656 -0
  920. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportMediawiki.class.php +379 -0
  921. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportOds.class.php +334 -0
  922. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportOdt.class.php +765 -0
  923. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportPdf.class.php +276 -0
  924. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportPhparray.class.php +233 -0
  925. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportSql.class.php +2601 -0
  926. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportTexytext.class.php +575 -0
  927. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportXml.class.php +584 -0
  928. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/ExportYaml.class.php +212 -0
  929. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/PMA_ExportPdf.class.php +434 -0
  930. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/README +267 -0
  931. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/export/TableProperty.class.php +286 -0
  932. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/AbstractImportCsv.class.php +90 -0
  933. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportCsv.class.php +687 -0
  934. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportLdi.class.php +161 -0
  935. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportMediawiki.class.php +598 -0
  936. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportOds.class.php +414 -0
  937. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportShp.class.php +327 -0
  938. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportSql.class.php +620 -0
  939. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ImportXml.class.php +366 -0
  940. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/README +159 -0
  941. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ShapeFile.class.php +102 -0
  942. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/ShapeRecord.class.php +161 -0
  943. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/upload/UploadApc.class.php +84 -0
  944. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/upload/UploadNoplugin.class.php +64 -0
  945. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/upload/UploadProgress.class.php +94 -0
  946. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/import/upload/UploadSession.class.php +96 -0
  947. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/Export_Relation_Schema.class.php +299 -0
  948. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/RelationStats.class.php +108 -0
  949. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/SchemaDia.class.php +117 -0
  950. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/SchemaEps.class.php +102 -0
  951. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/SchemaPdf.class.php +132 -0
  952. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/SchemaSvg.class.php +90 -0
  953. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/TableStats.class.php +179 -0
  954. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/dia/Dia_Relation_Schema.class.php +378 -0
  955. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/dia/RelationStatsDia.class.php +216 -0
  956. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/dia/TableStatsDia.class.php +227 -0
  957. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/eps/Eps_Relation_Schema.class.php +508 -0
  958. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/eps/RelationStatsEps.class.php +135 -0
  959. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/eps/TableStatsEps.class.php +157 -0
  960. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/pdf/Pdf_Relation_Schema.class.php +1070 -0
  961. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/pdf/RelationStatsPdf.class.php +135 -0
  962. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/pdf/TableStatsPdf.class.php +222 -0
  963. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/svg/RelationStatsSvg.class.php +119 -0
  964. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/svg/Svg_Relation_Schema.class.php +501 -0
  965. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/schema/svg/TableStatsSvg.class.php +180 -0
  966. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/README +4 -0
  967. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/TEMPLATE +46 -0
  968. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/TEMPLATE_ABSTRACT +73 -0
  969. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/Text_Plain_Link.class.php +44 -0
  970. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/Text_Plain_Longtoipv4.class.php +44 -0
  971. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/Text_Plain_Preappend.class.php +45 -0
  972. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/Text_Plain_Substring.class.php +44 -0
  973. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/Bool2TextTransformationsPlugin.class.php +69 -0
  974. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/CodeMirrorEditorTransformationPlugin.class.php +64 -0
  975. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/DateFormatTransformationsPlugin.class.php +164 -0
  976. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/DownloadTransformationsPlugin.class.php +95 -0
  977. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/ExternalTransformationsPlugin.class.php +155 -0
  978. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/FormattedTransformationsPlugin.class.php +65 -0
  979. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/HexTransformationsPlugin.class.php +72 -0
  980. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/ImageLinkTransformationsPlugin.class.php +74 -0
  981. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/ImageUploadTransformationsPlugin.class.php +110 -0
  982. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/InlineTransformationsPlugin.class.php +86 -0
  983. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/LongToIPv4TransformationsPlugin.class.php +68 -0
  984. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/PreApPendTransformationsPlugin.class.php +71 -0
  985. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/RegexValidationTransformationsPlugin.class.php +74 -0
  986. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/SQLTransformationsPlugin.class.php +67 -0
  987. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/SubstringTransformationsPlugin.class.php +92 -0
  988. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/TextFileUploadTransformationsPlugin.class.php +93 -0
  989. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/TextImageLinkTransformationsPlugin.class.php +81 -0
  990. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/abstract/TextLinkTransformationsPlugin.class.php +82 -0
  991. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/generator_main_class.sh +16 -0
  992. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/generator_plugin.sh +64 -0
  993. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Image_JPEG_Upload.class.php +46 -0
  994. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Text_Plain_Fileupload.class.php +45 -0
  995. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Text_Plain_JsonEditor.class.php +86 -0
  996. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Text_Plain_Regexvalidation.class.php +46 -0
  997. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Text_Plain_SqlEditor.class.php +86 -0
  998. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/input/Text_Plain_XmlEditor.class.php +86 -0
  999. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Application_Octetstream_Download.class.php +44 -0
  1000. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Application_Octetstream_Hex.class.php +45 -0
  1001. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Image_JPEG_Inline.class.php +45 -0
  1002. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Image_JPEG_Link.class.php +45 -0
  1003. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Image_PNG_Inline.class.php +45 -0
  1004. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Octetstream_Sql.class.php +45 -0
  1005. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Bool2text.class.php +47 -0
  1006. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Dateformat.class.php +45 -0
  1007. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_External.class.php +45 -0
  1008. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Formatted.class.php +45 -0
  1009. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Imagelink.class.php +45 -0
  1010. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Json.class.php +96 -0
  1011. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Sql.class.php +57 -0
  1012. data/lib/support/phpmyadmin/phpmyadmin/libraries/plugins/transformations/output/Text_Plain_Xml.class.php +96 -0
  1013. data/lib/support/phpmyadmin/phpmyadmin/libraries/pmd_common.php +657 -0
  1014. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/PropertyItem.class.php +49 -0
  1015. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/OptionsPropertyGroup.class.php +99 -0
  1016. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/OptionsPropertyItem.class.php +127 -0
  1017. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/OptionsPropertyOneItem.class.php +172 -0
  1018. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/groups/OptionsPropertyMainGroup.class.php +35 -0
  1019. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/groups/OptionsPropertyRootGroup.class.php +35 -0
  1020. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/groups/OptionsPropertySubgroup.class.php +68 -0
  1021. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/BoolPropertyItem.class.php +35 -0
  1022. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/DocPropertyItem.class.php +35 -0
  1023. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/HiddenPropertyItem.class.php +35 -0
  1024. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/MessageOnlyPropertyItem.class.php +35 -0
  1025. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/NumberPropertyItem.class.php +35 -0
  1026. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/RadioPropertyItem.class.php +35 -0
  1027. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/SelectPropertyItem.class.php +35 -0
  1028. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/options/items/TextPropertyItem.class.php +35 -0
  1029. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/plugins/ExportPluginProperties.class.php +68 -0
  1030. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/plugins/ImportPluginProperties.class.php +34 -0
  1031. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/plugins/PluginPropertyItem.class.php +183 -0
  1032. data/lib/support/phpmyadmin/phpmyadmin/libraries/properties/plugins/SchemaPluginProperties.class.php +47 -0
  1033. data/lib/support/phpmyadmin/phpmyadmin/libraries/relation.lib.php +2024 -0
  1034. data/lib/support/phpmyadmin/phpmyadmin/libraries/relation_cleanup.lib.php +216 -0
  1035. data/lib/support/phpmyadmin/phpmyadmin/libraries/replication.inc.php +321 -0
  1036. data/lib/support/phpmyadmin/phpmyadmin/libraries/replication_gui.lib.php +1088 -0
  1037. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_events.lib.php +618 -0
  1038. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_export.lib.php +121 -0
  1039. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_footer.lib.php +130 -0
  1040. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_general.lib.php +88 -0
  1041. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_list.lib.php +387 -0
  1042. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_main.inc.php +94 -0
  1043. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_routines.lib.php +1733 -0
  1044. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_triggers.lib.php +463 -0
  1045. data/lib/support/phpmyadmin/phpmyadmin/libraries/rte/rte_words.lib.php +75 -0
  1046. data/lib/support/phpmyadmin/phpmyadmin/libraries/sanitizing.lib.php +191 -0
  1047. data/lib/support/phpmyadmin/phpmyadmin/libraries/select_lang.lib.php +621 -0
  1048. data/lib/support/phpmyadmin/phpmyadmin/libraries/select_server.lib.php +111 -0
  1049. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_bin_log.lib.php +244 -0
  1050. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_collations.lib.php +100 -0
  1051. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_common.inc.php +53 -0
  1052. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_common.lib.php +67 -0
  1053. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_databases.lib.php +498 -0
  1054. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_engines.lib.php +145 -0
  1055. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_plugins.lib.php +207 -0
  1056. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_privileges.lib.php +4692 -0
  1057. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status.lib.php +317 -0
  1058. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status_advisor.lib.php +68 -0
  1059. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status_monitor.lib.php +825 -0
  1060. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status_processes.lib.php +320 -0
  1061. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status_queries.lib.php +154 -0
  1062. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_status_variables.lib.php +765 -0
  1063. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_user_groups.lib.php +360 -0
  1064. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_users.lib.php +58 -0
  1065. data/lib/support/phpmyadmin/phpmyadmin/libraries/server_variables.lib.php +1683 -0
  1066. data/lib/support/phpmyadmin/phpmyadmin/libraries/session.inc.php +130 -0
  1067. data/lib/support/phpmyadmin/phpmyadmin/libraries/special_schema_links.lib.php +461 -0
  1068. data/lib/support/phpmyadmin/phpmyadmin/libraries/sql-formatter/LICENSE.txt +21 -0
  1069. data/lib/support/phpmyadmin/phpmyadmin/libraries/sql-formatter/README.md +185 -0
  1070. data/lib/support/phpmyadmin/phpmyadmin/libraries/sql-formatter/lib/SqlFormatter.php +1085 -0
  1071. data/lib/support/phpmyadmin/phpmyadmin/libraries/sql.lib.php +2293 -0
  1072. data/lib/support/phpmyadmin/phpmyadmin/libraries/sql_query_form.lib.php +477 -0
  1073. data/lib/support/phpmyadmin/phpmyadmin/libraries/sqlparser.data.php +999 -0
  1074. data/lib/support/phpmyadmin/phpmyadmin/libraries/sqlparser.lib.php +2997 -0
  1075. data/lib/support/phpmyadmin/phpmyadmin/libraries/string.lib.php +33 -0
  1076. data/lib/support/phpmyadmin/phpmyadmin/libraries/stringMb.lib.php +78 -0
  1077. data/lib/support/phpmyadmin/phpmyadmin/libraries/stringNative.lib.php +245 -0
  1078. data/lib/support/phpmyadmin/phpmyadmin/libraries/structure.lib.php +3294 -0
  1079. data/lib/support/phpmyadmin/phpmyadmin/libraries/sysinfo.lib.php +369 -0
  1080. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_chart.lib.php +383 -0
  1081. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_columns_definition_form.inc.php +195 -0
  1082. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_columns_definition_form.lib.php +1458 -0
  1083. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_common.inc.php +48 -0
  1084. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_gis_visualization.lib.php +281 -0
  1085. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_indexes.lib.php +480 -0
  1086. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_info.inc.php +108 -0
  1087. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_printview.lib.php +602 -0
  1088. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_relation.lib.php +1222 -0
  1089. data/lib/support/phpmyadmin/phpmyadmin/libraries/tbl_views.lib.php +161 -0
  1090. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/LICENSE.TXT +858 -0
  1091. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/README.TXT +115 -0
  1092. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/config/tcpdf_config.php +227 -0
  1093. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavu-fonts-ttf-2.34/LICENSE +99 -0
  1094. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusans.ctg.z +0 -0
  1095. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusans.php +16 -0
  1096. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusans.z +0 -0
  1097. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusansb.ctg.z +0 -0
  1098. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusansb.php +16 -0
  1099. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/dejavusansb.z +0 -0
  1100. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/fonts/helvetica.php +13 -0
  1101. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/sRGB.icc +0 -0
  1102. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/tcpdf_colors.php +462 -0
  1103. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/tcpdf_font_data.php +18447 -0
  1104. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/tcpdf_fonts.php +2591 -0
  1105. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/tcpdf_images.php +355 -0
  1106. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/include/tcpdf_static.php +2528 -0
  1107. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/tcpdf.php +24478 -0
  1108. data/lib/support/phpmyadmin/phpmyadmin/libraries/tcpdf/tcpdf_autoconfig.php +241 -0
  1109. data/lib/support/phpmyadmin/phpmyadmin/libraries/tracking.lib.php +1439 -0
  1110. data/lib/support/phpmyadmin/phpmyadmin/libraries/transformations.lib.php +461 -0
  1111. data/lib/support/phpmyadmin/phpmyadmin/libraries/url_generating.lib.php +256 -0
  1112. data/lib/support/phpmyadmin/phpmyadmin/libraries/user_preferences.inc.php +71 -0
  1113. data/lib/support/phpmyadmin/phpmyadmin/libraries/user_preferences.lib.php +301 -0
  1114. data/lib/support/phpmyadmin/phpmyadmin/libraries/vendor_config.php +93 -0
  1115. data/lib/support/phpmyadmin/phpmyadmin/libraries/zip.lib.php +211 -0
  1116. data/lib/support/phpmyadmin/phpmyadmin/libraries/zip_extension.lib.php +195 -0
  1117. data/lib/support/phpmyadmin/phpmyadmin/license.php +31 -0
  1118. data/lib/support/phpmyadmin/phpmyadmin/locale/az/LC_MESSAGES/phpmyadmin.mo +0 -0
  1119. data/lib/support/phpmyadmin/phpmyadmin/locale/bg/LC_MESSAGES/phpmyadmin.mo +0 -0
  1120. data/lib/support/phpmyadmin/phpmyadmin/locale/bn/LC_MESSAGES/phpmyadmin.mo +0 -0
  1121. data/lib/support/phpmyadmin/phpmyadmin/locale/ca/LC_MESSAGES/phpmyadmin.mo +0 -0
  1122. data/lib/support/phpmyadmin/phpmyadmin/locale/cs/LC_MESSAGES/phpmyadmin.mo +0 -0
  1123. data/lib/support/phpmyadmin/phpmyadmin/locale/da/LC_MESSAGES/phpmyadmin.mo +0 -0
  1124. data/lib/support/phpmyadmin/phpmyadmin/locale/de/LC_MESSAGES/phpmyadmin.mo +0 -0
  1125. data/lib/support/phpmyadmin/phpmyadmin/locale/el/LC_MESSAGES/phpmyadmin.mo +0 -0
  1126. data/lib/support/phpmyadmin/phpmyadmin/locale/en_GB/LC_MESSAGES/phpmyadmin.mo +0 -0
  1127. data/lib/support/phpmyadmin/phpmyadmin/locale/es/LC_MESSAGES/phpmyadmin.mo +0 -0
  1128. data/lib/support/phpmyadmin/phpmyadmin/locale/et/LC_MESSAGES/phpmyadmin.mo +0 -0
  1129. data/lib/support/phpmyadmin/phpmyadmin/locale/fi/LC_MESSAGES/phpmyadmin.mo +0 -0
  1130. data/lib/support/phpmyadmin/phpmyadmin/locale/fr/LC_MESSAGES/phpmyadmin.mo +0 -0
  1131. data/lib/support/phpmyadmin/phpmyadmin/locale/gl/LC_MESSAGES/phpmyadmin.mo +0 -0
  1132. data/lib/support/phpmyadmin/phpmyadmin/locale/hi/LC_MESSAGES/phpmyadmin.mo +0 -0
  1133. data/lib/support/phpmyadmin/phpmyadmin/locale/hu/LC_MESSAGES/phpmyadmin.mo +0 -0
  1134. data/lib/support/phpmyadmin/phpmyadmin/locale/ia/LC_MESSAGES/phpmyadmin.mo +0 -0
  1135. data/lib/support/phpmyadmin/phpmyadmin/locale/id/LC_MESSAGES/phpmyadmin.mo +0 -0
  1136. data/lib/support/phpmyadmin/phpmyadmin/locale/it/LC_MESSAGES/phpmyadmin.mo +0 -0
  1137. data/lib/support/phpmyadmin/phpmyadmin/locale/ja/LC_MESSAGES/phpmyadmin.mo +0 -0
  1138. data/lib/support/phpmyadmin/phpmyadmin/locale/ko/LC_MESSAGES/phpmyadmin.mo +0 -0
  1139. data/lib/support/phpmyadmin/phpmyadmin/locale/lt/LC_MESSAGES/phpmyadmin.mo +0 -0
  1140. data/lib/support/phpmyadmin/phpmyadmin/locale/nb/LC_MESSAGES/phpmyadmin.mo +0 -0
  1141. data/lib/support/phpmyadmin/phpmyadmin/locale/nl/LC_MESSAGES/phpmyadmin.mo +0 -0
  1142. data/lib/support/phpmyadmin/phpmyadmin/locale/pl/LC_MESSAGES/phpmyadmin.mo +0 -0
  1143. data/lib/support/phpmyadmin/phpmyadmin/locale/pt/LC_MESSAGES/phpmyadmin.mo +0 -0
  1144. data/lib/support/phpmyadmin/phpmyadmin/locale/pt_BR/LC_MESSAGES/phpmyadmin.mo +0 -0
  1145. data/lib/support/phpmyadmin/phpmyadmin/locale/ro/LC_MESSAGES/phpmyadmin.mo +0 -0
  1146. data/lib/support/phpmyadmin/phpmyadmin/locale/ru/LC_MESSAGES/phpmyadmin.mo +0 -0
  1147. data/lib/support/phpmyadmin/phpmyadmin/locale/si/LC_MESSAGES/phpmyadmin.mo +0 -0
  1148. data/lib/support/phpmyadmin/phpmyadmin/locale/sk/LC_MESSAGES/phpmyadmin.mo +0 -0
  1149. data/lib/support/phpmyadmin/phpmyadmin/locale/sl/LC_MESSAGES/phpmyadmin.mo +0 -0
  1150. data/lib/support/phpmyadmin/phpmyadmin/locale/sq/LC_MESSAGES/phpmyadmin.mo +0 -0
  1151. data/lib/support/phpmyadmin/phpmyadmin/locale/sr@latin/LC_MESSAGES/phpmyadmin.mo +0 -0
  1152. data/lib/support/phpmyadmin/phpmyadmin/locale/sv/LC_MESSAGES/phpmyadmin.mo +0 -0
  1153. data/lib/support/phpmyadmin/phpmyadmin/locale/tr/LC_MESSAGES/phpmyadmin.mo +0 -0
  1154. data/lib/support/phpmyadmin/phpmyadmin/locale/uk/LC_MESSAGES/phpmyadmin.mo +0 -0
  1155. data/lib/support/phpmyadmin/phpmyadmin/locale/zh_CN/LC_MESSAGES/phpmyadmin.mo +0 -0
  1156. data/lib/support/phpmyadmin/phpmyadmin/locale/zh_TW/LC_MESSAGES/phpmyadmin.mo +0 -0
  1157. data/lib/support/phpmyadmin/phpmyadmin/navigation.php +71 -0
  1158. data/lib/support/phpmyadmin/phpmyadmin/normalization.php +122 -0
  1159. data/lib/support/phpmyadmin/phpmyadmin/phpinfo.php +21 -0
  1160. data/lib/support/phpmyadmin/phpmyadmin/phpmyadmin.css.php +39 -0
  1161. data/lib/support/phpmyadmin/phpmyadmin/phpunit.xml.hhvm +30 -0
  1162. data/lib/support/phpmyadmin/phpmyadmin/phpunit.xml.nocoverage +40 -0
  1163. data/lib/support/phpmyadmin/phpmyadmin/prefs_forms.php +92 -0
  1164. data/lib/support/phpmyadmin/phpmyadmin/prefs_manage.php +375 -0
  1165. data/lib/support/phpmyadmin/phpmyadmin/print.css +92 -0
  1166. data/lib/support/phpmyadmin/phpmyadmin/robots.txt +2 -0
  1167. data/lib/support/phpmyadmin/phpmyadmin/schema_export.php +77 -0
  1168. data/lib/support/phpmyadmin/phpmyadmin/server_binlog.php +54 -0
  1169. data/lib/support/phpmyadmin/phpmyadmin/server_collations.php +39 -0
  1170. data/lib/support/phpmyadmin/phpmyadmin/server_databases.php +118 -0
  1171. data/lib/support/phpmyadmin/phpmyadmin/server_engines.php +34 -0
  1172. data/lib/support/phpmyadmin/phpmyadmin/server_export.php +29 -0
  1173. data/lib/support/phpmyadmin/phpmyadmin/server_import.php +27 -0
  1174. data/lib/support/phpmyadmin/phpmyadmin/server_plugins.php +59 -0
  1175. data/lib/support/phpmyadmin/phpmyadmin/server_privileges.php +410 -0
  1176. data/lib/support/phpmyadmin/phpmyadmin/server_replication.php +83 -0
  1177. data/lib/support/phpmyadmin/phpmyadmin/server_sql.php +32 -0
  1178. data/lib/support/phpmyadmin/phpmyadmin/server_status.php +38 -0
  1179. data/lib/support/phpmyadmin/phpmyadmin/server_status_advisor.php +39 -0
  1180. data/lib/support/phpmyadmin/phpmyadmin/server_status_monitor.php +113 -0
  1181. data/lib/support/phpmyadmin/phpmyadmin/server_status_processes.php +64 -0
  1182. data/lib/support/phpmyadmin/phpmyadmin/server_status_queries.php +54 -0
  1183. data/lib/support/phpmyadmin/phpmyadmin/server_status_variables.php +57 -0
  1184. data/lib/support/phpmyadmin/phpmyadmin/server_user_groups.php +72 -0
  1185. data/lib/support/phpmyadmin/phpmyadmin/server_variables.php +60 -0
  1186. data/lib/support/phpmyadmin/phpmyadmin/setup/ajax.js +11 -0
  1187. data/lib/support/phpmyadmin/phpmyadmin/setup/config.php +81 -0
  1188. data/lib/support/phpmyadmin/phpmyadmin/setup/frames/config.inc.php +52 -0
  1189. data/lib/support/phpmyadmin/phpmyadmin/setup/frames/form.inc.php +36 -0
  1190. data/lib/support/phpmyadmin/phpmyadmin/setup/frames/index.inc.php +313 -0
  1191. data/lib/support/phpmyadmin/phpmyadmin/setup/frames/menu.inc.php +37 -0
  1192. data/lib/support/phpmyadmin/phpmyadmin/setup/frames/servers.inc.php +50 -0
  1193. data/lib/support/phpmyadmin/phpmyadmin/setup/index.php +61 -0
  1194. data/lib/support/phpmyadmin/phpmyadmin/setup/lib/ConfigGenerator.class.php +161 -0
  1195. data/lib/support/phpmyadmin/phpmyadmin/setup/lib/common.inc.php +56 -0
  1196. data/lib/support/phpmyadmin/phpmyadmin/setup/lib/form_processing.lib.php +81 -0
  1197. data/lib/support/phpmyadmin/phpmyadmin/setup/lib/index.lib.php +204 -0
  1198. data/lib/support/phpmyadmin/phpmyadmin/setup/scripts.js +216 -0
  1199. data/lib/support/phpmyadmin/phpmyadmin/setup/styles.css +619 -0
  1200. data/lib/support/phpmyadmin/phpmyadmin/setup/validate.php +32 -0
  1201. data/lib/support/phpmyadmin/phpmyadmin/show_config_errors.php +40 -0
  1202. data/lib/support/phpmyadmin/phpmyadmin/sql/create_tables.sql +323 -0
  1203. data/lib/support/phpmyadmin/phpmyadmin/sql/create_tables_drizzle.sql +275 -0
  1204. data/lib/support/phpmyadmin/phpmyadmin/sql/upgrade_column_info_4_3_0+.sql +47 -0
  1205. data/lib/support/phpmyadmin/phpmyadmin/sql/upgrade_tables_mysql_4_1_2+.sql +144 -0
  1206. data/lib/support/phpmyadmin/phpmyadmin/sql.php +203 -0
  1207. data/lib/support/phpmyadmin/phpmyadmin/tbl_addfield.php +124 -0
  1208. data/lib/support/phpmyadmin/phpmyadmin/tbl_change.php +232 -0
  1209. data/lib/support/phpmyadmin/phpmyadmin/tbl_chart.php +142 -0
  1210. data/lib/support/phpmyadmin/phpmyadmin/tbl_create.php +108 -0
  1211. data/lib/support/phpmyadmin/phpmyadmin/tbl_export.php +107 -0
  1212. data/lib/support/phpmyadmin/phpmyadmin/tbl_find_replace.php +66 -0
  1213. data/lib/support/phpmyadmin/phpmyadmin/tbl_get_field.php +55 -0
  1214. data/lib/support/phpmyadmin/phpmyadmin/tbl_gis_visualization.php +115 -0
  1215. data/lib/support/phpmyadmin/phpmyadmin/tbl_import.php +30 -0
  1216. data/lib/support/phpmyadmin/phpmyadmin/tbl_indexes.php +60 -0
  1217. data/lib/support/phpmyadmin/phpmyadmin/tbl_operations.php +423 -0
  1218. data/lib/support/phpmyadmin/phpmyadmin/tbl_printview.php +74 -0
  1219. data/lib/support/phpmyadmin/phpmyadmin/tbl_recent_favorite.php +19 -0
  1220. data/lib/support/phpmyadmin/phpmyadmin/tbl_relation.php +156 -0
  1221. data/lib/support/phpmyadmin/phpmyadmin/tbl_replace.php +468 -0
  1222. data/lib/support/phpmyadmin/phpmyadmin/tbl_row_action.php +146 -0
  1223. data/lib/support/phpmyadmin/phpmyadmin/tbl_select.php +81 -0
  1224. data/lib/support/phpmyadmin/phpmyadmin/tbl_sql.php +52 -0
  1225. data/lib/support/phpmyadmin/phpmyadmin/tbl_structure.php +210 -0
  1226. data/lib/support/phpmyadmin/phpmyadmin/tbl_tracking.php +209 -0
  1227. data/lib/support/phpmyadmin/phpmyadmin/tbl_triggers.php +10 -0
  1228. data/lib/support/phpmyadmin/phpmyadmin/tbl_zoom_select.php +165 -0
  1229. data/lib/support/phpmyadmin/phpmyadmin/themes/dot.gif +0 -0
  1230. data/lib/support/phpmyadmin/phpmyadmin/themes/original/css/common.css.php +3078 -0
  1231. data/lib/support/phpmyadmin/phpmyadmin/themes/original/css/navigation.css.php +424 -0
  1232. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/ajax_clock_small.gif +0 -0
  1233. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/arrow_ltr.png +0 -0
  1234. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/arrow_rtl.png +0 -0
  1235. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_bookmark.png +0 -0
  1236. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_browse.png +0 -0
  1237. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_calendar.png +0 -0
  1238. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_chart.png +0 -0
  1239. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_close.png +0 -0
  1240. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_column_add.png +0 -0
  1241. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_comment.png +0 -0
  1242. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_dbstatistics.png +0 -0
  1243. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_deltbl.png +0 -0
  1244. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_docs.png +0 -0
  1245. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_drop.png +0 -0
  1246. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_edit.png +0 -0
  1247. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_empty.png +0 -0
  1248. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_engine.png +0 -0
  1249. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_event_add.png +0 -0
  1250. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_events.png +0 -0
  1251. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_export.png +0 -0
  1252. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_favorite.png +0 -0
  1253. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_find_replace.png +0 -0
  1254. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_ftext.png +0 -0
  1255. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_globe.gif +0 -0
  1256. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_group.png +0 -0
  1257. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_help.png +0 -0
  1258. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_home.png +0 -0
  1259. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_import.png +0 -0
  1260. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_index.png +0 -0
  1261. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_index_add.png +0 -0
  1262. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_info.png +0 -0
  1263. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_inline_edit.png +0 -0
  1264. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_insrow.png +0 -0
  1265. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_minus.png +0 -0
  1266. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_more.png +0 -0
  1267. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_move.png +0 -0
  1268. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_newdb.png +0 -0
  1269. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_newtbl.png +0 -0
  1270. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_nextpage.png +0 -0
  1271. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_no_favorite.png +0 -0
  1272. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_plus.png +0 -0
  1273. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_primary.png +0 -0
  1274. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_print.png +0 -0
  1275. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_props.png +0 -0
  1276. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_relations.png +0 -0
  1277. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_report.png +0 -0
  1278. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_routine_add.png +0 -0
  1279. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_routines.png +0 -0
  1280. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_save.png +0 -0
  1281. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_saveimage.png +0 -0
  1282. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_sbrowse.png +0 -0
  1283. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_search.png +0 -0
  1284. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_selboard.png +0 -0
  1285. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_select.png +0 -0
  1286. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_snewtbl.png +0 -0
  1287. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_spatial.png +0 -0
  1288. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_sql.png +0 -0
  1289. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_sqlhelp.png +0 -0
  1290. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_table_add.png +0 -0
  1291. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tblanalyse.png +0 -0
  1292. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tblexport.png +0 -0
  1293. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tblimport.png +0 -0
  1294. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tblops.png +0 -0
  1295. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tbloptimize.png +0 -0
  1296. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_tipp.png +0 -0
  1297. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_trigger_add.png +0 -0
  1298. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_triggers.png +0 -0
  1299. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_undo.png +0 -0
  1300. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_unique.png +0 -0
  1301. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_usradd.png +0 -0
  1302. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_usrcheck.png +0 -0
  1303. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_usrdrop.png +0 -0
  1304. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_usredit.png +0 -0
  1305. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_usrlist.png +0 -0
  1306. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_versions.png +0 -0
  1307. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_view.png +0 -0
  1308. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_view_add.png +0 -0
  1309. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/b_views.png +0 -0
  1310. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_browse.png +0 -0
  1311. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_deltbl.png +0 -0
  1312. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_drop.png +0 -0
  1313. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_edit.png +0 -0
  1314. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_empty.png +0 -0
  1315. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_export.png +0 -0
  1316. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_ftext.png +0 -0
  1317. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_index.png +0 -0
  1318. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_insrow.png +0 -0
  1319. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_nextpage.png +0 -0
  1320. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_primary.png +0 -0
  1321. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_routine_add.png +0 -0
  1322. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_sbrowse.png +0 -0
  1323. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_select.png +0 -0
  1324. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_spatial.png +0 -0
  1325. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/bd_unique.png +0 -0
  1326. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/centralColumns.png +0 -0
  1327. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/centralColumns_add.png +0 -0
  1328. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/centralColumns_delete.png +0 -0
  1329. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/cleardot.gif +0 -0
  1330. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/col_drop.png +0 -0
  1331. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/col_pointer.png +0 -0
  1332. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/col_pointer_ver.png +0 -0
  1333. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/console.png +0 -0
  1334. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/east-mini.png +0 -0
  1335. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/error.ico +0 -0
  1336. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/eye.png +0 -0
  1337. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/eye_grey.png +0 -0
  1338. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/lightbulb.png +0 -0
  1339. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/lightbulb_off.png +0 -0
  1340. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/logo_left.png +0 -0
  1341. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/logo_right.png +0 -0
  1342. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/more.png +0 -0
  1343. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_data.png +0 -0
  1344. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_data_hovered.png +0 -0
  1345. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_data_selected.png +0 -0
  1346. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_data_selected_hovered.png +0 -0
  1347. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_struct.png +0 -0
  1348. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_struct_hovered.png +0 -0
  1349. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_struct_selected.png +0 -0
  1350. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/new_struct_selected_hovered.png +0 -0
  1351. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/normalize.png +0 -0
  1352. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/north-mini.png +0 -0
  1353. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/pause.png +0 -0
  1354. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/play.png +0 -0
  1355. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_asc.png +0 -0
  1356. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_asci.png +0 -0
  1357. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_attention.png +0 -0
  1358. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_cancel.png +0 -0
  1359. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_cog.png +0 -0
  1360. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_collapseall.png +0 -0
  1361. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_db.png +0 -0
  1362. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_desc.png +0 -0
  1363. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_error.png +0 -0
  1364. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_error2.png +0 -0
  1365. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_fulltext.png +0 -0
  1366. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_host.png +0 -0
  1367. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_info.png +0 -0
  1368. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_lang.png +0 -0
  1369. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_link.png +0 -0
  1370. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_lock.png +0 -0
  1371. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_loggoff.png +0 -0
  1372. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_notice.png +0 -0
  1373. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_partialtext.png +0 -0
  1374. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_passwd.png +0 -0
  1375. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_really.png +0 -0
  1376. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_reload.png +0 -0
  1377. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_replication.png +0 -0
  1378. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_rights.png +0 -0
  1379. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_sortable.png +0 -0
  1380. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_status.png +0 -0
  1381. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_success.png +0 -0
  1382. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_sync.png +0 -0
  1383. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_tbl.png +0 -0
  1384. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_theme.png +0 -0
  1385. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_top.png +0 -0
  1386. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_unlink.png +0 -0
  1387. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_vars.png +0 -0
  1388. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/s_views.png +0 -0
  1389. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/south-mini.png +0 -0
  1390. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/spacer.png +0 -0
  1391. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/sprites.png +0 -0
  1392. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/toggle-ltr.png +0 -0
  1393. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/toggle-rtl.png +0 -0
  1394. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/vertical_line.png +0 -0
  1395. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/west-mini.png +0 -0
  1396. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/window-new.png +0 -0
  1397. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/zoom-minus-mini.png +0 -0
  1398. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/zoom-plus-mini.png +0 -0
  1399. data/lib/support/phpmyadmin/phpmyadmin/themes/original/img/zoom-world-mini.png +0 -0
  1400. data/lib/support/phpmyadmin/phpmyadmin/themes/original/info.inc.php +15 -0
  1401. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1402. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  1403. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  1404. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  1405. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  1406. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  1407. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1408. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  1409. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-icons_222222_256x240.png +0 -0
  1410. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-icons_2e83ff_256x240.png +0 -0
  1411. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-icons_454545_256x240.png +0 -0
  1412. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-icons_888888_256x240.png +0 -0
  1413. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/images/ui-icons_cd0a0a_256x240.png +0 -0
  1414. data/lib/support/phpmyadmin/phpmyadmin/themes/original/jquery/jquery-ui-1.11.2.css +1225 -0
  1415. data/lib/support/phpmyadmin/phpmyadmin/themes/original/layout.inc.php +102 -0
  1416. data/lib/support/phpmyadmin/phpmyadmin/themes/original/screen.png +0 -0
  1417. data/lib/support/phpmyadmin/phpmyadmin/themes/original/sprites.lib.php +720 -0
  1418. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/codemirror.css.php +350 -0
  1419. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/common.css.php +3401 -0
  1420. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/enum_editor.css.php +80 -0
  1421. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/gis.css.php +52 -0
  1422. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/jqplot.css.php +277 -0
  1423. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/navigation.css.php +429 -0
  1424. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/pmd.css.php +605 -0
  1425. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/resizable-menu.css.php +57 -0
  1426. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/css/rte.css.php +43 -0
  1427. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/ajax_clock_small.gif +0 -0
  1428. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/arrow_ltr.png +0 -0
  1429. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/arrow_rtl.png +0 -0
  1430. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/asc_order.png +0 -0
  1431. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_bookmark.png +0 -0
  1432. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_browse.png +0 -0
  1433. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_calendar.png +0 -0
  1434. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_chart.png +0 -0
  1435. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_close.png +0 -0
  1436. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_column_add.png +0 -0
  1437. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_comment.png +0 -0
  1438. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_dbstatistics.png +0 -0
  1439. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_deltbl.png +0 -0
  1440. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_docs.png +0 -0
  1441. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_docsql.png +0 -0
  1442. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_drop.png +0 -0
  1443. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_edit.png +0 -0
  1444. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_empty.png +0 -0
  1445. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_engine.png +0 -0
  1446. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_event_add.png +0 -0
  1447. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_events.png +0 -0
  1448. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_export.png +0 -0
  1449. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_favorite.png +0 -0
  1450. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_find_replace.png +0 -0
  1451. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_firstpage.png +0 -0
  1452. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_ftext.png +0 -0
  1453. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_globe.gif +0 -0
  1454. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_group.png +0 -0
  1455. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_help.png +0 -0
  1456. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_home.png +0 -0
  1457. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_import.png +0 -0
  1458. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_index.png +0 -0
  1459. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_index_add.png +0 -0
  1460. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_info.png +0 -0
  1461. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_inline_edit.png +0 -0
  1462. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_insrow.png +0 -0
  1463. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_lastpage.png +0 -0
  1464. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_minus.png +0 -0
  1465. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_more.png +0 -0
  1466. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_move.png +0 -0
  1467. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_newdb.png +0 -0
  1468. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_newtbl.png +0 -0
  1469. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_nextpage.png +0 -0
  1470. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_no_favorite.png +0 -0
  1471. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_pdfdoc.png +0 -0
  1472. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_plus.png +0 -0
  1473. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_prevpage.png +0 -0
  1474. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_primary.png +0 -0
  1475. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_print.png +0 -0
  1476. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_props.png +0 -0
  1477. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_relations.png +0 -0
  1478. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_report.png +0 -0
  1479. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_routine_add.png +0 -0
  1480. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_routines.png +0 -0
  1481. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_save.png +0 -0
  1482. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_saveimage.png +0 -0
  1483. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_sbrowse.png +0 -0
  1484. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_sdb.png +0 -0
  1485. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_search.png +0 -0
  1486. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_selboard.png +0 -0
  1487. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_select.png +0 -0
  1488. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_snewtbl.png +0 -0
  1489. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_spatial.png +0 -0
  1490. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_sql.png +0 -0
  1491. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_sqldoc.png +0 -0
  1492. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_sqlhelp.png +0 -0
  1493. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_table_add.png +0 -0
  1494. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tblanalyse.png +0 -0
  1495. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tblexport.png +0 -0
  1496. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tblimport.png +0 -0
  1497. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tblops.png +0 -0
  1498. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tbloptimize.png +0 -0
  1499. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_tipp.png +0 -0
  1500. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_trigger_add.png +0 -0
  1501. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_triggers.png +0 -0
  1502. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_undo.png +0 -0
  1503. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_unique.png +0 -0
  1504. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_usradd.png +0 -0
  1505. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_usrcheck.png +0 -0
  1506. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_usrdrop.png +0 -0
  1507. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_usredit.png +0 -0
  1508. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_usrlist.png +0 -0
  1509. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_versions.png +0 -0
  1510. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_view.png +0 -0
  1511. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_view_add.png +0 -0
  1512. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/b_views.png +0 -0
  1513. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_browse.png +0 -0
  1514. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_deltbl.png +0 -0
  1515. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_drop.png +0 -0
  1516. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_edit.png +0 -0
  1517. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_empty.png +0 -0
  1518. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_export.png +0 -0
  1519. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_firstpage.png +0 -0
  1520. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_ftext.png +0 -0
  1521. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_index.png +0 -0
  1522. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_insrow.png +0 -0
  1523. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_lastpage.png +0 -0
  1524. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_nextpage.png +0 -0
  1525. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_prevpage.png +0 -0
  1526. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_primary.png +0 -0
  1527. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_routine_add.png +0 -0
  1528. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_sbrowse.png +0 -0
  1529. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_select.png +0 -0
  1530. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_spatial.png +0 -0
  1531. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/bd_unique.png +0 -0
  1532. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/centralColumns.png +0 -0
  1533. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/centralColumns_add.png +0 -0
  1534. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/centralColumns_delete.png +0 -0
  1535. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/col_drop.png +0 -0
  1536. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/col_pointer.png +0 -0
  1537. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/col_pointer_ver.png +0 -0
  1538. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/console.png +0 -0
  1539. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/database.png +0 -0
  1540. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/east-mini.png +0 -0
  1541. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/error.ico +0 -0
  1542. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/eye.png +0 -0
  1543. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/eye_grey.png +0 -0
  1544. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/item.png +0 -0
  1545. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/left_nav_bg.png +0 -0
  1546. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/lightbulb.png +0 -0
  1547. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/lightbulb_off.png +0 -0
  1548. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/logo_left.png +0 -0
  1549. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/logo_right.png +0 -0
  1550. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/more.png +0 -0
  1551. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_data.png +0 -0
  1552. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_data_hovered.png +0 -0
  1553. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_data_selected.png +0 -0
  1554. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_data_selected_hovered.png +0 -0
  1555. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_struct.png +0 -0
  1556. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_struct_hovered.png +0 -0
  1557. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_struct_selected.png +0 -0
  1558. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/new_struct_selected_hovered.png +0 -0
  1559. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/normalize.png +0 -0
  1560. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/north-mini.png +0 -0
  1561. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pause.png +0 -0
  1562. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/php_sym.png +0 -0
  1563. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/play.png +0 -0
  1564. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pma_logo2.png +0 -0
  1565. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/1.png +0 -0
  1566. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/2.png +0 -0
  1567. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/2leftarrow.png +0 -0
  1568. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/2leftarrow_m.png +0 -0
  1569. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/2rightarrow.png +0 -0
  1570. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/2rightarrow_m.png +0 -0
  1571. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/3.png +0 -0
  1572. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/4.png +0 -0
  1573. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/5.png +0 -0
  1574. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/6.png +0 -0
  1575. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/7.png +0 -0
  1576. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/8.png +0 -0
  1577. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/FieldKey_small.png +0 -0
  1578. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Field_small.png +0 -0
  1579. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Field_small_char.png +0 -0
  1580. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Field_small_date.png +0 -0
  1581. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Field_small_int.png +0 -0
  1582. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Header.png +0 -0
  1583. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/Header_Linked.png +0 -0
  1584. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/anchor.png +0 -0
  1585. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/and_icon.png +0 -0
  1586. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/ang_direct.png +0 -0
  1587. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/bord.png +0 -0
  1588. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/bottom.png +0 -0
  1589. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/def.png +0 -0
  1590. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/display_field.png +0 -0
  1591. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/downarrow1.png +0 -0
  1592. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/downarrow2.png +0 -0
  1593. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/downarrow2_m.png +0 -0
  1594. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/exec.png +0 -0
  1595. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/exec_small.png +0 -0
  1596. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/exitFullscreen.png +0 -0
  1597. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/export.png +0 -0
  1598. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/favicon.ico +0 -0
  1599. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/grid.png +0 -0
  1600. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/help.png +0 -0
  1601. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/help_relation.png +0 -0
  1602. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/left_panel_butt.png +0 -0
  1603. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/left_panel_tab.png +0 -0
  1604. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/minus.png +0 -0
  1605. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/or_icon.png +0 -0
  1606. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/page_add.png +0 -0
  1607. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/page_delete.png +0 -0
  1608. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/page_edit.png +0 -0
  1609. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/pdf.png +0 -0
  1610. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/plus.png +0 -0
  1611. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/query_builder.png +0 -0
  1612. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/relation.png +0 -0
  1613. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/reload.png +0 -0
  1614. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/resize.png +0 -0
  1615. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/resizeright.png +0 -0
  1616. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/rightarrow1.png +0 -0
  1617. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/rightarrow2.png +0 -0
  1618. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/save.png +0 -0
  1619. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/save_as.png +0 -0
  1620. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/small_tab.png +0 -0
  1621. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/table.png +0 -0
  1622. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/toggle_lines.png +0 -0
  1623. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/top_panel.png +0 -0
  1624. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/uparrow2_m.png +0 -0
  1625. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/pmd/viewInFullscreen.png +0 -0
  1626. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_asc.png +0 -0
  1627. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_asci.png +0 -0
  1628. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_attention.png +0 -0
  1629. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_cancel.png +0 -0
  1630. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_cancel2.png +0 -0
  1631. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_cog.png +0 -0
  1632. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_collapseall.png +0 -0
  1633. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_db.png +0 -0
  1634. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_desc.png +0 -0
  1635. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_error.png +0 -0
  1636. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_error2.png +0 -0
  1637. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_fulltext.png +0 -0
  1638. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_host.png +0 -0
  1639. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_info.png +0 -0
  1640. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_lang.png +0 -0
  1641. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_link.png +0 -0
  1642. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_lock.png +0 -0
  1643. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_loggoff.png +0 -0
  1644. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_notice.png +0 -0
  1645. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_okay.png +0 -0
  1646. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_partialtext.png +0 -0
  1647. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_passwd.png +0 -0
  1648. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_process.png +0 -0
  1649. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_really.png +0 -0
  1650. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_reload.png +0 -0
  1651. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_replication.png +0 -0
  1652. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_rights.png +0 -0
  1653. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_sortable.png +0 -0
  1654. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_status.png +0 -0
  1655. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_success.png +0 -0
  1656. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_sync.png +0 -0
  1657. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_tbl.png +0 -0
  1658. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_theme.png +0 -0
  1659. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_top.png +0 -0
  1660. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_unlink.png +0 -0
  1661. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_vars.png +0 -0
  1662. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/s_views.png +0 -0
  1663. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/select_bg.png +0 -0
  1664. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/south-mini.png +0 -0
  1665. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/spacer.png +0 -0
  1666. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/sprites.png +0 -0
  1667. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/toggle-ltr.png +0 -0
  1668. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/toggle-rtl.png +0 -0
  1669. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/vertical_line.png +0 -0
  1670. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/west-mini.png +0 -0
  1671. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/window-new.png +0 -0
  1672. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/zoom-minus-mini.png +0 -0
  1673. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/zoom-plus-mini.png +0 -0
  1674. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/img/zoom-world-mini.png +0 -0
  1675. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/info.inc.php +21 -0
  1676. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1677. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  1678. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  1679. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  1680. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  1681. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  1682. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1683. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  1684. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-icons_222222_256x240.png +0 -0
  1685. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-icons_2e83ff_256x240.png +0 -0
  1686. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-icons_454545_256x240.png +0 -0
  1687. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-icons_888888_256x240.png +0 -0
  1688. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/images/ui-icons_cd0a0a_256x240.png +0 -0
  1689. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/jquery/jquery-ui-1.11.2.css +1225 -0
  1690. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/layout.inc.php +104 -0
  1691. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/screen.png +0 -0
  1692. data/lib/support/phpmyadmin/phpmyadmin/themes/pmahomme/sprites.lib.php +805 -0
  1693. data/lib/support/phpmyadmin/phpmyadmin/themes/sprites.css.php +60 -0
  1694. data/lib/support/phpmyadmin/phpmyadmin/themes/svg_gradient.php +53 -0
  1695. data/lib/support/phpmyadmin/phpmyadmin/themes.php +32 -0
  1696. data/lib/support/phpmyadmin/phpmyadmin/transformation_overview.php +74 -0
  1697. data/lib/support/phpmyadmin/phpmyadmin/transformation_wrapper.php +148 -0
  1698. data/lib/support/phpmyadmin/phpmyadmin/url.php +38 -0
  1699. data/lib/support/phpmyadmin/phpmyadmin/user_password.php +200 -0
  1700. data/lib/support/phpmyadmin/phpmyadmin/version_check.php +30 -0
  1701. data/lib/support/phpmyadmin/phpmyadmin/view_create.php +291 -0
  1702. data/lib/support/phpmyadmin/phpmyadmin/view_operations.php +139 -0
  1703. data/lib/support/phpmyadmin/phpmyadmin/webapp.php +55 -0
  1704. data/lib/support/pptp_vpn/ubuntu/pptpd-options +122 -0
  1705. data/lib/support/pptp_vpn/ubuntu/rc.local +17 -0
  1706. data/lib/support/pptp_vpn/ubuntu/sysctl.conf +102 -0
  1707. metadata +1705 -1
@@ -0,0 +1,3294 @@
1
+ <?php
2
+
3
+ /* vim: set expandtab sw=4 ts=4 sts=4: */
4
+ /**
5
+ * set of functions for structure section in pma
6
+ *
7
+ * @package PhpMyAdmin
8
+ */
9
+ if (!defined('PHPMYADMIN')) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * Get the HTML links for action links
15
+ * Actions are, Browse, Search, Browse table label, empty table
16
+ *
17
+ * @param array $current_table current table
18
+ * @param boolean $table_is_view Is table view or not
19
+ * @param string $tbl_url_query table url query
20
+ * @param array $titles titles and icons for action links
21
+ * @param string $truename table name
22
+ * @param boolean $db_is_system_schema is database information schema or not
23
+ * @param string $url_query url query
24
+ *
25
+ * @return array ($browse_table, $search_table, $browse_table_label, $empty_table,
26
+ * $tracking_icon)
27
+ */
28
+ function PMA_getHtmlForActionLinks($current_table, $table_is_view, $tbl_url_query,
29
+ $titles, $truename, $db_is_system_schema, $url_query
30
+ ) {
31
+ $empty_table = '';
32
+
33
+ if ($current_table['TABLE_ROWS'] > 0 || $table_is_view) {
34
+ $may_have_rows = true;
35
+ } else {
36
+ $may_have_rows = false;
37
+ }
38
+
39
+ $browse_table = '<a href="sql.php' . $tbl_url_query . '&amp;pos=0">';
40
+ if ($may_have_rows) {
41
+ $browse_table .= $titles['Browse'];
42
+ } else {
43
+ $browse_table .= $titles['NoBrowse'];
44
+ }
45
+ $browse_table .= '</a>';
46
+
47
+ $search_table = '<a href="tbl_select.php' . $tbl_url_query . '">';
48
+ if ($may_have_rows) {
49
+ $search_table .= $titles['Search'];
50
+ } else {
51
+ $search_table .= $titles['NoSearch'];
52
+ }
53
+ $search_table .= '</a>';
54
+
55
+ $browse_table_label = '<a href="sql.php' . $tbl_url_query
56
+ . '&amp;pos=0" title="'
57
+ . htmlspecialchars($current_table['TABLE_COMMENT']) . '">'
58
+ . $truename . '</a>';
59
+
60
+ if (!$db_is_system_schema) {
61
+ $empty_table = '<a class="truncate_table_anchor ajax"';
62
+ $empty_table .= ' href="sql.php' . $tbl_url_query
63
+ . '&amp;sql_query=';
64
+ $empty_table .= urlencode(
65
+ 'TRUNCATE ' . PMA_Util::backquote($current_table['TABLE_NAME'])
66
+ );
67
+ $empty_table .= '&amp;message_to_show='
68
+ . urlencode(
69
+ sprintf(
70
+ __('Table %s has been emptied.'),
71
+ htmlspecialchars($current_table['TABLE_NAME'])
72
+ )
73
+ )
74
+ . '">';
75
+ if ($may_have_rows) {
76
+ $empty_table .= $titles['Empty'];
77
+ } else {
78
+ $empty_table .= $titles['NoEmpty'];
79
+ }
80
+ $empty_table .= '</a>';
81
+ // truncating views doesn't work
82
+ if ($table_is_view) {
83
+ $empty_table = '&nbsp;';
84
+ }
85
+ }
86
+
87
+ $tracking_icon = '';
88
+ if (PMA_Tracker::isActive()) {
89
+ if (PMA_Tracker::isTracked($GLOBALS["db"], $truename)) {
90
+ $tracking_icon = '<a href="tbl_tracking.php' . $url_query
91
+ . '&amp;table=' . $truename . '">'
92
+ . PMA_Util::getImage(
93
+ 'eye.png', __('Tracking is active.')
94
+ )
95
+ . '</a>';
96
+ } elseif (PMA_Tracker::getVersion($GLOBALS["db"], $truename) > 0) {
97
+ $tracking_icon = '<a href="tbl_tracking.php' . $url_query
98
+ . '&amp;table=' . $truename . '">'
99
+ . PMA_Util::getImage(
100
+ 'eye_grey.png', __('Tracking is not active.')
101
+ )
102
+ . '</a>';
103
+ }
104
+ }
105
+
106
+ return array($browse_table,
107
+ $search_table,
108
+ $browse_table_label,
109
+ $empty_table,
110
+ $tracking_icon
111
+ );
112
+ }
113
+
114
+ /**
115
+ * Get table drop query and drop message
116
+ *
117
+ * @param boolean $table_is_view Is table view or not
118
+ * @param string $current_table current table
119
+ *
120
+ * @return array ($drop_query, $drop_message)
121
+ */
122
+ function PMA_getTableDropQueryAndMessage($table_is_view, $current_table)
123
+ {
124
+ $drop_query = 'DROP '
125
+ . (($table_is_view || $current_table['ENGINE'] == null) ? 'VIEW' : 'TABLE')
126
+ . ' ' . PMA_Util::backquote(
127
+ $current_table['TABLE_NAME']
128
+ );
129
+ $drop_message = sprintf(
130
+ (($table_is_view || $current_table['ENGINE'] == null)
131
+ ? __('View %s has been dropped.')
132
+ : __('Table %s has been dropped.')),
133
+ str_replace(
134
+ ' ',
135
+ '&nbsp;',
136
+ htmlspecialchars($current_table['TABLE_NAME'])
137
+ )
138
+ );
139
+ return array($drop_query, $drop_message);
140
+ }
141
+
142
+ /**
143
+ * Get HTML body for table summery
144
+ *
145
+ * @param integer $num_tables number of tables
146
+ * @param boolean $server_slave_status server slave state
147
+ * @param boolean $db_is_system_schema whether database is information schema or not
148
+ * @param integer $sum_entries sum entries
149
+ * @param string $db_collation collation of given db
150
+ * @param boolean $is_show_stats whether stats is show or not
151
+ * @param double $sum_size sum size
152
+ * @param double $overhead_size overhead size
153
+ * @param string $create_time_all create time
154
+ * @param string $update_time_all update time
155
+ * @param string $check_time_all check time
156
+ * @param boolean $approx_rows whether any table has approx row count or not
157
+ *
158
+ * @return string $html_output
159
+ */
160
+ function PMA_getHtmlBodyForTableSummary($num_tables, $server_slave_status,
161
+ $db_is_system_schema, $sum_entries, $db_collation, $is_show_stats,
162
+ $sum_size, $overhead_size, $create_time_all, $update_time_all,
163
+ $check_time_all, $approx_rows
164
+ ) {
165
+ $html_output = '<tbody id="tbl_summary_row">'
166
+ . '<tr><th></th>';
167
+ $html_output .= '<th class="tbl_num nowrap">';
168
+ $html_output .= sprintf(
169
+ _ngettext('%s table', '%s tables', $num_tables),
170
+ PMA_Util::formatNumber($num_tables, 0)
171
+ );
172
+ $html_output .= '</th>';
173
+
174
+ if ($server_slave_status) {
175
+ $html_output .= '<th>' . __('Replication') . '</th>' . "\n";
176
+ }
177
+ $sum_colspan = ($db_is_system_schema ? 4 : 7);
178
+ if ($GLOBALS['cfg']['NumFavoriteTables'] == 0) {
179
+ $sum_colspan--;
180
+ }
181
+ $html_output .= '<th colspan="' . $sum_colspan . '">'
182
+ . __('Sum')
183
+ . '</th>';
184
+
185
+ $row_count_sum = PMA_Util::formatNumber($sum_entries, 0);
186
+ // If a table shows approximate rows count, display update-all-real-count anchor.
187
+ $row_sum_url = array();
188
+ if (isset($approx_rows)) {
189
+ $row_sum_url = array(
190
+ 'ajax_request' => true,
191
+ 'db' => $GLOBALS['db'],
192
+ 'real_row_count' => 'true',
193
+ 'real_row_count_all' => 'true'
194
+ );
195
+ }
196
+ $cell_text = ($approx_rows)
197
+ ? '<a href="db_structure.php' . PMA_URL_getCommon($row_sum_url)
198
+ . '" class="ajax row_count_sum">' . '~' . $row_count_sum . '</a>'
199
+ : $row_count_sum;
200
+ $html_output .= '<th class="value tbl_rows">'
201
+ . $cell_text
202
+ . '</th>';
203
+
204
+ if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) {
205
+ $default_engine = $GLOBALS['dbi']->fetchValue(
206
+ 'SHOW VARIABLES LIKE \'storage_engine\';',
207
+ 0,
208
+ 1
209
+ );
210
+ $html_output .= '<th class="center">' . "\n"
211
+ . '<dfn title="'
212
+ . sprintf(
213
+ __('%s is the default storage engine on this MySQL server.'),
214
+ $default_engine
215
+ )
216
+ . '">' . $default_engine . '</dfn></th>' . "\n";
217
+ // we got a case where $db_collation was empty
218
+ $html_output .= '<th>' . "\n";
219
+
220
+ if (! empty($db_collation)) {
221
+ $html_output .= '<dfn title="'
222
+ . PMA_getCollationDescr($db_collation)
223
+ . ' (' . __('Default') . ')">'
224
+ . $db_collation
225
+ . '</dfn>';
226
+ }
227
+ $html_output .= '</th>';
228
+ }
229
+ if ($is_show_stats) {
230
+ list($sum_formatted, $unit) = PMA_Util::formatByteDown(
231
+ $sum_size, 3, 1
232
+ );
233
+ list($overhead_formatted, $overhead_unit)
234
+ = PMA_Util::formatByteDown($overhead_size, 3, 1);
235
+
236
+ $html_output .= '<th class="value tbl_size">'
237
+ . $sum_formatted . ' ' . $unit
238
+ . '</th>';
239
+ $html_output .= '<th class="value tbl_overhead">'
240
+ . $overhead_formatted . ' ' . $overhead_unit
241
+ . '</th>';
242
+ }
243
+
244
+ if ($GLOBALS['cfg']['ShowDbStructureCreation']) {
245
+ $html_output .= '<th class="value tbl_creation">' . "\n"
246
+ . ' '
247
+ . ($create_time_all
248
+ ? PMA_Util::localisedDate(strtotime($create_time_all))
249
+ : '-'
250
+ )
251
+ . '</th>';
252
+ }
253
+
254
+ if ($GLOBALS['cfg']['ShowDbStructureLastUpdate']) {
255
+ $html_output .= '<th class="value tbl_last_update">' . "\n"
256
+ . ' '
257
+ . ($update_time_all
258
+ ? PMA_Util::localisedDate(strtotime($update_time_all))
259
+ : '-'
260
+ )
261
+ . '</th>';
262
+ }
263
+
264
+ if ($GLOBALS['cfg']['ShowDbStructureLastCheck']) {
265
+ $html_output .= '<th class="value tbl_last_check">' . "\n"
266
+ . ' '
267
+ . ($check_time_all
268
+ ? PMA_Util::localisedDate(strtotime($check_time_all))
269
+ : '-'
270
+ )
271
+ . '</th>';
272
+ }
273
+ $html_output .= '</tr>'
274
+ . '</tbody>';
275
+
276
+ return $html_output;
277
+ }
278
+
279
+ /**
280
+ * Get HTML for "check all" check box with "with selected" dropdown
281
+ *
282
+ * @param string $pmaThemeImage pma theme image url
283
+ * @param string $text_dir url for text directory
284
+ * @param string $overhead_check overhead check
285
+ * @param boolean $db_is_system_schema whether database is information schema or not
286
+ * @param array $hidden_fields hidden fields
287
+ *
288
+ * @return string $html_output
289
+ */
290
+ function PMA_getHtmlForCheckAllTables($pmaThemeImage, $text_dir,
291
+ $overhead_check, $db_is_system_schema, $hidden_fields
292
+ ) {
293
+ $html_output = '<div class="clearfloat">';
294
+ $html_output .= '<img class="selectallarrow" '
295
+ . 'src="' . $pmaThemeImage . 'arrow_' . $text_dir . '.png" '
296
+ . 'width="38" height="22" alt="' . __('With selected:') . '" />';
297
+
298
+ $html_output .= '<input type="checkbox" id="tablesForm_checkall" '
299
+ . 'class="checkall_box" title="' . __('Check All') . '" />';
300
+ $html_output .= '<label for="tablesForm_checkall">' . __('Check All')
301
+ . '</label>';
302
+
303
+ if ($overhead_check != '') {
304
+ $html_output .= PMA_getHtmlForCheckTablesHavingOverheadlink(
305
+ $overhead_check
306
+ );
307
+ }
308
+
309
+ $html_output .= '<select name="submit_mult" class="autosubmit" '
310
+ . 'style="margin: 0 3em 0 3em;">';
311
+
312
+ $html_output .= '<option value="' . __('With selected:')
313
+ . '" selected="selected">'
314
+ . __('With selected:') . '</option>' . "\n";
315
+ $html_output .= '<option value="show_create" >'
316
+ . __('Show create') . '</option>' . "\n";
317
+ $html_output .= '<option value="export" >'
318
+ . __('Export') . '</option>' . "\n";
319
+ $html_output .= '<option value="print" >'
320
+ . __('Print view') . '</option>' . "\n";
321
+
322
+ if (!$db_is_system_schema
323
+ && !$GLOBALS['cfg']['DisableMultiTableMaintenance']
324
+ ) {
325
+ $html_output .= '<option value="empty_tbl" >'
326
+ . __('Empty') . '</option>' . "\n";
327
+ $html_output .= '<option value="drop_tbl" >'
328
+ . __('Drop') . '</option>' . "\n";
329
+ $html_output .= '<option value="check_tbl" >'
330
+ . __('Check table') . '</option>' . "\n";
331
+ if (!PMA_DRIZZLE) {
332
+ $html_output .= '<option value="optimize_tbl" >'
333
+ . __('Optimize table') . '</option>' . "\n";
334
+ $html_output .= '<option value="repair_tbl" >'
335
+ . __('Repair table') . '</option>' . "\n";
336
+ }
337
+ $html_output .= '<option value="analyze_tbl" >'
338
+ . __('Analyze table') . '</option>' . "\n";
339
+ $html_output .= '<option value="add_prefix_tbl" >'
340
+ . __('Add prefix to table') . '</option>' . "\n";
341
+ $html_output .= '<option value="replace_prefix_tbl" >'
342
+ . __('Replace table prefix') . '</option>' . "\n";
343
+ $html_output .= '<option value="copy_tbl_change_prefix" >'
344
+ . __('Copy table with prefix') . '</option>' . "\n";
345
+ if (isset($GLOBALS['cfgRelation']['central_columnswork'])
346
+ && $GLOBALS['cfgRelation']['central_columnswork']
347
+ ) {
348
+ $html_output .= '<option value="sync_unique_columns_central_list" >'
349
+ . __('Add columns to central list') . '</option>' . "\n";
350
+ $html_output .= '<option value="delete_unique_columns_central_list" >'
351
+ . __('Remove columns from central list') . '</option>' . "\n";
352
+ $html_output .= '<option value="make_consistent_with_central_list" >'
353
+ . __('Make consistent with central list') . '</option>' . "\n";
354
+ }
355
+ }
356
+ $html_output .= '</select>'
357
+ . implode("\n", $hidden_fields) . "\n";
358
+ $html_output .= '</div>';
359
+
360
+ return $html_output;
361
+ }
362
+
363
+ /**
364
+ * Get HTML code for "Check tables having overhead" link
365
+ *
366
+ * @param string $overhead_check overhead check
367
+ *
368
+ * @return string $html_output
369
+ */
370
+ function PMA_getHtmlForCheckTablesHavingOverheadlink($overhead_check)
371
+ {
372
+ return ' / '
373
+ . '<a href="#" onclick="unMarkAllRows(\'tablesForm\');'
374
+ . $overhead_check . 'return false;">'
375
+ . __('Check tables having overhead')
376
+ . '</a>';
377
+ }
378
+
379
+
380
+ /**
381
+ * Get HTML links for "Print view" options
382
+ *
383
+ * @param string $url_query url query
384
+ *
385
+ * @return string $html_output
386
+ */
387
+ function PMA_getHtmlForTablePrintViewLink($url_query)
388
+ {
389
+ return '<p>'
390
+ . '<a href="db_printview.php' . $url_query . '" target="print_view">'
391
+ . PMA_Util::getIcon(
392
+ 'b_print.png',
393
+ __('Print view'),
394
+ true
395
+ ) . '</a>';
396
+ }
397
+
398
+ /**
399
+ * Get HTML links "Data Dictionary" options
400
+ *
401
+ * @param string $url_query url query
402
+ *
403
+ * @return string $html_output
404
+ */
405
+ function PMA_getHtmlForDataDictionaryLink($url_query)
406
+ {
407
+ return '<a href="db_datadict.php' . $url_query . '" target="print_view">'
408
+ . PMA_Util::getIcon(
409
+ 'b_tblanalyse.png',
410
+ __('Data Dictionary'),
411
+ true
412
+ ) . '</a>'
413
+ . '</p>';
414
+ }
415
+
416
+ /**
417
+ * Get Time for Create time, update time and check time
418
+ *
419
+ * @param array $current_table current table
420
+ * @param string $time_label Create_time, Update_time, Check_time
421
+ * @param integer $time_all time
422
+ *
423
+ * @return array ($time, $time_all)
424
+ */
425
+ function PMA_getTimeForCreateUpdateCheck($current_table, $time_label, $time_all)
426
+ {
427
+ $showtable = PMA_Table::sGetStatusInfo(
428
+ $GLOBALS['db'],
429
+ $current_table['TABLE_NAME'],
430
+ null,
431
+ true
432
+ );
433
+ $time = isset($showtable[$time_label])
434
+ ? $showtable[$time_label]
435
+ : false;
436
+
437
+ // show oldest creation date in summary row
438
+ if ($time && (!$time_all || $time < $time_all)) {
439
+ $time_all = $time;
440
+ }
441
+ return array($time, $time_all);
442
+ }
443
+
444
+ /**
445
+ * Get HTML for each table row of the database structure table,
446
+ * And this function returns $odd_row param also
447
+ *
448
+ * @param integer $curr current entry
449
+ * @param boolean $odd_row whether row is odd or not
450
+ * @param boolean $table_is_view whether table is view or not
451
+ * @param array $current_table current table
452
+ * @param string $browse_table_label browse table label action link
453
+ * @param string $tracking_icon tracking icon
454
+ * @param boolean $server_slave_status server slave state
455
+ * @param string $browse_table browse table action link
456
+ * @param string $tbl_url_query table url query
457
+ * @param string $search_table search table action link
458
+ * @param boolean $db_is_system_schema whether db is information schema or not
459
+ * @param array $titles titles array
460
+ * @param string $empty_table empty table action link
461
+ * @param string $drop_query table drop query
462
+ * @param string $drop_message table drop message
463
+ * @param string $collation collation
464
+ * @param string $formatted_size formatted size
465
+ * @param string $unit unit
466
+ * @param string $overhead overhead
467
+ * @param string $create_time create time
468
+ * @param string $update_time last update time
469
+ * @param string $check_time last check time
470
+ * @param boolean $is_show_stats whether stats is show or not
471
+ * @param boolean $ignored ignored
472
+ * @param boolean $do do
473
+ * @param integer $colspan_for_structure colspan for structure
474
+ *
475
+ * @return array $html_output, $odd_row, $approx_rows
476
+ */
477
+ function PMA_getHtmlForStructureTableRow(
478
+ $curr, $odd_row, $table_is_view, $current_table,
479
+ $browse_table_label, $tracking_icon,$server_slave_status,
480
+ $browse_table, $tbl_url_query, $search_table,
481
+ $db_is_system_schema,$titles, $empty_table, $drop_query, $drop_message,
482
+ $collation, $formatted_size, $unit, $overhead, $create_time, $update_time,
483
+ $check_time,$is_show_stats, $ignored, $do, $colspan_for_structure
484
+ ) {
485
+ global $db;
486
+ $html_output = '<tr class="' . ($odd_row ? 'odd' : 'even');
487
+ $odd_row = ! $odd_row;
488
+ $html_output .= ($table_is_view ? ' is_view' : '')
489
+ . '" id="row_tbl_' . $curr . '">';
490
+
491
+ $html_output .= '<td class="center">'
492
+ . '<input type="checkbox" name="selected_tbl[]" class="checkall" '
493
+ . 'value="' . htmlspecialchars($current_table['TABLE_NAME']) . '" '
494
+ . 'id="checkbox_tbl_' . $curr . '" /></td>';
495
+
496
+ $html_output .= '<th>'
497
+ . $browse_table_label
498
+ . (! empty($tracking_icon) ? $tracking_icon : '')
499
+ . '</th>';
500
+
501
+ if ($server_slave_status) {
502
+ $html_output .= '<td class="center">'
503
+ . ($ignored
504
+ ? PMA_Util::getImage('s_cancel.png', 'NOT REPLICATED')
505
+ : '')
506
+ . ($do
507
+ ? PMA_Util::getImage('s_success.png', 'REPLICATED')
508
+ : '')
509
+ . '</td>';
510
+ }
511
+ //Favorite table anchor.
512
+ if ($GLOBALS['cfg']['NumFavoriteTables'] > 0) {
513
+ $html_output .= '<td class="center">'
514
+ . PMA_getHtmlForFavoriteAnchor($db, $current_table, $titles)
515
+ . '</td>';
516
+ }
517
+
518
+ $html_output .= '<td class="center">' . $browse_table . '</td>';
519
+ $html_output .= '<td class="center">'
520
+ . '<a href="tbl_structure.php' . $tbl_url_query . '">'
521
+ . $titles['Structure'] . '</a></td>';
522
+ $html_output .= '<td class="center">' . $search_table . '</td>';
523
+
524
+ if (! $db_is_system_schema) {
525
+ $html_output .= PMA_getHtmlForInsertEmptyDropActionLinks(
526
+ $tbl_url_query, $table_is_view,
527
+ $titles, $empty_table, $current_table, $drop_query, $drop_message
528
+ );
529
+ } // end if (! $db_is_system_schema)
530
+
531
+ // there is a null value in the ENGINE
532
+ // - when the table needs to be repaired, or
533
+ // - when it's a view
534
+ // so ensure that we'll display "in use" below for a table
535
+ // that needs to be repaired
536
+ $approx_rows = false;
537
+ if (isset($current_table['TABLE_ROWS'])
538
+ && ($current_table['ENGINE'] != null
539
+ || $table_is_view)
540
+ ) {
541
+ list($html_view_table, $approx_rows) = PMA_getHtmlForNotNullEngineViewTable(
542
+ $table_is_view, $current_table, $collation, $is_show_stats,
543
+ $tbl_url_query, $formatted_size, $unit, $overhead, $create_time,
544
+ $update_time, $check_time
545
+ );
546
+ $html_output .= $html_view_table;
547
+ } elseif ($table_is_view) {
548
+ $html_output .= PMA_getHtmlForViewTable($is_show_stats);
549
+ } else {
550
+ $html_output .= PMA_getHtmlForRepairtable(
551
+ $colspan_for_structure,
552
+ $db_is_system_schema
553
+ );
554
+ } // end if (isset($current_table['TABLE_ROWS'])) else
555
+ $html_output .= '</tr>';
556
+
557
+ return array($html_output, $odd_row, $approx_rows);
558
+ }
559
+
560
+ /**
561
+ * Get HTML for Insert/Empty/Drop action links
562
+ *
563
+ * @param string $tbl_url_query table url query
564
+ * @param boolean $table_is_view whether table is view or not
565
+ * @param array $titles titles array
566
+ * @param string $empty_table HTML link for empty table
567
+ * @param array $current_table current table
568
+ * @param string $drop_query query for drop table
569
+ * @param string $drop_message table drop message
570
+ *
571
+ * @return string $html_output
572
+ */
573
+ function PMA_getHtmlForInsertEmptyDropActionLinks($tbl_url_query, $table_is_view,
574
+ $titles, $empty_table, $current_table, $drop_query, $drop_message
575
+ ) {
576
+ $html_output = '<td class="insert_table center">'
577
+ . '<a href="tbl_change.php' . $tbl_url_query . '">'
578
+ . $titles['Insert']
579
+ . '</a></td>';
580
+ $html_output .= '<td class="center">' . $empty_table . '</td>';
581
+ $html_output .= '<td class="center">';
582
+ $html_output .= '<a ';
583
+ $html_output .= 'class="ajax drop_table_anchor';
584
+ if ($table_is_view || $current_table['ENGINE'] == null) {
585
+ // this class is used in db_structure.js to display the
586
+ // correct confirmation message
587
+ $html_output .= ' view';
588
+ }
589
+ $html_output .= '" ';
590
+ $html_output .= 'href="sql.php' . $tbl_url_query
591
+ . '&amp;reload=1&amp;purge=1&amp;sql_query='
592
+ . urlencode($drop_query) . '&amp;message_to_show='
593
+ . urlencode($drop_message) . '" >'
594
+ . $titles['Drop'] . '</a></td>';
595
+
596
+ return $html_output;
597
+ }
598
+
599
+ /**
600
+ * Get HTML for show stats
601
+ *
602
+ * @param string $tbl_url_query table url query
603
+ * @param string $formatted_size formatted size
604
+ * @param string $unit unit
605
+ * @param string $overhead overhead
606
+ *
607
+ * @return string $html_output
608
+ */
609
+ function PMA_getHtmlForShowStats($tbl_url_query, $formatted_size,
610
+ $unit, $overhead
611
+ ) {
612
+ $html_output = '<td class="value tbl_size"><a '
613
+ . 'href="tbl_structure.php' . $tbl_url_query . '#showusage" >'
614
+ . '<span>' . $formatted_size . '</span> '
615
+ . '<span class="unit">' . $unit . '</span>'
616
+ . '</a></td>';
617
+ $html_output .= '<td class="value tbl_overhead">' . $overhead . '</td>';
618
+
619
+ return $html_output;
620
+ }
621
+
622
+ /**
623
+ * Get HTML to show database structure creation, last update and last checkx time
624
+ *
625
+ * @param string $create_time create time
626
+ * @param string $update_time last update time
627
+ * @param string $check_time last check time
628
+ *
629
+ * @return string $html_output
630
+ */
631
+ function PMA_getHtmlForStructureTimes($create_time, $update_time, $check_time)
632
+ {
633
+ $html_output = '';
634
+ if ($GLOBALS['cfg']['ShowDbStructureCreation']) {
635
+ $html_output .= '<td class="value tbl_creation">'
636
+ . ($create_time
637
+ ? PMA_Util::localisedDate(strtotime($create_time))
638
+ : '-' )
639
+ . '</td>';
640
+ } // end if
641
+ if ($GLOBALS['cfg']['ShowDbStructureLastUpdate']) {
642
+ $html_output .= '<td class="value tbl_last_update">'
643
+ . ($update_time
644
+ ? PMA_Util::localisedDate(strtotime($update_time))
645
+ : '-' )
646
+ . '</td>';
647
+ } // end if
648
+ if ($GLOBALS['cfg']['ShowDbStructureLastCheck']) {
649
+ $html_output .= '<td class="value tbl_last_check">'
650
+ . ($check_time
651
+ ? PMA_Util::localisedDate(strtotime($check_time))
652
+ : '-' )
653
+ . '</td>';
654
+ }
655
+ return $html_output;
656
+ }
657
+
658
+ /**
659
+ * Get HTML for ENGINE value not null or view tables that are not empty tables
660
+ *
661
+ * @param boolean $table_is_view whether table is view
662
+ * @param array $current_table current table
663
+ * @param string $collation collation
664
+ * @param boolean $is_show_stats whether stats show or not
665
+ * @param string $tbl_url_query table url query
666
+ * @param string $formatted_size formatted size
667
+ * @param string $unit unit
668
+ * @param string $overhead overhead
669
+ * @param string $create_time create time
670
+ * @param string $update_time update time
671
+ * @param string $check_time check time
672
+ *
673
+ * @return string $html_output
674
+ */
675
+ function PMA_getHtmlForNotNullEngineViewTable($table_is_view, $current_table,
676
+ $collation, $is_show_stats, $tbl_url_query, $formatted_size, $unit,
677
+ $overhead, $create_time, $update_time, $check_time
678
+ ) {
679
+ $html_output = '';
680
+ $row_count_pre = '';
681
+ $show_superscript = '';
682
+ if ($table_is_view) {
683
+ // Drizzle views use FunctionEngine, and the only place where they are
684
+ // available are I_S and D_D schemas, where we do exact counting
685
+ if ($current_table['TABLE_ROWS'] >= $GLOBALS['cfg']['MaxExactCountViews']
686
+ && $current_table['ENGINE'] != 'FunctionEngine'
687
+ ) {
688
+ $row_count_pre = '~';
689
+ $show_superscript = PMA_Util::showHint(
690
+ PMA_sanitize(
691
+ sprintf(
692
+ __('This view has at least this number of rows. Please refer to %sdocumentation%s.'),
693
+ '[doc@cfg_MaxExactCountViews]',
694
+ '[/doc]'
695
+ )
696
+ )
697
+ );
698
+ }
699
+ } elseif ($current_table['ENGINE'] == 'InnoDB'
700
+ && (! $current_table['COUNTED'])
701
+ ) {
702
+ // InnoDB table: we did not get an accurate row count
703
+ $row_count_pre = '~';
704
+ $show_superscript = '';
705
+ }
706
+
707
+ // Set a flag if there are approximate row counts on page.
708
+ if (! empty($row_count_pre)) {
709
+ $approx_rows = true;
710
+ } else {
711
+ // this happens for information_schema, performance_schema,
712
+ // and in case there is no InnoDB table on this page
713
+ $approx_rows = false;
714
+ }
715
+ // Get the row count.
716
+ $row_count = $row_count_pre
717
+ . PMA_Util::formatNumber($current_table['TABLE_ROWS'], 0);
718
+ // URL parameters to fetch the real row count.
719
+ $real_count_url = array(
720
+ 'ajax_request' => true,
721
+ 'db' => $GLOBALS['db'],
722
+ 'table' => $current_table['TABLE_NAME'],
723
+ 'real_row_count' => 'true'
724
+ );
725
+ // Content to be appended into 'tbl_rows' cell.
726
+ // If row count is approximate, display it as an anchor to get real count.
727
+ $cell_text = (! empty($row_count_pre))
728
+ ? '<a href="db_structure.php' . PMA_URL_getCommon($real_count_url)
729
+ . '" class="ajax real_row_count">' . $row_count . '</a>'
730
+ : $row_count;
731
+ $html_output .= '<td class="value tbl_rows" data-table="'
732
+ . htmlspecialchars($current_table['TABLE_NAME']) . '">'
733
+ . $cell_text
734
+ . $show_superscript
735
+ . '</td>';
736
+
737
+ if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) {
738
+ $html_output .= '<td class="nowrap">'
739
+ . ( ! empty($current_table['ENGINE'])
740
+ ? $current_table['ENGINE']
741
+ : ($table_is_view ? __('View') : '')
742
+ )
743
+ . '</td>';
744
+ if (/*overload*/mb_strlen($collation)) {
745
+ $html_output .= '<td class="nowrap">' . $collation . '</td>';
746
+ }
747
+ }
748
+
749
+ if ($is_show_stats) {
750
+ $html_output .= PMA_getHtmlForShowStats(
751
+ $tbl_url_query, $formatted_size, $unit, $overhead
752
+ );
753
+ }
754
+
755
+ $html_output .= PMA_getHtmlForStructureTimes(
756
+ $create_time, $update_time, $check_time
757
+ );
758
+
759
+ return array($html_output, $approx_rows);
760
+ }
761
+
762
+ /**
763
+ * Get HTML snippet view table
764
+ *
765
+ * @param boolean $is_show_stats whether stats show or not
766
+ *
767
+ * @return string $html_output
768
+ */
769
+ function PMA_getHtmlForViewTable($is_show_stats)
770
+ {
771
+ $html_output = '<td class="value">-</td>'
772
+ . '<td>' . __('View') . '</td>'
773
+ . '<td>---</td>';
774
+ if ($is_show_stats) {
775
+ $html_output .= '<td class="value">-</td>'
776
+ . '<td class="value">-</td>';
777
+ }
778
+ return $html_output;
779
+ }
780
+
781
+ /**
782
+ * display "in use" below for a table that needs to be repaired
783
+ *
784
+ * @param integer $colspan_for_structure colspan for structure
785
+ * @param boolean $db_is_system_schema whether db is information schema or not
786
+ *
787
+ * @return string HTML snippet
788
+ */
789
+ function PMA_getHtmlForRepairtable(
790
+ $colspan_for_structure,
791
+ $db_is_system_schema
792
+ ) {
793
+ return '<td colspan="'
794
+ . ($colspan_for_structure - ($db_is_system_schema ? 5 : 8)) . '"'
795
+ . 'class="center">'
796
+ . __('in use')
797
+ . '</td>';
798
+ }
799
+
800
+ /**
801
+ * display table header (<table><thead>...</thead><tbody>)
802
+ *
803
+ * @param boolean $db_is_system_schema whether db is information schema or not
804
+ * @param boolean $replication whether to sho replication status
805
+ *
806
+ * @return string html data
807
+ */
808
+ function PMA_tableHeader($db_is_system_schema = false, $replication = false)
809
+ {
810
+ $cnt = 0; // Let's count the columns...
811
+
812
+ if ($db_is_system_schema) {
813
+ $action_colspan = 3;
814
+ } else {
815
+ $action_colspan = 6;
816
+ }
817
+ if ($GLOBALS['cfg']['NumFavoriteTables'] > 0) {
818
+ $action_colspan++;
819
+ }
820
+
821
+ $html_output = '<table class="data">' . "\n"
822
+ . '<thead>' . "\n"
823
+ . '<tr><th></th>' . "\n"
824
+ . '<th>'
825
+ . PMA_sortableTableHeader(__('Table'), 'table')
826
+ . '</th>' . "\n";
827
+ if ($replication) {
828
+ $html_output .= '<th>' . "\n"
829
+ . ' ' . __('Replication') . "\n"
830
+ . '</th>';
831
+ }
832
+ $html_output .= '<th colspan="' . $action_colspan . '">' . "\n"
833
+ . ' ' . __('Action') . "\n"
834
+ . '</th>'
835
+ // larger values are more interesting so default sort order is DESC
836
+ . '<th>' . PMA_sortableTableHeader(__('Rows'), 'records', 'DESC')
837
+ . PMA_Util::showHint(
838
+ PMA_sanitize(
839
+ __(
840
+ 'May be approximate. Click on the number to get the exact'
841
+ . ' count. See [doc@faq3-11]FAQ 3.11[/doc].'
842
+ )
843
+ )
844
+ ) . "\n"
845
+ . '</th>' . "\n";
846
+ if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) {
847
+ $html_output .= '<th>' . PMA_sortableTableHeader(__('Type'), 'type')
848
+ . '</th>' . "\n";
849
+ $cnt++;
850
+ $html_output .= '<th>'
851
+ . PMA_sortableTableHeader(__('Collation'), 'collation')
852
+ . '</th>' . "\n";
853
+ $cnt++;
854
+ }
855
+ if ($GLOBALS['is_show_stats']) {
856
+ // larger values are more interesting so default sort order is DESC
857
+ $html_output .= '<th>'
858
+ . PMA_sortableTableHeader(__('Size'), 'size', 'DESC')
859
+ . '</th>' . "\n"
860
+ // larger values are more interesting so default sort order is DESC
861
+ . '<th>'
862
+ . PMA_sortableTableHeader(__('Overhead'), 'overhead', 'DESC')
863
+ . '</th>' . "\n";
864
+ $cnt += 2;
865
+ }
866
+ if ($GLOBALS['cfg']['ShowDbStructureCreation']) {
867
+ // larger values are more interesting so default sort order is DESC
868
+ $html_output .= '<th>'
869
+ . PMA_sortableTableHeader(__('Creation'), 'creation', 'DESC')
870
+ . '</th>' . "\n";
871
+ $cnt += 2;
872
+ }
873
+ if ($GLOBALS['cfg']['ShowDbStructureLastUpdate']) {
874
+ // larger values are more interesting so default sort order is DESC
875
+ $html_output .= '<th>'
876
+ . PMA_sortableTableHeader(__('Last update'), 'last_update', 'DESC')
877
+ . '</th>' . "\n";
878
+ $cnt += 2;
879
+ }
880
+ if ($GLOBALS['cfg']['ShowDbStructureLastCheck']) {
881
+ // larger values are more interesting so default sort order is DESC
882
+ $html_output .= '<th>'
883
+ . PMA_sortableTableHeader(__('Last check'), 'last_check', 'DESC')
884
+ . '</th>' . "\n";
885
+ $cnt += 2;
886
+ }
887
+ $html_output .= '</tr>' . "\n";
888
+ $html_output .= '</thead>' . "\n";
889
+ $html_output .= '<tbody>' . "\n";
890
+ $GLOBALS['colspan_for_structure'] = $cnt + $action_colspan + 3;
891
+
892
+ return $html_output;
893
+ }
894
+
895
+ /**
896
+ * Creates a clickable column header for table information
897
+ *
898
+ * @param string $title title to use for the link
899
+ * @param string $sort corresponds to sortable data name mapped in
900
+ * libraries/db_info.inc.php
901
+ * @param string $initial_sort_order initial sort order
902
+ *
903
+ * @return string link to be displayed in the table header
904
+ */
905
+ function PMA_sortableTableHeader($title, $sort, $initial_sort_order = 'ASC')
906
+ {
907
+ // Set some defaults
908
+ $requested_sort = 'table';
909
+ $requested_sort_order = $future_sort_order = $initial_sort_order;
910
+
911
+ // If the user requested a sort
912
+ if (isset($_REQUEST['sort'])) {
913
+ $requested_sort = $_REQUEST['sort'];
914
+
915
+ if (isset($_REQUEST['sort_order'])) {
916
+ $requested_sort_order = $_REQUEST['sort_order'];
917
+ }
918
+ }
919
+
920
+ $order_img = '';
921
+ $order_link_params = array();
922
+ $order_link_params['title'] = __('Sort');
923
+
924
+ // If this column was requested to be sorted.
925
+ if ($requested_sort == $sort) {
926
+ if ($requested_sort_order == 'ASC') {
927
+ $future_sort_order = 'DESC';
928
+ // current sort order is ASC
929
+ $order_img = ' ' . PMA_Util::getImage(
930
+ 's_asc.png',
931
+ __('Ascending'),
932
+ array('class' => 'sort_arrow', 'title' => '')
933
+ );
934
+ $order_img .= ' ' . PMA_Util::getImage(
935
+ 's_desc.png',
936
+ __('Descending'),
937
+ array('class' => 'sort_arrow hide', 'title' => '')
938
+ );
939
+ // but on mouse over, show the reverse order (DESC)
940
+ $order_link_params['onmouseover'] = "$('.sort_arrow').toggle();";
941
+ // on mouse out, show current sort order (ASC)
942
+ $order_link_params['onmouseout'] = "$('.sort_arrow').toggle();";
943
+ } else {
944
+ $future_sort_order = 'ASC';
945
+ // current sort order is DESC
946
+ $order_img = ' ' . PMA_Util::getImage(
947
+ 's_asc.png',
948
+ __('Ascending'),
949
+ array('class' => 'sort_arrow hide', 'title' => '')
950
+ );
951
+ $order_img .= ' ' . PMA_Util::getImage(
952
+ 's_desc.png',
953
+ __('Descending'),
954
+ array('class' => 'sort_arrow', 'title' => '')
955
+ );
956
+ // but on mouse over, show the reverse order (ASC)
957
+ $order_link_params['onmouseover'] = "$('.sort_arrow').toggle();";
958
+ // on mouse out, show current sort order (DESC)
959
+ $order_link_params['onmouseout'] = "$('.sort_arrow').toggle();";
960
+ }
961
+ }
962
+
963
+ $_url_params = array(
964
+ 'db' => $_REQUEST['db'],
965
+ );
966
+
967
+ $url = 'db_structure.php' . PMA_URL_getCommon($_url_params);
968
+ // We set the position back to 0 every time they sort.
969
+ $url .= "&amp;pos=0&amp;sort=$sort&amp;sort_order=$future_sort_order";
970
+ if (! empty($_REQUEST['tbl_type'])) {
971
+ $url .= "&amp;tbl_type=" . $_REQUEST['tbl_type'];
972
+ }
973
+ if (! empty($_REQUEST['tbl_group'])) {
974
+ $url .= "&amp;tbl_group=" . $_REQUEST['tbl_group'];
975
+ }
976
+
977
+ return PMA_Util::linkOrButton(
978
+ $url, $title . $order_img, $order_link_params
979
+ );
980
+ }
981
+
982
+ /**
983
+ * Get the alias ant truname
984
+ *
985
+ * @param string $tooltip_aliasname tooltip alias name
986
+ * @param array $current_table current table
987
+ * @param string $tooltip_truename tooltip true name
988
+ *
989
+ * @return array ($alias, $truename)
990
+ */
991
+ function PMA_getAliasAndTrueName($tooltip_aliasname, $current_table,
992
+ $tooltip_truename
993
+ ) {
994
+ $alias = (! empty($tooltip_aliasname)
995
+ && isset($tooltip_aliasname[$current_table['TABLE_NAME']])
996
+ )
997
+ ? str_replace(
998
+ ' ', '&nbsp;',
999
+ htmlspecialchars($tooltip_truename[$current_table['TABLE_NAME']])
1000
+ )
1001
+ : str_replace(
1002
+ ' ', '&nbsp;',
1003
+ htmlspecialchars($current_table['TABLE_NAME'])
1004
+ );
1005
+ $truename = (! empty($tooltip_truename)
1006
+ && isset($tooltip_truename[$current_table['TABLE_NAME']])
1007
+ )
1008
+ ? str_replace(
1009
+ ' ', '&nbsp;',
1010
+ htmlspecialchars($tooltip_truename[$current_table['TABLE_NAME']])
1011
+ )
1012
+ : str_replace(
1013
+ ' ', '&nbsp;',
1014
+ htmlspecialchars($current_table['TABLE_NAME'])
1015
+ );
1016
+
1017
+ return array($alias, $truename);
1018
+ }
1019
+
1020
+ /**
1021
+ * Get the server slave state
1022
+ *
1023
+ * @param boolean $server_slave_status server slave state
1024
+ * @param string $truename true name
1025
+ *
1026
+ * @return array ($do, $ignored)
1027
+ */
1028
+ function PMA_getServerSlaveStatus($server_slave_status, $truename)
1029
+ {
1030
+ $ignored = false;
1031
+ $do = false;
1032
+ include_once 'libraries/replication.inc.php';
1033
+
1034
+ if (!$server_slave_status) {
1035
+ return array($do, $ignored);
1036
+ }
1037
+
1038
+ $nbServSlaveDoDb = count($GLOBALS['replication_info']['slave']['Do_DB']);
1039
+ $nbServSlaveIgnoreDb
1040
+ = count($GLOBALS['replication_info']['slave']['Ignore_DB']);
1041
+ $searchDoDBInTruename = array_search(
1042
+ $truename, $GLOBALS['replication_info']['slave']['Do_DB']
1043
+ );
1044
+ $searchDoDBInDB = array_search(
1045
+ $GLOBALS['db'], $GLOBALS['replication_info']['slave']['Do_DB']
1046
+ );
1047
+ if (strlen($searchDoDBInTruename) > 0
1048
+ || strlen($searchDoDBInDB) > 0
1049
+ || ($nbServSlaveDoDb == 1 && $nbServSlaveIgnoreDb == 1)
1050
+ ) {
1051
+ $do = true;
1052
+ }
1053
+ foreach ($GLOBALS['replication_info']['slave']['Wild_Do_Table'] as $db_table) {
1054
+ $table_part = PMA_extractDbOrTable($db_table, 'table');
1055
+ $pattern = "@^"
1056
+ . /*overload*/mb_substr($table_part, 0, -1)
1057
+ . "@";
1058
+ if (($GLOBALS['db'] == PMA_extractDbOrTable($db_table, 'db'))
1059
+ && (preg_match($pattern, $truename))
1060
+ ) {
1061
+ $do = true;
1062
+ }
1063
+ }
1064
+
1065
+ $searchDb = array_search(
1066
+ $GLOBALS['db'],
1067
+ $GLOBALS['replication_info']['slave']['Ignore_DB']
1068
+ );
1069
+ $searchTable = array_search(
1070
+ $truename,
1071
+ $GLOBALS['replication_info']['slave']['Ignore_Table']
1072
+ );
1073
+ if ((strlen($searchTable) > 0) || strlen($searchDb) > 0) {
1074
+ $ignored = true;
1075
+ }
1076
+ foreach (
1077
+ $GLOBALS['replication_info']['slave']['Wild_Ignore_Table'] as $db_table
1078
+ ) {
1079
+ $table_part = PMA_extractDbOrTable($db_table, 'table');
1080
+ $pattern = "@^"
1081
+ . /*overload*/mb_substr($table_part, 0, -1)
1082
+ . "@";
1083
+ if (($GLOBALS['db'] == PMA_extractDbOrTable($db_table))
1084
+ && (preg_match($pattern, $truename))
1085
+ ) {
1086
+ $ignored = true;
1087
+ }
1088
+ }
1089
+
1090
+ return array($do, $ignored);
1091
+ }
1092
+
1093
+ /**
1094
+ * Get the value set for ENGINE table,
1095
+ * $current_table, $formatted_size, $unit, $formatted_overhead,
1096
+ * $overhead_unit, $overhead_size, $table_is_view
1097
+ *
1098
+ * @param array $current_table current table
1099
+ * @param boolean $db_is_system_schema whether db is information schema or not
1100
+ * @param boolean $is_show_stats whether stats show or not
1101
+ * @param boolean $table_is_view whether table is view or not
1102
+ * @param double $sum_size total table size
1103
+ * @param double $overhead_size overhead size
1104
+ *
1105
+ * @return array
1106
+ */
1107
+ function PMA_getStuffForEngineTypeTable($current_table, $db_is_system_schema,
1108
+ $is_show_stats, $table_is_view, $sum_size, $overhead_size
1109
+ ) {
1110
+ $formatted_size = '-';
1111
+ $unit = '';
1112
+ $formatted_overhead = '';
1113
+ $overhead_unit = '';
1114
+
1115
+ switch ( $current_table['ENGINE']) {
1116
+ // MyISAM, ISAM or Heap table: Row count, data size and index size
1117
+ // are accurate; data size is accurate for ARCHIVE
1118
+ case 'MyISAM' :
1119
+ case 'ISAM' :
1120
+ case 'HEAP' :
1121
+ case 'MEMORY' :
1122
+ case 'ARCHIVE' :
1123
+ case 'Aria' :
1124
+ case 'Maria' :
1125
+ list($current_table, $formatted_size, $unit, $formatted_overhead,
1126
+ $overhead_unit, $overhead_size, $sum_size) = PMA_getValuesForAriaTable(
1127
+ $db_is_system_schema, $current_table, $is_show_stats,
1128
+ $sum_size, $overhead_size, $formatted_size, $unit,
1129
+ $formatted_overhead, $overhead_unit
1130
+ );
1131
+ break;
1132
+ case 'InnoDB' :
1133
+ case 'PBMS' :
1134
+ // InnoDB table: Row count is not accurate but data and index sizes are.
1135
+ // PBMS table in Drizzle: TABLE_ROWS is taken from table cache,
1136
+ // so it may be unavailable
1137
+ list($current_table, $formatted_size, $unit, $sum_size)
1138
+ = PMA_getValuesForInnodbTable($current_table, $is_show_stats, $sum_size);
1139
+ //$display_rows = ' - ';
1140
+ break;
1141
+ // Mysql 5.0.x (and lower) uses MRG_MyISAM
1142
+ // and MySQL 5.1.x (and higher) uses MRG_MYISAM
1143
+ // Both are aliases for MERGE
1144
+ case 'MRG_MyISAM' :
1145
+ case 'MRG_MYISAM' :
1146
+ case 'MERGE' :
1147
+ case 'BerkeleyDB' :
1148
+ // Merge or BerkleyDB table: Only row count is accurate.
1149
+ if ($is_show_stats) {
1150
+ $formatted_size = ' - ';
1151
+ $unit = '';
1152
+ }
1153
+ break;
1154
+ // for a view, the ENGINE is sometimes reported as null,
1155
+ // or on some servers it's reported as "SYSTEM VIEW"
1156
+ case null :
1157
+ case 'SYSTEM VIEW' :
1158
+ case 'FunctionEngine' :
1159
+ // possibly a view, do nothing
1160
+ break;
1161
+ default :
1162
+ // Unknown table type.
1163
+ if ($is_show_stats) {
1164
+ $formatted_size = __('unknown');
1165
+ $unit = '';
1166
+ }
1167
+ } // end switch
1168
+
1169
+ if ($current_table['TABLE_TYPE'] == 'VIEW'
1170
+ || $current_table['TABLE_TYPE'] == 'SYSTEM VIEW'
1171
+ ) {
1172
+ // countRecords() takes care of $cfg['MaxExactCountViews']
1173
+ $current_table['TABLE_ROWS'] = PMA_Table::countRecords(
1174
+ $GLOBALS['db'], $current_table['TABLE_NAME'],
1175
+ true, true
1176
+ );
1177
+ $table_is_view = true;
1178
+ }
1179
+
1180
+ return array($current_table, $formatted_size, $unit, $formatted_overhead,
1181
+ $overhead_unit, $overhead_size, $table_is_view, $sum_size
1182
+ );
1183
+ }
1184
+
1185
+ /**
1186
+ * Get values for ARIA/MARIA tables
1187
+ * $current_table, $formatted_size, $unit, $formatted_overhead,
1188
+ * $overhead_unit, $overhead_size
1189
+ *
1190
+ * @param boolean $db_is_system_schema whether db is information schema or not
1191
+ * @param array $current_table current table
1192
+ * @param boolean $is_show_stats whether stats show or not
1193
+ * @param double $sum_size sum size
1194
+ * @param double $overhead_size overhead size
1195
+ * @param number $formatted_size formatted size
1196
+ * @param string $unit unit
1197
+ * @param number $formatted_overhead overhead formatted
1198
+ * @param string $overhead_unit overhead unit
1199
+ *
1200
+ * @return array
1201
+ */
1202
+ function PMA_getValuesForAriaTable($db_is_system_schema, $current_table,
1203
+ $is_show_stats, $sum_size, $overhead_size, $formatted_size, $unit,
1204
+ $formatted_overhead, $overhead_unit
1205
+ ) {
1206
+ if ($db_is_system_schema) {
1207
+ $current_table['Rows'] = PMA_Table::countRecords(
1208
+ $GLOBALS['db'], $current_table['Name']
1209
+ );
1210
+ }
1211
+
1212
+ if ($is_show_stats) {
1213
+ $tblsize = doubleval($current_table['Data_length'])
1214
+ + doubleval($current_table['Index_length']);
1215
+ $sum_size += $tblsize;
1216
+ list($formatted_size, $unit) = PMA_Util::formatByteDown(
1217
+ $tblsize, 3, ($tblsize > 0) ? 1 : 0
1218
+ );
1219
+ if (isset($current_table['Data_free']) && $current_table['Data_free'] > 0) {
1220
+ // here, the value 4 as the second parameter
1221
+ // would transform 6.1MiB into 6,224.6KiB
1222
+ list($formatted_overhead, $overhead_unit)
1223
+ = PMA_Util::formatByteDown(
1224
+ $current_table['Data_free'], 4,
1225
+ (($current_table['Data_free'] > 0) ? 1 : 0)
1226
+ );
1227
+ $overhead_size += $current_table['Data_free'];
1228
+ }
1229
+ }
1230
+ return array($current_table, $formatted_size, $unit, $formatted_overhead,
1231
+ $overhead_unit, $overhead_size, $sum_size
1232
+ );
1233
+ }
1234
+
1235
+ /**
1236
+ * Get values for InnoDB table
1237
+ * $current_table, $formatted_size, $unit, $sum_size
1238
+ *
1239
+ * @param array $current_table current table
1240
+ * @param boolean $is_show_stats whether stats show or not
1241
+ * @param double $sum_size sum size
1242
+ *
1243
+ * @return array
1244
+ */
1245
+ function PMA_getValuesForInnodbTable($current_table, $is_show_stats, $sum_size)
1246
+ {
1247
+ $formatted_size = $unit = '';
1248
+
1249
+ if (($current_table['ENGINE'] == 'InnoDB'
1250
+ && $current_table['TABLE_ROWS'] < $GLOBALS['cfg']['MaxExactCount'])
1251
+ || !isset($current_table['TABLE_ROWS'])
1252
+ ) {
1253
+ $current_table['COUNTED'] = true;
1254
+ $current_table['TABLE_ROWS'] = PMA_Table::countRecords(
1255
+ $GLOBALS['db'], $current_table['TABLE_NAME'],
1256
+ true, false
1257
+ );
1258
+ } else {
1259
+ $current_table['COUNTED'] = false;
1260
+ }
1261
+
1262
+ // Drizzle doesn't provide data and index length, check for null
1263
+ if ($is_show_stats && $current_table['Data_length'] !== null) {
1264
+ $tblsize = $current_table['Data_length'] + $current_table['Index_length'];
1265
+ $sum_size += $tblsize;
1266
+ list($formatted_size, $unit) = PMA_Util::formatByteDown(
1267
+ $tblsize, 3, (($tblsize > 0) ? 1 : 0)
1268
+ );
1269
+ }
1270
+
1271
+ return array($current_table, $formatted_size, $unit, $sum_size);
1272
+ }
1273
+
1274
+ /**
1275
+ * table structure
1276
+ */
1277
+
1278
+ /**
1279
+ * Get the HTML snippet for structure table table header
1280
+ *
1281
+ * @param boolean $db_is_system_schema whether db is information schema or not
1282
+ * @param boolean $tbl_is_view whether table is view or not
1283
+ *
1284
+ * @return string $html_output
1285
+ */
1286
+ function PMA_getHtmlForTableStructureHeader(
1287
+ $db_is_system_schema,
1288
+ $tbl_is_view
1289
+ ) {
1290
+ $html_output = '<thead>';
1291
+ $html_output .= '<tr>';
1292
+ $html_output .= '<th></th>'
1293
+ . '<th>#</th>'
1294
+ . '<th>' . __('Name') . '</th>'
1295
+ . '<th>' . __('Type') . '</th>'
1296
+ . '<th>' . __('Collation') . '</th>'
1297
+ . '<th>' . __('Attributes') . '</th>'
1298
+ . '<th>' . __('Null') . '</th>'
1299
+ . '<th>' . __('Default') . '</th>'
1300
+ . '<th>' . __('Extra') . '</th>';
1301
+
1302
+ /* see tbl_structure.js, function moreOptsMenuResize() */
1303
+ if (! $db_is_system_schema && ! $tbl_is_view) {
1304
+ $colspan = 9;
1305
+ if (PMA_DRIZZLE) {
1306
+ $colspan -= 2;
1307
+ }
1308
+ if (PMA_Util::showIcons('ActionLinksMode')) {
1309
+ $colspan--;
1310
+ }
1311
+ $html_output .= '<th colspan="' . $colspan . '" '
1312
+ . 'class="action">' . __('Action') . '</th>';
1313
+ }
1314
+ $html_output .= '</tr>'
1315
+ . '</thead>';
1316
+
1317
+ return $html_output;
1318
+ }
1319
+
1320
+ /**
1321
+ * Get HTML for structure table's rows and return $odd_row parameter also
1322
+ * For "Action" Column, this function contains only HTML code for "Change"
1323
+ * and "Drop"
1324
+ *
1325
+ * @param array $row current row
1326
+ * @param string $rownum row number
1327
+ * @param string $displayed_field_name displayed field name
1328
+ * @param string $type_nowrap type nowrap
1329
+ * @param array $extracted_columnspec associative array containing type,
1330
+ * spec_in_brackets and possibly
1331
+ * enum_set_values (another array)
1332
+ * @param string $type_mime mime type
1333
+ * @param string $field_charset field charset
1334
+ * @param string $attribute attribute (BINARY, UNSIGNED,
1335
+ * UNSIGNED ZEROFILL,
1336
+ * on update CURRENT_TIMESTAMP)
1337
+ * @param boolean $tbl_is_view whether tables is view or not
1338
+ * @param boolean $db_is_system_schema whether db is information schema or not
1339
+ * @param string $url_query url query
1340
+ * @param string $field_encoded field encoded
1341
+ * @param array $titles titles array
1342
+ * @param string $table table
1343
+ *
1344
+ * @return array ($html_output, $odd_row)
1345
+ */
1346
+ function PMA_getHtmlTableStructureRow($row, $rownum,
1347
+ $displayed_field_name, $type_nowrap, $extracted_columnspec, $type_mime,
1348
+ $field_charset, $attribute, $tbl_is_view, $db_is_system_schema,
1349
+ $url_query, $field_encoded, $titles, $table
1350
+ ) {
1351
+ $html_output = '<td class="center">'
1352
+ . '<input type="checkbox" class="checkall" name="selected_fld[]" '
1353
+ . 'value="' . htmlspecialchars($row['Field']) . '" '
1354
+ . 'id="checkbox_row_' . $rownum . '"/>'
1355
+ . '</td>';
1356
+
1357
+ $html_output .= '<td class="right">'
1358
+ . $rownum
1359
+ . '</td>';
1360
+
1361
+ $html_output .= '<th class="nowrap">'
1362
+ . '<label for="checkbox_row_' . $rownum . '">'
1363
+ . preg_replace(
1364
+ '/[\x00-\x1F]/',
1365
+ '&#x2051;',
1366
+ $displayed_field_name
1367
+ ) . '</label>'
1368
+ . '</th>';
1369
+
1370
+ $html_output .= '<td' . $type_nowrap . '>'
1371
+ . '<bdo dir="ltr" lang="en">'
1372
+ . $extracted_columnspec['displayed_type'] . $type_mime
1373
+ . '</bdo></td>';
1374
+
1375
+ $html_output .= '<td>' .
1376
+ (empty($field_charset)
1377
+ ? ''
1378
+ : '<dfn title="' . PMA_getCollationDescr($field_charset) . '">'
1379
+ . $field_charset . '</dfn>'
1380
+ )
1381
+ . '</td>';
1382
+
1383
+ $html_output .= '<td class="column_attribute nowrap">'
1384
+ . $attribute . '</td>';
1385
+ $html_output .= '<td>'
1386
+ . (($row['Null'] == 'YES') ? __('Yes') : __('No')) . ' </td>';
1387
+
1388
+ $html_output .= '<td class="nowrap">';
1389
+ if (isset($row['Default'])) {
1390
+ if ($extracted_columnspec['type'] == 'bit') {
1391
+ // here, $row['Default'] contains something like b'010'
1392
+ $html_output .= PMA_Util::convertBitDefaultValue($row['Default']);
1393
+ } else {
1394
+ $html_output .= $row['Default'];
1395
+ }
1396
+ } else {
1397
+ $html_output .= '<i>' . _pgettext('None for default', 'None') . '</i>';
1398
+ }
1399
+ $html_output .= '</td>';
1400
+
1401
+ $html_output .= '<td class="nowrap">'
1402
+ . /*overload*/mb_strtoupper($row['Extra']) . '</td>';
1403
+
1404
+ $html_output .= PMA_getHtmlForDropColumn(
1405
+ $tbl_is_view, $db_is_system_schema,
1406
+ $url_query, $field_encoded,
1407
+ $titles, $table, $row
1408
+ );
1409
+
1410
+ return $html_output;
1411
+ }
1412
+
1413
+ /**
1414
+ * Get HTML code for "Drop" Action link
1415
+ *
1416
+ * @param boolean $tbl_is_view whether tables is view or not
1417
+ * @param boolean $db_is_system_schema whether db is information schema or not
1418
+ * @param string $url_query url query
1419
+ * @param string $field_encoded field encoded
1420
+ * @param array $titles tittles array
1421
+ * @param string $table table
1422
+ * @param array $row current row
1423
+ *
1424
+ * @return string $html_output
1425
+ */
1426
+ function PMA_getHtmlForDropColumn($tbl_is_view, $db_is_system_schema,
1427
+ $url_query, $field_encoded, $titles, $table, $row
1428
+ ) {
1429
+ $html_output = '';
1430
+
1431
+ if (! $tbl_is_view && ! $db_is_system_schema) {
1432
+ $html_output .= '<td class="edit center">'
1433
+ . '<a class="change_column_anchor ajax"'
1434
+ . ' href="tbl_structure.php'
1435
+ . $url_query . '&amp;field=' . $field_encoded
1436
+ . '&amp;change_column=1">'
1437
+ . $titles['Change'] . '</a>' . '</td>';
1438
+ $html_output .= '<td class="drop center">'
1439
+ . '<a class="drop_column_anchor ajax"'
1440
+ . ' href="sql.php' . $url_query . '&amp;sql_query='
1441
+ . urlencode(
1442
+ 'ALTER TABLE ' . PMA_Util::backquote($table)
1443
+ . ' DROP ' . PMA_Util::backquote($row['Field']) . ';'
1444
+ )
1445
+ . '&amp;dropped_column=' . urlencode($row['Field'])
1446
+ . '&amp;message_to_show=' . urlencode(
1447
+ sprintf(
1448
+ __('Column %s has been dropped.'),
1449
+ htmlspecialchars($row['Field'])
1450
+ )
1451
+ ) . '" >'
1452
+ . $titles['Drop'] . '</a>'
1453
+ . '</td>';
1454
+ }
1455
+
1456
+ return $html_output;
1457
+ }
1458
+
1459
+ /**
1460
+ * Get HTML for "check all" check box with "with selected" actions in table
1461
+ * structure
1462
+ *
1463
+ * @param string $pmaThemeImage pma theme image url
1464
+ * @param string $text_dir test directory
1465
+ * @param boolean $tbl_is_view whether table is view or not
1466
+ * @param boolean $db_is_system_schema whether db is information schema or not
1467
+ * @param string $tbl_storage_engine table storage engine
1468
+ *
1469
+ * @return string $html_output
1470
+ */
1471
+ function PMA_getHtmlForCheckAllTableColumn($pmaThemeImage, $text_dir,
1472
+ $tbl_is_view, $db_is_system_schema, $tbl_storage_engine
1473
+ ) {
1474
+ $html_output = PMA_Util::getWithSelected(
1475
+ $pmaThemeImage, $text_dir, "fieldsForm"
1476
+ );
1477
+
1478
+ $html_output .= PMA_Util::getButtonOrImage(
1479
+ 'submit_mult', 'mult_submit', 'submit_mult_browse',
1480
+ __('Browse'), 'b_browse.png', 'browse'
1481
+ );
1482
+
1483
+ if (! $tbl_is_view && ! $db_is_system_schema) {
1484
+ $html_output .= PMA_Util::getButtonOrImage(
1485
+ 'submit_mult', 'mult_submit change_columns_anchor ajax',
1486
+ 'submit_mult_change', __('Change'), 'b_edit.png', 'change'
1487
+ );
1488
+ $html_output .= PMA_Util::getButtonOrImage(
1489
+ 'submit_mult', 'mult_submit', 'submit_mult_drop',
1490
+ __('Drop'), 'b_drop.png', 'drop'
1491
+ );
1492
+ if ('ARCHIVE' != $tbl_storage_engine) {
1493
+ $html_output .= PMA_Util::getButtonOrImage(
1494
+ 'submit_mult', 'mult_submit', 'submit_mult_primary',
1495
+ __('Primary'), 'b_primary.png', 'primary'
1496
+ );
1497
+ $html_output .= PMA_Util::getButtonOrImage(
1498
+ 'submit_mult', 'mult_submit', 'submit_mult_unique',
1499
+ __('Unique'), 'b_unique.png', 'unique'
1500
+ );
1501
+ $html_output .= PMA_Util::getButtonOrImage(
1502
+ 'submit_mult', 'mult_submit', 'submit_mult_index',
1503
+ __('Index'), 'b_index.png', 'index'
1504
+ );
1505
+ }
1506
+
1507
+ if (! empty($tbl_storage_engine) && $tbl_storage_engine == 'MYISAM') {
1508
+ $html_output .= PMA_Util::getButtonOrImage(
1509
+ 'submit_mult', 'mult_submit', 'submit_mult_spatial',
1510
+ __('Spatial'), 'b_spatial.png', 'spatial'
1511
+ );
1512
+ }
1513
+ if (! empty($tbl_storage_engine)
1514
+ && ($tbl_storage_engine == 'MYISAM'
1515
+ || $tbl_storage_engine == 'ARIA'
1516
+ || $tbl_storage_engine == 'MARIA')
1517
+ ) {
1518
+ $html_output .= PMA_Util::getButtonOrImage(
1519
+ 'submit_mult', 'mult_submit', 'submit_mult_fulltext',
1520
+ __('Fulltext'), 'b_ftext.png', 'ftext'
1521
+ );
1522
+ }
1523
+ if (isset($GLOBALS['cfgRelation']['central_columnswork'])
1524
+ && $GLOBALS['cfgRelation']['central_columnswork']
1525
+ ) {
1526
+ $html_output .= PMA_Util::getButtonOrImage(
1527
+ 'submit_mult', 'mult_submit', 'submit_mult_central_columns_add',
1528
+ __('Add to central columns'), 'centralColumns_add.png',
1529
+ 'add_to_central_columns'
1530
+ );
1531
+ $html_output .= PMA_Util::getButtonOrImage(
1532
+ 'submit_mult', 'mult_submit', 'submit_mult_central_columns_remove',
1533
+ __('Remove from central columns'), 'centralColumns_delete.png',
1534
+ 'remove_from_central_columns'
1535
+ );
1536
+ }
1537
+ }
1538
+ return $html_output;
1539
+ }
1540
+
1541
+ /**
1542
+ * Get HTML for move columns dialog
1543
+ *
1544
+ * @return string $html_output
1545
+ */
1546
+ function PMA_getHtmlDivForMoveColumnsDialog()
1547
+ {
1548
+ $html_output = '<div id="move_columns_dialog" '
1549
+ . 'title="' . __('Move columns') . '" style="display: none">';
1550
+
1551
+ $html_output .= '<p>'
1552
+ . __('Move the columns by dragging them up and down.') . '</p>';
1553
+
1554
+ $html_output .= '<form action="tbl_structure.php">'
1555
+ . '<div>'
1556
+ . PMA_URL_getHiddenInputs($GLOBALS['db'], $GLOBALS['table'])
1557
+ . '<ul></ul>'
1558
+ . '</div>'
1559
+ . '</form>'
1560
+ . '</div>';
1561
+
1562
+ return $html_output;
1563
+ }
1564
+
1565
+ /**
1566
+ * Get HTML for edit views'
1567
+ *
1568
+ * @param string $url_params URL parameters
1569
+ *
1570
+ * @return string $html_output
1571
+ */
1572
+ function PMA_getHtmlForEditView($url_params)
1573
+ {
1574
+ $query = "SELECT `VIEW_DEFINITION`, `CHECK_OPTION`, `DEFINER`, `SECURITY_TYPE`"
1575
+ . " FROM `INFORMATION_SCHEMA`.`VIEWS`"
1576
+ . " WHERE TABLE_SCHEMA='" . PMA_Util::sqlAddSlashes($GLOBALS['db']) . "'"
1577
+ . " AND TABLE_NAME='" . PMA_Util::sqlAddSlashes($GLOBALS['table']) . "';";
1578
+ $item = $GLOBALS['dbi']->fetchSingleRow($query);
1579
+
1580
+ $query = "SHOW CREATE TABLE " . PMA_Util::backquote($GLOBALS['db'])
1581
+ . "." . PMA_Util::backquote($GLOBALS['table']);
1582
+ $createView = $GLOBALS['dbi']->fetchValue($query, 0, 'Create View');
1583
+ // get algorithm from $createView of the form CREATE ALGORITHM=<ALGORITHM> DE...
1584
+ $parts = explode(" ", substr($createView, 17));
1585
+ $item['ALGORITHM'] = $parts[0];
1586
+
1587
+ $view = array(
1588
+ 'operation' => 'alter',
1589
+ 'definer' => $item['DEFINER'],
1590
+ 'sql_security' => $item['SECURITY_TYPE'],
1591
+ 'name' => $GLOBALS['table'],
1592
+ 'as' => $item['VIEW_DEFINITION'],
1593
+ 'with' => $item['CHECK_OPTION'],
1594
+ 'algorithm' => $item['ALGORITHM'],
1595
+ );
1596
+ $url = 'view_create.php' . PMA_URL_getCommon($url_params) . '&amp;';
1597
+ $url .= implode(
1598
+ '&amp;',
1599
+ array_map(
1600
+ function ($key, $val) {
1601
+ return 'view[' . urlencode($key) . ']=' . urlencode($val);
1602
+ },
1603
+ array_keys($view),
1604
+ $view
1605
+ )
1606
+ );
1607
+ $html_output = PMA_Util::linkOrButton(
1608
+ $url,
1609
+ PMA_Util::getIcon('b_edit.png', __('Edit view'), true)
1610
+ );
1611
+ return $html_output;
1612
+ }
1613
+
1614
+ /**
1615
+ * Get HTML links for 'Print view', 'Relation view', 'Propose table structure',
1616
+ * 'Track table' and 'Move columns'
1617
+ *
1618
+ * @param string $url_query url query
1619
+ * @param boolean $tbl_is_view whether table is view or not
1620
+ * @param boolean $db_is_system_schema whether db is information schema or not
1621
+ *
1622
+ * @return string $html_output
1623
+ */
1624
+ function PMA_getHtmlForOptionalActionLinks($url_query, $tbl_is_view,
1625
+ $db_is_system_schema
1626
+ ) {
1627
+ $html_output = '<a href="tbl_printview.php' . $url_query
1628
+ . '" target="print_view">'
1629
+ . PMA_Util::getIcon('b_print.png', __('Print view'), true)
1630
+ . '</a>';
1631
+
1632
+ if (! $tbl_is_view && ! $db_is_system_schema) {
1633
+ if (!PMA_DRIZZLE) {
1634
+ $html_output .= '<a href="sql.php' . $url_query
1635
+ . '&amp;session_max_rows=all&amp;sql_query=' . urlencode(
1636
+ 'SELECT * FROM ' . PMA_Util::backquote($GLOBALS['table'])
1637
+ . ' PROCEDURE ANALYSE()'
1638
+ ) . '">'
1639
+ . PMA_Util::getIcon(
1640
+ 'b_tblanalyse.png',
1641
+ __('Propose table structure'),
1642
+ true
1643
+ )
1644
+ . '</a>';
1645
+ $html_output .= PMA_Util::showMySQLDocu('procedure_analyse') . "\n";
1646
+ }
1647
+ if (PMA_Tracker::isActive()) {
1648
+ $html_output .= '<a href="tbl_tracking.php' . $url_query . '">'
1649
+ . PMA_Util::getIcon('eye.png', __('Track table'), true)
1650
+ . '</a>';
1651
+ }
1652
+ $html_output .= '<a href="#" id="move_columns_anchor">'
1653
+ . PMA_Util::getIcon('b_move.png', __('Move columns'), true)
1654
+ . '</a>';
1655
+ $html_output .= '<a href="normalization.php' . $url_query . '">'
1656
+ . PMA_Util::getIcon('normalize.png', __('Improve table structure'), true)
1657
+ . '</a>';
1658
+ }
1659
+
1660
+ if ($tbl_is_view && ! $db_is_system_schema) {
1661
+ if (PMA_Tracker::isActive()) {
1662
+ $html_output .= '<a href="tbl_tracking.php' . $url_query . '">'
1663
+ . PMA_Util::getIcon('eye.png', __('Track view'), true)
1664
+ . '</a>';
1665
+ }
1666
+ }
1667
+
1668
+ return $html_output;
1669
+ }
1670
+
1671
+ /**
1672
+ * Get HTML snippet for "Add column" feature in structure table
1673
+ *
1674
+ * @param array $columns_list column list array
1675
+ *
1676
+ * @return string $html_output
1677
+ */
1678
+ function PMA_getHtmlForAddColumn($columns_list)
1679
+ {
1680
+ $html_output = '<form method="post" action="tbl_addfield.php" '
1681
+ . 'id="addColumns" name="addColumns" '
1682
+ . 'onsubmit="return checkFormElementInRange('
1683
+ . 'this, \'num_fields\', \'' . str_replace(
1684
+ '\'',
1685
+ '\\\'',
1686
+ __('You have to add at least one column.')
1687
+ ) . '\', 1)'
1688
+ . '">';
1689
+
1690
+ $html_output .= PMA_URL_getHiddenInputs(
1691
+ $GLOBALS['db'],
1692
+ $GLOBALS['table']
1693
+ );
1694
+ if (PMA_Util::showIcons('ActionLinksMode')) {
1695
+ $html_output .=PMA_Util::getImage(
1696
+ 'b_insrow.png',
1697
+ __('Add column')
1698
+ );
1699
+ $html_output .= '&nbsp;';
1700
+ }
1701
+ $num_fields = '<input type="number" name="num_fields" '
1702
+ . 'value="1" onfocus="this.select()" '
1703
+ . 'min="1" required />';
1704
+ $html_output .= sprintf(__('Add %s column(s)'), $num_fields);
1705
+
1706
+ // I tried displaying the drop-down inside the label but with Firefox
1707
+ // the drop-down was blinking
1708
+ $column_selector = '<select name="after_field" '
1709
+ . 'onchange="checkFirst()">';
1710
+
1711
+ $column_selector .= '<option '
1712
+ . 'value="first" data-pos = "first">'
1713
+ . __('at beginning of table')
1714
+ . '</option>';
1715
+ $cols_count = count($columns_list);
1716
+ foreach ($columns_list as $one_column_name) {
1717
+ //by default select the last column (add column at the end of the table)
1718
+ if (--$cols_count == 0) {
1719
+ $column_selector .= '<option '
1720
+ . 'value="' . htmlspecialchars($one_column_name)
1721
+ . '" selected="selected">';
1722
+ } else {
1723
+ $column_selector .= '<option '
1724
+ . 'value="' . htmlspecialchars($one_column_name) . '">';
1725
+ }
1726
+ $column_selector .= sprintf(
1727
+ __('after %s'),
1728
+ htmlspecialchars($one_column_name)
1729
+ )
1730
+ . '</option>';
1731
+ }
1732
+ $column_selector .= '</select>';
1733
+ $html_output .= '<input type="hidden" name="field_where" value="after"/>';
1734
+ $html_output .= '&nbsp;';
1735
+ $html_output .= $column_selector;
1736
+ $html_output .= '<input type="submit" value="' . __('Go') . '" />'
1737
+ . '</form>';
1738
+
1739
+ return $html_output;
1740
+ }
1741
+
1742
+ /**
1743
+ * Get HTML snippet for table rows in the Information ->Space usage table
1744
+ *
1745
+ * @param boolean $odd_row whether current row is odd or even
1746
+ * @param string $name type of usage
1747
+ * @param string $value value of usage
1748
+ * @param string $unit unit
1749
+ *
1750
+ * @return string $html_output
1751
+ */
1752
+ function PMA_getHtmlForSpaceUsageTableRow($odd_row, $name, $value, $unit)
1753
+ {
1754
+ $html_output = '<tr class="' . (($odd_row = !$odd_row) ? 'odd' : 'even') . '">';
1755
+ $html_output .= '<th class="name">' . $name . '</th>';
1756
+ $html_output .= '<td class="value">' . $value . '</td>';
1757
+ $html_output .= '<td class="unit">' . $unit . '</td>';
1758
+ $html_output .= '</tr>';
1759
+
1760
+ return $html_output;
1761
+ }
1762
+
1763
+ /**
1764
+ * Get HTML for Optimize link if overhead in Information fieldset
1765
+ *
1766
+ * @param string $url_query URL query
1767
+ *
1768
+ * @return string $html_output
1769
+ */
1770
+ function PMA_getHtmlForOptimizeLink($url_query)
1771
+ {
1772
+ $html_output = '<tr class="tblFooters">';
1773
+ $html_output .= '<td colspan="3" class="center">';
1774
+ $html_output .= '<a href="sql.php' . $url_query
1775
+ . '&pos=0&amp;sql_query=' . urlencode(
1776
+ 'OPTIMIZE TABLE ' . PMA_Util::backquote($GLOBALS['table'])
1777
+ )
1778
+ . '">'
1779
+ . PMA_Util::getIcon('b_tbloptimize.png', __('Optimize table'))
1780
+ . '</a>';
1781
+ $html_output .= '</td>';
1782
+ $html_output .= '</tr>';
1783
+
1784
+ return $html_output;
1785
+ }
1786
+
1787
+ /**
1788
+ * Get HTML for 'Row statistics' table row
1789
+ *
1790
+ * @param boolean $odd_row whether current row is odd or even
1791
+ * @param string $name statement name
1792
+ * @param mixed $value value
1793
+ *
1794
+ * @return string $html_output
1795
+ */
1796
+ function PMA_getHtmlForRowStatsTableRow($odd_row, $name, $value)
1797
+ {
1798
+ $html_output = '<tr class="' . (($odd_row = !$odd_row) ? 'odd' : 'even') . '">';
1799
+ $html_output .= '<th class="name">' . $name . '</th>';
1800
+ $html_output .= '<td class="value">' . $value . '</td>';
1801
+ $html_output .= '</tr>';
1802
+
1803
+ return $html_output;
1804
+ }
1805
+
1806
+ /**
1807
+ * Get HTML snippet for display Row statistics table
1808
+ *
1809
+ * @param array $showtable show table array
1810
+ * @param string $tbl_collation table collation
1811
+ * @param boolean $is_innodb whether table is innob or not
1812
+ * @param boolean $mergetable Checks if current table is a merge table
1813
+ * @param integer $avg_size average size
1814
+ * @param string $avg_unit average unit
1815
+ *
1816
+ * @return string $html_output
1817
+ */
1818
+ function getHtmlForRowStatsTable($showtable, $tbl_collation,
1819
+ $is_innodb, $mergetable, $avg_size, $avg_unit
1820
+ ) {
1821
+ $odd_row = false;
1822
+ $html_output = '<table id="tablerowstats" class="data">';
1823
+ $html_output .= '<caption class="tblHeaders">'
1824
+ . __('Row statistics') . '</caption>';
1825
+ $html_output .= '<tbody>';
1826
+
1827
+ if (isset($showtable['Row_format'])) {
1828
+ if ($showtable['Row_format'] == 'Fixed') {
1829
+ $value = __('static');
1830
+ } elseif ($showtable['Row_format'] == 'Dynamic') {
1831
+ $value = __('dynamic');
1832
+ } else {
1833
+ $value = $showtable['Row_format'];
1834
+ }
1835
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1836
+ $odd_row, __('Format'), $value
1837
+ );
1838
+ $odd_row = !$odd_row;
1839
+ }
1840
+ if (! empty($showtable['Create_options'])) {
1841
+ if ($showtable['Create_options'] == 'partitioned') {
1842
+ $value = __('partitioned');
1843
+ } else {
1844
+ $value = $showtable['Create_options'];
1845
+ }
1846
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1847
+ $odd_row, __('Options'), $value
1848
+ );
1849
+ $odd_row = !$odd_row;
1850
+ }
1851
+ if (!empty($tbl_collation)) {
1852
+ $value = '<dfn title="' . PMA_getCollationDescr($tbl_collation) . '">'
1853
+ . $tbl_collation . '</dfn>';
1854
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1855
+ $odd_row, __('Collation'), $value
1856
+ );
1857
+ $odd_row = !$odd_row;
1858
+ }
1859
+ if (!$is_innodb && isset($showtable['Rows'])) {
1860
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1861
+ $odd_row,
1862
+ __('Rows'),
1863
+ PMA_Util::formatNumber($showtable['Rows'], 0)
1864
+ );
1865
+ $odd_row = !$odd_row;
1866
+ }
1867
+ if (!$is_innodb
1868
+ && isset($showtable['Avg_row_length'])
1869
+ && $showtable['Avg_row_length'] > 0
1870
+ ) {
1871
+ list($avg_row_length_value, $avg_row_length_unit)
1872
+ = PMA_Util::formatByteDown(
1873
+ $showtable['Avg_row_length'],
1874
+ 6,
1875
+ 1
1876
+ );
1877
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1878
+ $odd_row,
1879
+ __('Row length'),
1880
+ ($avg_row_length_value . ' ' . $avg_row_length_unit)
1881
+ );
1882
+ unset($avg_row_length_value, $avg_row_length_unit);
1883
+ $odd_row = !$odd_row;
1884
+ }
1885
+ if (!$is_innodb
1886
+ && isset($showtable['Data_length'])
1887
+ && isset($showtable['Rows'])
1888
+ && $showtable['Rows'] > 0
1889
+ && $mergetable == false
1890
+ ) {
1891
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1892
+ $odd_row,
1893
+ __('Row size'),
1894
+ ($avg_size . ' ' . $avg_unit)
1895
+ );
1896
+ $odd_row = !$odd_row;
1897
+ }
1898
+ if (isset($showtable['Auto_increment'])) {
1899
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1900
+ $odd_row,
1901
+ __('Next autoindex'),
1902
+ PMA_Util::formatNumber($showtable['Auto_increment'], 0)
1903
+ );
1904
+ $odd_row = !$odd_row;
1905
+ }
1906
+ if (isset($showtable['Create_time'])) {
1907
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1908
+ $odd_row,
1909
+ __('Creation'),
1910
+ PMA_Util::localisedDate(strtotime($showtable['Create_time']))
1911
+ );
1912
+ $odd_row = !$odd_row;
1913
+ }
1914
+ if (isset($showtable['Update_time'])) {
1915
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1916
+ $odd_row,
1917
+ __('Last update'),
1918
+ PMA_Util::localisedDate(strtotime($showtable['Update_time']))
1919
+ );
1920
+ $odd_row = !$odd_row;
1921
+ }
1922
+ if (isset($showtable['Check_time'])) {
1923
+ $html_output .= PMA_getHtmlForRowStatsTableRow(
1924
+ $odd_row,
1925
+ __('Last check'),
1926
+ PMA_Util::localisedDate(strtotime($showtable['Check_time']))
1927
+ );
1928
+ }
1929
+ $html_output .= '</tbody>'
1930
+ . '</table>';
1931
+
1932
+ return $html_output;
1933
+ }
1934
+
1935
+ /**
1936
+ * Get HTML snippet for action row in structure table,
1937
+ * This function returns common HTML <td> for Primary, Unique, Index,
1938
+ * Spatial actions
1939
+ *
1940
+ * @param string $type column type
1941
+ * @param string $tbl_storage_engine table storage engine
1942
+ * @param string $class class attribute for <td>
1943
+ * @param boolean $hasField has field
1944
+ * @param boolean $hasLinkClass has <a> the class attribute
1945
+ * @param string $url_query url query
1946
+ * @param object|boolean $primary primary if set, false otherwise
1947
+ * @param string $syntax Sql syntax
1948
+ * @param string $message message to show
1949
+ * @param string $action action
1950
+ * @param array $titles titles array
1951
+ * @param array $row current row
1952
+ * @param boolean $isPrimary is primary action
1953
+ *
1954
+ * @return string $html_output
1955
+ */
1956
+ function PMA_getHtmlForActionRowInStructureTable($type, $tbl_storage_engine,
1957
+ $class, $hasField, $hasLinkClass, $url_query, $primary, $syntax,
1958
+ $message, $action, $titles, $row, $isPrimary
1959
+ ) {
1960
+ $html_output = '<li class="' . $class . '">';
1961
+
1962
+ if ($type == 'text'
1963
+ || $type == 'blob'
1964
+ || 'ARCHIVE' == $tbl_storage_engine
1965
+ || $hasField
1966
+ ) {
1967
+ $html_output .= $titles['No' . $action];
1968
+ } else {
1969
+ $html_output .= '<a rel="samepage" class="ajax add_key';
1970
+ if ($hasLinkClass) {
1971
+ $html_output .= ' add_primary_key_anchor"';
1972
+ } else if ($action=='Index') {
1973
+ $html_output .= ' add_index_anchor"';
1974
+ } else if ($action=='Unique') {
1975
+ $html_output .= ' add_unique_anchor"';
1976
+ } else if ($action=='Spatial') {
1977
+ $html_output .= ' add_spatial_anchor"';
1978
+ } else {
1979
+ $html_output .= '"';
1980
+ }
1981
+ $html_output .= ' href="tbl_structure.php' . $url_query
1982
+ . '&amp;add_key=1&amp;sql_query='
1983
+ . urlencode(
1984
+ 'ALTER TABLE ' . PMA_Util::backquote($GLOBALS['table'])
1985
+ . ($isPrimary ? ($primary ? ' DROP PRIMARY KEY,' : '') : '')
1986
+ . ' ' . $syntax . '('
1987
+ . PMA_Util::backquote($row['Field']) . ');'
1988
+ )
1989
+ . '&amp;message_to_show=' . urlencode(
1990
+ sprintf(
1991
+ $message,
1992
+ htmlspecialchars($row['Field'])
1993
+ )
1994
+ ) . '" >'
1995
+ . $titles[$action] . '</a>';
1996
+ }
1997
+ $html_output .= '</li>';
1998
+
1999
+ return $html_output;
2000
+ }
2001
+
2002
+ /**
2003
+ * Get HTML for fulltext action
2004
+ *
2005
+ * @param string $tbl_storage_engine table storage engine
2006
+ * @param string $type column type
2007
+ * @param string $url_query url query
2008
+ * @param array $row current row
2009
+ * @param array $titles titles array
2010
+ *
2011
+ * @return string $html_output
2012
+ */
2013
+ function PMA_getHtmlForFullTextAction($tbl_storage_engine, $type, $url_query,
2014
+ $row, $titles
2015
+ ) {
2016
+ $html_output = '<li class="fulltext nowrap">';
2017
+ if (! empty($tbl_storage_engine)
2018
+ && ($tbl_storage_engine == 'MYISAM'
2019
+ || $tbl_storage_engine == 'ARIA'
2020
+ || $tbl_storage_engine == 'MARIA'
2021
+ || ($tbl_storage_engine == 'INNODB' && PMA_MYSQL_INT_VERSION >= 50604))
2022
+ && (/*overload*/mb_strpos($type, 'text') !== false
2023
+ || /*overload*/mb_strpos($type, 'char') !== false)
2024
+ ) {
2025
+ $html_output .= '<a rel="samepage" class="ajax add_key add_fulltext_anchor" '
2026
+ . 'href="tbl_structure.php' . $url_query
2027
+ . '&amp;add_key=1&amp;sql_query='
2028
+ . urlencode(
2029
+ 'ALTER TABLE ' . PMA_Util::backquote($GLOBALS['table'])
2030
+ . ' ADD FULLTEXT(' . PMA_Util::backquote($row['Field'])
2031
+ . ');'
2032
+ )
2033
+ . '&amp;message_to_show='
2034
+ . urlencode(
2035
+ sprintf(
2036
+ __('An index has been added on %s.'),
2037
+ htmlspecialchars($row['Field'])
2038
+ )
2039
+ )
2040
+ . '">';
2041
+ $html_output .= $titles['IdxFulltext'] . '</a>';
2042
+ } else {
2043
+ $html_output .= $titles['NoIdxFulltext'];
2044
+ }
2045
+ $html_output .= '</li>';
2046
+ return $html_output;
2047
+ }
2048
+
2049
+ /**
2050
+ * Get HTML snippet for "Distinc Value" action
2051
+ *
2052
+ * @param string $url_query url query
2053
+ * @param array $row current row
2054
+ * @param array $titles titles array
2055
+ *
2056
+ * @return string $html_output
2057
+ */
2058
+ function PMA_getHtmlForDistinctValueAction($url_query, $row, $titles)
2059
+ {
2060
+ $html_output = '<li class="browse nowrap">';
2061
+ $html_output .= '<a href="sql.php' . $url_query . '&amp;sql_query='
2062
+ . urlencode(
2063
+ 'SELECT COUNT(*) AS ' . PMA_Util::backquote(__('Rows'))
2064
+ . ', ' . PMA_Util::backquote($row['Field'])
2065
+ . ' FROM ' . PMA_Util::backquote($GLOBALS['table'])
2066
+ . ' GROUP BY ' . PMA_Util::backquote($row['Field'])
2067
+ . ' ORDER BY ' . PMA_Util::backquote($row['Field'])
2068
+ )
2069
+ . '&amp;is_browse_distinct=1">'
2070
+ . $titles['DistinctValues']
2071
+ . '</a>';
2072
+ $html_output .= '</li>';
2073
+
2074
+ return $html_output;
2075
+ }
2076
+
2077
+ /**
2078
+ * Get HTML snippet for Actions in table structure
2079
+ *
2080
+ * @param string $type column type
2081
+ * @param string $tbl_storage_engine table storage engine
2082
+ * @param object|boolean $primary primary if set,
2083
+ * false otherwise
2084
+ * @param string $field_name column name
2085
+ * @param string $url_query url query
2086
+ * @param array $titles titles array
2087
+ * @param array $row current row
2088
+ * @param string $rownum row number
2089
+ * @param array $columns_with_unique_index columns with unique index
2090
+ * @param boolean $isInCentralColumns set if column in central
2091
+ * columns list
2092
+ *
2093
+ * @return string $html_output;
2094
+ */
2095
+ function PMA_getHtmlForActionsInTableStructure($type, $tbl_storage_engine,
2096
+ $primary, $field_name, $url_query, $titles, $row, $rownum,
2097
+ $columns_with_unique_index, $isInCentralColumns
2098
+ ) {
2099
+ $html_output = '<td><ul class="table-structure-actions resizable-menu">';
2100
+ $html_output .= PMA_getHtmlForActionRowInStructureTable(
2101
+ $type, $tbl_storage_engine,
2102
+ 'primary nowrap',
2103
+ ($primary && $primary->hasColumn($field_name)),
2104
+ true, $url_query, $primary,
2105
+ 'ADD PRIMARY KEY',
2106
+ __('A primary key has been added on %s.'),
2107
+ 'Primary', $titles, $row, true
2108
+ );
2109
+ $html_output .= PMA_getHtmlForActionRowInStructureTable(
2110
+ $type, $tbl_storage_engine,
2111
+ 'add_unique unique nowrap',
2112
+ isset($columns_with_unique_index[$field_name]),
2113
+ false, $url_query, $primary, 'ADD UNIQUE',
2114
+ __('An index has been added on %s.'),
2115
+ 'Unique', $titles, $row, false
2116
+ );
2117
+ $html_output .= PMA_getHtmlForActionRowInStructureTable(
2118
+ $type, $tbl_storage_engine,
2119
+ 'add_index nowrap', false, false, $url_query,
2120
+ $primary, 'ADD INDEX', __('An index has been added on %s.'),
2121
+ 'Index', $titles, $row, false
2122
+ );
2123
+ if (!PMA_DRIZZLE) {
2124
+ $spatial_types = array(
2125
+ 'geometry', 'point', 'linestring', 'polygon', 'multipoint',
2126
+ 'multilinestring', 'multipolygon', 'geomtrycollection'
2127
+ );
2128
+ $html_output .= PMA_getHtmlForActionRowInStructureTable(
2129
+ $type, $tbl_storage_engine,
2130
+ 'spatial nowrap',
2131
+ (! in_array($type, $spatial_types)
2132
+ || 'MYISAM' != $tbl_storage_engine
2133
+ ),
2134
+ false, $url_query, $primary, 'ADD SPATIAL',
2135
+ __('An index has been added on %s.'), 'Spatial',
2136
+ $titles, $row, false
2137
+ );
2138
+
2139
+ // FULLTEXT is possible on TEXT, CHAR and VARCHAR
2140
+ $html_output .= PMA_getHtmlForFullTextAction(
2141
+ $tbl_storage_engine, $type, $url_query, $row, $titles
2142
+ );
2143
+ }
2144
+ $html_output .= PMA_getHtmlForDistinctValueAction($url_query, $row, $titles);
2145
+ if (isset($GLOBALS['cfgRelation']['central_columnswork'])
2146
+ && $GLOBALS['cfgRelation']['central_columnswork']
2147
+ ) {
2148
+ $html_output .= '<li class="browse nowrap">';
2149
+ if ($isInCentralColumns) {
2150
+ $html_output .=
2151
+ '<a href="#" onclick=$("input:checkbox").prop("checked",false);'
2152
+ . '$("#checkbox_row_' . $rownum . '").prop("checked",true);'
2153
+ . '$("button[value=remove_from_central_columns]").click();>'
2154
+ . PMA_Util::getIcon(
2155
+ 'centralColumns_delete.png',
2156
+ __('Remove from central columns')
2157
+ )
2158
+ . '</a>';
2159
+ } else {
2160
+ $html_output .=
2161
+ '<a href="#" onclick=$("input:checkbox").prop("checked",false);'
2162
+ . '$("#checkbox_row_' . $rownum . '").prop("checked",true);'
2163
+ . '$("button[value=add_to_central_columns]").click();>'
2164
+ . PMA_Util::getIcon(
2165
+ 'centralColumns_add.png',
2166
+ __('Add to central columns')
2167
+ )
2168
+ . '</a>';
2169
+ }
2170
+ $html_output .= '</li>';
2171
+ }
2172
+ $html_output .= '</ul></td>';
2173
+ return $html_output;
2174
+ }
2175
+
2176
+ /**
2177
+ * Get hidden action titles (image and string)
2178
+ *
2179
+ * @return array $hidden_titles
2180
+ */
2181
+ function PMA_getHiddenTitlesArray()
2182
+ {
2183
+ $hidden_titles = array();
2184
+ $hidden_titles['DistinctValues'] = PMA_Util::getIcon(
2185
+ 'b_browse.png', __('Distinct values'), true
2186
+ );
2187
+ $hidden_titles['Primary'] = PMA_Util::getIcon(
2188
+ 'b_primary.png', __('Add primary key'), true
2189
+ );
2190
+ $hidden_titles['NoPrimary'] = PMA_Util::getIcon(
2191
+ 'bd_primary.png', __('Add primary key'), true
2192
+ );
2193
+ $hidden_titles['Index'] = PMA_Util::getIcon(
2194
+ 'b_index.png', __('Add index'), true
2195
+ );
2196
+ $hidden_titles['NoIndex'] = PMA_Util::getIcon(
2197
+ 'bd_index.png', __('Add index'), true
2198
+ );
2199
+ $hidden_titles['Unique'] = PMA_Util::getIcon(
2200
+ 'b_unique.png', __('Add unique index'), true
2201
+ );
2202
+ $hidden_titles['NoUnique'] = PMA_Util::getIcon(
2203
+ 'bd_unique.png', __('Add unique index'), true
2204
+ );
2205
+ $hidden_titles['Spatial'] = PMA_Util::getIcon(
2206
+ 'b_spatial.png', __('Add SPATIAL index'), true
2207
+ );
2208
+ $hidden_titles['NoSpatial'] = PMA_Util::getIcon(
2209
+ 'bd_spatial.png', __('Add SPATIAL index'), true
2210
+ );
2211
+ $hidden_titles['IdxFulltext'] = PMA_Util::getIcon(
2212
+ 'b_ftext.png', __('Add FULLTEXT index'), true
2213
+ );
2214
+ $hidden_titles['NoIdxFulltext'] = PMA_Util::getIcon(
2215
+ 'bd_ftext.png', __('Add FULLTEXT index'), true
2216
+ );
2217
+
2218
+ return $hidden_titles;
2219
+ }
2220
+
2221
+ /**
2222
+ * Get action titles (image or string array
2223
+ *
2224
+ * @return array $titles
2225
+ */
2226
+ function PMA_getActionTitlesArray()
2227
+ {
2228
+ $titles = array();
2229
+ $titles['Change']
2230
+ = PMA_Util::getIcon('b_edit.png', __('Change'));
2231
+ $titles['Drop']
2232
+ = PMA_Util::getIcon('b_drop.png', __('Drop'));
2233
+ $titles['NoDrop']
2234
+ = PMA_Util::getIcon('b_drop.png', __('Drop'));
2235
+ $titles['Primary']
2236
+ = PMA_Util::getIcon('b_primary.png', __('Primary'));
2237
+ $titles['Index']
2238
+ = PMA_Util::getIcon('b_index.png', __('Index'));
2239
+ $titles['Unique']
2240
+ = PMA_Util::getIcon('b_unique.png', __('Unique'));
2241
+ $titles['Spatial']
2242
+ = PMA_Util::getIcon('b_spatial.png', __('Spatial'));
2243
+ $titles['IdxFulltext']
2244
+ = PMA_Util::getIcon('b_ftext.png', __('Fulltext'));
2245
+ $titles['NoPrimary']
2246
+ = PMA_Util::getIcon('bd_primary.png', __('Primary'));
2247
+ $titles['NoIndex']
2248
+ = PMA_Util::getIcon('bd_index.png', __('Index'));
2249
+ $titles['NoUnique']
2250
+ = PMA_Util::getIcon('bd_unique.png', __('Unique'));
2251
+ $titles['NoSpatial']
2252
+ = PMA_Util::getIcon('bd_spatial.png', __('Spatial'));
2253
+ $titles['NoIdxFulltext']
2254
+ = PMA_Util::getIcon('bd_ftext.png', __('Fulltext'));
2255
+ $titles['DistinctValues']
2256
+ = PMA_Util::getIcon('b_browse.png', __('Distinct values'));
2257
+
2258
+ return $titles;
2259
+ }
2260
+
2261
+ /**
2262
+ * Get HTML snippet for display table statistics
2263
+ *
2264
+ * @param array $showtable full table status info
2265
+ * @param integer $table_info_num_rows table info number of rows
2266
+ * @param boolean $tbl_is_view whether table is view or not
2267
+ * @param boolean $db_is_system_schema whether db is information schema or not
2268
+ * @param string $tbl_storage_engine table storage engine
2269
+ * @param string $url_query url query
2270
+ * @param string $tbl_collation table collation
2271
+ *
2272
+ * @return string $html_output
2273
+ */
2274
+ function PMA_getHtmlForDisplayTableStats($showtable, $table_info_num_rows,
2275
+ $tbl_is_view, $db_is_system_schema, $tbl_storage_engine, $url_query,
2276
+ $tbl_collation
2277
+ ) {
2278
+ $html_output = '<div id="tablestatistics">';
2279
+ if (empty($showtable)) {
2280
+ $showtable = PMA_Table::sGetStatusInfo(
2281
+ $GLOBALS['db'], $GLOBALS['table'], null, true
2282
+ );
2283
+ }
2284
+
2285
+ if (empty($showtable['Data_length'])) {
2286
+ $showtable['Data_length'] = 0;
2287
+ }
2288
+ if (empty($showtable['Index_length'])) {
2289
+ $showtable['Index_length'] = 0;
2290
+ }
2291
+
2292
+ $is_innodb = (isset($showtable['Type']) && $showtable['Type'] == 'InnoDB');
2293
+
2294
+ // Gets some sizes
2295
+
2296
+ $mergetable = PMA_Table::isMerge($GLOBALS['db'], $GLOBALS['table']);
2297
+
2298
+ // this is to display for example 261.2 MiB instead of 268k KiB
2299
+ $max_digits = 3;
2300
+ $decimals = 1;
2301
+ list($data_size, $data_unit) = PMA_Util::formatByteDown(
2302
+ $showtable['Data_length'], $max_digits, $decimals
2303
+ );
2304
+ if ($mergetable == false) {
2305
+ list($index_size, $index_unit) = PMA_Util::formatByteDown(
2306
+ $showtable['Index_length'], $max_digits, $decimals
2307
+ );
2308
+ }
2309
+ // InnoDB returns a huge value in Data_free, do not use it
2310
+ if (! $is_innodb
2311
+ && isset($showtable['Data_free'])
2312
+ && $showtable['Data_free'] > 0
2313
+ ) {
2314
+ list($free_size, $free_unit) = PMA_Util::formatByteDown(
2315
+ $showtable['Data_free'], $max_digits, $decimals
2316
+ );
2317
+ list($effect_size, $effect_unit) = PMA_Util::formatByteDown(
2318
+ $showtable['Data_length'] + $showtable['Index_length']
2319
+ - $showtable['Data_free'],
2320
+ $max_digits, $decimals
2321
+ );
2322
+ } else {
2323
+ list($effect_size, $effect_unit) = PMA_Util::formatByteDown(
2324
+ $showtable['Data_length'] + $showtable['Index_length'],
2325
+ $max_digits, $decimals
2326
+ );
2327
+ }
2328
+ list($tot_size, $tot_unit) = PMA_Util::formatByteDown(
2329
+ $showtable['Data_length'] + $showtable['Index_length'],
2330
+ $max_digits, $decimals
2331
+ );
2332
+ if ($table_info_num_rows > 0) {
2333
+ list($avg_size, $avg_unit) = PMA_Util::formatByteDown(
2334
+ ($showtable['Data_length'] + $showtable['Index_length'])
2335
+ / $showtable['Rows'],
2336
+ 6, 1
2337
+ );
2338
+ }
2339
+
2340
+ // Displays them
2341
+ $odd_row = false;
2342
+
2343
+ $html_output .= '<fieldset>'
2344
+ . '<legend>' . __('Information') . '</legend>'
2345
+ . '<a id="showusage"></a>';
2346
+
2347
+ if (! $tbl_is_view && ! $db_is_system_schema) {
2348
+ $html_output .= '<table id="tablespaceusage" class="data">'
2349
+ . '<caption class="tblHeaders">' . __('Space usage') . '</caption>'
2350
+ . '<tbody>';
2351
+
2352
+ $html_output .= PMA_getHtmlForSpaceUsageTableRow(
2353
+ $odd_row, __('Data'), $data_size, $data_unit
2354
+ );
2355
+ $odd_row = !$odd_row;
2356
+
2357
+ if (isset($index_size)) {
2358
+ $html_output .= PMA_getHtmlForSpaceUsageTableRow(
2359
+ $odd_row, __('Index'), $index_size, $index_unit
2360
+ );
2361
+ $odd_row = !$odd_row;
2362
+ }
2363
+
2364
+ if (isset($free_size)) {
2365
+ $html_output .= PMA_getHtmlForSpaceUsageTableRow(
2366
+ $odd_row, __('Overhead'), $free_size, $free_unit
2367
+ );
2368
+ $html_output .= PMA_getHtmlForSpaceUsageTableRow(
2369
+ $odd_row, __('Effective'), $effect_size, $effect_unit
2370
+ );
2371
+ $odd_row = !$odd_row;
2372
+ }
2373
+ if (isset($tot_size) && $mergetable == false) {
2374
+ $html_output .= PMA_getHtmlForSpaceUsageTableRow(
2375
+ $odd_row, __('Total'), $tot_size, $tot_unit
2376
+ );
2377
+ }
2378
+ // Optimize link if overhead
2379
+ if (isset($free_size) && !PMA_DRIZZLE
2380
+ && ($tbl_storage_engine == 'MYISAM'
2381
+ || $tbl_storage_engine == 'ARIA'
2382
+ || $tbl_storage_engine == 'MARIA'
2383
+ || $tbl_storage_engine == 'BDB')
2384
+ ) {
2385
+ $html_output .= PMA_getHtmlForOptimizeLink($url_query);
2386
+ }
2387
+ $html_output .= '</tbody>'
2388
+ . '</table>';
2389
+ }
2390
+
2391
+ $html_output .= getHtmlForRowStatsTable(
2392
+ $showtable, $tbl_collation,
2393
+ $is_innodb, $mergetable,
2394
+ (isset ($avg_size) ? $avg_size : ''),
2395
+ (isset ($avg_unit) ? $avg_unit : '')
2396
+ );
2397
+
2398
+ $html_output .= '</fieldset>'
2399
+ . '</div>';
2400
+
2401
+ return $html_output;
2402
+ }
2403
+
2404
+ /**
2405
+ * Displays HTML for changing one or more columns
2406
+ *
2407
+ * @param string $db database name
2408
+ * @param string $table table name
2409
+ * @param array $selected the selected columns
2410
+ * @param string $action target script to call
2411
+ *
2412
+ * @return boolean $regenerate true if error occurred
2413
+ *
2414
+ */
2415
+ function PMA_displayHtmlForColumnChange($db, $table, $selected, $action)
2416
+ {
2417
+ // $selected comes from mult_submits.inc.php
2418
+ if (empty($selected)) {
2419
+ $selected[] = $_REQUEST['field'];
2420
+ $selected_cnt = 1;
2421
+ } else { // from a multiple submit
2422
+ $selected_cnt = count($selected);
2423
+ }
2424
+
2425
+ /**
2426
+ * @todo optimize in case of multiple fields to modify
2427
+ */
2428
+ $fields_meta = array();
2429
+ for ($i = 0; $i < $selected_cnt; $i++) {
2430
+ $fields_meta[] = $GLOBALS['dbi']->getColumns(
2431
+ $db, $table, $selected[$i], true
2432
+ );
2433
+ }
2434
+ $num_fields = count($fields_meta);
2435
+ // set these globals because tbl_columns_definition_form.inc.php
2436
+ // verifies them
2437
+ // @todo: refactor tbl_columns_definition_form.inc.php so that it uses
2438
+ // function params
2439
+ $GLOBALS['action'] = 'tbl_structure.php';
2440
+ $GLOBALS['num_fields'] = $num_fields;
2441
+
2442
+ // Get more complete field information.
2443
+ // For now, this is done to obtain MySQL 4.1.2+ new TIMESTAMP options
2444
+ // and to know when there is an empty DEFAULT value.
2445
+ // Later, if the analyser returns more information, it
2446
+ // could be executed to replace the info given by SHOW FULL COLUMNS FROM.
2447
+ /**
2448
+ * @todo put this code into a require()
2449
+ * or maybe make it part of $GLOBALS['dbi']->getColumns();
2450
+ */
2451
+
2452
+ // We also need this to correctly learn if a TIMESTAMP is NOT NULL, since
2453
+ // SHOW FULL COLUMNS says NULL and SHOW CREATE TABLE says NOT NULL (tested
2454
+ // in MySQL 4.0.25).
2455
+
2456
+ $show_create_table = $GLOBALS['dbi']->fetchValue(
2457
+ 'SHOW CREATE TABLE ' . PMA_Util::backquote($db) . '.'
2458
+ . PMA_Util::backquote($table),
2459
+ 0, 1
2460
+ );
2461
+ $analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
2462
+ unset($show_create_table);
2463
+ /**
2464
+ * Form for changing properties.
2465
+ */
2466
+ include 'libraries/tbl_columns_definition_form.inc.php';
2467
+ }
2468
+
2469
+ /**
2470
+ * Verifies if some elements of a column have changed
2471
+ *
2472
+ * @param integer $i column index in the request
2473
+ *
2474
+ * @return boolean $alterTableNeeded true if we need to generate ALTER TABLE
2475
+ *
2476
+ */
2477
+ function PMA_columnNeedsAlterTable($i)
2478
+ {
2479
+ // these two fields are checkboxes so might not be part of the
2480
+ // request; therefore we define them to avoid notices below
2481
+ if (! isset($_REQUEST['field_null'][$i])) {
2482
+ $_REQUEST['field_null'][$i] = 'NO';
2483
+ }
2484
+ if (! isset($_REQUEST['field_extra'][$i])) {
2485
+ $_REQUEST['field_extra'][$i] = '';
2486
+ }
2487
+
2488
+ // field_name does not follow the convention (corresponds to field_orig)
2489
+ if ($_REQUEST['field_attribute'][$i] != $_REQUEST['field_attribute_orig'][$i]
2490
+ || $_REQUEST['field_collation'][$i] != $_REQUEST['field_collation_orig'][$i]
2491
+ || $_REQUEST['field_comments'][$i] != $_REQUEST['field_comments_orig'][$i]
2492
+ || $_REQUEST['field_default_value'][$i] != $_REQUEST['field_default_value_orig'][$i]
2493
+ || $_REQUEST['field_default_type'][$i] != $_REQUEST['field_default_type_orig'][$i]
2494
+ || $_REQUEST['field_extra'][$i] != $_REQUEST['field_extra_orig'][$i]
2495
+ || $_REQUEST['field_length'][$i] != $_REQUEST['field_length_orig'][$i]
2496
+ || $_REQUEST['field_name'][$i] != $_REQUEST['field_orig'][$i]
2497
+ || $_REQUEST['field_null'][$i] != $_REQUEST['field_null_orig'][$i]
2498
+ || $_REQUEST['field_type'][$i] != $_REQUEST['field_type_orig'][$i]
2499
+ || ! empty($_REQUEST['field_move_to'][$i])
2500
+ ) {
2501
+ return true;
2502
+ } else {
2503
+ return false;
2504
+ }
2505
+ }
2506
+
2507
+ /**
2508
+ * Update the table's structure based on $_REQUEST
2509
+ *
2510
+ * @param string $db database name
2511
+ * @param string $table table name
2512
+ *
2513
+ * @return boolean $regenerate true if error occurred
2514
+ *
2515
+ */
2516
+ function PMA_updateColumns($db, $table)
2517
+ {
2518
+ $err_url = 'tbl_structure.php' . PMA_URL_getCommon(
2519
+ array(
2520
+ 'db' => $db, 'table' => $table
2521
+ )
2522
+ );
2523
+ $regenerate = false;
2524
+ $field_cnt = count($_REQUEST['field_name']);
2525
+ $changes = array();
2526
+ $pmatable = new PMA_Table($table, $db);
2527
+
2528
+ for ($i = 0; $i < $field_cnt; $i++) {
2529
+ if (PMA_columnNeedsAlterTable($i)) {
2530
+ $changes[] = 'CHANGE ' . PMA_Table::generateAlter(
2531
+ isset($_REQUEST['field_orig'][$i])
2532
+ ? $_REQUEST['field_orig'][$i]
2533
+ : '',
2534
+ $_REQUEST['field_name'][$i],
2535
+ $_REQUEST['field_type'][$i],
2536
+ $_REQUEST['field_length'][$i],
2537
+ $_REQUEST['field_attribute'][$i],
2538
+ isset($_REQUEST['field_collation'][$i])
2539
+ ? $_REQUEST['field_collation'][$i]
2540
+ : '',
2541
+ isset($_REQUEST['field_null'][$i])
2542
+ ? $_REQUEST['field_null'][$i]
2543
+ : 'NOT NULL',
2544
+ $_REQUEST['field_default_type'][$i],
2545
+ $_REQUEST['field_default_value'][$i],
2546
+ isset($_REQUEST['field_extra'][$i])
2547
+ ? $_REQUEST['field_extra'][$i]
2548
+ : false,
2549
+ isset($_REQUEST['field_comments'][$i])
2550
+ ? $_REQUEST['field_comments'][$i]
2551
+ : '',
2552
+ isset($_REQUEST['field_move_to'][$i])
2553
+ ? $_REQUEST['field_move_to'][$i]
2554
+ : ''
2555
+ );
2556
+
2557
+ // find the remembered sort expression
2558
+ $sorted_col = $pmatable->getUiProp(PMA_Table::PROP_SORTED_COLUMN);
2559
+ // if the old column name is part of the remembered sort expression
2560
+ if (/*overload*/mb_strpos(
2561
+ $sorted_col,
2562
+ PMA_Util::backquote($_REQUEST['field_orig'][$i])
2563
+ ) !== false) {
2564
+ // delete the whole remembered sort expression
2565
+ $pmatable->removeUiProp(PMA_Table::PROP_SORTED_COLUMN);
2566
+ }
2567
+
2568
+ }
2569
+ } // end for
2570
+
2571
+ $response = PMA_Response::getInstance();
2572
+
2573
+ if (count($changes) > 0 || isset($_REQUEST['preview_sql'])) {
2574
+ // Builds the primary keys statements and updates the table
2575
+ $key_query = '';
2576
+ /**
2577
+ * this is a little bit more complex
2578
+ *
2579
+ * @todo if someone selects A_I when altering a column we need to check:
2580
+ * - no other column with A_I
2581
+ * - the column has an index, if not create one
2582
+ *
2583
+ */
2584
+
2585
+ // To allow replication, we first select the db to use
2586
+ // and then run queries on this db.
2587
+ if (! $GLOBALS['dbi']->selectDb($db)) {
2588
+ PMA_Util::mysqlDie(
2589
+ $GLOBALS['dbi']->getError(),
2590
+ 'USE ' . PMA_Util::backquote($db) . ';',
2591
+ false,
2592
+ $err_url
2593
+ );
2594
+ }
2595
+ $sql_query = 'ALTER TABLE ' . PMA_Util::backquote($table) . ' ';
2596
+ $sql_query .= implode(', ', $changes) . $key_query;
2597
+ $sql_query .= ';';
2598
+
2599
+ // If there is a request for SQL previewing.
2600
+ if (isset($_REQUEST['preview_sql'])) {
2601
+ PMA_previewSQL(count($changes) > 0 ? $sql_query : '');
2602
+ }
2603
+
2604
+ $result = $GLOBALS['dbi']->tryQuery($sql_query);
2605
+
2606
+ if ($result !== false) {
2607
+ $message = PMA_Message::success(
2608
+ __('Table %1$s has been altered successfully.')
2609
+ );
2610
+ $message->addParam($table);
2611
+
2612
+ $response->addHTML(
2613
+ PMA_Util::getMessage($message, $sql_query, 'success')
2614
+ );
2615
+ } else {
2616
+ // An error happened while inserting/updating a table definition
2617
+ $response->isSuccess(false);
2618
+ $response->addJSON(
2619
+ 'message',
2620
+ PMA_Message::rawError(
2621
+ __('Query error') . ':<br />' . $GLOBALS['dbi']->getError()
2622
+ )
2623
+ );
2624
+ $regenerate = true;
2625
+ }
2626
+ }
2627
+
2628
+ include_once 'libraries/transformations.lib.php';
2629
+
2630
+ // update field names in relation
2631
+ if (isset($_REQUEST['field_orig']) && is_array($_REQUEST['field_orig'])) {
2632
+ foreach ($_REQUEST['field_orig'] as $fieldindex => $fieldcontent) {
2633
+ if ($_REQUEST['field_name'][$fieldindex] != $fieldcontent) {
2634
+ PMA_REL_renameField(
2635
+ $db, $table, $fieldcontent,
2636
+ $_REQUEST['field_name'][$fieldindex]
2637
+ );
2638
+ }
2639
+ }
2640
+ }
2641
+
2642
+ // update mime types
2643
+ if (isset($_REQUEST['field_mimetype'])
2644
+ && is_array($_REQUEST['field_mimetype'])
2645
+ && $GLOBALS['cfg']['BrowseMIME']
2646
+ ) {
2647
+ foreach ($_REQUEST['field_mimetype'] as $fieldindex => $mimetype) {
2648
+ if (isset($_REQUEST['field_name'][$fieldindex])
2649
+ && /*overload*/mb_strlen(
2650
+ $_REQUEST['field_name'][$fieldindex]
2651
+ )
2652
+ ) {
2653
+ PMA_setMIME(
2654
+ $db, $table, $_REQUEST['field_name'][$fieldindex],
2655
+ $mimetype,
2656
+ $_REQUEST['field_transformation'][$fieldindex],
2657
+ $_REQUEST['field_transformation_options'][$fieldindex],
2658
+ $_REQUEST['field_input_transformation'][$fieldindex],
2659
+ $_REQUEST['field_input_transformation_options'][$fieldindex]
2660
+ );
2661
+ }
2662
+ }
2663
+ }
2664
+ return $regenerate;
2665
+ }
2666
+
2667
+ /**
2668
+ * Moves columns in the table's structure based on $_REQUEST
2669
+ *
2670
+ * @param string $db database name
2671
+ * @param string $table table name
2672
+ *
2673
+ * @return void
2674
+ */
2675
+ function PMA_moveColumns($db, $table)
2676
+ {
2677
+ $GLOBALS['dbi']->selectDb($db);
2678
+
2679
+ /*
2680
+ * load the definitions for all columns
2681
+ */
2682
+ $columns = $GLOBALS['dbi']->getColumnsFull($db, $table);
2683
+ $column_names = array_keys($columns);
2684
+ $changes = array();
2685
+
2686
+ // move columns from first to last
2687
+ for ($i = 0, $l = count($_REQUEST['move_columns']); $i < $l; $i++) {
2688
+ $column = $_REQUEST['move_columns'][$i];
2689
+ // is this column already correctly placed?
2690
+ if ($column_names[$i] == $column) {
2691
+ continue;
2692
+ }
2693
+
2694
+ // it is not, let's move it to index $i
2695
+ $data = $columns[$column];
2696
+ $extracted_columnspec = PMA_Util::extractColumnSpec($data['Type']);
2697
+ if (isset($data['Extra'])
2698
+ && $data['Extra'] == 'on update CURRENT_TIMESTAMP'
2699
+ ) {
2700
+ $extracted_columnspec['attribute'] = $data['Extra'];
2701
+ unset($data['Extra']);
2702
+ }
2703
+ $current_timestamp = false;
2704
+ if (($data['Type'] == 'timestamp' || $data['Type'] == 'datetime')
2705
+ && $data['Default'] == 'CURRENT_TIMESTAMP'
2706
+ ) {
2707
+ $current_timestamp = true;
2708
+ }
2709
+ $default_type
2710
+ = $data['Null'] === 'YES' && $data['Default'] === null
2711
+ ? 'NULL'
2712
+ : ($current_timestamp
2713
+ ? 'CURRENT_TIMESTAMP'
2714
+ : ($data['Default'] === null
2715
+ ? 'NONE'
2716
+ : 'USER_DEFINED'));
2717
+
2718
+ $changes[] = 'CHANGE ' . PMA_Table::generateAlter(
2719
+ $column,
2720
+ $column,
2721
+ /*overload*/mb_strtoupper($extracted_columnspec['type']),
2722
+ $extracted_columnspec['spec_in_brackets'],
2723
+ $extracted_columnspec['attribute'],
2724
+ isset($data['Collation']) ? $data['Collation'] : '',
2725
+ $data['Null'] === 'YES' ? 'NULL' : 'NOT NULL',
2726
+ $default_type,
2727
+ $current_timestamp ? '' : $data['Default'],
2728
+ isset($data['Extra']) && $data['Extra'] !== '' ? $data['Extra'] : false,
2729
+ isset($data['COLUMN_COMMENT']) && $data['COLUMN_COMMENT'] !== ''
2730
+ ? $data['COLUMN_COMMENT'] : false,
2731
+ $i === 0 ? '-first' : $column_names[$i - 1]
2732
+ );
2733
+ // update current column_names array, first delete old position
2734
+ for ($j = 0, $ll = count($column_names); $j < $ll; $j++) {
2735
+ if ($column_names[$j] == $column) {
2736
+ unset($column_names[$j]);
2737
+ }
2738
+ }
2739
+ // insert moved column
2740
+ array_splice($column_names, $i, 0, $column);
2741
+ }
2742
+ $response = PMA_Response::getInstance();
2743
+ if (empty($changes)) { // should never happen
2744
+ $response->isSuccess(false);
2745
+ exit;
2746
+ }
2747
+ $move_query = 'ALTER TABLE ' . PMA_Util::backquote($table) . ' ';
2748
+ $move_query .= implode(', ', $changes);
2749
+ // move columns
2750
+ $GLOBALS['dbi']->tryQuery($move_query);
2751
+ $tmp_error = $GLOBALS['dbi']->getError();
2752
+ if ($tmp_error) {
2753
+ $response->isSuccess(false);
2754
+ $response->addJSON('message', PMA_Message::error($tmp_error));
2755
+ } else {
2756
+ $message = PMA_Message::success(
2757
+ __('The columns have been moved successfully.')
2758
+ );
2759
+ $response->addJSON('message', $message);
2760
+ $response->addJSON('columns', $column_names);
2761
+ }
2762
+ exit;
2763
+ }
2764
+
2765
+ /**
2766
+ * Get columns with unique index
2767
+ *
2768
+ * @param string $db database name
2769
+ * @param string $table tablename
2770
+ *
2771
+ * @return array $columns_with_unique_index An array of columns with unique index,
2772
+ * with $column name as the array key
2773
+ */
2774
+ function PMA_getColumnsWithUniqueIndex($db ,$table)
2775
+ {
2776
+ $columns_with_unique_index = array();
2777
+ foreach (PMA_Index::getFromTable($table, $db) as $index) {
2778
+ if ($index->isUnique() && $index->getChoice() == 'UNIQUE') {
2779
+ $columns = $index->getColumns();
2780
+ foreach ($columns as $column_name => $dummy) {
2781
+ $columns_with_unique_index[$column_name] = 1;
2782
+ }
2783
+ }
2784
+ }
2785
+ return $columns_with_unique_index;
2786
+ }
2787
+
2788
+ /**
2789
+ * Function to get the type of command for multiple field handling
2790
+ *
2791
+ * @return string
2792
+ */
2793
+ function PMA_getMultipleFieldCommandType()
2794
+ {
2795
+ $submit_mult = null;
2796
+
2797
+ if (isset($_REQUEST['submit_mult_change_x'])) {
2798
+ $submit_mult = 'change';
2799
+ } elseif (isset($_REQUEST['submit_mult_drop_x'])) {
2800
+ $submit_mult = 'drop';
2801
+ } elseif (isset($_REQUEST['submit_mult_primary_x'])) {
2802
+ $submit_mult = 'primary';
2803
+ } elseif (isset($_REQUEST['submit_mult_index_x'])) {
2804
+ $submit_mult = 'index';
2805
+ } elseif (isset($_REQUEST['submit_mult_unique_x'])) {
2806
+ $submit_mult = 'unique';
2807
+ } elseif (isset($_REQUEST['submit_mult_spatial_x'])) {
2808
+ $submit_mult = 'spatial';
2809
+ } elseif (isset($_REQUEST['submit_mult_fulltext_x'])) {
2810
+ $submit_mult = 'ftext';
2811
+ } elseif (isset($_REQUEST['submit_mult_browse_x'])) {
2812
+ $submit_mult = 'browse';
2813
+ } elseif (isset($_REQUEST['submit_mult'])) {
2814
+ $submit_mult = $_REQUEST['submit_mult'];
2815
+ } elseif (isset($_REQUEST['mult_btn']) && $_REQUEST['mult_btn'] == __('Yes')) {
2816
+ $submit_mult = 'row_delete';
2817
+ if (isset($_REQUEST['selected'])) {
2818
+ $_REQUEST['selected_fld'] = $_REQUEST['selected'];
2819
+ }
2820
+ }
2821
+
2822
+ return $submit_mult;
2823
+ }
2824
+
2825
+ /**
2826
+ * Function to display table browse for selected columns
2827
+ *
2828
+ * @param string $db current database
2829
+ * @param string $table current table
2830
+ * @param string $goto goto page url
2831
+ * @param string $pmaThemeImage URI of the pma theme image
2832
+ *
2833
+ * @return void
2834
+ */
2835
+ function PMA_displayTableBrowseForSelectedColumns($db, $table, $goto,
2836
+ $pmaThemeImage
2837
+ ) {
2838
+ $GLOBALS['active_page'] = 'sql.php';
2839
+ $sql_query = '';
2840
+ foreach ($_REQUEST['selected_fld'] as $sval) {
2841
+ if ($sql_query == '') {
2842
+ $sql_query .= 'SELECT ' . PMA_Util::backquote($sval);
2843
+ } else {
2844
+ $sql_query .= ', ' . PMA_Util::backquote($sval);
2845
+ }
2846
+ }
2847
+ $sql_query .= ' FROM ' . PMA_Util::backquote($db)
2848
+ . '.' . PMA_Util::backquote($table);
2849
+
2850
+ // Parse and analyze the query
2851
+ include_once 'libraries/parse_analyze.inc.php';
2852
+
2853
+ include_once 'libraries/sql.lib.php';
2854
+
2855
+ PMA_executeQueryAndSendQueryResponse(
2856
+ $analyzed_sql_results, false, $db, $table, null, null, null, false,
2857
+ null, null, null, $goto, $pmaThemeImage, null, null,
2858
+ null, $sql_query, null, null
2859
+ );
2860
+ }
2861
+
2862
+ /**
2863
+ * Function to check if a table is already in favorite list.
2864
+ *
2865
+ * @param string $db current database
2866
+ * @param string $current_table current table
2867
+ *
2868
+ * @return true|false
2869
+ */
2870
+ function PMA_checkFavoriteTable($db, $current_table)
2871
+ {
2872
+ foreach (
2873
+ $_SESSION['tmpval']['favorite_tables'][$GLOBALS['server']] as $key => $value
2874
+ ) {
2875
+ if ($value['db'] == $db && $value['table'] == $current_table) {
2876
+ return true;
2877
+ }
2878
+ }
2879
+ return false;
2880
+ }
2881
+
2882
+ /**
2883
+ * Get HTML for favorite anchor.
2884
+ *
2885
+ * @param string $db current database
2886
+ * @param array $current_table current table
2887
+ * @param array $titles titles
2888
+ *
2889
+ * @return string The html output
2890
+ */
2891
+ function PMA_getHtmlForFavoriteAnchor($db, $current_table, $titles)
2892
+ {
2893
+ $html_output = '<a ';
2894
+ $html_output .= 'id="' . md5($current_table['TABLE_NAME'])
2895
+ . '_favorite_anchor" ';
2896
+ $html_output .= 'class="ajax favorite_table_anchor';
2897
+
2898
+ // Check if current table is already in favorite list.
2899
+ $already_favorite = PMA_checkFavoriteTable($db, $current_table['TABLE_NAME']);
2900
+ $fav_params = array('db' => $db,
2901
+ 'ajax_request' => true,
2902
+ 'favorite_table' => $current_table['TABLE_NAME'],
2903
+ (($already_favorite?'remove':'add') . '_favorite') => true
2904
+ );
2905
+ $fav_url = 'db_structure.php' . PMA_URL_getCommon($fav_params);
2906
+ $html_output .= '" ';
2907
+ $html_output .= 'href="' . $fav_url
2908
+ . '" title="' . ($already_favorite ? __("Remove from Favorites")
2909
+ : __("Add to Favorites"))
2910
+ . '" data-favtargets="'
2911
+ . md5($db . "." . $current_table['TABLE_NAME'])
2912
+ . '" >'
2913
+ . (!$already_favorite ? $titles['NoFavorite']
2914
+ : $titles['Favorite']) . '</a>';
2915
+
2916
+ return $html_output;
2917
+ }
2918
+
2919
+ /**
2920
+ * Add or remove favorite tables
2921
+ *
2922
+ * @param string $db current database
2923
+ *
2924
+ * @return void
2925
+ */
2926
+ function PMA_addRemoveFavoriteTables($db)
2927
+ {
2928
+ $fav_instance = PMA_RecentFavoriteTable::getInstance('favorite');
2929
+ if (isset($_REQUEST['favorite_tables'])) {
2930
+ $favorite_tables = json_decode($_REQUEST['favorite_tables'], true);
2931
+ } else {
2932
+ $favorite_tables = array();
2933
+ }
2934
+ // Required to keep each user's preferences separate.
2935
+ $user = sha1($GLOBALS['cfg']['Server']['user']);
2936
+
2937
+ // Request for Synchronization of favorite tables.
2938
+ if (isset($_REQUEST['sync_favorite_tables'])) {
2939
+ PMA_synchronizeFavoriteTables($fav_instance, $user, $favorite_tables);
2940
+ exit;
2941
+ }
2942
+ $changes = true;
2943
+ $msg = '';
2944
+ $titles = PMA_Util::buildActionTitles();
2945
+ $favorite_table = $_REQUEST['favorite_table'];
2946
+ $already_favorite = PMA_checkFavoriteTable($db, $favorite_table);
2947
+
2948
+ if (isset($_REQUEST['remove_favorite'])) {
2949
+ if ($already_favorite) {
2950
+ // If already in favorite list, remove it.
2951
+ $fav_instance->remove($db, $favorite_table);
2952
+ }
2953
+ } elseif (isset($_REQUEST['add_favorite'])) {
2954
+ if (!$already_favorite) {
2955
+ if (count($fav_instance->getTables()) == $GLOBALS['cfg']['NumFavoriteTables']) {
2956
+ $changes = false;
2957
+ $msg = '<div class="error"><img src="themes/dot.gif" '
2958
+ . 'title="" alt="" class="icon ic_s_error" />'
2959
+ . __("Favorite List is full!")
2960
+ . '</div>';
2961
+ } else {
2962
+ // Otherwise add to favorite list.
2963
+ $fav_instance->add($db, $favorite_table);
2964
+ }
2965
+ }
2966
+ }
2967
+
2968
+ $favorite_tables[$user] = $fav_instance->getTables();
2969
+ $ajax_response = PMA_Response::getInstance();
2970
+ $ajax_response->addJSON(
2971
+ 'changes',
2972
+ $changes
2973
+ );
2974
+ if ($changes) {
2975
+ $ajax_response->addJSON(
2976
+ 'user',
2977
+ $user
2978
+ );
2979
+ $ajax_response->addJSON(
2980
+ 'favorite_tables',
2981
+ json_encode($favorite_tables)
2982
+ );
2983
+ $ajax_response->addJSON(
2984
+ 'list',
2985
+ $fav_instance->getHtmlList()
2986
+ );
2987
+ $ajax_response->addJSON(
2988
+ 'anchor',
2989
+ PMA_getHtmlForFavoriteAnchor(
2990
+ $db, array('TABLE_NAME' => $favorite_table), $titles
2991
+ )
2992
+ );
2993
+ } else {
2994
+ $ajax_response->addJSON(
2995
+ 'message',
2996
+ $msg
2997
+ );
2998
+ }
2999
+ }
3000
+
3001
+ /**
3002
+ * Synchronize favorite tables
3003
+ *
3004
+ * @param PMA_RecentFavoriteTable $fav_instance Instance of this class
3005
+ * @param string $user The user hash
3006
+ * @param array $favorite_tables Existing favorites
3007
+ *
3008
+ * @return void
3009
+ */
3010
+ function PMA_synchronizeFavoriteTables($fav_instance, $user, $favorite_tables)
3011
+ {
3012
+ $fav_instance_tables = $fav_instance->getTables();
3013
+
3014
+ if (empty($fav_instance_tables)
3015
+ && isset($favorite_tables[$user])
3016
+ ) {
3017
+ foreach ($favorite_tables[$user] as $key => $value) {
3018
+ $fav_instance->add($value['db'], $value['table']);
3019
+ }
3020
+ }
3021
+ $favorite_tables[$user] = $fav_instance->getTables();
3022
+
3023
+ $ajax_response = PMA_Response::getInstance();
3024
+ $ajax_response->addJSON(
3025
+ 'favorite_tables',
3026
+ json_encode($favorite_tables)
3027
+ );
3028
+ $ajax_response->addJSON(
3029
+ 'list',
3030
+ $fav_instance->getHtmlList()
3031
+ );
3032
+ $server_id = $GLOBALS['server'];
3033
+ // Set flag when localStorage and pmadb(if present) are in sync.
3034
+ $_SESSION['tmpval']['favorites_synced'][$server_id] = true;
3035
+ }
3036
+
3037
+ /**
3038
+ * Returns Html for show create.
3039
+ *
3040
+ * @param string $db Database name
3041
+ * @param array $db_objects Array containing DB objects
3042
+ *
3043
+ * @return string Html
3044
+ */
3045
+ function PMA_getHtmlShowCreate($db, $db_objects)
3046
+ {
3047
+ // Main outer container.
3048
+ $html_output = '<div class="show_create_results">'
3049
+ . '<h2>' . __('Showing create queries') . '</h2>';
3050
+ // Table header.
3051
+ $output_table = '<fieldset>'
3052
+ . '<legend>%s</legend>'
3053
+ . '<table class="show_create">'
3054
+ . '<thead>'
3055
+ . '<tr>'
3056
+ . '<th>%s</th>'
3057
+ . '<th>Create %s</th>'
3058
+ . '</tr>'
3059
+ . '</thead>'
3060
+ . '<tbody>';
3061
+ // Holds rows html for views.
3062
+ $views = '';
3063
+ // Holds rows html for tables.
3064
+ $tables = '';
3065
+ // Handles odd, even classes for rows.
3066
+ // for 'Views'
3067
+ $odd1 = true;
3068
+ // for 'Tables'
3069
+ $odd2 = true;
3070
+ // Iterate through each object.
3071
+ foreach ($db_objects as $key => $object) {
3072
+ // Check if current object is a View or Table.
3073
+ $isView = PMA_Table::isView($db, $object);
3074
+ if ($isView) {
3075
+ $row_class = ($odd1) ? 'odd' : 'even';
3076
+ $create_data = PMA_getShowCreate($db, $object, 'view');
3077
+ $views .= '<tr class="' . $row_class . '">'
3078
+ . '<td><strong>'
3079
+ . PMA_mimeDefaultFunction($create_data['View'])
3080
+ . '</strong></td>'
3081
+ . '<td>'
3082
+ . PMA_mimeDefaultFunction($create_data['Create View'])
3083
+ . '</td>'
3084
+ . '</tr>';
3085
+ $odd1 = ! $odd1;
3086
+ } else {
3087
+ $row_class = ($odd2) ? 'odd' : 'even';
3088
+ $create_data = PMA_getShowCreate($db, $object, 'table');
3089
+ $tables .= '<tr class="' . $row_class . '">'
3090
+ . '<td><strong>'
3091
+ . PMA_mimeDefaultFunction($create_data['Table'])
3092
+ . '</strong></td>'
3093
+ . '<td>'
3094
+ . PMA_mimeDefaultFunction($create_data['Create Table'])
3095
+ . '</td>'
3096
+ . '</tr>';
3097
+ $odd2 = ! $odd2;
3098
+ }
3099
+ }
3100
+ // Prepare table header for each type of object.
3101
+ if (! empty($tables)) {
3102
+ $title = __('Tables');
3103
+ $tables = sprintf($output_table, $title, 'Table', 'Table')
3104
+ . $tables
3105
+ . '</tbody></table></fieldset>';
3106
+ }
3107
+ if (! empty($views)) {
3108
+ $title = __('Views');
3109
+ $views = sprintf($output_table, $title, 'View', 'View')
3110
+ . $views
3111
+ . '</tbody></table></fieldset>';
3112
+ }
3113
+ // Compile the final html.
3114
+ $html_output .= $tables . $views . '</div>';
3115
+
3116
+ return $html_output;
3117
+ }
3118
+
3119
+ /**
3120
+ * Return 'SHOW CREATE' query for a DB object
3121
+ *
3122
+ * @param string $db Database name
3123
+ * @param string $db_object Database object name
3124
+ * @param string $type Type of object (table or view)
3125
+ *
3126
+ * @return mysqli_result collection | boolean(false)
3127
+ */
3128
+ function PMA_getShowCreate($db, $db_object, $type = 'table')
3129
+ {
3130
+ // 'SHOW CREATE' SQL query for specific type of DB object.
3131
+ switch ($type) {
3132
+ case 'table':
3133
+ $sql_query = 'SHOW CREATE TABLE ' . PMA_Util::backquote($db) . '.'
3134
+ . PMA_Util::backquote($db_object);
3135
+ break;
3136
+ case 'view':
3137
+ $sql_query = 'SHOW CREATE VIEW ' . PMA_Util::backquote($db) . '.'
3138
+ . PMA_Util::backquote($db_object);
3139
+ break;
3140
+ default:
3141
+ $sql_query = '';
3142
+ }
3143
+ // Execute the query.
3144
+ $result = $GLOBALS['dbi']->fetchSingleRow($sql_query);
3145
+
3146
+ return $result;
3147
+ }
3148
+
3149
+ /**
3150
+ * Returns the real row count for a table
3151
+ *
3152
+ * @param string $db Database name
3153
+ * @param string $table Table name
3154
+ *
3155
+ * @return number
3156
+ */
3157
+ function PMA_getRealRowCountTable($db, $table)
3158
+ {
3159
+ // SQL query to get row count for a table.
3160
+ $sql_query = 'SELECT COUNT(*) AS ' . PMA_Util::backquote('row_count')
3161
+ . ' FROM ' . PMA_Util::backquote($db) . '.'
3162
+ . PMA_Util::backquote($table);
3163
+ $result = $GLOBALS['dbi']->fetchSingleRow($sql_query);
3164
+ $row_count = $result['row_count'];
3165
+
3166
+ return $row_count;
3167
+ }
3168
+
3169
+ /**
3170
+ * Returns the real row count for all tables of a DB
3171
+ *
3172
+ * @param string $db Database name
3173
+ * @param array $tables Array containing table names.
3174
+ *
3175
+ * @return array
3176
+ */
3177
+ function PMA_getRealRowCountDb($db, $tables)
3178
+ {
3179
+ // Array to store the results.
3180
+ $row_count_all = array();
3181
+ // Iterate over each table and fetch real row count.
3182
+ foreach ($tables as $key => $table) {
3183
+ $row_count = PMA_getRealRowCountTable($db, $table['TABLE_NAME']);
3184
+ array_push(
3185
+ $row_count_all,
3186
+ array('table' => $table['TABLE_NAME'], 'row_count' => $row_count)
3187
+ );
3188
+ }
3189
+
3190
+ return $row_count_all;
3191
+ }
3192
+
3193
+ /**
3194
+ * Handles request for real row count on database level view page.
3195
+ *
3196
+ * @return boolean true
3197
+ */
3198
+ function PMA_handleRealRowCountRequest()
3199
+ {
3200
+ $ajax_response = PMA_Response::getInstance();
3201
+ // If there is a request to update all table's row count.
3202
+ if (isset($_REQUEST['real_row_count_all'])) {
3203
+ $real_row_count_all = PMA_getRealRowCountDb(
3204
+ $GLOBALS['db'],
3205
+ $GLOBALS['tables']
3206
+ );
3207
+ $ajax_response->addJSON(
3208
+ 'real_row_count_all',
3209
+ json_encode($real_row_count_all)
3210
+ );
3211
+ return true;
3212
+ }
3213
+ // Get the real row count for the table.
3214
+ $real_row_count = PMA_getRealRowCountTable(
3215
+ $GLOBALS['db'],
3216
+ $_REQUEST['table']
3217
+ );
3218
+ // Format the number.
3219
+ $real_row_count = PMA_Util::formatNumber($real_row_count, 0);
3220
+ $ajax_response->addJSON('real_row_count', $real_row_count);
3221
+ return true;
3222
+ }
3223
+
3224
+ /**
3225
+ * Possibly show the table creation dialog
3226
+ *
3227
+ * @param string $db Current database name
3228
+ * @param bool $db_is_system_schema Whether this db is a system schema
3229
+ * @param PMA_Response $response PMA_Response instance
3230
+ *
3231
+ * @return void
3232
+ */
3233
+ function PMA_possiblyShowCreateTableDialog($db, $db_is_system_schema, $response)
3234
+ {
3235
+ if (empty($db_is_system_schema)) {
3236
+ ob_start();
3237
+ include 'libraries/display_create_table.lib.php';
3238
+ $content = ob_get_contents();
3239
+ ob_end_clean();
3240
+ $response->addHTML($content);
3241
+ } // end if (Create Table dialog)
3242
+ }
3243
+
3244
+ /**
3245
+ * Returns the HTML for secondary levels tabs of the table structure page
3246
+ *
3247
+ * @return string HTML for secondary levels tabs
3248
+ */
3249
+ function PMA_getStructureSecondaryTabs($tbl_storage_engine)
3250
+ {
3251
+ $html_output = '';
3252
+
3253
+ $cfgRelation = PMA_getRelationsParam();
3254
+ if ($cfgRelation['relwork']
3255
+ || PMA_Util::isForeignKeySupported(strtoupper($tbl_storage_engine))
3256
+ ) {
3257
+ $url_params = array();
3258
+ $url_params['db'] = $GLOBALS['db'];
3259
+ $url_params['table'] = $GLOBALS['table'];
3260
+
3261
+ $html_output .= '<ul id="topmenu2">';
3262
+ foreach (PMA_getStructureSubTabs() as $tab) {
3263
+ $html_output .= PMA_Util::getHtmlTab($tab, $url_params);
3264
+ }
3265
+ $html_output .= '</ul>';
3266
+ $html_output .= '<div class="clearfloat"></div>';
3267
+ }
3268
+ return $html_output;
3269
+ }
3270
+
3271
+ /**
3272
+ * Returns an array with necessary configurations to create
3273
+ * sub-tabs in the Structure page at table level
3274
+ *
3275
+ * @return array Array containing configuration (icon, text, link, id)
3276
+ * of sub-tabs
3277
+ */
3278
+ function PMA_getStructureSubTabs()
3279
+ {
3280
+ $subtabs = array();
3281
+
3282
+ $subtabs['structure']['icon'] = 'b_props';
3283
+ $subtabs['structure']['link'] = 'tbl_structure.php';
3284
+ $subtabs['structure']['text'] = __('Table structure');
3285
+ $subtabs['structure']['id'] = 'table_strucuture_id';
3286
+
3287
+ $subtabs['relation']['icon'] = 'b_relations';
3288
+ $subtabs['relation']['link'] = 'tbl_relation.php';
3289
+ $subtabs['relation']['text'] = __('Relation view');
3290
+ $subtabs['relation']['id'] = 'table_relation_id';
3291
+
3292
+ return $subtabs;
3293
+ }
3294
+ ?>