1
0
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:
jakubvrana
2009-07-03 05:44:44 +00:00
parent ab489769f7
commit ed229500bf
7 changed files with 32 additions and 14 deletions

View File

@@ -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);