//print_k($digitalItem); // Testing //echo $_SESSION['downloadAuthorization']; exit; // Testing } } // End authorization check try { idCheck($download['mediaID']); // Make sure ID is numeric // Get the media information $media = new mediaTools($download['mediaID']); $mediaInfo = $media->getMediaInfoFromDB(); $folderInfo = $media->getFolderStorageInfoFromDB($mediaInfo['folder_id']); if ($download['externalLink']) { $externalLink = 1; // External Link $filecheck['status'] = checkExternalFile($download['externalLink']) > 400 ? 0 : 1; $filecheck['path'] = $download['externalLink']; } else { $filecheck = $media->verifyMediaFileExists(); // Returns array [stauts,path,filename] } //$filecheck = $media->verifyMediaFileExists(); // Returns array [stauts,path,filename] // Old //print_r($mediaInfo); //echo $_SESSION['member']['mem_id']; //exit; } catch (Exception $e) { echo $e->getMessage(); exit; } if ($download['deliveryMethod'] == 0) { /*
// External Link $filecheck['status'] = checkExternalFile($media['external_link']) > 400 ? 0 : 1; $filecheck['path'] = $media['external_link']; } else { $filecheck = $mediaObj->verifyMediaFileExists(); // Returns array [stauts,path,filename] } break; } } else { $deliveryMethod = 3; // Added just so there is a setting for this value if ($media['external_link']) { $externalLink = 1; // External Link $filecheck['status'] = checkExternalFile($media['external_link']) > 400 ? 0 : 1; $filecheck['path'] = $media['external_link']; } else { $filecheck = $mediaObj->verifyMediaFileExists(); // Returns array [stauts,path,filename] } } //print_k($filecheck); exit; //print_r($filecheck); exit; // Testing } catch (Exception $e) { echo $e->getMessage(); exit; } if ($filecheck['status']) { $downloadableStatus = 1; } else {
<div class="tab-pane" id="map1"> <div class="container"> <iframe id="video" width="100%" height="500" src="<?php //echo $trailer; ?> "></iframe> </div> </div>--> <div class="tab-pane" id="star1"> <div class="container"> <div class="movie-time-wrap"> <?php foreach ($artist as $art => $dataartist) { $imgurl = $this->tmdb->getImageURL('w154') . $dataartist['profile_path']; $fileExists = checkExternalFile($imgurl); if ($fileExists == 400) { $imgurl = base_url() . '/assets/img/noback.gif'; } if ($art % 2 == 0) { ?> <div class="clearfix"></div> <?php } ?> <div class="col-sm-6"> <!-- Movie variant with time --> <div class="movie movie--time"> <div class="row"> <div class="col-sm-6 col-md-5">