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
if (!function_exists("getURIData")) { | |
/* function yonkURIData() | |
* | |
* Get a supporting domain system for the API | |
* @author Simon Roberts (Chronolabs) simon@labs.coop | |
* | |
* @return float() | |
*/ | |
function getURIData($uri = '', $timeout = 25, $connectout = 25, $post = array(), $headers = array()) |
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
/** | |
* getINForProtectedNumber() | |
* | |
* Protects an Number System with an alpha numeric stripper by replace the number of characters to be $protect and replaced | |
* with an alpha character from the english characters in capitals for IP Address, Phone Numbers, Addresses! | |
* | |
* Result for function is used in the following for matching store numbers in a mysql database | |
* | |
* $sql = "SELECT * FROM `cards` WHERE `number` IN ('" . implode("', '", $results['in']) . "')"; |
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
/** | |
* protectNumbersStripper() | |
* | |
* Protects an Number System with an alpha numeric stripper by replace the number of characters to be $protect and replaced | |
* with an alpha character from the english characters in capitals for IP Address, Phone Numbers, Addresses! | |
* | |
* @param string $number the number string being protected | |
* @param integer $protect the number of character to replace 1 - 9 | |
* @param integer $attempted the number of random stab attempt to do replacement | |
* @return string |
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
if (!function_exists("getURIData")) { | |
/* function getURIData() | |
* | |
* Get a supporting domain system for the API | |
* @author Simon Roberts (Chronolabs) simon@labs.coop | |
* | |
* @return float() | |
*/ | |
function getURIData($uri = '', $timeout = 25, $connectout = 25, $post = array(), $headers = array()) |
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
$odds = $inner = array(); | |
foreach($_GET as $key => $values) { | |
if (!isset($inner[$key])) { | |
$inner[$key] = $values; | |
} elseif (!in_array(!is_array($values)?$values:md5(json_encode($values, true)), array_keys($odds[$key]))) { | |
if (is_array($values)) { | |
$odds[$key][md5(json_encode($inner[$key] = $values, true))] = $values; | |
} else { | |
$odds[$key][$inner[$key] = $values] = "$values--$key"; | |
} |