$cntPosts = 100;
$arPosts = listPosts(0, $cntPosts, 1);
foreach ($arPosts as $arP) {
$datetime = time_elapsed_string("@".$arP["created_time"]);
if (strlen($arP["filename"]) && false === strpos($arP["filename"], "http")) {
$arP["filename"] = "/inst" . $arP["filename"];
}
if (strlen($arP["text"])) {
$arP["text"] = (strlen($arP["text"]) > 256) ? substr($arP["text"],0,253)."..." : $arP["text"];
}
if ($arP["s_type"] == "twitter") {
?>
}?>
}?>
59) ? substr($arP["text"],0,56)."..." : $arP["text"];
}
}
?>
}?>
}?>
}?>