call_hooks('parse_atom', $arr);
//if (($res["title"] != "") or (strpos($res["body"], "RT @") > 0)) {
- if (strpos($res["body"], "RT @") !== false) {
- $debugfile = tempnam("/home/ike/log", "item-res2-");
- file_put_contents($debugfile, serialize($arr));
- }
+ //if (strpos($res["body"], "RT @") !== false) {
+ // $debugfile = tempnam("/home/ike/log", "item-res2-");
+ // file_put_contents($debugfile, serialize($arr));
+ //}
return $res;
}
if (($photodata[0] > 150) and ($photodata[1] > 150)) {
if ($photodata[0] > 300) {
- $photodata[1] = $photodata[1] * (300 / $photodata[0]);
+ $photodata[1] = round($photodata[1] * (300 / $photodata[0]));
$photodata[0] = 300;
}
if ($photodata[1] > 300) {
- $photodata[0] = $photodata[0] * (300 / $photodata[1]);
+ $photodata[0] = round($photodata[0] * (300 / $photodata[1]));
$photodata[1] = 300;
}
$siteinfo["images"][] = array("src"=>$src,