Skip to content

Instantly share code, notes, and snippets.

View ryanhellyer's full-sized avatar

Ryan Hellyer ryanhellyer

View GitHub Profile
@ryanhellyer
ryanhellyer / get_request_flaw
Created October 7, 2012 13:55
$_GET vulnerability
<form role="search" method="get" id="searchform" action="" >
<label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="<?php echo $_GET['s']; ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</form>
@ryanhellyer
ryanhellyer / simple-colorbox-settings
Created September 10, 2012 17:27
Simple Colorbox settings
<?php
define( 'SIMPLECOLORBOX_THEME', 5 ); // Can choose from 1, 2, 3, 4 or 5
define( 'SIMPLECOLORBOX_OPACITY', 0.6 ); // Background opacity (0 to 1)
define( 'SIMPLECOLORBOX_WIDTH', 90 ); // Colorbox width (0 to 100%)
define( 'SIMPLECOLORBOX_HEIGHT', 90 ); // Colorbox height (0 to 100%)
define( 'SIMPLECOLORBOX_SLIDESHOW', null ); // Colorbox width (0 to 100%)Setting this to null will remove the slideshow
?>