mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Use namespaces in plugins
This commit is contained in:
@@ -18,10 +18,10 @@ class AdminerDesigns {
|
||||
}
|
||||
|
||||
function headers() {
|
||||
if (isset($_POST["design"]) && verify_token()) {
|
||||
restart_session();
|
||||
if (isset($_POST["design"]) && Adminer\verify_token()) {
|
||||
Adminer\restart_session();
|
||||
$_SESSION["design"] = $_POST["design"];
|
||||
redirect($_SERVER["REQUEST_URI"]);
|
||||
Adminer\redirect($_SERVER["REQUEST_URI"]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ class AdminerDesigns {
|
||||
|
||||
function navigation($missing) {
|
||||
echo "<form action='' method='post' style='position: fixed; bottom: .5em; right: .5em;'>";
|
||||
echo html_select("design", array("" => "(design)") + $this->designs, $_SESSION["design"], "this.form.submit();");
|
||||
echo '<input type="hidden" name="token" value="' . get_token() . '">';
|
||||
echo Adminer\html_select("design", array("" => "(design)") + $this->designs, $_SESSION["design"], "this.form.submit();");
|
||||
echo '<input type="hidden" name="token" value="' . Adminer\get_token() . '">';
|
||||
echo "</form>\n";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user