From bf12723f5d550813bb18dfcc19b1bc0631b04b26 Mon Sep 17 00:00:00 2001
From: jakubvrana
Date: Mon, 9 Jul 2007 07:29:02 +0000
Subject: [PATCH] Prepare for call
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@78 7c3ca157-0c34-0410-bff1-cbf682f78f5c
---
call.inc.php | 38 ++++++++++++++++++++++++++++++++++++++
index.php | 4 +++-
2 files changed, 41 insertions(+), 1 deletion(-)
create mode 100644 call.inc.php
diff --git a/call.inc.php b/call.inc.php
new file mode 100644
index 00000000..a61700d4
--- /dev/null
+++ b/call.inc.php
@@ -0,0 +1,38 @@
+" . lang('Error during calling') . ": " . htmlspecialchars($error) . "
\n";
+ } else {
+ select($result);
+ }
+}
+?>
+
diff --git a/index.php b/index.php
index 17cf21de..0263c4ae 100644
--- a/index.php
+++ b/index.php
@@ -37,6 +37,8 @@ if (isset($_GET["dump"])) {
include "./indexes.inc.php";
} elseif (isset($_GET["database"])) {
include "./database.inc.php";
+ } elseif (isset($_GET["call"])) {
+ include "./call.inc.php";
} else {
$TOKENS = array();
page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"]));
@@ -49,7 +51,7 @@ if (isset($_GET["dump"])) {
while ($row = mysql_fetch_assoc($result)) {
echo "";
echo "" . htmlspecialchars($row["ROUTINE_TYPE"]) . " | ";
- echo "" . htmlspecialchars($row["ROUTINE_NAME"]) . " | "; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION}
+ echo '' . htmlspecialchars($row["ROUTINE_NAME"]) . ' | ';
echo "" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . " | ";
echo "
\n";
}