diff --git a/examples/editor-cds/index.php b/examples/editor-cds/index.php index 86848de4..5a777e3f 100644 --- a/examples/editor-cds/index.php +++ b/examples/editor-cds/index.php @@ -8,26 +8,32 @@ ob_end_clean(); class Adminer { function name() { + // custom name in title and heading return 'CDs'; } function credentials() { + // ODBC user without password on localhost return array('localhost', 'ODBC', ''); } function database() { + // will be escaped by Adminer return 'cds'; } function login($login, $password) { + // username: admin, password: anything return ($login == 'admin'); } function table_name($row) { + // tables without comments would return empty string and will be ignored by Adminer return htmlspecialchars($row["Comment"]); } function field_name($fields, $key) { + // fields without comments will be ignored return htmlspecialchars($fields[$key]["comment"]); }