init();
print_simple_header(i18n::translate('Add Remote Link'));
$pid=safe_REQUEST($_REQUEST, 'pid', WT_REGEX_XREF);
$action=safe_POST('action', array('addlink'));
//-- only allow gedcom admins to create remote links
if (!$controller->canAccess()) {
echo '', i18n::translate('Access Denied
You do not have access to this resource.'), '
';
if (!WT_USER_GEDCOM_ADMIN) {
echo i18n::translate('This user name cannot edit this GEDCOM.');
} else if (!$ALLOW_EDIT_GEDCOM) {
echo i18n::translate('Editing this GEDCOM has been disabled by the administrator.');
} else {
echo i18n::translate('Privacy settings prevent you from editing this record.');
if ($pid) {
echo '
', i18n::translate('You have no access to'), ' ', $pid;
}
}
echo '