]> git.joonet.de Git - adminer.git/commitdiff
Don't compile editor for example
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 24 Jul 2009 16:18:51 +0000 (16:18 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 24 Jul 2009 16:18:51 +0000 (16:18 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@908 7c3ca157-0c34-0410-bff1-cbf682f78f5c

editor/example.php [new file with mode: 0644]
examples/cds.sql [deleted file]
examples/editor-cds/index.php [deleted file]
tests/13-delete.html

diff --git a/editor/example.php b/editor/example.php
new file mode 100644 (file)
index 0000000..52c1b3d
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+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 'adminer_test';
+       }
+       
+       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($field) {
+               // fields without comments will be ignored
+               return ($field ? htmlspecialchars($field["comment"]) : "*");
+       }
+       
+}
+
+include "./index.php";
diff --git a/examples/cds.sql b/examples/cds.sql
deleted file mode 100644 (file)
index e7bf802..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-DROP DATABASE IF EXISTS adminer_test;
-CREATE DATABASE adminer_test COLLATE utf8_czech_ci;
-USE adminer_test;
-
-CREATE TABLE interprets (
-       id int NOT NULL auto_increment,
-       name varchar(50) NOT NULL COMMENT 'Name',
-       PRIMARY KEY (id)
-) ENGINE=InnoDB COMMENT='Interprets';
-
-CREATE TABLE albums (
-       id int NOT NULL auto_increment,
-       interpret int NOT NULL COMMENT 'Interpret',
-       title varchar(100) NOT NULL COMMENT 'Title',
-       FOREIGN KEY (interpret) REFERENCES interprets(id),
-       PRIMARY KEY (id)
-) ENGINE=InnoDB COMMENT='Albums';
-
-CREATE TABLE songs (
-       id int NOT NULL auto_increment,
-       album int NOT NULL COMMENT 'Album',
-       rank tinyint(4) NOT NULL COMMENT 'Rank',
-       title varchar(100) NOT NULL COMMENT 'Title',
-       duration time NOT NULL COMMENT 'Duration',
-       FOREIGN KEY (album) REFERENCES albums(id),
-       PRIMARY KEY (id)
-) ENGINE=InnoDB COMMENT='Songs';
-
-INSERT INTO interprets VALUES (1, 'Michael Jackson');
-INSERT INTO albums VALUES (1, 1, 'Dangerous');
-INSERT INTO songs VALUES (1, 1, 1, 'Jam', '00:05:39'), (2, 1, 2, 'Why You Wanna Trip On Me', '00:05:24'), (3, 1, 3, 'In the Closet', '00:06:31'), (4, 1, 4, 'She Drives Me Wild', '00:03:41'), (5, 1, 5, 'Remember the Time', '00:04:00'), (6, 1, 6, 'Can\'t Let Her Get Away', '00:04:58'), (7, 1, 7, 'Heal the World', '00:06:24'), (8, 1, 8, 'Black or White', '00:04:15'), (9, 1, 9, 'Who Is It', '00:06:34'), (10, 1, 10, 'Give In To Me', '00:05:29'), (11, 1, 11, 'Will You Be There', '00:07:40'), (12, 1, 12, 'Keep the Faith', '00:05:57'), (13, 1, 13, 'Gone Too Soon', '00:03:23'), (14, 1, 14, 'Dangerous', '00:06:57');
diff --git a/examples/editor-cds/index.php b/examples/editor-cds/index.php
deleted file mode 100644 (file)
index c49fad8..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-// try to compile current version
-$_SERVER["argv"] = array("", "editor");
-ob_start();
-include "../../compile.php";
-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 'adminer_test';
-       }
-       
-       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($field) {
-               // fields without comments will be ignored
-               return ($field ? htmlspecialchars($field["comment"]) : "*");
-       }
-       
-}
-
-include "./editor.php";
index 9ecc09fb8f168c6e0dbdd04d66b48e9db06f6e21..a28dbbd3a44078e5bcc50f5a19e075094e7a8a32 100644 (file)
        <td>delete</td>
        <td></td>
 </tr>
+<tr>
+       <td>assertConfirmation</td>
+       <td>Are you sure?</td>
+       <td></td>
+</tr>
 <tr>
        <td>verifyTextPresent</td>
        <td>1 item have been affected.</td>