From 1bc2792a41f10164e98118151ec9a3a128816003 Mon Sep 17 00:00:00 2001
From: jakubvrana
Date: Thu, 5 Jul 2007 05:15:53 +0000
Subject: [PATCH] Move to design.inc.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@30 7c3ca157-0c34-0410-bff1-cbf682f78f5c
---
connect.inc.php | 2 +-
create.inc.php | 1 -
database.inc.php | 1 -
design.inc.php | 1 +
edit.inc.php | 1 -
index.php | 2 +-
indexes.inc.php | 1 -
select.inc.php | 4 +---
sql.inc.php | 1 -
table.inc.php | 1 -
view.inc.php | 1 -
11 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/connect.inc.php b/connect.inc.php
index c255449f..759eb24f 100644
--- a/connect.inc.php
+++ b/connect.inc.php
@@ -1,6 +1,6 @@
" . lang('Invalid database.') . "
\n";
} else {
diff --git a/create.inc.php b/create.inc.php
index cdcf2e42..4985fc03 100644
--- a/create.inc.php
+++ b/create.inc.php
@@ -29,7 +29,6 @@ if ($_POST && !$_POST["add"]) {
$error = mysql_error();
}
page_header(strlen($_GET["create"]) ? lang('Alter table') . ': ' . htmlspecialchars($_GET["create"]) : lang('Create table'));
-echo "" . lang('Unable to operate database') . ": " . htmlspecialchars($error) . "
\n";
diff --git a/design.inc.php b/design.inc.php
index 23c8fd2e..f7179e25 100644
--- a/design.inc.php
+++ b/design.inc.php
@@ -67,6 +67,7 @@ H2 { font-size: 150%; margin-top: 0; }
$title\n";
}
if ($_SESSION["message"]) {
echo "
$_SESSION[message]
\n";
diff --git a/edit.inc.php b/edit.inc.php
index 161a419b..8b759571 100644
--- a/edit.inc.php
+++ b/edit.inc.php
@@ -32,7 +32,6 @@ if ($_POST) {
$error = mysql_error();
}
page_header(($_GET["where"] ? lang('Edit') : lang('Insert')) . ": " . htmlspecialchars($_GET["edit"]));
-echo "
" . ($_GET["where"] ? lang('Edit') : lang('Insert')) . ": " . htmlspecialchars($_GET["edit"]) . "
\n";
$where = array();
if (is_array($_GET["where"])) {
diff --git a/index.php b/index.php
index 6bcb10fa..fef4c054 100644
--- a/index.php
+++ b/index.php
@@ -26,7 +26,7 @@ if (isset($_GET["sql"])) {
} elseif (isset($_GET["database"])) {
include "./database.inc.php";
} else {
- page_header(htmlspecialchars($_GET["db"]));
+ page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"]));
echo '
' . lang('Alter database') . "
\n";
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
if (mysql_num_rows($result)) {
diff --git a/indexes.inc.php b/indexes.inc.php
index f43f8bb0..4e063052 100644
--- a/indexes.inc.php
+++ b/indexes.inc.php
@@ -34,7 +34,6 @@ if ($_POST) {
}
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
-echo "
" . lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]) . "
\n";
if ($_POST) {
echo "
" . lang('Unable to operate indexes') . ": " . htmlspecialchars($error) . "
\n";
diff --git a/select.inc.php b/select.inc.php
index 0c6879a6..bcd7d5a0 100644
--- a/select.inc.php
+++ b/select.inc.php
@@ -1,10 +1,8 @@
" . lang('Select') . ": " . htmlspecialchars($_GET["select"]) . "\n";
echo '
' . lang('New item') . "
\n";
-$indexes = indexes($_GET["select"]);
-
echo "