116c873671
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@861 7c3ca157-0c34-0410-bff1-cbf682f78f5c
37 lines
585 B
PHP
37 lines
585 B
PHP
<?php
|
|
// try to compile current version
|
|
$_SERVER["argv"] = array("", "editor");
|
|
ob_start();
|
|
include "../../compile.php";
|
|
ob_end_clean();
|
|
|
|
class Adminer {
|
|
|
|
function name() {
|
|
return 'CDs';
|
|
}
|
|
|
|
function credentials() {
|
|
return array('localhost', 'ODBC', '');
|
|
}
|
|
|
|
function database() {
|
|
return 'cds';
|
|
}
|
|
|
|
function login($login, $password) {
|
|
return ($login == 'admin');
|
|
}
|
|
|
|
function table_name($row) {
|
|
return htmlspecialchars($row["Comment"]);
|
|
}
|
|
|
|
function field_name($fields, $key) {
|
|
return htmlspecialchars($fields[$key]["comment"]);
|
|
}
|
|
|
|
}
|
|
|
|
include "./editor.php";
|