$value){
if($name == $key){if($value !== ''){$output = $value;}}
}
foreach($_POST as $key=>$value){
if($name == $key){if($value !== ''){$output = $value;}}
}
if(!isset($output)){$output = '';}
$output = strip_tags(substr(trim($output),0,500));
return($output);
}
function readdata($ch, $data) {
print $data;
}
/*
$url = urldecode(aglobal('u'));
$as = aglobal('as');
if (!$as) {
$as = 'raw';
}
*/
$url = 'http://backend.yocto.aminche.com/allFeeds?user=test';
print "$url\n\n";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
$resp = curl_exec($ch);
curl_close($ch);
print "Done: $resp\n\n";
$urlenc = urlencode($url);
if (0) {
$resp = preg_replace('/(<\s*head.*?>)/i',
"\\1
\n" . "