Permalink
Browse files

Implement class behavior of common.lib.php file

  • Loading branch information...
Chanaka committed Jun 22, 2012
1 parent b214b98 commit 766466135e0e4dcca26744e72fc277a3d8f05d11
Showing with 3,144 additions and 2,078 deletions.
  1. +2 −2 browse_foreigners.php
  2. +8 −3 db_create.php
  3. +6 −4 db_datadict.php
  4. +22 −16 db_operations.php
  5. +18 −15 db_printview.php
  6. +7 −6 db_qbe.php
  7. +15 −12 db_search.php
  8. +37 −28 db_structure.php
  9. +28 −23 db_tables_search.php
  10. +12 −11 db_tracking.php
  11. +12 −10 export.php
  12. +8 −4 import.php
  13. +2 −2 index.php
  14. +1 −1 js/db_operations.js
  15. +2 −2 js/functions.js
  16. +1 −1 js/tbl_change.js
  17. +1 −1 libraries/Advisor.class.php
  18. +186 −96 libraries/DisplayResults.class.php
  19. +1 −1 libraries/File.class.php
  20. +1 −1 libraries/Footer.class.php
  21. +4 −2 libraries/Header.class.php
  22. +7 −5 libraries/Index.class.php
  23. +7 −3 libraries/List_Database.class.php
  24. +38 −9 libraries/Menu.class.php
  25. +1 −1 libraries/Message.class.php
  26. +1 −1 libraries/PDF.class.php
  27. +6 −3 libraries/RecentTable.class.php
  28. +5 −3 libraries/StorageEngine.class.php
  29. +99 −58 libraries/Table.class.php
  30. +60 −22 libraries/TableSearch.class.php
  31. +72 −47 libraries/Tracker.class.php
  32. +4 −2 libraries/auth/config.auth.lib.php
  33. +9 −7 libraries/auth/cookie.auth.lib.php
  34. +1 −1 libraries/auth/signon.auth.lib.php
  35. +26 −22 libraries/bookmark.lib.php
  36. +10 −5 libraries/build_html_for_db.lib.php
  37. +18 −14 libraries/check_user_privileges.lib.php
  38. +3 −1 libraries/common.inc.php
  39. +36 −2 libraries/common.lib.php
  40. +5 −3 libraries/config/FormDisplay.tpl.php
  41. +1 −1 libraries/core.lib.php
  42. +84 −58 libraries/database_interface.lib.php
  43. +2 −2 libraries/db_common.inc.php
  44. +19 −9 libraries/db_info.inc.php
  45. +12 −6 libraries/db_structure.lib.php
  46. +2 −2 libraries/db_table_exists.lib.php
  47. +3 −3 libraries/display_create_database.lib.php
  48. +1 −1 libraries/display_create_table.lib.php
  49. +9 −5 libraries/display_export.lib.php
  50. +5 −2 libraries/display_git_revision.lib.php
  51. +14 −7 libraries/display_import.lib.php
  52. +1 −1 libraries/display_select_lang.lib.php
  53. +81 −55 libraries/engines/innodb.lib.php
  54. +4 −2 libraries/engines/pbxt.lib.php
  55. +2 −2 libraries/export/codegen.php
  56. +4 −1 libraries/export/htmlword.php
  57. +15 −10 libraries/export/latex.php
  58. +2 −2 libraries/export/mediawiki.php
  59. +2 −1 libraries/export/odt.php
  60. +3 −3 libraries/export/php_array.php
  61. +71 −49 libraries/export/sql.php
  62. +2 −1 libraries/export/texytext.php
  63. +10 −8 libraries/export/xml.php
  64. +5 −2 libraries/gis/pma_gis_polygon.php
  65. +23 −20 libraries/import.lib.php
  66. +6 −5 libraries/import/csv.php
  67. +14 −12 libraries/import/docsql.php
  68. +10 −6 libraries/import/ldi.php
  69. +1 −1 libraries/import/xml.php
  70. +47 −17 libraries/insert_edit.lib.php
  71. +1 −1 libraries/ip_allow_deny.lib.php
  72. +1 −1 libraries/js_escape.lib.php
  73. +38 −36 libraries/mult_submits.inc.php
  74. +23 −18 libraries/mysql_charsets.lib.php
  75. +8 −6 libraries/navigation_header.inc.php
  76. +3 −3 libraries/plugin_interface.lib.php
  77. +6 −3 libraries/pmd_common.php
  78. +109 −77 libraries/relation.lib.php
  79. +56 −50 libraries/relation_cleanup.lib.php
  80. +3 −1 libraries/replication_gui.lib.php
  81. +23 −17 libraries/rte/rte_events.lib.php
  82. +2 −2 libraries/rte/rte_export.lib.php
  83. +8 −6 libraries/rte/rte_footer.lib.php
  84. +17 −11 libraries/rte/rte_list.lib.php
  85. +1 −1 libraries/rte/rte_main.inc.php
  86. +58 −39 libraries/rte/rte_routines.lib.php
  87. +9 −9 libraries/rte/rte_triggers.lib.php
  88. +8 −7 libraries/schema/Dia_Relation_Schema.class.php
  89. +7 −6 libraries/schema/Eps_Relation_Schema.class.php
  90. +7 −4 libraries/schema/Export_Relation_Schema.class.php
  91. +77 −16 libraries/schema/Pdf_Relation_Schema.class.php
  92. +7 −6 libraries/schema/Svg_Relation_Schema.class.php
  93. +83 −52 libraries/schema/User_Schema.class.php
  94. +7 −6 libraries/schema/Visio_Relation_Schema.class.php
  95. +3 −1 libraries/server_common.inc.php
  96. +93 −62 libraries/server_synchronize.lib.php
  97. +1 −1 libraries/server_variables_doc.php
  98. +16 −8 libraries/sql_query_form.lib.php
  99. +23 −17 libraries/sqlparser.lib.php
  100. +1 −1 libraries/tbl_common.inc.php
  101. +1 −1 libraries/tbl_info.inc.php
  102. +19 −14 libraries/tbl_properties.inc.php
  103. +4 −3 libraries/tbl_replace_fields.inc.php
  104. +4 −4 libraries/tcpdf/tcpdf.php
  105. +26 −22 libraries/transformations.lib.php
  106. +1 −1 libraries/transformations/text_plain__dateformat.inc.php
  107. +2 −2 libraries/user_preferences.inc.php
  108. +14 −10 libraries/user_preferences.lib.php
  109. +8 −5 main.php
  110. +35 −17 navigation.php
  111. +12 −11 pmd_display_field.php
  112. +1 −1 pmd_general.php
  113. +15 −10 pmd_pdf.php
  114. +22 −18 pmd_relation_new.php
  115. +15 −11 pmd_relation_upd.php
  116. +11 −10 pmd_save_pos.php
  117. +2 −2 prefs_manage.php
  118. +6 −4 querywindow.php
  119. +6 −4 schema_edit.php
  120. +14 −4 server_binlog.php
  121. +1 −1 server_collations.php
  122. +11 −7 server_databases.php
  123. +5 −3 server_engines.php
  124. +2 −2 server_plugins.php
  125. +118 −101 server_privileges.php
  126. +9 −8 server_replication.php
  127. +95 −54 server_status.php
  128. +2 −2 server_synchronize.php
  129. +10 −7 server_variables.php
  130. +29 −20 sql.php
  131. +16 −11 tbl_addfield.php
  132. +16 −11 tbl_alter.php
  133. +12 −6 tbl_change.php
  134. +22 −21 tbl_create.php
  135. +1 −1 tbl_export.php
  136. +9 −5 tbl_get_field.php
  137. +11 −6 tbl_indexes.php
  138. +9 −5 tbl_move_copy.php
  139. +45 −39 tbl_operations.php
  140. +24 −17 tbl_printview.php
  141. +65 −60 tbl_relation.php
  142. +16 −14 tbl_replace.php
  143. +108 −102 tbl_structure.php
  144. +21 −13 tbl_tracking.php
  145. +4 −3 tbl_zoom_select.php
  146. +1 −1 test/libraries/PMA_STR_sub_test.php
  147. +2 −2 test/libraries/common/PMA_browseUploadFile_test.php
  148. +20 −19 test/libraries/common/PMA_buildActionTitles_test.php
  149. +20 −20 test/libraries/common/PMA_cache_test.php
  150. +7 −3 test/libraries/common/PMA_checkParameters_test.php
  151. +5 −5 test/libraries/common/PMA_contains_nonprintable_ascii_test.php
  152. +4 −2 test/libraries/common/PMA_convert_bit_default_value_test.php
  153. +8 −4 test/libraries/common/PMA_escapeMySqlWildcards_test.php
  154. +10 −4 test/libraries/common/PMA_expandUserString_test.php
  155. +5 −3 test/libraries/common/PMA_extractColumnSpec_test.php
  156. +17 −5 test/libraries/common/PMA_extractValueFromFormattedSize_test.php
  157. +3 −1 test/libraries/common/PMA_foreignKeySupported_test.php
  158. +7 −2 test/libraries/common/PMA_formatNumberByteDown_test.php
  159. +47 −16 test/libraries/common/PMA_formatSql_test.php
  160. +2 −2 test/libraries/common/PMA_generateHiddenMaxFileSize_test.php
  161. +5 −7 test/libraries/common/PMA_getCheckbox_test.php
  162. +7 −4 test/libraries/common/PMA_getDbLink_test.php
  163. +4 −4 test/libraries/common/PMA_getDivForSliderEffect_test.php
  164. +19 −4 test/libraries/common/PMA_getDropdown_test.php
  165. +5 −2 test/libraries/common/PMA_getFormattedMaximumUploadSize_test.php
  166. +5 −5 test/libraries/common/PMA_getIcon_test.php
  167. +21 −9 test/libraries/common/PMA_getRadioFields_test.php
  168. +4 −4 test/libraries/common/PMA_getTitleForTarget_test.php
  169. +6 −2 test/libraries/common/PMA_localisedDateTimespan_test.php
  170. +8 −8 test/libraries/common/PMA_pow_test.php
  171. +4 −2 test/libraries/common/PMA_printableBitValue_test.php
  172. +22 −17 test/libraries/common/PMA_quoting_slashing_test.php
  173. +4 −2 test/libraries/common/PMA_showDocu_test.php
  174. +3 −3 test/libraries/common/PMA_showMessage_test_disabled.php
  175. +4 −2 test/libraries/common/PMA_showPHPDocu_test.php
  176. +10 −6 test/libraries/common/PMA_stringOperations_test.php
  177. +4 −2 test/libraries/common/PMA_unsupportedDatatypes_test.php
  178. +13 −5 test/libraries/common/PMA_whichCrlf_test.php
  179. +1 −1 test/libraries/core/PMA_headerLocation_test_disabled.php
  180. +1 −1 test/libraries/rte/PMA_EVN_getQueryFromRequest_test.php
  181. +1 −1 test/libraries/rte/PMA_RTN_ParameterParser_test.php
  182. +1 −1 test/libraries/rte/PMA_RTN_getQueryFromRequest_test.php
  183. +1 −1 test/libraries/rte/PMA_TRI_getQueryFromRequest_test.php
  184. +1 −1 test/theme.php
  185. +2 −2 transformation_wrapper.php
  186. +7 −4 user_password.php
  187. +5 −3 view_create.php
  188. +3 −1 view_operations.php
View
@@ -11,7 +11,7 @@
$field = $_REQUEST['field'];
-PMA_checkParameters(array('db', 'table', 'field'));
+PMA_CommonFunctions::getInstance()->checkParameters(array('db', 'table', 'field'));
$response = PMA_Response::getInstance();
$response->getFooter()->setMinimal();
@@ -65,7 +65,7 @@
$nbTotalPage = @ceil($foreignData['the_total'] / $session_max_rows);
if ($foreignData['the_total'] > $GLOBALS['cfg']['MaxRows']) {
- $gotopage = PMA_pageselector(
+ $gotopage = PMA_CommonFunctions::getInstance()->pageselector(
$session_max_rows,
$pageNow,
$nbTotalPage,
View
@@ -29,7 +29,7 @@
}
}
-PMA_checkParameters(array('new_db'));
+PMA_CommonFunctions::getInstance()->checkParameters(array('new_db'));
/**
* Defines the url to return to in case of error in a sql statement
@@ -39,7 +39,7 @@
/**
* Builds and executes the db creation sql query
*/
-$sql_query = 'CREATE DATABASE ' . PMA_backquote($new_db);
+$sql_query = 'CREATE DATABASE ' . PMA_CommonFunctions::getInstance()->backquote($new_db);
if (! empty($db_collation)) {
list($db_charset) = explode('_', $db_collation);
if (in_array($db_charset, $mysql_charsets)
@@ -135,7 +135,12 @@
$response = PMA_Response::getInstance();
$response->addJSON('message', $message);
$response->addJSON('new_db_string', $new_db_string);
- $response->addJSON('sql_query', PMA_getMessage(null, $sql_query, 'success'));
+ $response->addJSON(
+ 'sql_query',
+ PMA_CommonFunctions::getInstance()->getMessage(
+ null, $sql_query, 'success'
+ )
+ );
} else {
include_once '' . $cfg['DefaultTabDatabase'];
}
View
@@ -27,7 +27,7 @@
/**
* Check parameters
*/
-PMA_checkParameters(array('db'));
+PMA_CommonFunctions::getInstance()->checkParameters(array('db'));
/**
* Defines the url to return to in case of error in a sql statement
@@ -125,7 +125,7 @@
// http://bugs.mysql.com/20910.
$show_create_table = PMA_DBI_fetch_value(
- 'SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table),
+ 'SHOW CREATE TABLE ' . PMA_CommonFunctions::getInstance()->backquote($db) . '.' . PMA_CommonFunctions::getInstance()->backquote($table),
0, 1
);
$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
@@ -183,7 +183,9 @@
if ($row['Null'] == '') {
$row['Null'] = 'NO';
}
- $extracted_columnspec = PMA_extractColumnSpec($row['Type']);
+ $extracted_columnspec
+ = PMA_CommonFunctions::getInstance()->extractColumnSpec($row['Type']);
+
// reformat mysql query output
// set or enum types: slashes single quotes inside options
if ('set' == $extracted_columnspec['type'] || 'enum' == $extracted_columnspec['type']) {
@@ -281,6 +283,6 @@
/**
* Displays the footer
*/
-echo PMA_getButton();
+echo PMA_CommonFunctions::getInstance()->getButton();
?>
View
@@ -23,6 +23,7 @@
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('db_operations.js');
+$common_functions = PMA_CommonFunctions::getInstance();
/**
* Sets globals from $_REQUEST (we're using GET on ajax, POST otherwise)
@@ -77,7 +78,7 @@
}
}
- $local_query = 'CREATE DATABASE ' . PMA_backquote($newname);
+ $local_query = 'CREATE DATABASE ' . $common_functions->backquote($newname);
if (isset($db_collation)) {
$local_query .= ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
}
@@ -271,7 +272,7 @@
// the db name
$event_names = PMA_DBI_fetch_result(
'SELECT EVENT_NAME FROM information_schema.EVENTS WHERE EVENT_SCHEMA= \''
- . PMA_sqlAddSlashes($db, true) . '\';'
+ . $common_functions->sqlAddSlashes($db, true) . '\';'
);
if ($event_names) {
foreach ($event_names as $event_name) {
@@ -307,7 +308,7 @@
PMA_relationsCleanupDatabase($db);
// if someday the RENAME DATABASE reappears, do not DROP
- $local_query = 'DROP DATABASE ' . PMA_backquote($db) . ';';
+ $local_query = 'DROP DATABASE ' . $common_functions->backquote($db) . ';';
$sql_query .= "\n" . $local_query;
PMA_DBI_query($local_query);
@@ -347,7 +348,10 @@
$response->isSuccess($message->isSuccess());
$response->addJSON('message', $message);
$response->addJSON('newname', $newname);
- $response->addJSON('sql_query', PMA_getMessage(null, $sql_query));
+ $response->addJSON(
+ 'sql_query',
+ $common_functions->getMessage(null, $sql_query)
+ );
exit;
}
}
@@ -381,7 +385,7 @@
echo "\n";
if (isset($message)) {
- echo PMA_getMessage($message, $sql_query);
+ echo $common_functions->getMessage($message, $sql_query);
unset($message);
}
}
@@ -444,7 +448,7 @@
<legend>
<?php
if ($cfg['PropertiesIconic']) {
- echo PMA_getImage('b_edit.png');
+ echo $common_functions->getImage('b_edit.png');
}
echo __('Rename database to') . ':';
?>
@@ -471,27 +475,27 @@
<fieldset class="caution">
<legend><?php
if ($cfg['PropertiesIconic']) {
- echo PMA_getImage('b_deltbl.png');
+ echo $common_functions->getImage('b_deltbl.png');
}
echo __('Remove database');
?></legend>
<ul>
<?php
- $this_sql_query = 'DROP DATABASE ' . PMA_backquote($GLOBALS['db']);
+ $this_sql_query = 'DROP DATABASE ' . $common_functions->backquote($GLOBALS['db']);
$this_url_params = array(
'sql_query' => $this_sql_query,
'back' => 'db_operations.php',
'goto' => 'main.php',
'reload' => '1',
'purge' => '1',
- 'message_to_show' => sprintf(__('Database %s has been dropped.'), htmlspecialchars(PMA_backquote($db))),
+ 'message_to_show' => sprintf(__('Database %s has been dropped.'), htmlspecialchars($common_functions->backquote($db))),
'db' => null,
);
?>
<li><a href="sql.php<?php echo PMA_generate_common_url($this_url_params); ?>" <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? 'id="drop_db_anchor"' : ''); ?>>
<?php echo __('Drop the database (DROP)'); ?></a>
- <?php echo PMA_showMySQLDocu('SQL-Syntax', 'DROP_DATABASE'); ?>
+ <?php echo $common_functions->showMySQLDocu('SQL-Syntax', 'DROP_DATABASE'); ?>
</li>
</ul>
</fieldset>
@@ -517,7 +521,7 @@
<legend>
<?php
if ($cfg['PropertiesIconic']) {
- echo PMA_getImage('b_edit.png');
+ echo $common_functions->getImage('b_edit.png');
}
echo __('Copy database to') . ':';
$drop_clause = 'DROP TABLE / DROP VIEW';
@@ -529,7 +533,9 @@
'structure' => __('Structure only'),
'data' => __('Structure and data'),
'dataonly' => __('Data only'));
- echo PMA_getRadioFields('what', $choices, 'data', true);
+ echo $common_functions->getRadioFields(
+ 'what', $choices, 'data', true
+ );
unset($choices);
?>
<input type="checkbox" name="create_database_before_copying" value="1"
@@ -583,7 +589,7 @@
. '<fieldset>' . "\n"
. ' <legend>';
if ($cfg['PropertiesIconic']) {
- echo PMA_getImage('s_asci.png');
+ echo $common_functions->getImage('s_asci.png');
}
echo ' <label for="select_db_collation">' . __('Collation') . ':</label>' . "\n"
. ' </legend>' . "\n"
@@ -625,16 +631,16 @@
$test_query = '
SELECT *
- FROM ' . PMA_backquote($GLOBALS['cfgRelation']['db']) . '.' . PMA_backquote($cfgRelation['pdf_pages']) . '
- WHERE db_name = \'' . PMA_sqlAddSlashes($db) . '\'';
+ FROM ' . $common_functions->backquote($GLOBALS['cfgRelation']['db']) . '.' . $common_functions->backquote($cfgRelation['pdf_pages']) . '
+ WHERE db_name = \'' . $common_functions->sqlAddSlashes($db) . '\'';
$test_rs = PMA_query_as_controluser($test_query, null, PMA_DBI_QUERY_STORE);
/*
* Export Relational Schema View
*/
echo '<div class="operations_full_width"><fieldset><a href="schema_edit.php?' . $url_query . '">';
if ($cfg['PropertiesIconic']) {
- echo PMA_getImage('b_edit.png');
+ echo $common_functions->getImage('b_edit.png');
}
echo __('Edit or export relational schema') . '</a></fieldset></div>';
} // end if
View
@@ -13,8 +13,9 @@
$response = PMA_Response::getInstance();
$header = $response->getHeader();
$header->enablePrintView();
+$common_functions = PMA_CommonFunctions::getInstance();
-PMA_checkParameters(array('db'));
+$common_functions->checkParameters(array('db'));
/**
* Defines the url to return to in case of error in a sql statement
@@ -35,7 +36,7 @@
// speedup view on locked tables
// Special speedup for newer MySQL Versions (in 4.0 format changed)
if ($cfg['SkipLockedTables'] == true) {
- $result = PMA_DBI_query('SHOW OPEN TABLES FROM ' . PMA_backquote($db) . ';');
+ $result = PMA_DBI_query('SHOW OPEN TABLES FROM ' . PMA_CommonFunctions::getInstance()->backquote($db) . ';');
// Blending out tables in use
if ($result != false && PMA_DBI_num_rows($result) > 0) {
while ($tmp = PMA_DBI_fetch_row($result)) {
@@ -47,11 +48,11 @@
PMA_DBI_free_result($result);
if (isset($sot_cache)) {
- $result = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', null, PMA_DBI_QUERY_STORE);
+ $result = PMA_DBI_query('SHOW TABLES FROM ' . PMA_CommonFunctions::getInstance()->backquote($db) . ';', null, PMA_DBI_QUERY_STORE);
if ($result != false && PMA_DBI_num_rows($result) > 0) {
while ($tmp = PMA_DBI_fetch_row($result)) {
if (! isset($sot_cache[$tmp[0]])) {
- $sts_result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddSlashes($tmp[0], true) . '\';');
+ $sts_result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_CommonFunctions::getInstance()->backquote($db) . ' LIKE \'' . sqlAddSlashes($tmp[0], true) . '\';');
$sts_tmp = PMA_DBI_fetch_assoc($sts_result);
$tables[] = $sts_tmp;
} else { // table in use
@@ -67,7 +68,7 @@
}
if (! isset($sot_ready)) {
- $result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ';');
+ $result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_CommonFunctions::getInstance()->backquote($db) . ';');
if (PMA_DBI_num_rows($result) > 0) {
while ($sts_tmp = PMA_DBI_fetch_assoc($result)) {
$tables[] = $sts_tmp;
@@ -132,9 +133,9 @@
<td class="right">
<?php
if ($merged_size) {
- echo '<i>' . PMA_formatNumber($sts_data['TABLE_ROWS'], 0) . '</i>' . "\n";
+ echo '<i>' . $common_functions->formatNumber($sts_data['TABLE_ROWS'], 0) . '</i>' . "\n";
} else {
- echo PMA_formatNumber($sts_data['TABLE_ROWS'], 0) . "\n";
+ echo $common_functions->formatNumber($sts_data['TABLE_ROWS'], 0) . "\n";
}
?>
</td>
@@ -145,7 +146,8 @@
if ($cfg['ShowStats']) {
$tblsize = $sts_data['Data_length'] + $sts_data['Index_length'];
$sum_size += $tblsize;
- list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, 1);
+ list($formated_size, $unit)
+ = $common_functions->formatByteDown($tblsize, 3, 1);
?>
<td class="right nowrap">
<?php echo $formated_size . ' ' . $unit; ?>
@@ -182,7 +184,7 @@
?>
<tr>
<td class="right"><?php echo __('Creation') . ': '; ?></td>
- <td class="right"><?php echo PMA_localisedDate(strtotime($sts_data['Create_time'])); ?></td>
+ <td class="right"><?php echo $common_functions->localisedDate(strtotime($sts_data['Create_time'])); ?></td>
</tr>
<?php
}
@@ -191,7 +193,7 @@
?>
<tr>
<td class="right"><?php echo __('Last update') . ': '; ?></td>
- <td class="right"><?php echo PMA_localisedDate(strtotime($sts_data['Update_time'])); ?></td>
+ <td class="right"><?php echo $common_functions->localisedDate(strtotime($sts_data['Update_time'])); ?></td>
</tr>
<?php
}
@@ -200,7 +202,7 @@
?>
<tr>
<td class="right"><?php echo __('Last check') . ': '; ?></td>
- <td class="right"><?php echo PMA_localisedDate(strtotime($sts_data['Check_time'])); ?></td>
+ <td class="right"><?php echo $common_functions->localisedDate(strtotime($sts_data['Check_time'])); ?></td>
</tr>
<?php
}
@@ -216,17 +218,18 @@
?>
<tr>
<th class="center">
- <?php echo sprintf(_ngettext('%s table', '%s tables', $num_tables), PMA_formatNumber($num_tables, 0)); ?>
+ <?php echo sprintf(_ngettext('%s table', '%s tables', $num_tables), $common_functions->formatNumber($num_tables, 0)); ?>
</th>
<th class="right nowrap">
- <?php echo PMA_formatNumber($sum_entries, 0); ?>
+ <?php echo $common_functions->formatNumber($sum_entries, 0); ?>
</th>
<th class="center">
--
</th>
<?php
if ($cfg['ShowStats']) {
- list($sum_formated, $unit) = PMA_formatByteDown($sum_size, 3, 1);
+ list($sum_formated, $unit)
+ = $common_functions->formatByteDown($sum_size, 3, 1);
?>
<th class="right nowrap">
<?php echo $sum_formated . ' ' . $unit; ?>
@@ -244,7 +247,7 @@
/**
* Displays the footer
*/
-echo PMA_getButton();
+echo $common_functions->getButton();
echo "<div id='PMA_disable_floating_menubar'></div>\n";
?>
Oops, something went wrong.

0 comments on commit 7664661

Please sign in to comment.