if (!defined("IN_FUSION")) { die("Access Denied"); } $panel_name = ""; $result=dbquery( "SELECT tp.*, ta.* FROM ".$db_prefix."photos tp LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id) WHERE ".groupaccess('album_access')." ORDER BY photo_datestamp DESC LIMIT 12" ); if(dbrows($result)>0){ openside("Ostatnie Fotki"); $table_nummer = 0; echo ""; while ($data=dbarray($result)) { $randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : ""); if($table_nummer <=3){ if($table_nummer == 0){ echo"";} echo ""; $table_nummer++; } else{ $table_nummer = 0; echo ""; echo ""; echo ""; $table_nummer++; } } echo ""; echo "
".$data[
".$data['photo_title'].""; echo "
".$data[
".$data['photo_title'].""; echo "
"; closeside(); } ?>