This file contains hidden or 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
| function es_api_detect_lang( $text ) { | |
| $lang = false; | |
| //if we can't tell the lang with 5000 characters we probably can't tell the language | |
| $text = mb_substr( $text, 0, 5000 ); | |
| //replace non-breaking spaces so they don't match the \p{L} char class | |
| $text = preg_replace( '/[\x{00A0}\x{2007}\x{202F}]/u', ' ', $text ); | |
| //replace unicode symbols: see: http://www.utf8-chartable.de/unicode-utf8-table.pl |
This file contains hidden or 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 | |
| /* Plugin Name: Damn Vulnerable WordPress Plugin | |
| * Description: Intentionally vulnerable plugin for plugin author education | |
| * Version: 0.1 | |
| * Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
| * Author: Jon Cave | |
| * Author URI: http://joncave.co.uk | |
| * License: GPLv2+ | |
| * | |
| * DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
This file contains hidden or 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
| (function (window, document) { | |
| //------------------------------------ | |
| // GLOBAL VARIABLES | |
| //------------------------------------ | |
| var location = window.location; | |
| var navigator = window.navigator; | |
| var userAgent = navigator.userAgent; | |
| //------------------------------------ |
This file contains hidden or 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
| (function (win, doc) { | |
| function getRangeAtCollapse(range, collapsed) { | |
| // get range as item | |
| if (range.item) { | |
| var rangeItem = range.item(0); | |
| // return the data | |
| return { node: rangeItem }; | |
| } | |
| // get range as text | |
| var |
This file contains hidden or 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 | |
| /** | |
| * function sarfile($string) | |
| * @author Yeremi Loli | |
| * @access : public | |
| * @version : 0.0.1 | |
| * @description : | |
| * Sanitize And Rename Files. | |
| * - Replace many accented letters to clean letters. | |
| * - Give a prefix using microtime(true). More explanation in http://php.net/manual/en/function.microtime.php |
This file contains hidden or 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 | |
| /* | |
| * class Connection | |
| * @author Yeremi Loli | |
| * @since 0.01 v | |
| * @category Global Singleton Connect | |
| * @copyright 2011 | |
| * @example : | |
| try { | |
| $conn = Connection::Singleton(); |