Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: prasau panelės

Parašė raox· 2009 Bir. 25 19:06:51
#9

/* Created for PHP-FUSION 6.00
Copyright (c) 2005 Petter Paulsson
http://www.php-fusion.se/
Gets it´s name from panel administration. */

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("Latest Photos");

$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,3");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
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 <br /> </center></a>\n";
echo "<center>".$locale['459'].showdate("shortdate", $data['photo_datestamp'])."<br></center>\n";
echo "<br>\n";
}
} else {

echo $locale['004'];
}
closeside();
?>


gal kam pravers :)