mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 12:21:24 +02:00
More separation
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@785 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,6 +1,22 @@
|
||||
<?php
|
||||
class AdminerBase {
|
||||
|
||||
function name() {
|
||||
return lang('Adminer');
|
||||
}
|
||||
|
||||
function server() {
|
||||
return $_GET["server"];
|
||||
}
|
||||
|
||||
function username() {
|
||||
return $_SESSION["usernames"][$_GET["server"]];
|
||||
}
|
||||
|
||||
function password() {
|
||||
return $_SESSION["passwords"][$_GET["server"]];
|
||||
}
|
||||
|
||||
function table_list($row) {
|
||||
global $SELF;
|
||||
echo '<a href="' . htmlspecialchars($SELF) . 'select=' . urlencode($row["Name"]) . '">' . lang('select') . '</a> ';
|
||||
@@ -16,3 +32,5 @@ class AdminerBase {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$adminer = (class_exists("Adminer") ? new Adminer : new AdminerBase);
|
||||
|
Reference in New Issue
Block a user