Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
committerChanaka Indrajith <pe.chanaka.ck@gmail.com>2012-09-16 13:05:45 +0400
commite6894be57f5735ab525a2f758ad842aacb8ef7bc (patch)
treea94e853e44998476b7a055380469c61d57037f80 /server_variables.php
parent0829709064b8ec1170d63d6d9a5828a0a89b34af (diff)
Renamed ->method() with PMA_Util::method()
Diffstat (limited to 'server_variables.php')
-rw-r--r--server_variables.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/server_variables.php b/server_variables.php
index 88c85da2da..198e27699f 100644
--- a/server_variables.php
+++ b/server_variables.php
@@ -40,7 +40,7 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
header('Content-Type: text/html; charset=UTF-8');
$varValue = PMA_DBI_fetch_single_row(
'SHOW GLOBAL VARIABLES WHERE Variable_name="'
- . $common_functions->sqlAddSlashes($_REQUEST['varName']) . '";',
+ . PMA_Util::sqlAddSlashes($_REQUEST['varName']) . '";',
'NUM'
);
if (isset($VARIABLE_DOC_LINKS[$_REQUEST['varName']][3])
@@ -48,7 +48,7 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
) {
exit(
implode(
- ' ', $common_functions->formatByteDown($varValue[1], 3, 3)
+ ' ', PMA_Util::formatByteDown($varValue[1], 3, 3)
)
);
}
@@ -74,12 +74,12 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
'gb' => 3,
'gib' => 3
);
- $value = floatval($matches[1]) * $common_functions->pow(
+ $value = floatval($matches[1]) * PMA_Util::pow(
1024,
$exp[strtolower($matches[3])]
);
} else {
- $value = $common_functions->sqlAddSlashes($value);
+ $value = PMA_Util::sqlAddSlashes($value);
}
if (! is_numeric($value)) {
@@ -95,7 +95,7 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
// Some values are rounded down etc.
$varValue = PMA_DBI_fetch_single_row(
'SHOW GLOBAL VARIABLES WHERE Variable_name="'
- . $common_functions->sqlAddSlashes($_REQUEST['varName'])
+ . PMA_Util::sqlAddSlashes($_REQUEST['varName'])
. '";', 'NUM'
);
$response->addJSON(
@@ -118,9 +118,9 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
/**
* Displays the sub-page heading
*/
-$output = '<h2>' . $common_functions->getImage('s_vars.png')
+$output = '<h2>' . PMA_Util::getImage('s_vars.png')
. '' . __('Server variables and settings') . "\n"
- . $common_functions->showMySQLDocu(
+ . PMA_Util::showMySQLDocu(
'server_system_variables', 'server_system_variables'
)
. '</h2>' . "\n";
@@ -170,7 +170,7 @@ foreach ($serverVars as $name => $value) {
// To display variable documentation link
if (isset($VARIABLE_DOC_LINKS[$name])) {
- $output .= $common_functions->showMySQLDocu(
+ $output .= PMA_Util::showMySQLDocu(
$VARIABLE_DOC_LINKS[$name][1],
$VARIABLE_DOC_LINKS[$name][1],
false,
@@ -214,11 +214,11 @@ function formatVariable($name, $value)
&& $VARIABLE_DOC_LINKS[$name][3]=='byte'
) {
return '<abbr title="'
- . $common_functions->formatNumber($value, 0) . '">'
- . implode(' ', $common_functions->formatByteDown($value, 3, 3))
+ . PMA_Util::formatNumber($value, 0) . '">'
+ . implode(' ', PMA_Util::formatByteDown($value, 3, 3))
. '</abbr>';
} else {
- return $common_functions->formatNumber($value, 0);
+ return PMA_Util::formatNumber($value, 0);
}
}
return htmlspecialchars($value);