Skip to content

Instantly share code, notes, and snippets.

View bkilshaw's full-sized avatar

Brad Kilshaw bkilshaw

View GitHub Profile
<?php
class SQLQuery {
public $query = "";
private $allowed_query_types = array(
'insert'
, 'delete'
, 'update'
, 'select'
);
| 1684 | 275.96 | -13.04 |
| 1685 | 39.22 | -0.54 |
| 1686 | pitch | yaw |
| 1687 | pitch | yaw |
| 1691 | pitch | yaw |
| 1689 | pitch | yaw |
| 1690 | pitch | yaw |
| 1692 | pitch | yaw |
| 1694 | pitch | yaw |
| 1695 | pitch | yaw |
$("#brandmenu div").click(function(){
var newBackground = $(this).attr("background");
var backgroundString = "transparenet url (img/" + newBackground + ") top left no-repeat";
$("body").css("background", backgroundString);
if(newBackground == "intel_2a_1.png") {
$("#breakoutSession").show();
} else {
$("#breakoutSession").hide();
<?php
function hash_password($password, $salt = false) {
if(!$salt) {
$gen_salt = generate_random_string();
$hashed['salt'] = '$6$rounds=150000$' . $gen_salt . '$';
} else {
$hashed['salt'] = '$6$rounds=150000$' . $salt . '$';
}
<?php // BRAD
$numbers = array("1", "2", "3", "4", "5");
function array_print($values) {
$array = array_reverse($values);
print_values($array);
}
function print_values($array) {
echo array_pop($array);
<?php
define("ALTERNATE_LANGUAGE_DIRECTORY", "sp");
$referer = $_SERVER['HTTP_REFERER'];
$redirect = create_redirect($referer);
header("Location: $redirect");
function create_redirect($referer) {