Permalink
Browse files

Adminer class

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@913 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 90a6bd8 commit c64c4fd14dd0921b03dffcfa404c3098ee128431 jakubvrana committed Jul 27, 2009
View
@@ -3,7 +3,7 @@
$update = ($where && !$_POST["clone"]);
$fields = fields($_GET["edit"]);
foreach ($fields as $name => $field) {
- if ((isset($_GET["default"]) ? $field["auto_increment"] || ereg('text|blob', $field["type"]) : !isset($field["privileges"][$update ? "update" : "insert"])) || !strlen(adminer_field_name($field))) {
+ if ((isset($_GET["default"]) ? $field["auto_increment"] || ereg('text|blob', $field["type"]) : !isset($field["privileges"][$update ? "update" : "insert"])) || !strlen($adminer->fieldName($field))) {
unset($fields[$name]);
}
}
@@ -36,7 +36,7 @@
}
}
-$table_name = adminer_table_name(table_status($_GET["edit"]));
+$table_name = $adminer->tableName(table_status($_GET["edit"]));
page_header(
(isset($_GET["default"]) ? lang('Default values') : ($_GET["where"] || (isset($_GET["select"]) && !$_POST["clone"]) ? lang('Edit') : lang('Insert'))),
$error,
@@ -69,7 +69,7 @@
unset($create);
echo "<table cellspacing='0'>\n";
foreach ($fields as $name => $field) {
- echo "<tr><th>" . adminer_field_name($field);
+ echo "<tr><th>" . $adminer->fieldName($field);
$value = (isset($row)
? (strlen($row[$name]) && ($field["type"] == "enum" || $field["type"] == "set") ? intval($row[$name]) : $row[$name])
: ($_POST["clone"] && $field["auto_increment"] ? "" : (isset($_GET["select"]) ? false : $field["default"]))
Oops, something went wrong.

0 comments on commit c64c4fd

Please sign in to comment.