mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 07:06:45 +02:00
New plugins: version-noverify, frames
This commit is contained in:
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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user