adminerevo/examples/editor-cds/index.php

29 lines
411 B
PHP
Raw Normal View History

<?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');
}
}
include "./editor.php";