showdate($lightbox['created'],0);
if($config['EncryptIDs']) // Encrypt IDs
$lightboxArray[$lightbox['lightbox_id']]['linkto'] = "gallery.php?mode=lightbox&id=".k_encrypt($lightbox['ulightbox_id'])."&page=1";
else
$lightboxArray[$lightbox['lightbox_id']]['linkto'] = "gallery.php?mode=lightbox&id=".$lightbox['ulightbox_id']."&page=1";
}
/* Testing
foreach($lightboxArray as $lb)
{
print_r($lb);
echo "
";
}
*/
$smarty->assign('lightboxArray',$lightboxArray);
$smarty->assign('lightboxRows',$returnRows);
}
$smarty->assign('notice',$notice);
$smarty->display('lightboxes.tpl');
}
catch(Exception $e)
{
echo $e->getMessage();
}
include BASE_PATH.'/assets/includes/debug.php';
if($db) mysql_close($db); // Close any database connections
?>