diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-01-02 13:08:27 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-01-02 13:08:27 +0000 |
| commit | f09486a088ff88c57d91ed9063510f9768313c22 (patch) | |
| tree | d703d962b1da71ecf2257b14ce2870cce091222b | |
| parent | cec21a14032777be5f6aa52fb8887e2d4338a327 (diff) | |
| download | webtrees-f09486a088ff88c57d91ed9063510f9768313c22.tar.gz webtrees-f09486a088ff88c57d91ed9063510f9768313c22.tar.bz2 webtrees-f09486a088ff88c57d91ed9063510f9768313c22.zip | |
Remove old admin module (gedcom config)
| -rw-r--r-- | admin_trees_config.php | 2 | ||||
| -rw-r--r-- | editconfig_gedcom.php | 1688 |
2 files changed, 1 insertions, 1689 deletions
diff --git a/admin_trees_config.php b/admin_trees_config.php index ccf8626f0e..c50337dba4 100644 --- a/admin_trees_config.php +++ b/admin_trees_config.php @@ -383,7 +383,7 @@ print_header(WT_I18N::translate('Configure family tree')); //--> </script> -<form enctype="multipart/form-data" method="post" id="configform" name="configform" action="editconfig_gedcom.php"> + <form enctype="multipart/form-data" method="post" id="configform" name="configform" action="<?php echo WT_SCRIPT_NAME; ?>"> <input type="hidden" name="action" value="update" /> <?php diff --git a/editconfig_gedcom.php b/editconfig_gedcom.php deleted file mode 100644 index 747dc524e9..0000000000 --- a/editconfig_gedcom.php +++ /dev/null @@ -1,1688 +0,0 @@ -<?php -/** - * UI for online updating of the GEDCOM config file. - * - * webtrees: Web based Family History software - * Copyright (C) 2010 webtrees development team. - * - * Derived from PhpGedView - * Copyright (C) 2002 to 2010 PGV Development Team. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * @package webtrees - * @subpackage Admin - * @version $Id$ - */ - -define('WT_SCRIPT_NAME', 'editconfig_gedcom.php'); -require './includes/session.php'; -require WT_ROOT.'includes/functions/functions_edit.php'; - -if (!WT_USER_GEDCOM_ADMIN) { - header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.'editgedcoms.php'); - exit; -} - -$INDEX_DIRECTORY=get_site_setting('INDEX_DIRECTORY'); - -/** - * find the name of the first GEDCOM file in a zipfile - * @param string $zipfile the path and filename - * @param boolean $extract true = extract and return filename, false = return filename - * @return string the path and filename of the gedcom file - */ -function GetGEDFromZIP($zipfile, $extract=true) { - GLOBAL $INDEX_DIRECTORY; - - require_once WT_ROOT.'library/pclzip.lib.php'; - $zip = new PclZip($zipfile); - // if it's not a valid zip, just return the filename - if (($list = $zip->listContent()) == 0) { - return $zipfile; - } - - // Determine the extract directory - $slpos = strrpos($zipfile, "/"); - if (!$slpos) $slpos = strrpos($zipfile, "\\"); - if ($slpos) $path = substr($zipfile, 0, $slpos+1); - else $path = $INDEX_DIRECTORY; - // Scan the files and return the first .ged found - foreach ($list as $key=>$listitem) { - if (($listitem["status"]="ok") && (strstr(strtolower($listitem["filename"]), ".")==".ged")) { - $filename = basename($listitem["filename"]); - if ($extract == false) return $filename; - - // if the gedcom exists, save the old one. NOT to bak as it will be overwritten on import - if (file_exists($path.$filename)) { - if (file_exists($path.$filename.".old")) unlink($path.$filename.".old"); - copy($path.$filename, $path.$filename.".old"); - unlink($path.$filename); - } - if ($zip->extract(PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_OPT_PATH, $path, PCLZIP_OPT_BY_NAME, $listitem["filename"]) == 0) { - echo "ERROR cannot extract ZIP"; - } - return $filename; - } - } - return $zipfile; -} - -$errors=false; -$error_msg=''; - -$PRIVACY_CONSTANTS=array( - 'none' =>WT_I18N::translate('Show to visitors'), - 'privacy' =>WT_I18N::translate('Show to members'), - 'confidential'=>WT_I18N::translate('Show to managers'), - 'hidden' =>WT_I18N::translate('Hide from everyone') -); - -switch (safe_POST('action')) { -case 'delete': - WT_DB::prepare( - "DELETE FROM `##default_resn` WHERE default_resn_id=?" - )->execute(array(safe_POST('default_resn_id'))); - // Reload the page, so that the new privacy restrictions are reflected in the header - header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.WT_SCRIPT_NAME.'#privacy'); - exit; -case 'add': - if ((safe_POST('xref') || safe_POST('tag_type')) && safe_POST('resn')) { - WT_DB::prepare( - "REPLACE INTO `##default_resn` (gedcom_id, xref, tag_type, resn) VALUES (?, ?, ?, ?)" - )->execute(array(WT_GED_ID, safe_POST('xref'), safe_POST('tag_type'), safe_POST('resn'))); - } - // Reload the page, so that the new privacy restrictions are reflected in the header - header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.WT_SCRIPT_NAME.'#privacy'); - exit; -case 'update': - $_POST["NEW_MEDIA_DIRECTORY"] = trim(str_replace('\\','/',$_POST["NEW_MEDIA_DIRECTORY"])); - if (substr ($_POST["NEW_MEDIA_DIRECTORY"], -1) != "/") $_POST["NEW_MEDIA_DIRECTORY"] = $_POST["NEW_MEDIA_DIRECTORY"] . "/"; - if (substr($_POST["NEW_MEDIA_DIRECTORY"], 0, 2)=="./") $_POST["NEW_MEDIA_DIRECTORY"] = substr($_POST["NEW_MEDIA_DIRECTORY"], 2); - if (preg_match("/.*[a-zA-Z]{1}:.*/", $_POST["NEW_MEDIA_DIRECTORY"])>0) $errors = true; - if ($_POST["NEW_USE_MEDIA_FIREWALL"]==true) { - if (substr($_POST["NEW_MEDIA_DIRECTORY"], 0, 3)=="../") $_POST["NEW_MEDIA_DIRECTORY"] = substr($_POST["NEW_MEDIA_DIRECTORY"], 3); - if (substr($_POST["NEW_MEDIA_DIRECTORY"], 0, 1)=="/") $_POST["NEW_MEDIA_DIRECTORY"] = substr($_POST["NEW_MEDIA_DIRECTORY"], 1); - } - - set_gedcom_setting(WT_GED_ID, 'ABBREVIATE_CHART_LABELS', safe_POST_bool('NEW_ABBREVIATE_CHART_LABELS')); - set_gedcom_setting(WT_GED_ID, 'ADVANCED_NAME_FACTS', safe_POST('NEW_ADVANCED_NAME_FACTS')); - set_gedcom_setting(WT_GED_ID, 'ADVANCED_PLAC_FACTS', safe_POST('NEW_ADVANCED_PLAC_FACTS')); - set_gedcom_setting(WT_GED_ID, 'ALLOW_EDIT_GEDCOM', safe_POST_bool('NEW_ALLOW_EDIT_GEDCOM')); - set_gedcom_setting(WT_GED_ID, 'ALLOW_THEME_DROPDOWN', safe_POST_bool('NEW_ALLOW_THEME_DROPDOWN')); - set_gedcom_setting(WT_GED_ID, 'AUTO_GENERATE_THUMBS', safe_POST_bool('NEW_AUTO_GENERATE_THUMBS')); - set_gedcom_setting(WT_GED_ID, 'CALENDAR_FORMAT', safe_POST('NEW_CALENDAR_FORMAT')); - set_gedcom_setting(WT_GED_ID, 'CHART_BOX_TAGS', safe_POST('NEW_CHART_BOX_TAGS')); - set_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_ADD', str_replace(' ', '', safe_POST('NEW_COMMON_NAMES_ADD'))); - set_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_REMOVE', str_replace(' ', '', safe_POST('NEW_COMMON_NAMES_REMOVE'))); - set_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_THRESHOLD', safe_POST('NEW_COMMON_NAMES_THRESHOLD', WT_REGEX_INTEGER, 40)); - set_gedcom_setting(WT_GED_ID, 'CONTACT_USER_ID', safe_POST('NEW_CONTACT_USER_ID')); - set_gedcom_setting(WT_GED_ID, 'DEFAULT_PEDIGREE_GENERATIONS', safe_POST('NEW_DEFAULT_PEDIGREE_GENERATIONS')); - set_gedcom_setting(WT_GED_ID, 'DISPLAY_JEWISH_GERESHAYIM', safe_POST_bool('NEW_DISPLAY_JEWISH_GERESHAYIM')); - set_gedcom_setting(WT_GED_ID, 'DISPLAY_JEWISH_THOUSANDS', safe_POST_bool('NEW_DISPLAY_JEWISH_THOUSANDS')); - set_gedcom_setting(WT_GED_ID, 'ENABLE_AUTOCOMPLETE', safe_POST_bool('NEW_ENABLE_AUTOCOMPLETE')); - set_gedcom_setting(WT_GED_ID, 'EXPAND_NOTES', safe_POST_bool('NEW_EXPAND_NOTES')); - set_gedcom_setting(WT_GED_ID, 'EXPAND_RELATIVES_EVENTS', safe_POST_bool('NEW_EXPAND_RELATIVES_EVENTS')); - set_gedcom_setting(WT_GED_ID, 'EXPAND_SOURCES', safe_POST_bool('NEW_EXPAND_SOURCES')); - set_gedcom_setting(WT_GED_ID, 'FAM_FACTS_ADD', str_replace(' ', '', safe_POST('NEW_FAM_FACTS_ADD'))); - set_gedcom_setting(WT_GED_ID, 'FAM_FACTS_QUICK', str_replace(' ', '', safe_POST('NEW_FAM_FACTS_QUICK'))); - set_gedcom_setting(WT_GED_ID, 'FAM_FACTS_UNIQUE', str_replace(' ', '', safe_POST('NEW_FAM_FACTS_UNIQUE'))); - set_gedcom_setting(WT_GED_ID, 'FAM_ID_PREFIX', safe_POST('NEW_FAM_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'FULL_SOURCES', safe_POST_bool('NEW_FULL_SOURCES')); - set_gedcom_setting(WT_GED_ID, 'GEDCOM_DEFAULT_TAB', safe_POST('NEW_GEDCOM_DEFAULT_TAB')); - set_gedcom_setting(WT_GED_ID, 'GEDCOM_ID_PREFIX', safe_POST('NEW_GEDCOM_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'GENERATE_UIDS', safe_POST_bool('NEW_GENERATE_UIDS')); - set_gedcom_setting(WT_GED_ID, 'HIDE_GEDCOM_ERRORS', !safe_POST_bool('NEW_HIDE_GEDCOM_ERRORS')); - set_gedcom_setting(WT_GED_ID, 'HIDE_LIVE_PEOPLE', safe_POST_bool('NEW_HIDE_LIVE_PEOPLE')); - set_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD', str_replace(' ', '', safe_POST('NEW_INDI_FACTS_ADD'))); - set_gedcom_setting(WT_GED_ID, 'INDI_FACTS_QUICK', str_replace(' ', '', safe_POST('NEW_INDI_FACTS_QUICK'))); - set_gedcom_setting(WT_GED_ID, 'INDI_FACTS_UNIQUE', str_replace(' ', '', safe_POST('NEW_INDI_FACTS_UNIQUE'))); - set_gedcom_setting(WT_GED_ID, 'KEEP_ALIVE_YEARS_BIRTH', safe_POST('KEEP_ALIVE_YEARS_BIRTH', WT_REGEX_INTEGER, 0)); - set_gedcom_setting(WT_GED_ID, 'KEEP_ALIVE_YEARS_DEATH', safe_POST('KEEP_ALIVE_YEARS_DEATH', WT_REGEX_INTEGER, 0)); - set_gedcom_setting(WT_GED_ID, 'LANGUAGE', safe_POST('GEDCOMLANG')); - set_gedcom_setting(WT_GED_ID, 'LINK_ICONS', safe_POST('NEW_LINK_ICONS')); - set_gedcom_setting(WT_GED_ID, 'MAX_ALIVE_AGE', safe_POST('MAX_ALIVE_AGE', WT_REGEX_INTEGER, 100)); - set_gedcom_setting(WT_GED_ID, 'MAX_DESCENDANCY_GENERATIONS', safe_POST('NEW_MAX_DESCENDANCY_GENERATIONS')); - set_gedcom_setting(WT_GED_ID, 'MAX_PEDIGREE_GENERATIONS', safe_POST('NEW_MAX_PEDIGREE_GENERATIONS')); - set_gedcom_setting(WT_GED_ID, 'MEDIA_DIRECTORY', safe_POST('NEW_MEDIA_DIRECTORY')); - set_gedcom_setting(WT_GED_ID, 'MEDIA_DIRECTORY_LEVELS', safe_POST('NEW_MEDIA_DIRECTORY_LEVELS')); - set_gedcom_setting(WT_GED_ID, 'MEDIA_EXTERNAL', safe_POST_bool('NEW_MEDIA_EXTERNAL')); - set_gedcom_setting(WT_GED_ID, 'MEDIA_FIREWALL_THUMBS', safe_POST_bool('NEW_MEDIA_FIREWALL_THUMBS')); - set_gedcom_setting(WT_GED_ID, 'MEDIA_ID_PREFIX', safe_POST('NEW_MEDIA_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'META_DESCRIPTION', safe_POST('NEW_META_DESCRIPTION')); - set_gedcom_setting(WT_GED_ID, 'META_ROBOTS', safe_POST('NEW_META_ROBOTS')); - set_gedcom_setting(WT_GED_ID, 'META_TITLE', safe_POST('NEW_META_TITLE')); - set_gedcom_setting(WT_GED_ID, 'MULTI_MEDIA', safe_POST_bool('NEW_MULTI_MEDIA')); - set_gedcom_setting(WT_GED_ID, 'NOTE_ID_PREFIX', safe_POST('NEW_NOTE_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'NO_UPDATE_CHAN', safe_POST_bool('NEW_NO_UPDATE_CHAN')); - set_gedcom_setting(WT_GED_ID, 'PEDIGREE_FULL_DETAILS', safe_POST_bool('NEW_PEDIGREE_FULL_DETAILS')); - set_gedcom_setting(WT_GED_ID, 'PEDIGREE_LAYOUT', safe_POST_bool('NEW_PEDIGREE_LAYOUT')); - set_gedcom_setting(WT_GED_ID, 'PEDIGREE_ROOT_ID', safe_POST('NEW_PEDIGREE_ROOT_ID')); - set_gedcom_setting(WT_GED_ID, 'PEDIGREE_SHOW_GENDER', safe_POST_bool('NEW_PEDIGREE_SHOW_GENDER')); - set_gedcom_setting(WT_GED_ID, 'POSTAL_CODE', safe_POST_bool('NEW_POSTAL_CODE')); - set_gedcom_setting(WT_GED_ID, 'PREFER_LEVEL2_SOURCES', safe_POST('NEW_PREFER_LEVEL2_SOURCES')); - set_gedcom_setting(WT_GED_ID, 'QUICK_REQUIRED_FACTS', safe_POST('NEW_QUICK_REQUIRED_FACTS')); - set_gedcom_setting(WT_GED_ID, 'QUICK_REQUIRED_FAMFACTS', safe_POST('NEW_QUICK_REQUIRED_FAMFACTS')); - set_gedcom_setting(WT_GED_ID, 'REPO_FACTS_ADD', str_replace(' ', '', safe_POST('NEW_REPO_FACTS_ADD'))); - set_gedcom_setting(WT_GED_ID, 'REPO_FACTS_QUICK', str_replace(' ', '', safe_POST('NEW_REPO_FACTS_QUICK'))); - set_gedcom_setting(WT_GED_ID, 'REPO_FACTS_UNIQUE', str_replace(' ', '', safe_POST('NEW_REPO_FACTS_UNIQUE'))); - set_gedcom_setting(WT_GED_ID, 'REPO_ID_PREFIX', safe_POST('NEW_REPO_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'REQUIRE_AUTHENTICATION', safe_POST_bool('NEW_REQUIRE_AUTHENTICATION')); - set_gedcom_setting(WT_GED_ID, 'SAVE_WATERMARK_IMAGE', safe_POST_bool('NEW_SAVE_WATERMARK_IMAGE')); - set_gedcom_setting(WT_GED_ID, 'SAVE_WATERMARK_THUMB', safe_POST_bool('NEW_SAVE_WATERMARK_THUMB')); - set_gedcom_setting(WT_GED_ID, 'SHOW_AGE_DIFF', safe_POST_bool('NEW_SHOW_AGE_DIFF')); - set_gedcom_setting(WT_GED_ID, 'SHOW_CONTEXT_HELP', safe_POST_bool('NEW_SHOW_CONTEXT_HELP')); - set_gedcom_setting(WT_GED_ID, 'SHOW_COUNTER', safe_POST_bool('NEW_SHOW_COUNTER')); - set_gedcom_setting(WT_GED_ID, 'SHOW_DEAD_PEOPLE', safe_POST('SHOW_DEAD_PEOPLE')); - set_gedcom_setting(WT_GED_ID, 'SHOW_EMPTY_BOXES', safe_POST_bool('NEW_SHOW_EMPTY_BOXES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_EST_LIST_DATES', safe_POST_bool('NEW_SHOW_EST_LIST_DATES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_FACT_ICONS', safe_POST_bool('NEW_SHOW_FACT_ICONS')); - set_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD', safe_POST_bool('NEW_SHOW_GEDCOM_RECORD')); - set_gedcom_setting(WT_GED_ID, 'SHOW_HIGHLIGHT_IMAGES', safe_POST_bool('NEW_SHOW_HIGHLIGHT_IMAGES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_LAST_CHANGE', safe_POST_bool('NEW_SHOW_LAST_CHANGE')); - set_gedcom_setting(WT_GED_ID, 'SHOW_LDS_AT_GLANCE', safe_POST_bool('NEW_SHOW_LDS_AT_GLANCE')); - set_gedcom_setting(WT_GED_ID, 'SHOW_LEVEL2_NOTES', safe_POST_bool('NEW_SHOW_LEVEL2_NOTES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_LIST_PLACES', safe_POST('NEW_SHOW_LIST_PLACES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_LIVING_NAMES', safe_POST('SHOW_LIVING_NAMES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_MARRIED_NAMES', safe_POST_bool('NEW_SHOW_MARRIED_NAMES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_MEDIA_DOWNLOAD', safe_POST_bool('NEW_SHOW_MEDIA_DOWNLOAD')); - set_gedcom_setting(WT_GED_ID, 'SHOW_MEDIA_FILENAME', safe_POST_bool('NEW_SHOW_MEDIA_FILENAME')); - set_gedcom_setting(WT_GED_ID, 'SHOW_NO_WATERMARK', safe_POST('NEW_SHOW_NO_WATERMARK')); - set_gedcom_setting(WT_GED_ID, 'SHOW_PARENTS_AGE', safe_POST_bool('NEW_SHOW_PARENTS_AGE')); - set_gedcom_setting(WT_GED_ID, 'SHOW_PEDIGREE_PLACES', safe_POST('NEW_SHOW_PEDIGREE_PLACES')); - set_gedcom_setting(WT_GED_ID, 'SHOW_PRIVATE_RELATIONSHIPS', safe_POST('SHOW_PRIVATE_RELATIONSHIPS')); - set_gedcom_setting(WT_GED_ID, 'SHOW_REGISTER_CAUTION', safe_POST_bool('NEW_SHOW_REGISTER_CAUTION')); - set_gedcom_setting(WT_GED_ID, 'SHOW_RELATIVES_EVENTS', safe_POST('NEW_SHOW_RELATIVES_EVENTS')); - set_gedcom_setting(WT_GED_ID, 'SHOW_SPIDER_TAGLINE', safe_POST_bool('NEW_SHOW_SPIDER_TAGLINE')); - set_gedcom_setting(WT_GED_ID, 'SHOW_STATS', safe_POST_bool('NEW_SHOW_STATS')); - set_gedcom_setting(WT_GED_ID, 'SOURCE_ID_PREFIX', safe_POST('NEW_SOURCE_ID_PREFIX')); - set_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_ADD', str_replace(' ', '', safe_POST('NEW_SOUR_FACTS_ADD'))); - set_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_QUICK', str_replace(' ', '', safe_POST('NEW_SOUR_FACTS_QUICK'))); - set_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_UNIQUE', str_replace(' ', '', safe_POST('NEW_SOUR_FACTS_UNIQUE'))); - set_gedcom_setting(WT_GED_ID, 'SPLIT_PLACES', safe_POST_bool('NEW_SPLIT_PLACES')); - set_gedcom_setting(WT_GED_ID, 'SUBLIST_TRIGGER_F', safe_POST('NEW_SUBLIST_TRIGGER_F', WT_REGEX_INTEGER, 200)); - set_gedcom_setting(WT_GED_ID, 'SUBLIST_TRIGGER_I', safe_POST('NEW_SUBLIST_TRIGGER_I', WT_REGEX_INTEGER, 200)); - set_gedcom_setting(WT_GED_ID, 'SURNAME_LIST_STYLE', safe_POST('NEW_SURNAME_LIST_STYLE')); - set_gedcom_setting(WT_GED_ID, 'SURNAME_TRADITION', safe_POST('NEW_SURNAME_TRADITION')); - set_gedcom_setting(WT_GED_ID, 'THEME_DIR', safe_POST('NEW_THEME_DIR')); - set_gedcom_setting(WT_GED_ID, 'THUMBNAIL_WIDTH', safe_POST('NEW_THUMBNAIL_WIDTH')); - set_gedcom_setting(WT_GED_ID, 'UNDERLINE_NAME_QUOTES', safe_POST_bool('NEW_UNDERLINE_NAME_QUOTES')); - set_gedcom_setting(WT_GED_ID, 'USE_GEONAMES', safe_POST_bool('NEW_USE_GEONAMES')); - set_gedcom_setting(WT_GED_ID, 'USE_MEDIA_FIREWALL', safe_POST_bool('NEW_USE_MEDIA_FIREWALL')); - set_gedcom_setting(WT_GED_ID, 'USE_MEDIA_VIEWER', safe_POST_bool('NEW_USE_MEDIA_VIEWER')); - set_gedcom_setting(WT_GED_ID, 'USE_RIN', safe_POST_bool('NEW_USE_RIN')); - set_gedcom_setting(WT_GED_ID, 'USE_SILHOUETTE', safe_POST_bool('NEW_USE_SILHOUETTE')); - set_gedcom_setting(WT_GED_ID, 'USE_THUMBS_MAIN', safe_POST_bool('NEW_USE_THUMBS_MAIN')); - set_gedcom_setting(WT_GED_ID, 'WATERMARK_THUMB', safe_POST_bool('NEW_WATERMARK_THUMB')); - set_gedcom_setting(WT_GED_ID, 'WEBMASTER_USER_ID', safe_POST('NEW_WEBMASTER_USER_ID')); - set_gedcom_setting(WT_GED_ID, 'WEBTREES_EMAIL', safe_POST('NEW_WEBTREES_EMAIL')); - set_gedcom_setting(WT_GED_ID, 'WELCOME_TEXT_AUTH_MODE', safe_POST('NEW_WELCOME_TEXT_AUTH_MODE')); - set_gedcom_setting(WT_GED_ID, 'WELCOME_TEXT_AUTH_MODE_'.WT_LOCALE, safe_POST('NEW_WELCOME_TEXT_AUTH_MODE_4', WT_REGEX_UNSAFE)); - set_gedcom_setting(WT_GED_ID, 'WELCOME_TEXT_CUST_HEAD', safe_POST_bool('NEW_WELCOME_TEXT_CUST_HEAD')); - set_gedcom_setting(WT_GED_ID, 'WORD_WRAPPED_NOTES', safe_POST_bool('NEW_WORD_WRAPPED_NOTES')); - set_gedcom_setting(WT_GED_ID, 'ZOOM_BOXES', safe_POST('NEW_ZOOM_BOXES')); - set_gedcom_setting(WT_GED_ID, 'title', safe_POST('gedcom_title', WT_REGEX_UNSAFE)); - - if (!$_POST["NEW_MEDIA_FIREWALL_ROOTDIR"]) { - $NEW_MEDIA_FIREWALL_ROOTDIR = $INDEX_DIRECTORY; - } else { - $_POST["NEW_MEDIA_FIREWALL_ROOTDIR"] = trim(str_replace('\\','/',$_POST["NEW_MEDIA_FIREWALL_ROOTDIR"])); - if (substr ($_POST["NEW_MEDIA_FIREWALL_ROOTDIR"], -1) != "/") $_POST["NEW_MEDIA_FIREWALL_ROOTDIR"] = $_POST["NEW_MEDIA_FIREWALL_ROOTDIR"] . "/"; - $NEW_MEDIA_FIREWALL_ROOTDIR = safe_POST("NEW_MEDIA_FIREWALL_ROOTDIR"); - } - if (!is_dir($NEW_MEDIA_FIREWALL_ROOTDIR)) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('The Media Firewall root directory you requested does not exist. You must create it first.')."</span><br />"; - } - if (!$errors) { - // create the media directory - // if NEW_MEDIA_FIREWALL_ROOTDIR is the INDEX_DIRECTORY, WT will have perms to create it - // if WT is unable to create the directory, tell the user to create it - if ($_POST["NEW_USE_MEDIA_FIREWALL"]==true) { - if (!is_dir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY)) { - @mkdir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY, WT_PERM_EXE); - if (!is_dir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY)) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('The protected media directory could not be created in the Media Firewall root directory. Please create this directory and make it world-writable.')." ".$NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."</span><br />"; - } - } - } - } - if (!$errors) { - // create the thumbs dir to make sure we have write perms - if ($_POST["NEW_USE_MEDIA_FIREWALL"]==true) { - if (!is_dir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."thumbs")) { - @mkdir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."thumbs", WT_PERM_EXE); - if (!is_dir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."thumbs")) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('The protected media directory in the Media Firewall root directory is not world writable. ')." ".$NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."</span><br />"; - } - } - } - } - if (!$errors) { - // copy the .htaccess file from INDEX_DIRECTORY to NEW_MEDIA_FIREWALL_ROOTDIR in case it is still in a web-accessible area - if ($_POST["NEW_USE_MEDIA_FIREWALL"]==true) { - if ((file_exists($INDEX_DIRECTORY.".htaccess")) && (is_dir($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY)) && (!file_exists($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY.".htaccess")) ) { - @copy($INDEX_DIRECTORY.".htaccess", $NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY.".htaccess"); - if (!file_exists($NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY.".htaccess")) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('The protected media directory in the Media Firewall root directory is not world writable. ')." ".$NEW_MEDIA_FIREWALL_ROOTDIR.$MEDIA_DIRECTORY."</span><br />"; - } - } - } - } - if (!$errors) { - set_gedcom_setting(WT_GED_ID, 'MEDIA_FIREWALL_ROOTDIR', safe_POST('NEW_MEDIA_FIREWALL_ROOTDIR')); - } - - if ($_POST["NEW_USE_MEDIA_FIREWALL"]==true ) { - AddToLog("Media Firewall enabled", 'config'); - - if (!$errors) { - // create/modify an htaccess file in the main media directory - $httext = ""; - if (file_exists($MEDIA_DIRECTORY.".htaccess")) { - $httext = implode('', file($MEDIA_DIRECTORY.".htaccess")); - // remove all WT media firewall sections from the .htaccess - $httext = preg_replace('/\n?^[#]*\s*BEGIN WT MEDIA FIREWALL SECTION(.*\n){10}[#]*\s*END WT MEDIA FIREWALL SECTION\s*[#]*\n?/m', "", $httext); - // comment out any existing lines that set ErrorDocument 404 - $httext = preg_replace('/^(ErrorDocument\s*404(.*))\n?/', "#$1\n", $httext); - $httext = preg_replace('/[^#](ErrorDocument\s*404(.*))\n?/', "\n#$1\n", $httext); - } - // add new WT media firewall section to the end of the file - $httext .= "\n######## BEGIN WT MEDIA FIREWALL SECTION ##########"; - $httext .= "\n################## DO NOT MODIFY ###################"; - $httext .= "\n## THERE MUST BE EXACTLY 11 LINES IN THIS SECTION ##"; - $httext .= "\n<IfModule mod_rewrite.c>"; - $httext .= "\n\tRewriteEngine On"; - $httext .= "\n\tRewriteCond %{REQUEST_FILENAME} !-f"; - $httext .= "\n\tRewriteCond %{REQUEST_FILENAME} !-d"; - $httext .= "\n\tRewriteRule .* ".WT_SCRIPT_PATH."mediafirewall.php"." [L]"; - $httext .= "\n</IfModule>"; - $httext .= "\nErrorDocument\t404\t".WT_SCRIPT_PATH."mediafirewall.php"; - $httext .= "\n########## END WT MEDIA FIREWALL SECTION ##########"; - - $whichFile = $MEDIA_DIRECTORY.".htaccess"; - $fp = @fopen($whichFile, "wb"); - if (!$fp) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('E R R O R !!!<br />Could not write to file <i>%s</i>. Please check it for proper Write permissions.', $whichFile)."</span><br />"; - } else { - fwrite($fp, $httext); - fclose($fp); - chmod($whichFile, 0644); // Make sure apache can read this file - } - } - } elseif ($_POST["NEW_USE_MEDIA_FIREWALL"]==false) { - AddToLog("Media Firewall disabled", 'config'); - - if (file_exists($MEDIA_DIRECTORY.".htaccess")) { - $httext = implode('', file($MEDIA_DIRECTORY.".htaccess")); - // remove all WT media firewall sections from the .htaccess - $httext = preg_replace('/\n?^[#]*\s*BEGIN WT MEDIA FIREWALL SECTION(.*\n){10}[#]*\s*END WT MEDIA FIREWALL SECTION\s*[#]*\n?/m', "", $httext); - // comment out any lines that set ErrorDocument 404 - $httext = preg_replace('/^(ErrorDocument\s*404(.*))\n?/', "#$1\n", $httext); - $httext = preg_replace('/[^#](ErrorDocument\s*404(.*))\n?/', "\n#$1\n", $httext); - $whichFile = $MEDIA_DIRECTORY.".htaccess"; - $fp = @fopen($whichFile, "wb"); - if (!$fp) { - $errors = true; - $error_msg .= "<span class=\"error\">".WT_I18N::translate('E R R O R !!!<br />Could not write to file <i>%s</i>. Please check it for proper Write permissions.', $whichFile)."</span><br />"; - } else { - fwrite($fp, $httext); - fclose($fp); - chmod($whichFile, 0644); // Make sure apache can read this file - } - } - - } - - if (!$errors) { - $gednews = getUserNews(WT_GEDCOM); - if (count($gednews)==0) { - $news = array(); - $news["title"] = WT_I18N::translate('Welcome to Your Genealogy'); - $news["username"] = WT_GEDCOM; - $news["text"] = WT_I18N::translate('The genealogy information on this website is powered by <a href="http://webtrees.net/" target="_blank">webtrees</a>. This page provides an introduction and overview to this genealogy.<br /><br />To begin working with the data, choose one of the charts from the Charts menu, go to the Individual list, or search for a name or place.<br /><br />If you have trouble using the site, you can click on the Help icon to give you information on how to use the page that you are currently viewing.<br /><br />Thank you for visiting this site.'); - $news["date"] = client_time(); - addNews($news); - } - header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.'editgedcoms.php'); - exit; - } -} - -print_header(WT_I18N::translate('GEDCOM configuration')); -?> -<script type="text/javascript"> -//<![CDATA[ - jQuery.noConflict(); - jQuery(document).ready(function() { - jQuery("#tabs").tabs(); - }); -//]]> -</script> -<script language="JavaScript" type="text/javascript"> -<!-- - var pastefield; - function paste_id(value) { - pastefield.value=value; - } -//--> -</script> - -<form enctype="multipart/form-data" method="post" id="configform" name="configform" action="editconfig_gedcom.php"> - -<table class="facts_table center <?php echo $TEXT_DIRECTION; ?>"> - <tr> - <td colspan="2" class="facts_label"> - <?php - echo "<h2>", WT_I18N::translate('GEDCOM configuration'), " - "; - echo PrintReady(get_gedcom_setting(WT_GED_ID, 'title')); - echo "</h2>"; - echo "<a href=\"editgedcoms.php\"><b>"; - echo WT_I18N::translate('Return to the GEDCOM management menu'); - echo "</b></a><br /><br />"; - ?> - </td> - </tr> -</table> - -<input type="hidden" name="action" value="update" /> -<?php - if (!empty($error_msg)) echo "<br /><span class=\"error\">".$error_msg."</span><br />"; - $i = 0; -?> - -<table class="center <?php echo $TEXT_DIRECTION; ?>"> - <tr> - <td colspan="2"> - <div id="tabs"> - <ul> - <li><a href="#file-options"><span><?php echo WT_I18N::translate('GEDCOM Basics'); ?></span></a></li> - <li><a href="#privacy"><span><?php echo WT_I18N::translate('Privacy'); ?></span></a></li> - <li><a href="#config-media"><span><?php echo WT_I18N::translate('Multimedia'); ?></span></a></li> - <li><a href="#access-options"><span><?php echo WT_I18N::translate('Access'); ?></span></a></li> - <li><a href="#layout-options"><span><?php echo WT_I18N::translate('Layout'); ?></span></a></li> - <li><a href="#hide-show"><span><?php echo WT_I18N::translate('Hide & Show'); ?></span></a></li> - <li><a href="#edit-options"><span><?php echo WT_I18N::translate('Edit Options'); ?></span></a></li> - </ul> - <!-- GEDCOM BASICS --> - <div id="file-options"> - <table class="facts_table"> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('GEDCOM title'), help_link('gedcom_title'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="gedcom_title" dir="ltr" value="<?php echo htmlspecialchars(get_gedcom_setting(WT_GED_ID, 'title')); ?>" size="40" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"><?php echo WT_I18N::translate('Language'), help_link('LANGUAGE'); ?></td> - <td class="optionbox width60"><?php echo edit_field_language('GEDCOMLANG', $LANGUAGE); ?></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Default person for pedigree and descendancy charts'), help_link('PEDIGREE_ROOT_ID'); ?> - </td> - <td class="optionbox width60 wrap"> - <input type="text" name="NEW_PEDIGREE_ROOT_ID" id="NEW_PEDIGREE_ROOT_ID" value="<?php echo $PEDIGREE_ROOT_ID; ?>" size="5" /> - <?php - print_findindi_link("NEW_PEDIGREE_ROOT_ID", ""); - if ($PEDIGREE_ROOT_ID) { - $person=WT_Person::getInstance($PEDIGREE_ROOT_ID); - if ($person) { - echo ' <span class="list_item">', $person->getFullName(), ' ', $person->format_first_major_fact(WT_EVENTS_BIRT, 1), '</span>'; - } else { - echo ' <span class="error">', WT_I18N::translate('Unable to find record with ID'), '</span>'; - } - } - ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Calendar format'), help_link('CALENDAR_FORMAT'); ?> - </td> - <td class="optionbox width60"> - <select id="NEW_CALENDAR_FORMAT" name="NEW_CALENDAR_FORMAT"> - <?php - foreach (array( - 'none'=>WT_I18N::translate('No calendar conversion'), - 'gregorian'=>WT_I18N::translate('Gregorian'), - 'julian'=>WT_I18N::translate('Julian'), - 'french'=>WT_I18N::translate('French'), - 'jewish'=>WT_I18N::translate('Jewish'), - 'jewish_and_gregorian'=>WT_I18N::translate('Jewish and Gregorian'), - 'hebrew'=>WT_I18N::translate('Hebrew'), - 'hebrew_and_gregorian'=>WT_I18N::translate('Hebrew and Gregorian'), - 'hijri'=>WT_I18N::translate('Hijri'), - 'arabic'=>WT_I18N::translate('Arabic') - ) as $cal=>$name) { - echo '<option value="', $cal, '"'; - if ($CALENDAR_FORMAT==$cal) { - echo ' selected="selected"'; - } - echo '>', $name, '</option>'; - } - ?> - </select></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Display Hebrew thousands'), help_link('DISPLAY_JEWISH_THOUSANDS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_DISPLAY_JEWISH_THOUSANDS', get_gedcom_setting(WT_GED_ID, 'DISPLAY_JEWISH_THOUSANDS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Display Hebrew gershayim'), help_link('DISPLAY_JEWISH_GERESHAYIM'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_DISPLAY_JEWISH_GERESHAYIM', get_gedcom_setting(WT_GED_ID, 'DISPLAY_JEWISH_GERESHAYIM')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use RIN number instead of GEDCOM ID'), help_link('USE_RIN'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_RIN', get_gedcom_setting(WT_GED_ID, 'USE_RIN')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Automatically create globally unique IDs'), help_link('GENERATE_GUID'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_GENERATE_UIDS', get_gedcom_setting(WT_GED_ID, 'GENERATE_UIDS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Add spaces where notes were wrapped'), help_link('WORD_WRAPPED_NOTES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_WORD_WRAPPED_NOTES', get_gedcom_setting(WT_GED_ID, 'WORD_WRAPPED_NOTES')); ?> - </td> - </tr> - </table> - <table class="facts_table"> - <tr> - <td colspan="6" class="subbar" colspan="2"><?php echo WT_I18N::translate('ID settings'); ?></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Individual ID prefix'), help_link('GEDCOM_ID_PREFIX'); ?> - </td> - <td class="optionbox"> - <input type="text" name="NEW_GEDCOM_ID_PREFIX" dir="ltr" value="<?php echo $GEDCOM_ID_PREFIX; ?>" size="5" /> - </td> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Family ID prefix'), help_link('FAM_ID_PREFIX'); ?> - </td> - <td class="optionbox"> - <input type="text" name="NEW_FAM_ID_PREFIX" dir="ltr" value="<?php echo $FAM_ID_PREFIX; ?>" size="5" /> - </td> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Source ID prefix'), help_link('SOURCE_ID_PREFIX'); ?> - </td> - <td class="optionbox"> - <input type="text" name="NEW_SOURCE_ID_PREFIX" dir="ltr" value="<?php echo $SOURCE_ID_PREFIX; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"><?php echo WT_I18N::translate('Repository ID prefix'), help_link('REPO_ID_PREFIX'); ?></td> - <td class="optionbox"><input type="text" name="NEW_REPO_ID_PREFIX" dir="ltr" value="<?php echo $REPO_ID_PREFIX; ?>" size="5" /> - </td> - <td class="descriptionbox nowrap"><?php echo WT_I18N::translate('Media ID prefix'), help_link('MEDIA_ID_PREFIX'); ?></td> - <td class="optionbox"><input type="text" name="NEW_MEDIA_ID_PREFIX" dir="ltr" value="<?php echo $MEDIA_ID_PREFIX; ?>" size="5" /> - </td> - <td class="descriptionbox nowrap"><?php echo WT_I18N::translate('Note ID prefix'), help_link('NOTE_ID_PREFIX'); ?></td> - <td class="optionbox"><input type="text" name="NEW_NOTE_ID_PREFIX" dir="ltr" value="<?php echo $NOTE_ID_PREFIX; ?>" size="5" /> - </td> - </tr> - </table> - <table class="facts_table"> - <tr> - <td class="subbar" colspan="2"><?php echo WT_I18N::translate('Contact Information'); ?></td> - </tr> - <tr> - <?php - if (empty($WEBTREES_EMAIL)) { - $WEBTREES_EMAIL = "webtrees-noreply@".preg_replace("/^www\./i", "", $_SERVER["SERVER_NAME"]); - } - ?> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('webtrees reply address'), help_link('WEBTREES_EMAIL'); ?> - </td> - <td class="optionbox width60"><input type="text" name="NEW_WEBTREES_EMAIL" value="<?php echo $WEBTREES_EMAIL; ?>" size="50" dir="ltr" /></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Genealogy contact'), help_link('CONTACT_USER_ID'); ?> - </td> - <td class="optionbox width60"><select name="NEW_CONTACT_USER_ID"> - <?php - $CONTACT_USER_ID=get_gedcom_setting(WT_GED_ID, 'CONTACT_USER_ID'); - foreach (get_all_users() as $user_id=>$user_name) { - if (get_user_setting($user_id, 'verified_by_admin')) { - echo "<option value=\"".$user_id."\""; - if ($CONTACT_USER_ID==$user_id) echo " selected=\"selected\""; - echo ">".getUserFullName($user_id)." - ".$user_name."</option>"; - } - } - ?> - </select> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Support contact'), help_link('WEBMASTER_USER_ID'); ?> - </td> - <td class="optionbox width60"><select name="NEW_WEBMASTER_USER_ID"> - <?php - $WEBMASTER_USER_ID=get_gedcom_setting(WT_GED_ID, 'WEBMASTER_USER_ID'); - foreach (get_all_users() as $user_id=>$user_name) { - if (userIsAdmin($user_id)) { - echo "<option value=\"".$user_id."\""; - if ($WEBMASTER_USER_ID==$user_id) echo " selected=\"selected\""; - echo ">".getUserFullName($user_id)." - ".$user_name."</option>"; - } - } - ?> - </select> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"><?php echo WT_I18N::translate('Web Site and META Tag Settings'); ?></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Add to TITLE header tag'), help_link('META_TITLE'); ?> - </td> - <td class="optionbox width60"><input type="text" dir="ltr" name="NEW_META_TITLE" value="<?php echo htmlspecialchars(get_gedcom_setting(WT_GED_ID, 'META_TITLE')); ?>" /> - </td> - </tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Description META tag'), help_link('META_DESCRIPTION'); ?> - </td> - <td class="optionbox width60"><input type="text" dir="ltr" name="NEW_META_DESCRIPTION" value="<?php echo get_gedcom_setting(WT_GED_ID, 'META_DESCRIPTION'); ?>" /><br /> - <?php echo WT_I18N::translate('Leave this field empty to use the title of the currently active database.'); ?></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Robots META tag'), help_link('META_ROBOTS'); ?> - </td> - <td class="optionbox width60"><input type="text" dir="ltr" name="NEW_META_ROBOTS" value="<?php echo get_gedcom_setting(WT_GED_ID, 'META_ROBOTS'); ?>" /><br /> - </td> - </tr> - </table> - </div> - <!-- PRIVACY OPTIONS --> - <div id="privacy"> - <table class="facts_table"> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Privacy options'), help_link('HIDE_LIVE_PEOPLE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_HIDE_LIVE_PEOPLE', array(false=>WT_I18N::translate('disable'),true=>WT_I18N::translate('enable')), $HIDE_LIVE_PEOPLE, ''); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show dead people'), help_link('SHOW_DEAD_PEOPLE'); ?> - </td> - <td class="optionbox"> - <?php echo edit_field_access_level("SHOW_DEAD_PEOPLE", get_gedcom_setting(WT_GED_ID, 'SHOW_DEAD_PEOPLE')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php /* I18N: ... [who were] born in the last XX years or died in the last YY years */ echo WT_I18N::translate('Extend privacy to dead people'), help_link('KEEP_ALIVE'); ?> - </td> - <td class="optionbox"> - <?php - echo - /* I18N: Extend privacy to dead people [who were] ... */ - WT_I18N::translate( - 'born in the last %1$s years or died in the last %2$s years', - '<input type="text" name="KEEP_ALIVE_YEARS_BIRTH" value="'.get_gedcom_setting(WT_GED_ID, 'KEEP_ALIVE_YEARS_BIRTH').'" size="5" />', - '<input type="text" name="KEEP_ALIVE_YEARS_DEATH" value="'.get_gedcom_setting(WT_GED_ID, 'KEEP_ALIVE_YEARS_DEATH').'" size="5" />' - ); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show living names'), help_link('SHOW_LIVING_NAMES'); ?> - </td> - <td class="optionbox"> - <?php echo edit_field_access_level("SHOW_LIVING_NAMES", get_gedcom_setting(WT_GED_ID, 'SHOW_LIVING_NAMES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show private relationships'), help_link('SHOW_PRIVATE_RELATIONSHIPS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('SHOW_PRIVATE_RELATIONSHIPS', get_gedcom_setting(WT_GED_ID, 'SHOW_PRIVATE_RELATIONSHIPS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Age at which to assume a person is dead'), help_link('MAX_ALIVE_AGE'); ?> - </td> - <td class="optionbox"> - <input type="text" name="MAX_ALIVE_AGE" value="<?php echo get_gedcom_setting(WT_GED_ID, 'MAX_ALIVE_AGE'); ?>" size="5" /> - </td> - </tr> - </table> - <br /> - <table class="facts_table"> - <tr> - <td class="topbottombar" colspan="4"> - <?php echo WT_I18N::translate('Privacy restrictions - these apply to records and facts that do not contain a GEDCOM RESN tag'); ?> - </td> - </tr> - <?php - - $all_tags=array(); - $tags=array_unique(array_merge( - explode(',', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD')), explode(',', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_UNIQUE')), - explode(',', get_gedcom_setting(WT_GED_ID, 'FAM_FACTS_ADD' )), explode(',', get_gedcom_setting(WT_GED_ID, 'FAM_FACTS_UNIQUE' )), - explode(',', get_gedcom_setting(WT_GED_ID, 'NOTE_FACTS_ADD')), explode(',', get_gedcom_setting(WT_GED_ID, 'NOTE_FACTS_UNIQUE')), - explode(',', get_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_ADD')), explode(',', get_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_UNIQUE')), - explode(',', get_gedcom_setting(WT_GED_ID, 'REPO_FACTS_ADD')), explode(',', get_gedcom_setting(WT_GED_ID, 'REPO_FACTS_UNIQUE')), - array('SOUR', 'REPO', 'OBJE', 'NOTE', 'SUBM', 'SUBN') - )); - - foreach ($tags as $tag) { - if ($tag) { - $all_tags[$tag]=translate_fact($tag); - } - } - - uasort($all_tags, 'utf8_strcasecmp'); - - echo '<tr><td class="optionbox" width="*">'; - echo '<input type="text" class="pedigree_form" name="xref" id="xref" size="6" />'; - print_findindi_link("xref",""); - print_findfamily_link("xref"); - print_findsource_link("xref"); - print_findrepository_link("xref"); - print_findmedia_link("xref", "1media"); - echo '</td><td class="optionbox" width="*">'; - echo select_edit_control('tag_type', $all_tags, '', null, null); - echo '</td><td class="optionbox" width="1">'; - echo select_edit_control('resn', $PRIVACY_CONSTANTS, null, 'privacy', null); - echo '</td><td class="optionbox" width="1">'; - echo '<input type="button" value="', WT_I18N::translate('Add'), '" onClick="document.configform.elements[\'action\'].value=\'add\';document.configform.submit();" />'; - echo '<input type="hidden" name="default_resn_id" value="">'; // value set by JS - echo '</td></tr>'; - $rows=WT_DB::prepare( - "SELECT default_resn_id, tag_type, xref, resn". - " FROM `##default_resn`". - " WHERE gedcom_id=?". - " ORDER BY xref IS NULL, tag_type IS NULL, xref, tag_type" - )->execute(array(WT_GED_ID))->fetchAll(); - foreach ($rows as $row) { - echo '<tr><td class="optionbox" width="*">'; - if ($row->xref) { - $record=WT_GedcomRecord::getInstance($row->xref); - if ($record) { - $name=$record->getFullName(); - } else { - $name=WT_I18N::translate('this record does not exist'); - } - // I18N: e.g. John DOE (I1234) - echo WT_I18N::translate('%1$s (%2$s)', $name, $row->xref); - } else { - echo ' '; - } - echo '</td><td class="optionbox" width="*">'; - if ($row->tag_type) { - // I18N: e.g. Marriage (MARR) - echo WT_I18N::translate('%1$s [%2$s]', translate_fact($row->tag_type), $row->tag_type); - } else { - echo ' '; - } - echo '</td><td class="optionbox" width="1">'; - echo $PRIVACY_CONSTANTS[$row->resn]; - echo '</td><td class="optionbox" width="1">'; - echo '<input type="button" value="', WT_I18N::translate('Delete'), '" onClick="document.configform.elements[\'action\'].value=\'delete\';document.configform.elements[\'default_resn_id\'].value=\''.$row->default_resn_id.'\';document.configform.submit();" />'; - echo '</td></tr>'; - } - echo '</table>'; - ?> - </div> - <!-- MULTIMEDIA --> - <div id="config-media"> - <table class="facts_table"> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Enable multimedia features'), help_link('MULTI_MEDIA'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_MULTI_MEDIA', get_gedcom_setting(WT_GED_ID, 'MULTI_MEDIA')); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"><?php echo WT_I18N::translate('General'); ?></td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Keep links'), help_link('MEDIA_EXTERNAL'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_MEDIA_EXTERNAL', get_gedcom_setting(WT_GED_ID, 'MEDIA_EXTERNAL')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Multimedia directory'), help_link('MEDIA_DIRECTORY'); ?> - </td> - <td class="optionbox width60"> - <input type="text" size="50" name="NEW_MEDIA_DIRECTORY" value="<?php echo $MEDIA_DIRECTORY; ?>" dir="ltr" /> - <?php if (preg_match("/.*[a-zA-Z]{1}:.*/", $MEDIA_DIRECTORY)>0) echo "<span class=\"error\">".WT_I18N::translate('Media path should not contain a drive letter; media may not be displayed.')."</span>"; ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Multi-Media directory levels to keep'), help_link('MEDIA_DIRECTORY_LEVELS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_MEDIA_DIRECTORY_LEVELS" value="<?php echo $MEDIA_DIRECTORY_LEVELS; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Width of generated thumbnails'), help_link('THUMBNAIL_WIDTH'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_THUMBNAIL_WIDTH" value="<?php echo $THUMBNAIL_WIDTH; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Automatically generate thumbnails'), help_link('AUTO_GENERATE_THUMBS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_AUTO_GENERATE_THUMBS', get_gedcom_setting(WT_GED_ID, 'AUTO_GENERATE_THUMBS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use thumbnail'), help_link('USE_THUMBS_MAIN'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_THUMBS_MAIN', get_gedcom_setting(WT_GED_ID, 'USE_THUMBS_MAIN')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use silhouettes'), help_link('USE_SILHOUETTE'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_SILHOUETTE', get_gedcom_setting(WT_GED_ID, 'USE_SILHOUETTE')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show highlight images in people boxes'), help_link('SHOW_HIGHLIGHT_IMAGES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_HIGHLIGHT_IMAGES', get_gedcom_setting(WT_GED_ID, 'SHOW_HIGHLIGHT_IMAGES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use media viewer'), help_link('USE_MEDIA_VIEWER'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_MEDIA_VIEWER', get_gedcom_setting(WT_GED_ID, 'USE_MEDIA_VIEWER')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show file name in media viewer'), help_link('SHOW_MEDIA_FILENAME'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_MEDIA_FILENAME', get_gedcom_setting(WT_GED_ID, 'SHOW_MEDIA_FILENAME')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show download link in media viewer'), help_link('SHOW_MEDIA_DOWNLOAD'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_MEDIA_DOWNLOAD', get_gedcom_setting(WT_GED_ID, 'SHOW_MEDIA_DOWNLOAD')); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Media Firewall'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use media firewall'), help_link('USE_MEDIA_FIREWALL'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_MEDIA_FIREWALL', get_gedcom_setting(WT_GED_ID, 'USE_MEDIA_FIREWALL')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Media firewall root directory'), help_link('MEDIA_FIREWALL_ROOTDIR'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_MEDIA_FIREWALL_ROOTDIR" size="50" dir="ltr" value="<?php echo ($MEDIA_FIREWALL_ROOTDIR == $INDEX_DIRECTORY) ? "" : $MEDIA_FIREWALL_ROOTDIR; ?>" /><br /> - <?php echo WT_I18N::translate('When this field is empty, the <b>%s</b> directory will be used.', $INDEX_DIRECTORY); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Protect thumbnails of protected images'), help_link('MEDIA_FIREWALL_THUMBS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_MEDIA_FIREWALL_THUMBS', get_gedcom_setting(WT_GED_ID, 'MEDIA_FIREWALL_THUMBS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Who can view non-watermarked images?'), help_link('SHOW_NO_WATERMARK'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_access_level("NEW_SHOW_NO_WATERMARK", $SHOW_NO_WATERMARK); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Add watermarks to thumbnails?'), help_link('WATERMARK_THUMB'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_WATERMARK_THUMB', get_gedcom_setting(WT_GED_ID, 'WATERMARK_THUMB')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Store watermarked full size images on server?'), help_link('SAVE_WATERMARK_IMAGE'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SAVE_WATERMARK_IMAGE', get_gedcom_setting(WT_GED_ID, 'SAVE_WATERMARK_IMAGE')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Store watermarked thumbnails on server?'), help_link('SAVE_WATERMARK_THUMB'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SAVE_WATERMARK_THUMB', get_gedcom_setting(WT_GED_ID, 'SAVE_WATERMARK_THUMB')); ?> - </td> - </tr> - </table> - </div> - <!-- ACCESS --> - <div id="access-options"> - <table class="facts_table"> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Visitor options'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Require visitor authentication'), help_link('REQUIRE_AUTHENTICATION'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_REQUIRE_AUTHENTICATION', get_gedcom_setting(WT_GED_ID, 'REQUIRE_AUTHENTICATION')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Welcome text on login page'), help_link('WELCOME_TEXT_AUTH_MODE'); ?> - </td> - <td class="optionbox width60"><select name="NEW_WELCOME_TEXT_AUTH_MODE"> - <option value="0" <?php if ($WELCOME_TEXT_AUTH_MODE=='0') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('No predefined text'); ?></option> - <option value="1" <?php if ($WELCOME_TEXT_AUTH_MODE=='1') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Predefined text that states all users can request a user account'); ?></option> - <option value="2" <?php if ($WELCOME_TEXT_AUTH_MODE=='2') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Predefined text that states admin will decide on each request for a user account'); ?></option> - <option value="3" <?php if ($WELCOME_TEXT_AUTH_MODE=='3') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Predefined text that states only family members can request a user account'); ?></option> - <option value="4" <?php if ($WELCOME_TEXT_AUTH_MODE=='4') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Choose user defined welcome text typed below'); ?></option> - </select> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Standard header for custom welcome text'), help_link('WELCOME_TEXT_AUTH_MODE_CUST_HEAD'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_WELCOME_TEXT_CUST_HEAD', get_gedcom_setting(WT_GED_ID, 'WELCOME_TEXT_CUST_HEAD')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Custom welcome text'), help_link('WELCOME_TEXT_AUTH_MODE_CUST'); ?> - </td> - <td class="optionbox width60"> - <textarea name="NEW_WELCOME_TEXT_AUTH_MODE_4" rows="5" cols="60"><?php echo get_gedcom_setting(WT_GED_ID, 'WELCOME_TEXT_AUTH_MODE_'.WT_LOCALE); ?></textarea> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show acceptable use agreement on «Request new user account» page'), help_link('SHOW_REGISTER_CAUTION'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_REGISTER_CAUTION', get_gedcom_setting(WT_GED_ID, 'SHOW_REGISTER_CAUTION')); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('User options'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Contextual Help links'), help_link('SHOW_CONTEXT_HELP'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_CONTEXT_HELP', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), get_gedcom_setting(WT_GED_ID, 'SHOW_CONTEXT_HELP')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Theme dropdown selector for theme changes'), help_link('ALLOW_THEME_DROPDOWN'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_ALLOW_THEME_DROPDOWN', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $ALLOW_THEME_DROPDOWN); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Default Theme'), help_link('THEME'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_THEME_DIR"> - <?php - echo '<option value="">', WT_I18N::translate('<default theme>'), '</option>'; - $current_themedir=get_gedcom_setting(WT_GED_ID, 'THEME_DIR'); - foreach (get_theme_names() as $themename=>$themedir) { - echo '<option value="', $themedir, '"'; - if ($themedir==$current_themedir) { - echo ' selected="selected"'; - } - echo '>', $themename, '</option>'; - } - ?> - </select> - </td> - </tr> - </table> - </div> - <!-- LAYOUT --> - <div id="layout-options"> - <table class="facts_table"> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Names'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Underline names in quotes'), help_link('UNDERLINE_NAME_QUOTES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_UNDERLINE_NAME_QUOTES', get_gedcom_setting(WT_GED_ID, 'UNDERLINE_NAME_QUOTES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show married names on individual list'), help_link('SHOW_MARRIED_NAMES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_MARRIED_NAMES', get_gedcom_setting(WT_GED_ID, 'SHOW_MARRIED_NAMES')); ?> - </td> - </tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Min. no. of occurrences to be a "common surname"'), help_link('COMMON_NAMES_THRESHOLD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_COMMON_NAMES_THRESHOLD" value="<?php echo get_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_THRESHOLD'); ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Names to add to common surnames (comma separated)'), help_link('COMMON_NAMES_ADD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_COMMON_NAMES_ADD" dir="ltr" value="<?php echo get_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_ADD'); ?>" size="50" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Names to remove from common surnames (comma separated)'), help_link('COMMON_NAMES_REMOVE'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_COMMON_NAMES_REMOVE" dir="ltr" value="<?php echo get_gedcom_setting(WT_GED_ID, 'COMMON_NAMES_REMOVE'); ?>" size="50" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Surname list style'), help_link('SURNAME_LIST_STYLE'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_SURNAME_LIST_STYLE"> - <option value="style1" <?php if ($SURNAME_LIST_STYLE=="style1") echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('list'); ?></option> - <option value="style2" <?php if ($SURNAME_LIST_STYLE=="style2") echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('table'); ?></option> - <option value="style3" <?php if ($SURNAME_LIST_STYLE=="style3") echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('tag cloud'); ?></option> - </select> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Maximum number of surnames on individual list'), help_link('SUBLIST_TRIGGER_I'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_SUBLIST_TRIGGER_I" value="<?php echo get_gedcom_setting(WT_GED_ID, 'SUBLIST_TRIGGER_I'); ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Maximum number of surnames on family list'), help_link('SUBLIST_TRIGGER_F'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_SUBLIST_TRIGGER_F" value="<?php echo get_gedcom_setting(WT_GED_ID, 'SUBLIST_TRIGGER_F'); ?>" size="5" /> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Charts'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Default pedigree chart layout'), help_link('PEDIGREE_LAYOUT'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_PEDIGREE_LAYOUT"> - <option value="yes" <?php if ($PEDIGREE_LAYOUT) echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Landscape'); ?></option> - <option value="no" <?php if (!$PEDIGREE_LAYOUT) echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Portrait'); ?></option> - </select> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Default pedigree generations'), help_link('DEFAULT_PEDIGREE_GENERATIONS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_DEFAULT_PEDIGREE_GENERATIONS" value="<?php echo $DEFAULT_PEDIGREE_GENERATIONS; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Maximum pedigree generations'), help_link('MAX_PEDIGREE_GENERATIONS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_MAX_PEDIGREE_GENERATIONS" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Maximum descendancy generations'), help_link('MAX_DESCENDANCY_GENERATIONS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" name="NEW_MAX_DESCENDANCY_GENERATIONS" value="<?php echo $MAX_DESCENDANCY_GENERATIONS; ?>" size="5" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Place levels to show in person boxes'), help_link('SHOW_PEDIGREE_PLACES'); ?> - </td> - <td class="optionbox width60"> - <input type="text" size="5" name="NEW_SHOW_PEDIGREE_PLACES" value="<?php echo $SHOW_PEDIGREE_PLACES; ?>" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Zoom boxes on charts'), help_link('ZOOM_BOXES'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_ZOOM_BOXES"> - <option value="disabled" <?php if ($ZOOM_BOXES=='disabled') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Disabled'); ?></option> - <option value="mouseover" <?php if ($ZOOM_BOXES=='mouseover') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('On Mouse Over'); ?></option> - <option value="mousedown" <?php if ($ZOOM_BOXES=='mousedown') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('On Mouse Down'); ?></option> - <option value="click" <?php if ($ZOOM_BOXES=='click') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('On Mouse Click'); ?></option> - </select> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('PopUp links on charts'), help_link('LINK_ICONS'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_LINK_ICONS"> - <option value="disabled" <?php if ($LINK_ICONS=='disabled') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('Disabled'); ?></option> - <option value="mouseover" <?php if ($LINK_ICONS=='mouseover') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('On Mouse Over'); ?></option> - <option value="click" <?php if ($LINK_ICONS=='click') echo "selected=\"selected\""; ?>><?php echo WT_I18N::translate('On Mouse Click'); ?></option> - </select> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Individual pages'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Default tab to show on individual page'), help_link('GEDCOM_DEFAULT_TAB'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_default_tab('NEW_GEDCOM_DEFAULT_TAB', get_gedcom_setting(WT_GED_ID, 'GEDCOM_DEFAULT_TAB')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Automatically expand list of events of close relatives'), help_link('EXPAND_RELATIVES_EVENTS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_EXPAND_RELATIVES_EVENTS', get_gedcom_setting(WT_GED_ID, 'EXPAND_RELATIVES_EVENTS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show events of close relatives on individual page'), help_link('SHOW_RELATIVES_EVENTS'); ?> - </td> - <td class="optionbox width60"> - <input type="hidden" name="NEW_SHOW_RELATIVES_EVENTS" value="<?php echo $SHOW_RELATIVES_EVENTS; ?>" /> - <table> - <?php - $rel_events=array( - array('_BIRT_GCHI', '_MARR_GCHI', '_DEAT_GCHI'), - array('_BIRT_CHIL', '_MARR_CHIL', '_DEAT_CHIL'), - array('_BIRT_SIBL', '_MARR_SIBL', '_DEAT_SIBL'), - array(null, null, '_DEAT_SPOU'), - array(null, '_MARR_PARE', '_DEAT_PARE'), - array(null, null, '_DEAT_GPAR'), - ); - foreach ($rel_events as $row) { - echo '<tr>'; - foreach ($row as $col) { - echo '<td>'; - if (is_null($col)) { - echo ' '; - } else { - echo "<input type=\"checkbox\" name=\"SHOW_RELATIVES_EVENTS_checkbox\" value=\"".$col."\""; - if (strstr($SHOW_RELATIVES_EVENTS, $col)) { - echo " checked=\"checked\""; - } - echo " onchange=\"var old=document.configform.NEW_SHOW_RELATIVES_EVENTS.value; if (this.checked) old+=','+this.value; else old=old.replace(/".$col."/g,''); old=old.replace(/[,]+/gi,','); old=old.replace(/^[,]/gi,''); old=old.replace(/[,]$/gi,''); document.configform.NEW_SHOW_RELATIVES_EVENTS.value=old\" /> "; - echo translate_fact($col); - } - echo '</td>'; - } - echo '</td>'; - } - ?> - </table> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Other'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Place levels to show on lists'), help_link('SHOW_LIST_PLACES'); ?> - </td> - <td class="optionbox width60"> - <input type="text" size="5" name="NEW_SHOW_LIST_PLACES" value="<?php echo $SHOW_LIST_PLACES; ?>" /> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Postal code position'), help_link('POSTAL_CODE'); ?> - </td> - <td class="optionbox width60"> - <select name="NEW_POSTAL_CODE"> - <option value="yes" <?php if ($POSTAL_CODE) echo "selected=\"selected\""; ?>><?php echo ucfirst(WT_I18N::translate('after')); ?></option> - <option value="no" <?php if (!$POSTAL_CODE) echo "selected=\"selected\""; ?>><?php echo ucfirst(WT_I18N::translate('before')); ?></option> - </select> - </td> - </tr> - </table> - </div> - <!-- HIDE & SHOW --> - <div id="hide-show"> - <table class="facts_table"> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('On charts'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Empty boxes on pedigree charts'), help_link('SHOW_EMPTY_BOXES'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_EMPTY_BOXES', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_EMPTY_BOXES); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Abbreviate chart labels'), help_link('ABBREVIATE_CHART_LABELS'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_ABBREVIATE_CHART_LABELS', get_gedcom_setting(WT_GED_ID, 'ABBREVIATE_CHART_LABELS')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Birth and death details on charts'), help_link('PEDIGREE_FULL_DETAILS'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_PEDIGREE_FULL_DETAILS', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $PEDIGREE_FULL_DETAILS); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Gender icon on charts'), help_link('PEDIGREE_SHOW_GENDER'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_PEDIGREE_SHOW_GENDER', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $PEDIGREE_SHOW_GENDER); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Age of parents next to child\'s birthdate'), help_link('SHOW_PARENTS_AGE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_PARENTS_AGE', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_PARENTS_AGE); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('LDS ordinance codes in chart boxes'), help_link('SHOW_LDS_AT_GLANCE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_LDS_AT_GLANCE', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_LDS_AT_GLANCE); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Other facts to show in charts'), help_link('CHART_BOX_TAGS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" size="50" id="NEW_CHART_BOX_TAGS" name="NEW_CHART_BOX_TAGS" value="<?php echo $CHART_BOX_TAGS; ?>" dir="ltr" /><?php print_findfact_link("NEW_CHART_BOX_TAGS", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('On individual pages'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Fact icons'), help_link('SHOW_FACT_ICONS'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_FACT_ICONS', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_FACT_ICONS); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Automatically expand notes'), help_link('EXPAND_NOTES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_EXPAND_NOTES', get_gedcom_setting(WT_GED_ID, 'EXPAND_NOTES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Automatically expand sources'), help_link('EXPAND_SOURCES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_EXPAND_SOURCES', get_gedcom_setting(WT_GED_ID, 'EXPAND_SOURCES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Show all notes and source references on notes and sources tabs'), help_link('SHOW_LEVEL2_NOTES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_LEVEL2_NOTES', get_gedcom_setting(WT_GED_ID, 'SHOW_LEVEL2_NOTES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Date differences'), help_link('SHOW_AGE_DIFF'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_AGE_DIFF', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_AGE_DIFF); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Estimated dates for birth and death'), help_link('SHOW_EST_LIST_DATES'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_EST_LIST_DATES', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), get_gedcom_setting(WT_GED_ID, 'SHOW_EST_LIST_DATES')); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('General'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Allow users to see raw GEDCOM records'), help_link('SHOW_GEDCOM_RECORD'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SHOW_GEDCOM_RECORD', get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('GEDCOM errors'), help_link('HIDE_GEDCOM_ERRORS'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_HIDE_GEDCOM_ERRORS', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), !$HIDE_GEDCOM_ERRORS); /* Note: name of object is reverse of description */ ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Hit counters'), help_link('SHOW_COUNTER'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_COUNTER', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_COUNTER); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Spider tagline'), help_link('SHOW_SPIDER_TAGLINE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_SPIDER_TAGLINE', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_SPIDER_TAGLINE); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Execution statistics'), help_link('SHOW_STATS'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_STATS', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_STATS); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('GEDCOM record last change date on lists'), help_link('SHOW_LAST_CHANGE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_SHOW_LAST_CHANGE', array(false=>WT_I18N::translate('hide'),true=>WT_I18N::translate('show')), $SHOW_LAST_CHANGE); ?> - </td> - </tr> - </table> - </div> - <!-- EDIT --> - <div id="edit-options"> - <table class="facts_table"> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Online editing'), help_link('ALLOW_EDIT_GEDCOM'); ?> - </td> - <td class="optionbox width60"><?php echo radio_buttons('NEW_ALLOW_EDIT_GEDCOM', array(false=>WT_I18N::translate('disable'),true=>WT_I18N::translate('enable')), $ALLOW_EDIT_GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Facts for Individual records'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('All facts'), help_link('INDI_FACTS_ADD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_INDI_FACTS_ADD" name="NEW_INDI_FACTS_ADD" value="<?php echo get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_INDI_FACTS_ADD", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Unique facts'), help_link('INDI_FACTS_UNIQUE'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_INDI_FACTS_UNIQUE" name="NEW_INDI_FACTS_UNIQUE" value="<?php echo get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_UNIQUE'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_INDI_FACTS_UNIQUE", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('New entry facts'), help_link('QUICK_REQUIRED_FACTS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_QUICK_REQUIRED_FACTS" name="NEW_QUICK_REQUIRED_FACTS" value="<?php echo $QUICK_REQUIRED_FACTS; ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_QUICK_REQUIRED_FACTS", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Quick facts'), help_link('INDI_FACTS_QUICK'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_INDI_FACTS_QUICK" name="NEW_INDI_FACTS_QUICK" value="<?php echo get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_QUICK'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_INDI_FACTS_QUICK", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Facts for Family records'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('All facts'), help_link('FAM_FACTS_ADD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_FAM_FACTS_ADD" name="NEW_FAM_FACTS_ADD" value="<?php echo get_gedcom_setting(WT_GED_ID, 'FAM_FACTS_ADD'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_FAM_FACTS_ADD", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Unique facts'), help_link('FAM_FACTS_UNIQUE'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_FAM_FACTS_UNIQUE" name="NEW_FAM_FACTS_UNIQUE" value="<?php echo get_gedcom_setting(WT_GED_ID, 'FAM_FACTS_UNIQUE'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_FAM_FACTS_UNIQUE", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('New entry facts'), help_link('QUICK_REQUIRED_FAMFACTS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_QUICK_REQUIRED_FAMFACTS" name="NEW_QUICK_REQUIRED_FAMFACTS" value="<?php echo $QUICK_REQUIRED_FAMFACTS; ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_QUICK_REQUIRED_FAMFACTS", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Quick facts'), help_link('FAM_FACTS_QUICK'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_FAM_FACTS_QUICK" name="NEW_FAM_FACTS_QUICK" value="<?php echo get_gedcom_setting(WT_GED_ID, 'FAM_FACTS_QUICK'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_FAM_FACTS_QUICK", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Facts for Source records'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('All facts'), help_link('SOUR_FACTS_ADD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_SOUR_FACTS_ADD" name="NEW_SOUR_FACTS_ADD" value="<?php echo get_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_ADD'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_SOUR_FACTS_ADD", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Unique facts'), help_link('SOUR_FACTS_UNIQUE'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_SOUR_FACTS_UNIQUE" name="NEW_SOUR_FACTS_UNIQUE" value="<?php echo get_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_UNIQUE'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_SOUR_FACTS_UNIQUE", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Quick facts'), help_link('SOUR_FACTS_QUICK'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_SOUR_FACTS_QUICK" name="NEW_SOUR_FACTS_QUICK" value="<?php echo get_gedcom_setting(WT_GED_ID, 'SOUR_FACTS_QUICK'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_SOUR_FACTS_QUICK", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Facts for Repository records'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('All facts'), help_link('REPO_FACTS_ADD'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_REPO_FACTS_ADD" name="NEW_REPO_FACTS_ADD" value="<?php echo get_gedcom_setting(WT_GED_ID, 'REPO_FACTS_ADD'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_REPO_FACTS_ADD", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Unique facts'), help_link('REPO_FACTS_UNIQUE'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_REPO_FACTS_UNIQUE" name="NEW_REPO_FACTS_UNIQUE" value="<?php echo get_gedcom_setting(WT_GED_ID, 'REPO_FACTS_UNIQUE'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_REPO_FACTS_UNIQUE", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Quick facts'), help_link('REPO_FACTS_QUICK'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_REPO_FACTS_QUICK" name="NEW_REPO_FACTS_QUICK" value="<?php echo get_gedcom_setting(WT_GED_ID, 'REPO_FACTS_QUICK'); ?>" size="60" dir="ltr" /><?php print_findfact_link("NEW_REPO_FACTS_QUICK", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Advanced fact settings'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Advanced name facts'), help_link('ADVANCED_NAME_FACTS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_ADVANCED_NAME_FACTS" name="NEW_ADVANCED_NAME_FACTS" value="<?php echo $ADVANCED_NAME_FACTS; ?>" size="40" dir="ltr" /><?php print_findfact_link("NEW_ADVANCED_NAME_FACTS", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Advanced place name facts'), help_link('ADVANCED_PLAC_FACTS'); ?> - </td> - <td class="optionbox width60"> - <input type="text" id="NEW_ADVANCED_PLAC_FACTS" name="NEW_ADVANCED_PLAC_FACTS" value="<?php echo $ADVANCED_PLAC_FACTS; ?>" size="40" dir="ltr" /><?php print_findfact_link("NEW_ADVANCED_PLAC_FACTS", $GEDCOM); ?> - </td> - </tr> - <tr> - <td class="subbar" colspan="2"> - <?php echo WT_I18N::translate('Other settings'); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Split places in edit mode'), help_link('SPLIT_PLACES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_SPLIT_PLACES', get_gedcom_setting(WT_GED_ID, 'SPLIT_PLACES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Surname tradition'), help_link('SURNAME_TRADITION'); ?> - </td> - <td class="optionbox width60"> - <?php echo select_edit_control('NEW_SURNAME_TRADITION', array('paternal'=>WT_I18N::translate_c('Surname tradition', 'paternal'), 'spanish'=>WT_I18N::translate_c('Surname tradition', 'Spanish'), 'portuguese'=>WT_I18N::translate_c('Surname tradition', 'Portuguese'), 'icelandic'=>WT_I18N::translate_c('Surname tradition', 'Icelandic'), 'polish'=>WT_I18N::translate_c('Surname tradition', 'Polish'), 'none'=>WT_I18N::translate_c('Surname tradition', 'none')), null, get_gedcom_setting(WT_GED_ID, 'SURNAME_TRADITION')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use full source citations'), help_link('FULL_SOURCES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_FULL_SOURCES', get_gedcom_setting(WT_GED_ID, 'FULL_SOURCES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Source type'), help_link('PREFER_LEVEL2_SOURCES'); ?> - </td> - <td class="optionbox width60"> - <?php echo select_edit_control('NEW_PREFER_LEVEL2_SOURCES', array(0=>WT_I18N::translate('none'), 1=>WT_I18N::translate('facts'), 2=>WT_I18N::translate('records')), null, get_gedcom_setting(WT_GED_ID, 'PREFER_LEVEL2_SOURCES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Autocomplete'), help_link('ENABLE_AUTOCOMPLETE'); ?> - </td> - <td class="optionbox width60"> - <?php echo radio_buttons('NEW_ENABLE_AUTOCOMPLETE', array(false=>WT_I18N::translate('disable'),true=>WT_I18N::translate('enable')), get_gedcom_setting(WT_GED_ID, 'ENABLE_AUTOCOMPLETE')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Use GeoNames database for autocomplete on places'), help_link('USE_GEONAMES'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_USE_GEONAMES', get_gedcom_setting(WT_GED_ID, 'USE_GEONAMES')); ?> - </td> - </tr> - <tr> - <td class="descriptionbox nowrap"> - <?php echo WT_I18N::translate('Do not update the CHAN (Last Change) record'), help_link('no_update_CHAN'); ?> - </td> - <td class="optionbox width60"> - <?php echo edit_field_yes_no('NEW_NO_UPDATE_CHAN', get_gedcom_setting(WT_GED_ID, 'NO_UPDATE_CHAN')); ?> - </td> - </tr> - </table> - </div> - </td> - </tr> - <tr> - <td> - <table class="facts_table" border="0"> - <tr> - <td style="padding: 5px" class="topbottombar"> - <input type="submit" value="<?php echo WT_I18N::translate('Save configuration'); ?>" /> - - <input type="reset" value="<?php echo WT_I18N::translate('Reset'); ?>" /> - </td> - </tr> - </table> - </td> - </tr> -</table> -</form> -<br /> -<?php -print_footer(); |
