Permalink
Browse files

New plugins: version-noverify, frames

  • Loading branch information...
1 parent 0528284 commit 15cf62ce354872c10d22bea79480cc622fd53c98 @vrana committed Feb 17, 2011
Showing with 33 additions and 0 deletions.
  1. +14 −0 plugins/frames.php
  2. +19 −0 plugins/version-noverify.php
View
@@ -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");
+ }
+
+}
@@ -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
+ }
+
+}

0 comments on commit 15cf62c

Please sign in to comment.