New plugins: version-noverify, frames
This commit is contained in:
parent
052828422d
commit
15cf62ce35
14
plugins/frames.php
Normal file
14
plugins/frames.php
Normal 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");
|
||||
}
|
||||
|
||||
}
|
19
plugins/version-noverify.php
Normal file
19
plugins/version-noverify.php
Normal 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
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue