]> git.joonet.de Git - adminer.git/commitdiff
Comments
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 22 Jul 2009 11:03:22 +0000 (11:03 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 22 Jul 2009 11:03:22 +0000 (11:03 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@872 7c3ca157-0c34-0410-bff1-cbf682f78f5c

examples/editor-cds/index.php

index 86848de494bf937861bb44fb635b95799dd31341..5a777e3ff8a7669fc4ca2e7b21f8118bd649b9a2 100644 (file)
@@ -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"]);
        }