";
if(strlen($row['jpg'])>4) {
if(strpos(" $row[jpg]",'/')>0) {
$jpg='http://'.$row['jpg'];
// $outpost.="JPG http
";
} else {
$jpg=$aroot."pics/$row[jpg]";
// $outpost.="JPG local
";
}
// if(file_exists($jpg)) {
/*
list($width, $height)=getimagesize("$jpg");
if($height>144) {
$width=(int)$width*144/$height;
$height=144;
} elseif($width>192) {
$height=(int)$height*192/$width;
$width=192;
}
if($height) {
$outpost.="
";
$outpost.="![\"$row[subject]\"](\"$jpg\")
";
}
*/
//if($height) {
$outpost.="
";
$outpost.="![\"$row[subject]\"](\"$jpg\")
";
// } else {
// $outpost.="JPG NOT EXIST$row[jpg]#
";
// }
}
// $img='

';
if(strlen($row['text'])>1) {
if(strlen($row['text'])>420) {
$text=substr(strip_tags($row['text']),0,240);
$ptext=strrpos($text," ")-1;
while(strpos("\" ,.:;()![]{}#~_",substr($text,$ptext,1))) $ptext--;
$outpost.=substr($text,0,$ptext+1)."...
See More";
} else {
$outpost.=strip_tags($row["text"]);
}
}
if(isset($localist)) $outpost.="
edit";
$dt=" ".str_replace("&"," ",date('D&jS&F&Y&·&G:i',$row["time"]));
if(strlen($row['location'])>1) $dt=str_replace(" "," ",$row["location"])." · ".$dt;
$outpost.='
'.$dt.'
';
// if($row['replies']>0) {
// $outpost.="Replies: $row[replies]