Quote
<?php
/* Created for PHP-FUSION 6.00
Copyright (c) 2005 Petter Paulsson
http://www.php-fusion.se/
Gets it?s name from panel administration. */
include LOCALE.LOCALESET."photogallery.php";
if (!defined("IN_FUSION" )) { header("Location:../../index.php" ) ; exit; }
$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'" );
if (dbrows($result) != 0 ) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}
openside($panel_name);
$result = dbquery("SELECT tp.*, tu.user_id, user_name FROM ".$db_prefix."photos tp LEFT JOIN ".$db_prefix."users tu ON tp.photo_user=tu.user_id ORDER BY tp.photo_id DESC LIMIT 0,5" );
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
echo "<br>";
echo "<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' title='".$data['photo_title']."' class='side'><center>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' border='0'><br /> $itemdescription <p> </a>\n";
echo $locale['459'].showdate("shortdate", $data['photo_datestamp'])."<br>\n";
echo $locale['460']."<a href='".BASEDIR."profile.php?lookup=".$data['photo_user']."' class='side'>".$data['user_name']."</a></center><br>\n";
}
} else {
echo $locale['004'];
}
closeside();
?>
Quote
f1r3bl00d wrote:
try 'images' instead of 'IMAGES'
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions