New plugins: version-noverify, frames

This commit is contained in:
Jakub Vrana 2011-02-17 09:23:13 +01:00
parent 052828422d
commit 15cf62ce35
2 changed files with 33 additions and 0 deletions

14
plugins/frames.php Normal file
View file

@ -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");
}
}

View file

@ -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
}
}