mirror of
https://github.com/vrana/adminer.git
synced 2026-03-05 12:01:25 +01:00
File upload on same URL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@99 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
session_start();
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
$SELF = preg_replace('~^[^?]*/([^?]*).*~', '\\1?', $_SERVER["REQUEST_URI"]) . (strlen($_GET["server"]) ? 'server=' . urlencode($_GET["server"]) . '&' : '') . (strlen($_GET["db"]) ? 'db=' . urlencode($_GET["db"]) . '&' : '');
|
||||
$TOKENS = &$_SESSION["tokens"][$_GET["server"]][preg_replace('~([?&]sql=)upload~', '\\1', $_SERVER["REQUEST_URI"])];
|
||||
$TOKENS = &$_SESSION["tokens"][$_GET["server"]][$_SERVER["REQUEST_URI"]];
|
||||
include "./functions.inc.php";
|
||||
include "./lang.inc.php";
|
||||
include "./design.inc.php";
|
||||
|
||||
Reference in New Issue
Block a user