openside("Artikel oversigt");
// Random Article Panel for PHPFusion: Malek256
// web site: http://www.bodysculpters.com
// Converted to PHPFusion v7. by Smokeman | PHPFusion-Tips.dk
srand(time());
$random = rand(1,3);
if ($random == 1 ) {
$result = dbquery("SELECT * FROM ".DB_ARTICLES." ORDER BY article_datestamp DESC LIMIT 5");
}
else {
$result = dbquery("SELECT * FROM ".DB_ARTICLES." ORDER BY RAND() LIMIT 1");
}
$rows = dbrows($result);
if ($rows != 0){
$data = dbarray($result) ;
$dateposted = strftime("%d.%m.%y", $data['article_datestamp']+($settings['timeoffset']*3600));
if ($data['article_datestamp']+604800 > time()+($settings['timeoffset']*3600))
{
$new = "";
}
else
{
$new = "";
}
echo "<img src='".THEME."images/bullet.gif' alt='' /> <a href='readarticle.php?article_id=".$data['article_id']."'>".$data ['article_subject']."$new</div><br />\n".stripslashes($data['article_snippet']);
echo "</a>";
}
else
{
echo "<center><br />\n".$locale['401']."<br />\n</center>\n";
}
closeside();
Category Forum
Panels and InfusionsLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions