TheatresInfo($movieID); $actorName=$theatresObj->ActorsliderInfo($movieID); $actorId= $actorName['actor_id']; $actorNameShow=$theatresObj->ActorInfo($actorID); $indexObj=new Index(); $metaid=ACTOR_PHOTOS_META_ID; $url="https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $photos=$theatresObj->checkPhotoExist($actorID); $pageLink=BASEURL."celebrity-photos/".getUrlStringTitle_new(strtolower(trim($actorNameShow['name'])))."/".trim($actorNameShow['id'])."-".trim($photoNo).".html"; if($actorNameShow['id']>0 && $photoNo<=$photos){ if($url!=$pageLink){ //echo ''; die; } }else{ //echo ''; die; } $AdvertiseObj = new Advertise(); $AdvertiseData=$AdvertiseObj->getAdvertise(ACTOR_PHOTO_CENTER_AD_ID); $banner_link2="http://".$AdvertiseData['banner_link']; if($AdvertiseData['advertise_type']==2){ $banner2="".$AdvertiseData['advertise_data'].""; } else if($AdvertiseData['advertise_type']==1){ if(file_exists(BASE_DIR_ROOT_BANNER_FILES.$AdvertiseData['advertise_data'])){ $banner2=" "; } } $HEADER_AD_ID=ACTOR_PHOTO_HEADER_AD_ID; $RIGHT_TOP_AD_ID=ACTOR_PHOTO_RIGHT_TOP_AD_ID; $RIGHT_BOTTOM_AD_ID=ACTOR_PHOTO_RIGHT_BOTTOM_AD_ID; $mainPhoto = $movieObj->SliderActorGallery($actorID); preg_match( "@src='([^']+)'@" , $mainPhoto, $match ); $actorsrc = array_pop($match); ?> " /> " /> getAdvertise($RIGHT_TOP_AD_ID); $AdvertiseData2=$AdvertiseObj->getAdvertise($RIGHT_BOTTOM_AD_ID); $banner_link1="https://".$AdvertiseData1['banner_link']; $banner_link2="http://".$AdvertiseData2['banner_link']; $banner_right1=''; $banner_right2=''; if($AdvertiseData1['advertise_type']==2){ $banner_right1=$AdvertiseData1['advertise_data']; } else if($AdvertiseData1['advertise_type']==1){ if(file_exists(BASE_DIR_ROOT_BANNER_FILES.$AdvertiseData1['advertise_data'])){ $banner_right1=' '; } } if($AdvertiseData2['advertise_type']==2){ $banner_right2=$AdvertiseData2['advertise_data']; } else if($AdvertiseData2['advertise_type']==1){ if(file_exists(BASE_DIR_ROOT_BANNER_FILES.$AdvertiseData2['advertise_data'])){ $banner_right2=' '; } } ?>
Photos