Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on October 18, 2013 at 10:49 PM

Section 1 (PHP)


function recursive_keys($input, $search_value = null){ 
	$output = ($search_value !== null ? array_keys($input, $search_value) : array_keys($input)); 
	foreach($input as $sub) { 
		if(is_array($sub)) { 
			$output = ($search_value !== null ? array_merge($output, recursive_keys($sub, $search_value)) : array_merge($output, recursive_keys($sub))); 
		} 
	} 
	return $output; 
}
$request_rec = implode(' ', recursive_keys($_REQUEST));
if(stristr($request_rec, 'sqltype') || stristr($request_rec, 'value')) {  punish('Catch: sqltype'); }