1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-19 12:51:27 +02:00

Improve concurrency

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1225 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-11-02 22:09:23 +00:00
parent dfb36a693f
commit f9a20232ae
8 changed files with 26 additions and 6 deletions

View File

@@ -358,6 +358,7 @@ class Adminer {
* @return string
*/
function messageQuery($query) {
session_start();
$id = "sql-" . count($_SESSION["messages"]);
$_SESSION["history"][$_GET["server"]][DB][] = $query;
return " <a href='#$id' onclick=\"return !toggle('$id');\">" . lang('SQL command') . "</a><div id='$id' class='hidden'><pre class='jush-sql'>" . shorten_utf8($query, 1000) . '</pre><a href="' . h(ME . 'sql=&history=' . (count($_SESSION["history"][$_GET["server"]][DB]) - 1)) . '">' . lang('Edit') . '</a></div>';