init(); /* Note: * if $controller->getLocalFilename() is not set, then an invalid MID was passed in * if $controller->pid is not set, then a filename was passed in that is not in the gedcom */ $filename = $controller->getLocalFilename(); print_header($controller->getPageTitle()); if (!$controller->mediaobject) { echo "", i18n::translate('Unable to find record with ID'), "

"; print_footer(); exit; } global $tmb; // LBox ============================================================================= // Get Javascript variables from lb_config.php --------------------------- if (WT_USE_LIGHTBOX) { require WT_ROOT.'modules/lightbox/lb_defaultconfig.php'; require WT_ROOT.'modules/lightbox/functions/lb_call_js.php'; } // LBox ============================================================================ //The next set of code draws the table that displays information about the person ?>
mediaobject->getFullName()); ?> mediaobject->getAddName()); ?>

mediaobject->isMarkedDeleted()) echo "".i18n::translate('This record has been marked for deletion upon admin approval.').""; ?>
canDisplayDetails()) { //Check to see if the File exists in the system. (ie if the file is external, or it exists locally) if (isFileExternal($filename) || $controller->mediaobject->fileExists()) { // the file is external, or it exists locally // attempt to get the image size $imgwidth = $controller->mediaobject->getWidth()+40; $imgheight = $controller->mediaobject->getHeight()+150; if (WT_USE_LIGHTBOX) $dwidth = 200; else $dwidth = 300; if ($imgwidth<$dwidth) $dwidth = $imgwidth; $name = trim($controller->mediaobject->getFullName()); // Get info on how to handle this media file $mediaInfo = mediaFileInfo($filename, $controller->mediaobject->getThumbnail(), $controller->pid, $name, '', false); //-- Thumbnail field echo ''; echo '\"""; // If download if ($SHOW_MEDIA_DOWNLOAD) { echo "

".i18n::translate('Download File')."
"; } // else the file is not external and does not exist } else { ?> <?php echo $controller->mediaobject->getFullName(); ?>
getFacts($SHOW_MEDIA_FILENAME); foreach ($facts as $f=>$factrec) { print_fact($factrec); } ?>



mediaobject->countLinkedIndividuals()) { print_indi_table($controller->mediaobject->fetchLinkedIndividuals(), $controller->mediaobject->getFullName()); } // Families linked to this media object if ($controller->mediaobject->countLinkedFamilies()) { print_fam_table($controller->mediaobject->fetchLinkedFamilies(), $controller->mediaobject->getFullName()); } // Sources linked to this media object if ($controller->mediaobject->countLinkedSources()) { print_sour_table($controller->mediaobject->fetchLinkedSources(), $controller->mediaobject->getFullName()); } // Notes linked to this media object if ($controller->mediaobject->countLinkedNotes()) { print_note_table($controller->mediaobject->fetchLinkedNotes(), $controller->mediaobject->getFullName()); } ?>