This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('body').on('mousewheel DOMMouseScroll', function(e){ | |
if(typeof e.originalEvent.detail == 'number' && e.originalEvent.detail !== 0) { | |
if(e.originalEvent.detail > 0) { | |
console.log('Down'); | |
} else if(e.originalEvent.detail < 0){ | |
console.log('Up'); | |
} | |
} else if (typeof e.originalEvent.wheelDelta == 'number') { | |
if(e.originalEvent.wheelDelta < 0) { | |
console.log('Down'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* D7 autologin. | |
* Exploits SA-CORE-2014-005 to change your anonymous session into an uid 1 session. | |
* In order to work, first you need to have an anonymous session in the sessions table. | |
* One way to achieve this is to go to the update.php page. | |
* | |
* Usage: php d7-autologin.php http://example.com 127.0.0.1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies[] = ctools | |
; Views Handlers | |
files[] = views/mymodule_handler_handlername.inc |