Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: kaip?

Parašė And2s· 2009 Rugp. 18 12:08:29
#10

<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

//Slideshows Random Photo Panel by Wooya
//http://www.2loud.net.pl
if (file_exists(INFUSIONS."slideshows_random_photo_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."slideshows_random_photo_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."slideshows_random_photo_panel/locale/English.php";
}

$set_result = dbquery("SELECT * FROM ".DB_PREFIX."srpp_settings WHERE slideshow_id='1'");
$set_data = dbarray($set_result);

openside($locale['FOT_001']);
echo "<center>";
   $result=dbquery(
      "SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1
      FROM ".$db_prefix."photo_albums ta
      INNER JOIN ".$db_prefix."photos
      USING (album_id)
      ORDER BY RAND() LIMIT ".$set_data['slideshow_items'].""
   );
   $srpp_thumb_width = $settings['thumb_w'];
   $srpp_thumb_height = $settings['thumb_h'];   

   if (dbrows($result)!=0) {
      if ($set_data['slideshow_type']!='RANDOM') {
         include (INFUSIONS."slideshows_random_photo_panel/includes/".$set_data['slideshow_type']."_include.php");
      } else {
         $slideshow_type[0] = "slide-left";
         $slideshow_type[1] = "slide-top";
         $slideshow_type[2] = "left-right";
         $slideshow_type[3] = "up-down";
         $slideshow_type[4] = "fade";
         $slideshow_type[5] = "carousel";
         $slideshow_type[6] = "conveyor-belt";
         $rand_value = rand (0, sizeof($slideshow_type)-1);
         include (INFUSIONS."slideshows_random_photo_panel/includes/".$slideshow_type[$rand_value]."_include.php");     
      }
   } else {
      echo "<center>".$locale['004']."</center>";
   }
echo "</center>";
echo "<br>";
closeside();
?>