версия 4.2
сделал сам
сделал сам
if (!defined("BLOCK_FILE")) {
Header("Location: ../index.php");
exit;
}
global $prefix, $db, $conf;
$strip = 20;
$content = "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" class=\"bgcolor4\">";
// Last added pages
$content .= "<td valign=\"top\">";
$result = $db->sql_query("SELECT pid, title FROM ".$prefix."_page WHERE time <= now() AND status!='0' ORDER BY time DESC LIMIT 15");
while(list($pid, $title) = $db->sql_fetchrow($result)) {
$linkstrip = cutstr($title, $strip);
$content .= "<table cellspacing=\"0\" cellpadding=\"1\" border=\"0\"><tr><td><img src=\"".img_find("all/pages")."\" title=\"$title\"></td><td><a href=\"pages-view-.html$pid\" title=\"$title\">$linkstrip</a></td></tr></table>";
}
$content .= "</td></tr></table>";
Версия системы: SLAED CMS 4.2 Pro