]> git.joonet.de Git - adminer.git/commitdiff
New plugins: version-noverify, frames
authorJakub Vrana <jakub@vrana.cz>
Thu, 17 Feb 2011 08:23:13 +0000 (09:23 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 17 Feb 2011 08:52:40 +0000 (09:52 +0100)
plugins/frames.php [new file with mode: 0644]
plugins/version-noverify.php [new file with mode: 0644]

diff --git a/plugins/frames.php b/plugins/frames.php
new file mode 100644 (file)
index 0000000..086e054
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+/** Allow using Adminer inside a frame
+* @author Jakub Vrana, http://www.vrana.cz/
+* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
+* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
+*/
+class AdminerFrames {
+       
+       function headers() {
+               header("X-XSS-Protection: 0");
+       }
+       
+}
diff --git a/plugins/version-noverify.php b/plugins/version-noverify.php
new file mode 100644 (file)
index 0000000..a8ceb50
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+/** Disable version checker
+* @author Jakub Vrana, http://www.vrana.cz/
+* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
+* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
+*/
+class AdminerVersionNoverify {
+       
+       function navigation($missing) {
+               ?>
+<script type="text/javascript">
+verifyVersion = function () {
+};
+</script>
+<?php
+       }
+       
+}