" . lang('No tables.') . "
\n";
+ echo "" . lang('No tables.') . "\n";
} else {
echo "
" . lang('Data') . " " . optionlist($data_style, 'INSERT') . " \n";
?>
-
+
";
- echo " " . lang('Tables') . " ";
- echo "" . lang('Data') . " ";
- echo " \n";
+ echo " " . lang('Tables') . " ";
+ echo "" . lang('Data') . " ";
+ echo "\n";
$views = "";
foreach (table_status() as $row) {
$checked = (strlen($_GET["dump"]) && $row["Name"] != $_GET["dump"] ? '' : " checked='checked'");
- $print = ' " . htmlspecialchars($row["Name"]) . " ";
+ $print = ' " . htmlspecialchars($row["Name"]) . " ";
if (!$row["Engine"]) {
- $views .= "$print \n";
+ $views .= "$print\n";
} else {
- echo "$print" . ($row["Engine"] == "InnoDB" && $row["Rows"] ? lang('~ %s', $row["Rows"]) : $row["Rows"]) . ' \n";
+ echo "$print" . ($row["Engine"] == "InnoDB" && $row["Rows"] ? lang('~ %s', $row["Rows"]) : $row["Rows"]) . ' \n";
}
}
echo $views;
} else {
- echo " " . lang('Database') . " \n";
+ echo " " . lang('Database') . " \n";
foreach (get_databases() as $db) {
if (!information_schema($db)) {
- echo ' ' . htmlspecialchars($db) . " \n";
+ echo ' ' . htmlspecialchars($db) . " \n";
}
}
}
diff --git a/adminer/edit.inc.php b/adminer/edit.inc.php
index b5791f68..c21fc753 100644
--- a/adminer/edit.inc.php
+++ b/adminer/edit.inc.php
@@ -73,7 +73,7 @@ if ($fields) {
unset($create);
echo "\n";
}
?>
-
-
+
+
(array) $_POST["check"], "clone" => $_POST["clone"], "all" => $_POST["all"]));
}
if ($fields) {
- echo " \n";
+ echo " \n";
if (!isset($_GET["default"]) && !isset($_GET["select"])) {
- echo " \n";
+ echo " \n";
}
}
if ($update) {
- echo " \n";
+ echo " \n";
}
?>
-
diff --git a/adminer/event.inc.php b/adminer/event.inc.php
index 21eec46f..a18bd55b 100644
--- a/adminer/event.inc.php
+++ b/adminer/event.inc.php
@@ -36,18 +36,17 @@ if ($_POST) {
diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php
index ecdf49c4..6062df43 100644
--- a/adminer/foreign.inc.php
+++ b/adminer/foreign.inc.php
@@ -15,7 +15,7 @@ if ($_POST && !$error && !$_POST["add"] && !$_POST["change"] && !$_POST["change-
. (in_array($_POST["on_delete"], $on_actions) ? " ON DELETE $_POST[on_delete]" : "")
. (in_array($_POST["on_update"], $on_actions) ? " ON UPDATE $_POST[on_update]" : "")
, $SELF . "table=" . urlencode($_GET["foreign"]), (strlen($_GET["name"]) ? lang('Foreign key has been altered.') : lang('Foreign key has been created.')));
- $error = lang('Source and target columns must have the same data type and there must be an index on the target columns.') . " $error";
+ $error = lang('Source and target columns must have the same data type and there must be an index on the target columns.') . " $error";
}
}
page_header(lang('Foreign key'), $error, array("table" => $_GET["foreign"]), $_GET["foreign"]);
@@ -44,30 +44,26 @@ $target = ($_GET["foreign"] === $row["table"] ? $source : get_vals("SHOW COLUMNS
:
-
-
-
+
+
-
+
$val) {
echo "";
- echo " " . optionlist($source, $val) . " ";
- echo "" . optionlist($target, $row["target"][$key]) . " ";
- echo " \n";
+ echo "" . optionlist($source, $val) . " ";
+ echo "" . optionlist($target, $row["target"][$key]) . " ";
$j++;
}
?>
-:
-:
-
+:
+:
-
-
- />
-
-
+
+
+ >
+
diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index bbc77a77..5bc0c684 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -54,7 +54,7 @@ function adminer_select_links($table_status) {
function adminer_select_query($query) {
global $SELF;
// it would be nice if $query can be passed by reference and printed value would be returned but call_user() doesn't allow reference parameters
- return call_adminer('select_query', "" . htmlspecialchars($query) . "
" . lang('Edit') . "
\n", $query);
+ return call_adminer('select_query', "" . htmlspecialchars($query) . "
" . lang('Edit') . " \n", $query);
}
/** Query printed after execution in the message
@@ -80,37 +80,34 @@ function adminer_navigation($missing) {
">
- " />
-
-
+ ">
+
- " />
+
">
-()
+()
- " />
+ ">
-
-
-
- />
-
+
+
+
+ >
" . lang('No tables.') . "\n";
+ echo "" . lang('No tables.') . "\n";
} else {
echo "
\n";
foreach ($table_status as $row) {
echo '' . lang('select') . ' ';
- echo '' . adminer_table_name($row) . " \n";
+ echo '' . adminer_table_name($row) . " \n";
}
- echo "
\n";
}
- echo '' . lang('Create new table') . "
\n";
+ echo '' . lang('Create new table') . " \n";
}
}
}
diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php
index 07309af1..79eb61b2 100644
--- a/adminer/include/auth.inc.php
+++ b/adminer/include/auth.inc.php
@@ -44,19 +44,19 @@ function auth_error($exception = null) {
?>
$val) {
- echo ' ';
+ echo ' ';
}
?>
-
-
+
+
lang('Process list'),
'variables' => lang('Variables'),
) as $key => $val) {
- echo '$val
\n";
+ echo '$val \n";
}
- echo "
" . lang('MySQL version: %s through PHP extension %s', "server_info < 4.1 ? " class='binary'" : "") . ">$dbh->server_info ", "$dbh->extension ") . "
\n";
- echo "" . lang('Logged as: %s', "" . htmlspecialchars($dbh->result($dbh->query("SELECT USER()"))) . " ") . "
\n";
+ echo "" . lang('MySQL version: %s through PHP extension %s', "server_info < 4.1 ? " class='binary'" : "") . ">$dbh->server_info ", "$dbh->extension ") . "\n";
+ echo "
" . lang('Logged as: %s', "" . htmlspecialchars($dbh->result($dbh->query("SELECT USER()"))) . " ") . "\n";
}
page_footer("db");
}
diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php
index 447f8264..f62b9807 100644
--- a/adminer/include/design.inc.php
+++ b/adminer/include/design.inc.php
@@ -3,19 +3,17 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
global $SELF, $LANG, $VERSION;
header("Content-Type: text/html; charset=utf-8");
?>
-
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
+
-
">
@@ -37,7 +35,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
}
}
}
- echo "$title\n";
+ echo "$title\n";
}
echo "$title" . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " \n";
if ($_SESSION["messages"]) {
@@ -69,8 +67,5 @@ function page_footer($missing = false) {
-
-
-
- $foreign_keys) : array()), $field["type"]); ?>
- " size="3" />
+ $foreign_keys) : array()), $field["type"]); ?>
+ " size="3">
(' . lang('collation') . ') ' . optionlist($collations, $field["collation"]) . '';
-echo ($unsigned ? " ' . optionlist($unsigned, $field["unsigned"]) . ' ' : '');
-?>
+echo "(' . lang('collation') . ')' . optionlist($collations, $field["collation"]) . ' ';
+echo ($unsigned ? " ' . optionlist($unsigned, $field["unsigned"]) . ' ' : '');
+?>
-
-
-
-
-
+
+
+
+
+
-
-
->
+
+
+>
- "; ?>
-
+"; ?>
+
$field) {
$i++;
$display = (isset($_POST["add"][$i-1]) || (isset($field["field"]) && !$_POST["drop_col"][$i]));
?>
>
-
- " onchange=" 1 ? "" : "editing_add_row(this, $allowed); "); ?>editing_name_change(this);" maxlength="64" /> " />
+
+ " onchange=" 1 ? "" : "editing_add_row(this, $allowed); "); ?>editing_name_change(this);" maxlength="64"> ">
- checked="checked" />
- checked="checked" />
-> " maxlength="255" />
+ checked="checked">
+ checked="checked">
+> " maxlength="255">
";
- echo " ";
- echo " ";
- echo " ";
- echo " \n \n";
+ echo " ";
+ echo " ";
+ echo " ";
+ echo " ";
+ echo "\n\n";
}
return $column_comments;
}
diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php
index 40f6a489..01716dcb 100644
--- a/adminer/include/export.inc.php
+++ b/adminer/include/export.inc.php
@@ -155,6 +155,6 @@ function dump_headers($identifier, $multi_table = false) {
return $ext;
}
-$dump_output = "" . lang('open') . " " . lang('save') . " ";
-$dump_format = "" . lang('SQL') . " " . lang('CSV') . " ";
+$dump_output = "" . lang('open') . " " . lang('save') . " ";
+$dump_format = "" . lang('SQL') . " " . lang('CSV') . " ";
$max_packet = 1048576; // default, minimum is 1024
diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php
index 64e050c3..0678186a 100644
--- a/adminer/include/functions.inc.php
+++ b/adminer/include/functions.inc.php
@@ -20,7 +20,7 @@ function optionlist($options, $selected = null) {
$return .= '';
}
foreach ((is_array($v) ? $v : array($k => $v)) as $key => $val) {
- $return .= '' . htmlspecialchars($val) . ' ';
+ $return .= '' . htmlspecialchars($val);
}
if (is_array($v)) {
$return .= ' ';
@@ -159,7 +159,7 @@ function odd($s = ' class="odd"') {
function select($result, $dbh2 = null) {
global $SELF;
if (!$result->num_rows) {
- echo "" . lang('No rows.') . "
\n";
+ echo "" . lang('No rows.') . "\n";
} else {
echo "
\n";
$links = array(); // colno => orgtable - create links from these columns
@@ -195,9 +195,9 @@ function select($result, $dbh2 = null) {
$blobs[$j] = true;
}
$types[$j] = $field->type;
- echo "" . htmlspecialchars($field->name) . " ";
+ echo "" . htmlspecialchars($field->name);
}
- echo "\n";
+ echo "\n";
}
echo " ";
foreach ($row as $key => $val) {
@@ -222,9 +222,8 @@ function select($result, $dbh2 = null) {
$val = '' . $val . ' ';
}
}
- echo "$val ";
+ echo "$val";
}
- echo " \n";
}
echo "
\n";
}
@@ -253,7 +252,7 @@ function hidden_fields($process, $ignore = array()) {
$process[$key . "[$k]"] = $v;
}
} elseif (!in_array($key, $ignore)) {
- echo ' ';
+ echo ' ';
}
}
}
@@ -263,18 +262,18 @@ function input($name, $field, $value) {
$name = htmlspecialchars(bracket_escape($name));
echo "";
if ($field["type"] == "enum") {
- echo " " . (isset($_GET["select"]) ? ' ' . lang('original') . ' ' : "");
+ echo " " . (isset($_GET["select"]) ? ' ' . lang('original') . ' ' : "");
if ($field["null"] || isset($_GET["default"])) {
- echo ' ' . ($field["null"] ? 'NULL ' : '') . ' ';
+ echo ' ' . ($field["null"] ? 'NULL ' : '') . ' ';
}
if (!isset($_GET["default"])) {
- echo ' ';
+ echo ' ';
}
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
foreach ($matches[1] as $i => $val) {
$val = stripcslashes(str_replace("''", "'", $val));
$checked = (is_int($value) ? $value == $i+1 : $value === $val);
- echo ' ' . htmlspecialchars($val) . ' ';
+ echo ' ' . htmlspecialchars($val) . ' ';
}
} else {
$first = ($field["null"] || isset($_GET["default"])) + isset($_GET["select"]);
@@ -302,22 +301,22 @@ function input($name, $field, $value) {
if ($field["null"] || isset($_GET["default"])) {
array_unshift($options, "NULL");
}
- echo (count($options) > 1 || isset($_GET["select"]) ? '' . (isset($_GET["select"]) ? '' . lang('original') . ' ' : '') . optionlist($options, ($value === false ? null : (isset($value) ? (string) $_POST["function"][$name] : 'NULL'))) . ' ' : " ") . ' ';
+ echo (count($options) > 1 || isset($_GET["select"]) ? '' . (isset($_GET["select"]) ? '' . lang('original') : '') . optionlist($options, ($value === false ? null : (isset($value) ? (string) $_POST["function"][$name] : 'NULL'))) . ' ' : " ") . ' ';
if ($field["type"] == "set") { //! 64 bits
preg_match_all("~'((?:[^']+|'')*)'~", $field["length"], $matches);
foreach ($matches[1] as $i => $val) {
$val = stripcslashes(str_replace("''", "'", $val));
$checked = (is_int($value) ? ($value >> $i) & 1 : in_array($val, explode(",", $value), true));
- echo ' ' . htmlspecialchars($val) . ' ';
+ echo ' ' . htmlspecialchars($val) . ' ';
}
} elseif (strpos($field["type"], "text") !== false) {
echo '' . htmlspecialchars($value) . ' ';
} elseif (preg_match('~binary|blob~', $field["type"])) {
- echo (ini_get("file_uploads") ? ' ' : lang('File uploads are disabled.') . ' ');
+ echo (ini_get("file_uploads") ? ' ' : lang('File uploads are disabled.') . ' ');
} else {
// int(3) is only a display hint
$maxlength = (!ereg('int', $field["type"]) && preg_match('~^([0-9]+)(,([0-9]+))?$~', $field["length"], $match) ? ($match[1] + ($match[3] ? 1 : 0) + ($match[2] && !$field["unsigned"] ? 1 : 0)) : ($types[$field["type"]] ? $types[$field["type"]] + ($field["unsigned"] ? 0 : 1) : 0));
- echo ' ';
+ echo ' ';
}
}
}
diff --git a/adminer/include/lang.inc.php b/adminer/include/lang.inc.php
index 3f26478c..cd03fd40 100644
--- a/adminer/include/lang.inc.php
+++ b/adminer/include/lang.inc.php
@@ -33,9 +33,9 @@ function switch_lang() {
hidden_fields($_GET, array('lang'));
echo lang('Language') . ": ";
foreach ($langs as $lang => $val) {
- echo "$val ";
+ echo "$val";
}
- echo " \n
\n\n\n";
+ echo "\n
\n\n\n";
}
if (isset($_GET["lang"])) {
diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php
index fca8d03a..b316bba5 100644
--- a/adminer/indexes.inc.php
+++ b/adminer/indexes.inc.php
@@ -65,24 +65,23 @@ if ($_POST) {
-
-
-
-
+
+
+
diff --git a/adminer/privileges.inc.php b/adminer/privileges.inc.php
index 946aa7e1..2c4caa13 100644
--- a/adminer/privileges.inc.php
+++ b/adminer/privileges.inc.php
@@ -1,24 +1,24 @@
' . lang('Create user') . " ";
+echo '' . lang('Create user') . " ";
$result = $dbh->query("SELECT User, Host FROM mysql.user ORDER BY Host, User");
if (!$result) {
?>
- " />
- :
- :
-
-
-
+ ">
+ :
+ :
+
+
+
query("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', 1) AS User, SUBSTRING_INDEX(CURRENT_USER, '@', -1) AS Host");
}
echo "\n";
-echo " " . lang('Username') . " " . lang('Server') . " \n";
+echo " " . lang('Username') . " " . lang('Server') . " \n";
while ($row = $result->fetch_assoc()) {
- echo '' . lang('edit') . ' ' . htmlspecialchars($row["User"]) . " " . htmlspecialchars($row["Host"]) . " \n";
+ echo '' . lang('edit') . ' ' . htmlspecialchars($row["User"]) . " " . htmlspecialchars($row["Host"]) . "\n";
}
echo "
\n";
$result->free();
diff --git a/adminer/procedure.inc.php b/adminer/procedure.inc.php
index 4f939657..653433d7 100644
--- a/adminer/procedure.inc.php
+++ b/adminer/procedure.inc.php
@@ -40,14 +40,13 @@ if ($_POST) {
-
+
-
-
-: " maxlength="64" />
-
- />
-
+
+
+: " maxlength="64">
+
+ >
diff --git a/adminer/processlist.inc.php b/adminer/processlist.inc.php
index aea5c2c4..c7bdb926 100644
--- a/adminer/processlist.inc.php
+++ b/adminer/processlist.inc.php
@@ -17,15 +17,14 @@ page_header(lang('Process list'), $error);
$result = $dbh->query("SHOW PROCESSLIST");
for ($i=0; $row = $result->fetch_assoc(); $i++) {
if (!$i) {
- echo " " . implode(" ", array_keys($row)) . " \n";
+ echo " " . implode(" ", array_keys($row)) . " \n";
}
- echo " " . implode(" ", $row) . " \n";
+ echo "" . implode(" ", $row) . "\n";
}
$result->free();
?>
-
-
-
+
+
diff --git a/adminer/schema.inc.php b/adminer/schema.inc.php
index 9dd0e1ca..fed0eacf 100644
--- a/adminer/schema.inc.php
+++ b/adminer/schema.inc.php
@@ -60,7 +60,7 @@ document.onmouseup = schema_mouseup;
$table) {
echo "";
- echo '
' . htmlspecialchars($name) . " \n";
+ echo '
' . htmlspecialchars($name) . " \n";
foreach ($table["fields"] as $field) {
$val = htmlspecialchars($field["field"]);
$title = ' title="' . htmlspecialchars($field["full_type"] . ($field["null"] ? " " . lang('NULL') : '')) . '"';
@@ -75,7 +75,7 @@ foreach ($schema as $name => $table) {
} else {
$val = "
$val ";
}
- echo ($field["primary"] ? "
$val " : $val) . "
\n";
+ echo ($field["primary"] ? "
$val " : $val) . "
\n";
}
foreach ((array) $table["references"] as $target_name => $refs) {
foreach ($refs as $left => $ref) {
diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index 471f2872..31cefd18 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -162,79 +162,78 @@ if (isset($rights["insert"])) {
echo '
' . lang('New item') . ' ';
}
echo adminer_select_links($table_status);
-echo "\n";
if (!$columns) {
- echo "
" . lang('Unable to select the table') . ($fields ? "" : ": " . htmlspecialchars($dbh->error)) . ".
\n";
+ echo "
" . lang('Unable to select the table') . ($fields ? "" : ": " . htmlspecialchars($dbh->error)) . ".\n";
} else {
echo "
\n";
echo '' . lang('Select') . " \n";
if (strlen($_GET["server"])) {
- echo '
';
+ echo '
';
}
- echo '
';
- echo '
';
+ echo '
';
+ echo '
';
echo "\n";
$i = 0;
$fun_group = array(lang('Functions') => $functions, lang('Aggregation') => $grouping);
foreach ($select as $key => $val) {
$val = $_GET["columns"][$key];
- echo "
" . optionlist($fun_group, $val["fun"]) . " ";
- echo " " . optionlist($columns, $val["col"]) . "
\n";
+ echo "
" . optionlist($fun_group, $val["fun"]) . " ";
+ echo "" . optionlist($columns, $val["col"]) . "
\n";
$i++;
}
- echo "
" . optionlist($fun_group) . " ";
- echo " " . optionlist($columns) . "
\n";
+ echo "
" . optionlist($fun_group) . " ";
+ echo "" . optionlist($columns) . "
\n";
echo "
\n";
echo '' . lang('Search') . " \n";
echo '' . lang('Sort') . " \n";
echo "" . lang('Limit') . " "; //
for easy styling
- echo " ";
+ echo " ";
echo "
\n";
if (isset($text_length)) {
echo "
" . lang('Text length') . " ";
- echo " ";
+ echo " ";
echo "
\n";
}
echo "
" . lang('Action') . " ";
- echo " ";
+ echo " ";
echo "
\n";
echo "\n";
@@ -243,11 +242,11 @@ if (!$columns) {
$result = $dbh->query($query);
if (!$result) {
- echo "
" . htmlspecialchars($dbh->error) . "
\n";
+ echo "
" . htmlspecialchars($dbh->error) . "\n";
} else {
echo "
\n";
if (!$result->num_rows) {
- echo "" . lang('No rows.') . "
\n";
+ echo "" . lang('No rows.') . "\n";
} else {
$foreign_keys = array();
foreach (foreign_keys($_GET["select"]) as $foreign_key) {
@@ -261,14 +260,14 @@ if (!$columns) {
echo "
\n";
@@ -328,23 +326,23 @@ if (!$columns) {
}
print_pagination($max_page);
}
- echo " (" . lang('%d row(s)', $found_rows) . ') ' . lang('whole result') . " \n";
+ echo " (" . lang('%d row(s)', $found_rows) . ') ' . lang('whole result') . " \n";
- echo (information_schema($_GET["db"]) ? "" : "" . lang('Edit') . "
\n");
- echo "" . lang('Export') . " $dump_output $dump_format
\n";
+ echo (information_schema($_GET["db"]) ? "" : "" . lang('Edit') . "
\n");
+ echo "" . lang('Export') . " $dump_output $dump_format
\n";
}
$result->free();
- echo "" . lang('CSV Import') . "
\n";
+ echo "" . lang('CSV Import') . "
\n";
//! Editor only
$email_fields = array_filter($email_fields);
if ($email_fields) {
echo '' . lang('E-mail') . " \n";
}
diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php
index 6f2847cb..5177df68 100644
--- a/adminer/sql.inc.php
+++ b/adminer/sql.inc.php
@@ -36,13 +36,13 @@ if (!$error && $_POST) {
$start = explode(" ", microtime()); // microtime(true) is available since PHP 5
//! don't allow changing of character_set_results, convert encoding of displayed query
if (!$dbh->multi_query(substr($query, 0, $match[0][1]))) {
- echo "" . lang('Error in query') . ": " . htmlspecialchars($dbh->error) . "
\n";
+ echo "" . lang('Error in query') . ": " . htmlspecialchars($dbh->error) . "\n";
if ($_POST["error_stops"]) {
break;
}
} else {
$end = explode(" ", microtime());
- echo "
" . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "
\n";
+ echo "" . lang('%.3f s', max(0, $end[0] - $start[0] + $end[1] - $start[1])) . "\n";
do {
$result = $dbh->store_result();
if (is_object($result)) {
@@ -51,7 +51,7 @@ if (!$error && $_POST) {
if (preg_match("~^$space*(CREATE|DROP)$space+(DATABASE|SCHEMA)\\b~isU", $query)) {
unset($_SESSION["databases"][$_GET["server"]]); // clear cache
}
- echo "
" . lang('Query executed OK, %d row(s) affected.', $dbh->affected_rows) . "
\n";
+ echo "" . lang('Query executed OK, %d row(s) affected.', $dbh->affected_rows) . "\n";
}
} while ($dbh->next_result());
}
@@ -61,38 +61,36 @@ if (!$error && $_POST) {
}
}
if ($empty) {
- echo "
" . lang('No commands to execute.') . "
\n";
+ echo "" . lang('No commands to execute.') . "\n";
}
} else {
- echo "
" . lang('Unable to upload a file.') . "
\n";
+ echo "" . lang('Unable to upload a file.') . "\n";
}
}
?>
-
+
-
-
- />
-
+
+
+ >
-:
-
+:
+
-
" . lang('History') . " \n";
foreach ($history as $key => $val) {
//! save and display timestamp
- echo '' . lang('Edit') . ' ' . shorten_utf8(str_replace("\n", " ", $val), 80, "
") . " \n";
+ echo '' . lang('Edit') . ' ' . shorten_utf8(str_replace("\n", " ", $val), 80, "
") . " \n";
}
echo "\n";
}
diff --git a/adminer/table.inc.php b/adminer/table.inc.php
index 229e7e00..ecbf7ba3 100644
--- a/adminer/table.inc.php
+++ b/adminer/table.inc.php
@@ -13,7 +13,7 @@ if ($result) {
if (!$row["auto_increment"]) {
$auto_increment_only = false;
}
- echo "" . htmlspecialchars($row["Field"]) . " " . htmlspecialchars($row["Type"]) . ($row["Null"] == "YES" ? " NULL " : "") . " \n";
+ echo "" . htmlspecialchars($row["Field"]) . " " . htmlspecialchars($row["Type"]) . ($row["Null"] == "YES" ? " NULL " : "") . "\n";
}
echo "\n";
$result->free();
@@ -23,7 +23,6 @@ if ($result) {
echo ($auto_increment_only ? '' : ' ' . lang('Default values') . ' ');
echo ' ' . lang('Select table') . ' ';
echo ' ' . lang('New item') . ' ';
- echo "\n";
echo "" . lang('Indexes') . " \n";
$indexes = indexes($_GET["table"]);
@@ -35,11 +34,11 @@ if ($result) {
foreach ($index["columns"] as $key => $val) {
$print[] = "" . htmlspecialchars($val) . " " . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : "");
}
- echo " $index[type] " . implode(", ", $print) . " \n";
+ echo "$index[type] " . implode(", ", $print) . "\n";
}
echo "\n";
}
- echo '' . lang('Alter indexes') . "
\n";
+ echo '' . lang('Alter indexes') . " \n";
if ($table_status["Engine"] == "InnoDB") {
echo "
" . lang('Foreign keys') . " \n";
@@ -49,15 +48,14 @@ if ($result) {
foreach ($foreign_keys as $name => $foreign_key) {
$link = (strlen($foreign_key["db"]) ? "" . htmlspecialchars($foreign_key["db"]) . " ." : "") . htmlspecialchars($foreign_key["table"]);
echo " ";
- echo "" . implode(" , ", array_map('htmlspecialchars', $foreign_key["source"])) . " ";
+ echo "" . implode(" , ", array_map('htmlspecialchars', $foreign_key["source"])) . " ";
echo '$link ";
- echo "(" . implode(" , ", array_map('htmlspecialchars', $foreign_key["target"])) . " ) ";
- echo "" . (!strlen($foreign_key["db"]) ? '' . lang('Alter') . ' ' : ' ') . " ";
- echo " \n";
+ echo "(" . implode(" , ", array_map('htmlspecialchars', $foreign_key["target"])) . " )";
+ echo "" . (!strlen($foreign_key["db"]) ? '' . lang('Alter') . ' ' : ' ');
}
echo "\n";
}
- echo '' . lang('Add foreign key') . "
\n";
+ echo '' . lang('Add foreign key') . " \n";
}
}
@@ -67,10 +65,10 @@ if ($dbh->server_info >= 5) {
if ($result->num_rows) {
echo "
\n";
while ($row = $result->fetch_assoc()) {
- echo "$row[Timing] $row[Event] " . htmlspecialchars($row["Trigger"]) . " ' . lang('Alter') . " \n";
+ echo "$row[Timing] $row[Event] " . htmlspecialchars($row["Trigger"]) . " ' . lang('Alter') . " \n";
}
echo "
\n";
}
$result->free();
- echo '' . lang('Add trigger') . "
\n";
+ echo '' . lang('Add trigger') . " \n";
}
diff --git a/adminer/trigger.inc.php b/adminer/trigger.inc.php
index 9085df05..e79ba959 100644
--- a/adminer/trigger.inc.php
+++ b/adminer/trigger.inc.php
@@ -27,15 +27,14 @@ if ($_POST) {
-
+
-
-
-
- />
-
+
+
+
+ >
diff --git a/adminer/user.inc.php b/adminer/user.inc.php
index cafaba16..891aa663 100644
--- a/adminer/user.inc.php
+++ b/adminer/user.inc.php
@@ -124,21 +124,21 @@ if ($_POST) {
?>
\n";
-echo "" . lang('Privileges') . " ";
+echo "" . lang('Privileges');
$i = 0;
foreach ($grants as $object => $grant) {
- echo ' ' . ($object != "*.*" ? ' ' : ' *.*') . ' '; //! separate db, table, columns, PROCEDURE|FUNCTION, routine
+ echo '' . ($object != "*.*" ? ' ' : ' *.*'); //! separate db, table, columns, PROCEDURE|FUNCTION, routine
$i++;
}
-echo " \n";
+echo " \n";
foreach (array(
"" => "",
"Server Admin" => lang('Server'),
@@ -148,28 +148,26 @@ foreach (array(
"Procedures" => lang('Routine'),
) as $context => $desc) {
foreach ((array) $privileges[$context] as $privilege => $comment) {
- echo "$desc ' . htmlspecialchars($privilege) . " ";
+ echo "$desc ' . htmlspecialchars($privilege) . " ";
$i = 0;
foreach ($grants as $object => $grant) {
$name = '"grants[' . $i . '][' . htmlspecialchars(strtoupper($privilege)) . ']"';
$value = $grant[strtoupper($privilege)];
if ($context == "Server Admin" && $object != (isset($grants["*.*"]) ? "*.*" : "")) {
- echo " ";
+ echo " ";
} elseif (isset($_GET["grant"])) {
- echo " " . lang('Grant') . " " . lang('Revoke') . " ";
+ echo "" . lang('Grant') . " " . lang('Revoke') . " ";
} else {
- echo " ";
+ echo " ";
}
$i++;
}
- echo " \n";
}
}
echo "\n";
?>
-
-
- />
-
+
+
+ >
diff --git a/adminer/variables.inc.php b/adminer/variables.inc.php
index 10be348d..ad853fee 100644
--- a/adminer/variables.inc.php
+++ b/adminer/variables.inc.php
@@ -5,9 +5,8 @@ echo "\n";
$result = $dbh->query("SHOW VARIABLES");
while ($row = $result->fetch_assoc()) {
echo "";
- echo "" . htmlspecialchars($row["Variable_name"]) . "
";
- echo "" . (strlen(trim($row["Value"])) ? htmlspecialchars($row["Value"]) : " ") . " ";
- echo " \n";
+ echo "" . htmlspecialchars($row["Variable_name"]) . "
";
+ echo "" . (strlen(trim($row["Value"])) ? htmlspecialchars($row["Value"]) : " ");
}
$result->free();
echo "
\n";
diff --git a/adminer/view.inc.php b/adminer/view.inc.php
index c4d8ec7c..ab99929a 100644
--- a/adminer/view.inc.php
+++ b/adminer/view.inc.php
@@ -2,4 +2,4 @@
page_header(lang('View') . ": " . htmlspecialchars($_GET["view"]));
$view = view($_GET["view"]);
echo "" . htmlspecialchars($view["select"]) . " \n";
-echo '' . lang('Alter view') . "
\n";
+echo '' . lang('Alter view') . " \n";
diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php
index 7be722b6..b4dea4d8 100644
--- a/editor/include/adminer.inc.php
+++ b/editor/include/adminer.inc.php
@@ -38,23 +38,21 @@ function adminer_navigation($missing) {
?>
- " />
-
-
+ ">
+
" . lang('No tables.') . "\n";
+ echo "" . lang('No tables.') . "\n";
} else {
echo "
\n";
foreach ($table_status as $row) {
if (isset($row["Engine"])) { // ignore views
- echo '' . adminer_table_name($row) . " \n";
+ echo '' . adminer_table_name($row) . " \n";
}
}
- echo "
\n";
}
}
}