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 | |
namespace \net\zeddev\util; | |
/** | |
* A simple utility to dynamically create thumbnail images. Images can be | |
* stored on disk, or served on the fly (depending how constructed). For | |
* example: | |
* | |
* $ondisk = new Thumbnailer('thumbnail/dir/path'); |
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 | |
/** | |
* Renders BBCode to html, suitable to be embedded in a document. Supports only | |
* a limited set of BBCode tags (can be extended), which are: | |
* | |
* @param $bbcode The bbcode to be rendered. Must not be `null` or empty | |
* string. | |
* @param $reps Optional additional replacements. Allows you to add custom tags | |
* etc. Should be an associative array, mapping a regex (preg) to replacement. |
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 | |
namespace net\zeddev\util; | |
// start session if not already | |
if (session_id() == '') | |
session_start(); | |
/** | |
* Utility to prevent cross-site request forgeries (XSRF) using a request scoped |
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 | |
/** Returns a fuzzy/approx of a date in the past. */ | |
function fuzzyDate($date){ | |
$time = strtotime($date); | |
$now = time(); | |
$ago = $now - $time; | |
if ($ago < 60) { |
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 | |
/** | |
Plugin Name: Secman | |
Plugin URI: https://gist.github.com/zscott92/0b052fc6f5fd42d33a02 | |
Description: Checks HTTP requests for common attacks/exploits (XSS, XSRF and SQL injection). Just activate and forget - no configuration! | |
Version: 1.0 | |
License: MIT License | |
Author: Zachary Scott | |
Author URI: http://www.zacscott.net | |
*/ |
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
License Key PhpStorm 8 | |
User Name : EMBRACE | |
===== LICENSE BEGIN ===== | |
43136-12042010 | |
00002UsvSON704l"dILe1PVx3y4"B3 | |
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh | |
gd1BebYc5U"6OxDbVsALB4Eb10PW8" | |
===== LICENSE END ===== |
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 | |
/** @file s3_signed_url.php - provides the s3_signed_url() function to produce time-limited URL's using AWS S3. | |
* Based off; http://dev.wattswork.com/make-signed-urls-for-amazon-s3-with-php/ | |
*/ | |
if ( !function_exists('s3_signed_url' ) ) { | |
/** | |
* Create signed URLs to your protected Amazon S3 files. | |
* |
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 | |
/** GeoIP.php - GeoIP API lookup interface | |
* Uses the Free GeoIP API to perform lookup - http://freegeoip.net | |
*/ | |
// dont double include | |
if ( class_exists( 'GeoIP' ) ) { | |
return; | |
} |
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 | |
/** @file WpVulnDb.php - WordPress utility class for the WPScan API | |
* Uses the WPVulnDB - https://wpvulndb.com/api | |
*/ | |
/** | |
* WPScan vulnerability database/API interface. | |
* | |
* @author Zachary Scott <zscott.dev@gmail.com> | |
*/ |
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 | |
/** | |
* Plugin Name: Notes | |
* Description: Keep private notes within WordPress | |
* Version: 1.0 | |
* Author: Zachary Scott | |
* Author URI: https://www.zacscott.net | |
* Plugin URI: https://gist.github.com/zacscott/b4cbacf5a0825a270a28 | |
* License: GPLv3+ | |
*/ |