#CommandoFriday Pics – August 14 (NSFW)
Posted in NSFW, Pics on August 14th, 2009 by WildCuddlerCheck back throughout the day and next week. As more people post them, they will automatically appear here. This will post any pics that have been posted with the #commandofriday tag on twitter and use TwitPic or yFrog. Also check out CommandoFriday on Twitter. Let me know if you have any other requests/suggestions.
View the archive of all #CommandoFriday pics
< ?php
echo('WORKING');
?>
< ?php
if(strtotime('August 22 2009') < time())
{
echo('View the archive of all #CommandoFriday pics’);
}
else
{
echo(“
“);
echo(‘
function is_url($url){
$url = substr($url,-1) == “/” ? substr($url,0,-1) : $url;
if ( !$url || $url==”" ) return false;
if ( !( $parts = @parse_url( $url ) ) ) return false;
else {
if ( $parts[scheme] != “http” && $parts[scheme] != “https” && $parts[scheme] != “ftp” && $parts[scheme] != “gopher” ) return false;
else if ( !eregi( “^[0-9a-z]([-.]?[0-9a-z])*.[a-z]{2,4}$”, $parts[host], $regs ) ) return false;
else if ( !eregi( “^([0-9a-z-]|[_])*$”, $parts[user], $regs ) ) return false;
else if ( !eregi( “^([0-9a-z-]|[_])*$”, $parts[pass], $regs ) ) return false;
else if ( !eregi( “^[0-9a-z/_.@~-]*$”, $parts[path], $regs ) ) return false;
else if ( !eregi( “^[0-9a-z?&=#,]*$”, $parts[query], $regs ) ) return false;
}
return true;
}
// set options
$options[CURLOPT_URL] = ‘http://search.twitter.com/search.json?tag=commandofriday&rpp=100&filter=links&since=2009-08-14′;
//$options[CURLOPT_PORT] = self::TWITTER_API_PORT;
$options[CURLOPT_USERAGENT] = ‘WildCuddler.com Blog’;
//$options[CURLOPT_FOLLOWLOCATION] = true;
$options[CURLOPT_RETURNTRANSFER] = true;
//$options[CURLOPT_TIMEOUT] = (int) $this->getTimeOut();
// init
$curl = curl_init();
// set options
curl_setopt_array($curl, $options);
// execute
$response = curl_exec($curl);
$headers = curl_getinfo($curl);
// fetch errors
$errorNumber = curl_errno($curl);
$errorMessage = curl_error($curl);
// close
curl_close($curl);
$disp_array = array();
$json = json_decode($response);
$count = 0;
foreach($json->results as $tweet)
{
if($count > 10)
{
echo(‘ Read the rest of this post »

















