Esempio n. 1
0
     foreach ($carmovielistiphone as $iphoneitem) {
         if (!isValidURL($iphoneitem->getUrl())) {
             if ($html == false) {
                 $iphonelink = SUBFOLDER . $carbrand->getMovieFolder() . $car->getMovieFolder() . "/" . $iphoneitem->getUrl();
             } else {
                 $iphonelink = MOVIEFOLDERROOT . $car->getMovieFolder() . "/" . $iphoneitem->getUrl();
             }
         } else {
             $iphonelink = $iphoneitem->getUrl();
         }
         echo '<span class="file_link"><a class="style9" href="../' . $iphonelink . '">&#8226; ' . $iphoneitem->getText() . '</a></span><br />';
     }
 }
 if ($carmovielistyt != null) {
     foreach ($carmovielistyt as $ytitem) {
         $url = getYoutubeEmbedLink($ytitem->getUrl());
         echo '<span class="file_link"><a class="style9" href="#mov-' . $ytitem->getId() . '" rel="facebox">&#8226; ' . $ytitem->getText() . '</a></span><br />';
         echo '<div id="mov-' . $ytitem->getId() . '" style="display:none;z-index:100">
                                                                                 <object style="margin:10px"
                                                                                     classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                                                                                     data="' . $url . '&amp;autoplay=1" 
                                                                                     width="545" height="441">
                                                                                     <param name="movie" value="' . $url . '&amp;autoplay=1" />
                                                                                 </object>                                   
                                                                               </div>';
     }
 }
 echo '</td>
                                                                 <td style="width:163px;vertical-align:top">';
 if ($carmovielisthr != null) {
     echo '<span class="file_link"> Broadcast media file</span><br />';
Esempio n. 2
0
 ////////////////
 //default car
 $defaultcar = $blCar->getCar($site->getDefaultCarId());
 //default car brand
 $defaultcarbrand = $blCarBrand->getCarBrand($defaultcar->getCarBrandId());
 //movies
 if (!isValidURL($defaultcar->getPreviewLink())) {
     $defaultcarpreviewlink = MOVIEFOLDERROOT . $car->getMovieFolder() . "/" . $defaultcar->getPreviewLink();
 } else {
     $url = getYoutubeEmbedLink($defaultcar->getPreviewLink());
     $defaultcarpreviewlink = $url;
 }
 //default car ytlink
 $carmovielistyt = $blCarMovie->getYoutubeCarMoviesByCar($defaultcar->getId());
 if ($carmovielistyt != null) {
     $url = getYoutubeEmbedLink($carmovielistyt[0]->getUrl());
     $defaultcarytlink = $url;
 }
 //default car press contact
 if ($presscontactoverwrite == null) {
     $defaultcarcontact = $blPressContact->getPressContact($defaultcar->getPressContactId());
 } else {
     $defaultcarcontact = $presscontactoverwrite;
 }
 //default car picture
 $defaultcarpicture = $blCarPicture->getCarPicture($defaultcar->getDefaultPictureId());
 //cars
 $cars = $blCar->getCarsBySiteOnline($site->getId());
 //check for directory
 if (!is_dir(getcwd() . '/html/' . $site->getName())) {
     mkdir(getcwd() . '/html/' . $site->getName(), 0777, true);
Esempio n. 3
0
    if ($type->getOnlyLink() == 0) {
        if ($html == true) {
            $link = $car->getFolderName() . '/';
        } else {
            $link = SUBFOLDER . '/site/' . $site->getOriginalName() . '/' . $car->getFolderName() . '/';
        }
        //detail-page
        echo '<a href="' . $link . '" class="lien">Press summary page</a>';
    } else {
        //only wmv link
        if ($carmovielistlr != null) {
            echo '<a href="' . $carlrlink . '" class="lien">' . $carmovielistlr[0]->getText() . '</a>';
        }
    }
    if ($carmovieyt != null) {
        $url = getYoutubeEmbedLink($carmovieyt->getUrl());
        echo '<div id="mov-' . $carytid . '" style="display:none;z-index:100">
                                        <object style="margin:10px"
                                            classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                                            data="' . $url . '&amp;autoplay=1" 
                                            width="545" height="441">
                                            <param name="movie" value="' . $url . '&amp;autoplay=1" />
                                        </object>                        
                                      </div>';
    }
    echo '</td>
                                </tr>';
}
?>
                        </table>
                        <?php 
Esempio n. 4
0
     $carmovielistipad = $blCarMovie->getIPadCarMoviesByCar($car->getId());
     $carmovielistiphone = $blCarMovie->getIPhoneCarMoviesByCar($car->getId());
     $carmovielistlr = $blCarMovie->getLRCarMoviesByCar($car->getId());
     $carmovielisthr = $blCarMovie->getHRCarMoviesByCar($car->getId());
     $carmovielistyoutube = $blCarMovie->getYoutubeCarMoviesByCar($car->getId());
     if ($carmovielistlr != null) {
         if (!isValidURL($carmovielistlr[0]->getUrl())) {
             $carlrlink = SUBFOLDER . $carbrand->getMovieFolder() . $car->getMovieFolder() . "/" . $carmovielistlr[0]->getUrl();
         } else {
             $carlrlink = $carmovielistlr[0]->getUrl();
         }
     }
     if ($carmovielistyoutube != null) {
         $carytid = $carmovielistyoutube[0]->getId();
         $carytlink = $carmovielistyoutube[0]->getUrl();
         $url = getYoutubeEmbedLink($carytlink);
         $defaultcarytlink = $url;
     }
     //pictures
     $pictures = $blCarPicture->getCarPicturesByCar($car->getId());
     //links
     $links = $blCarLink->getCarLinksByCar($car->getId());
     //files
     $files = $blCarFile->getCarFilesByCar($car->getId());
     //presscontact
     $presscontact = $blPressContact->getPressContact($car->getPressContactId());
     //releasedate
     $releasedate = $car->getReleaseDate();
     $releasedate = mktime(0, 0, 0, substr($releasedate, 5, 2) + 1, 0, substr($releasedate, 0, 4));
     include_once getcwd() . "/sites/" . $site->getOriginalName() . "/detail.php";
 }