Skip to content

Instantly share code, notes, and snippets.

<?php
require_once 'NikePlusPHP.php';
function login($user,$pass){
$n = new NikePlusPHP($user, $pass);
return $n;
}
function flatten(array $array) {
$return = array();
@ssherar
ssherar / json.vbs
Created August 23, 2013 14:19 — forked from atifaziz/json.vbs
'==========================================================================
' JSON Encoder for VBScript
' Copyright (c) 2013 Atif Aziz. All rights reserved.
'
' Licensed under the Apache License, Version 2.0 (the "License");
' you may not use this file except in compliance with the License.
' You may obtain a copy of the License at
'
' http://www.apache.org/licenses/LICENSE-2.0
'
@ssherar
ssherar / item.php
Last active December 20, 2015 07:49 — forked from anonymous/gist:6096170
<?php
//retrieve the id from the GET variable
$ref = $_GET['ref'];
//Why do all the work if $ref is empty?!
// I think a redirect to index should be good enough
if($ref == NULL || count($ref) == 0) {
"<meta http-equiv='refresh' content='0; url=index.php' />";
}