本文整理汇总了PHP中get_gedcom_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP get_gedcom_setting函数的具体用法?PHP get_gedcom_setting怎么用?PHP get_gedcom_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_gedcom_setting函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$PEDIGREE_FULL_DETAILS = get_gedcom_setting(WT_GED_ID, 'PEDIGREE_FULL_DETAILS');
$MAX_DESCENDANCY_GENERATIONS = get_gedcom_setting(WT_GED_ID, 'MAX_DESCENDANCY_GENERATIONS');
// Extract the request parameters
$this->show_full = WT_Filter::getInteger('show_full', 0, 1, $PEDIGREE_FULL_DETAILS);
$this->show_spouse = WT_Filter::getInteger('show_spouse', 0, 1);
$this->descent = WT_Filter::getInteger('descent', 0, 9, 5);
$this->generations = WT_Filter::getInteger('generations', 2, $MAX_DESCENDANCY_GENERATIONS, 2);
$this->box_width = WT_Filter::getInteger('box_width', 50, 300, 100);
// Box sizes are set globally in the theme. Modify them here.
global $bwidth, $bheight, $cbwidth, $cbheight, $Dbwidth, $bhalfheight, $Dbheight;
$Dbwidth = $this->box_width * $bwidth / 100;
//$Dbheight=$this->box_width * $bheight / 100;
$bwidth = $Dbwidth;
$bheight = $Dbheight;
// -- adjust size of the compact box
if (!$this->show_full) {
$bwidth = $this->box_width * $cbwidth / 100;
$bheight = $cbheight;
}
$bhalfheight = $bheight / 2;
if ($this->root && $this->root->canShowName()) {
$this->setPageTitle(WT_I18N::translate('Family book of %s', $this->root->getFullName()));
} else {
$this->setPageTitle(WT_I18N::translate('Family book'));
}
//Checks how many generations of descendency is for the person for formatting purposes
$this->dgenerations = $this->max_descendency_generations($this->pid, 0);
if ($this->dgenerations < 1) {
$this->dgenerations = 1;
}
}
示例2: getEditMenu
/**
* get edit menu
*/
function getEditMenu()
{
$SHOW_GEDCOM_RECORD = get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
if (!$this->record || $this->record->isOld()) {
return null;
}
// edit menu
$menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-obje');
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Edit media object'), '#', 'menu-obje-edit');
$submenu->addOnclick("window.open('addmedia.php?action=editmedia&pid={$this->record->getXref()}', '_blank', edit_window_specs)");
$menu->addSubmenu($submenu);
// main link displayed on page
if (array_key_exists('GEDFact_assistant', WT_Module::getActiveModules())) {
$submenu = new WT_Menu(WT_I18N::translate('Manage links'), '#', 'menu-obje-link');
$submenu->addOnclick("return ilinkitem('" . $this->record->getXref() . "','manage');");
} else {
$submenu = new WT_Menu(WT_I18N::translate('Set link'), '#', 'menu-obje-link');
$ssubmenu = new WT_Menu(WT_I18N::translate('To individual'), '#', 'menu-obje-link-indi');
$ssubmenu->addOnclick("return ilinkitem('" . $this->record->getXref() . "','person');");
$submenu->addSubMenu($ssubmenu);
$ssubmenu = new WT_Menu(WT_I18N::translate('To family'), '#', 'menu-obje-link-fam');
$ssubmenu->addOnclick("return ilinkitem('" . $this->record->getXref() . "','family');");
$submenu->addSubMenu($ssubmenu);
$ssubmenu = new WT_Menu(WT_I18N::translate('To source'), '#', 'menu-obje-link-sour');
$ssubmenu->addOnclick("return ilinkitem('" . $this->record->getXref() . "','source');");
$submenu->addSubMenu($ssubmenu);
}
$menu->addSubmenu($submenu);
}
// delete
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-obje-del');
$submenu->addOnclick("return delete_media('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
// edit raw
if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
$submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-obje-editraw');
$submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
// add to favorites
if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
$submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-obje-addfav');
$submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
$menu->addSubmenu($submenu);
}
//-- get the link for the first submenu and set it as the link for the main menu
if (isset($menu->submenus[0])) {
$link = $menu->submenus[0]->onclick;
$menu->addOnclick($link);
}
return $menu;
}
示例3: __construct
public function __construct()
{
parent::__construct();
$default_generations = get_gedcom_setting(WT_GED_ID, 'DEFAULT_PEDIGREE_GENERATIONS');
// Extract the request parameters
$this->fan_style = WT_Filter::getInteger('fan_style', 2, 4, 3);
$this->fan_width = WT_Filter::getInteger('fan_width', 50, 300, 100);
$this->generations = WT_Filter::getInteger('generations', 2, 9, $default_generations);
if ($this->root && $this->root->canShowName()) {
$this->setPageTitle(WT_I18N::translate('Fan chart of %s', $this->root->getFullName()));
} else {
$this->setPageTitle(WT_I18N::translate('Fan chart'));
}
}
示例4: getOtherFields
function getOtherFields()
{
$ofields = array('ADDR', 'ADDR:CITY', 'ADDR:STAE', 'ADDR:CTRY', 'ADDR:POST', 'ADOP:DATE', 'ADOP:PLAC', 'AFN', 'BAPL:DATE', 'BAPL:PLAC', 'BAPM:DATE', 'BAPM:PLAC', 'BARM:DATE', 'BARM:PLAC', 'BASM:DATE', 'BASM:PLAC', 'BLES:DATE', 'BLES:PLAC', 'BURI:DATE', 'BURI:PLAC', 'CAST', 'CENS:DATE', 'CENS:PLAC', 'CHAN:DATE', 'CHAN:_WT_USER', 'CHR:DATE', 'CHR:PLAC', 'CREM:DATE', 'CREM:PLAC', 'DSCR', 'EMAIL', 'EMIG:DATE', 'EMIG:PLAC', 'ENDL:DATE', 'ENDL:PLAC', 'EVEN', 'EVEN:DATE', 'EVEN:PLAC', 'FAMS:CENS:DATE', 'FAMS:CENS:PLAC', 'FAMS:DIV:DATE', 'FAMS:NOTE', 'FAMS:SLGS:DATE', 'FAMS:SLGS:PLAC', 'FAX', 'FCOM:DATE', 'FCOM:PLAC', 'IMMI:DATE', 'IMMI:PLAC', 'NAME:NICK', 'NAME:_MARNM', 'NAME:_HEB', 'NAME:ROMN', 'NATI', 'NATU:DATE', 'NATU:PLAC', 'NOTE', 'OCCU', 'ORDN:DATE', 'ORDN:PLAC', 'RELI', 'RESI', 'RESI:DATE', 'RESI:PLAC', 'SLGC:DATE', 'SLGC:PLAC', 'TITL', '_BRTM:DATE', '_BRTM:PLAC', '_MILI');
// Allow (some of) the user-specified fields to be selected
preg_match_all('/(' . WT_REGEX_TAG . ')/', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD'), $facts);
foreach ($facts[1] as $fact) {
if ($fact != 'BIRT' && $fact != 'DEAT' && $fact != 'ASSO' && !in_array($fact, $ofields) && !in_array("{$fact}:DATE", $ofields) && !in_array("{$fact}:PLAC", $ofields)) {
$ofields[] = $fact;
}
}
$fields = array();
foreach ($ofields as $field) {
$fields[$field] = WT_Gedcom_Tag::GetLabel($field);
}
uksort($fields, array('WT_Controller_AdvancedSearch', 'tagSort'));
return $fields;
}
示例5: getEditMenu
/**
* get edit menu
*/
function getEditMenu()
{
$SHOW_GEDCOM_RECORD = get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
if (!$this->record || $this->record->isOld()) {
return null;
}
// edit menu
$menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-repo');
if (WT_USER_CAN_EDIT) {
$fact = $this->record->getFirstFact('NAME');
$submenu = new WT_Menu(WT_I18N::translate('Edit repository'), '#', 'menu-repo-edit');
if ($fact) {
// Edit existing name
$submenu->addOnclick('return edit_record(\'' . $this->record->getXref() . '\', \'' . $fact->getFactId() . '\');');
} else {
// Add new name
$submenu->addOnclick('return add_fact(\'' . $this->record->getXref() . '\', \'NAME\');');
}
$menu->addSubmenu($submenu);
}
// delete
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-repo-del');
$submenu->addOnclick("return delete_repository('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
// edit raw
if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
$submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-repo-editraw');
$submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
// add to favorites
if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
$submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-repo-addfav');
$submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
$menu->addSubmenu($submenu);
}
//-- get the link for the first submenu and set it as the link for the main menu
if (isset($menu->submenus[0])) {
$link = $menu->submenus[0]->onclick;
$menu->addOnclick($link);
}
return $menu;
}
示例6: print_gedcom_block
function print_gedcom_block($block = true, $config = "", $side, $index)
{
global $hitCount, $pgv_lang, $SHOW_COUNTER;
$id = "gedcom_welcome";
$title = PrintReady(get_gedcom_setting(PGV_GED_ID, 'title'));
$content = "<div class=\"center\">";
$content .= "<br />" . format_timestamp(client_time()) . "<br />\n";
if ($SHOW_COUNTER) {
$content .= $pgv_lang["hit_count"] . " " . $hitCount . "<br />\n";
}
$content .= "\n<br />";
if (PGV_USER_GEDCOM_ADMIN) {
$content .= "<a href=\"javascript:;\" onclick=\"window.open('" . encode_url("index_edit.php?name=" . PGV_GEDCOM . "&ctype=gedcom") . "', '_blank', 'top=50,left=10,width=600,height=500,scrollbars=1,resizable=1'); return false;\">" . $pgv_lang["customize_gedcom_page"] . "</a><br />\n";
}
$content .= "</div>";
global $THEME_DIR;
require $THEME_DIR . 'templates/block_main_temp.php';
}
示例7: updateRecord
function updateRecord($xref, $gedrec)
{
$SURNAME_TRADITION = get_gedcom_setting(WT_GED_ID, 'SURNAME_TRADITION');
preg_match('/^1 NAME (.*)/m', $gedrec, $match);
$wife_name = $match[1];
$married_names = array();
foreach (self::_surnames_to_add($xref, $gedrec) as $surname) {
switch ($this->surname) {
case 'add':
$married_names[] = "\n2 _MARNM " . str_replace('/', '', $wife_name) . ' /' . $surname . '/';
break;
case 'replace':
if ($SURNAME_TRADITION == 'polish') {
$surname = preg_replace(array('/ski$/', '/cki$/', '/dzki$/'), array('ska', 'cka', 'dzka'), $surname);
}
$married_names[] = "\n2 _MARNM " . preg_replace('!/.*/!', '/' . $surname . '/', $wife_name);
break;
}
}
return preg_replace('/(^1 NAME .*([\\r\\n]+[2-9].*)*)/m', '\\1' . implode('', $married_names), $gedrec, 1);
}
示例8: getEditMenu
/**
* get edit menu
*/
function getEditMenu()
{
$SHOW_GEDCOM_RECORD = get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
if (!$this->record || $this->record->isOld()) {
return null;
}
// edit menu
$menu = new WT_Menu(WT_I18N::translate('Edit'), '#', 'menu-note');
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Edit note'), '#', 'menu-note-edit');
$submenu->addOnclick('return edit_note(\'' . $this->record->getXref() . '\');');
$menu->addSubmenu($submenu);
}
// edit raw
/* Does not currently work - NOTE records do not contain nice level 1 facts
if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
$submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-note-editraw');
$submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
*/
// delete
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-note-del');
$submenu->addOnclick("return delete_note('" . WT_I18N::translate('Are you sure you want to delete “%s”?', strip_tags($this->record->getFullName())) . "', '" . $this->record->getXref() . "');");
$menu->addSubmenu($submenu);
}
// add to favorites
if (array_key_exists('user_favorites', WT_Module::getActiveModules())) {
$submenu = new WT_Menu(WT_I18N::translate('Add to favorites'), '#', 'menu-note-addfav');
$submenu->addOnclick("jQuery.post('module.php?mod=user_favorites&mod_action=menu-add-favorite',{xref:'" . $this->record->getXref() . "'},function(){location.reload();})");
$menu->addSubmenu($submenu);
}
//-- get the link for the first submenu and set it as the link for the main menu
if (isset($menu->submenus[0])) {
$link = $menu->submenus[0]->onclick;
$menu->addOnclick($link);
}
return $menu;
}
示例9: format_surname_table
break;
case 'style2':
default:
echo format_surname_table($surns, WT_SCRIPT_NAME);
break;
}
} else {
// Show the list
$count = 0;
foreach ($surns as $surnames) {
foreach ($surnames as $list) {
$count += count($list);
}
}
// Don't sublists short lists.
if ($count < get_gedcom_setting(WT_GED_ID, 'SUBLIST_TRIGGER_I')) {
$falpha = '';
$show_all_firstnames = 'no';
} else {
$givn_initials = WT_Query_Name::givenAlpha($surname, $alpha, $show_marnm, true, WT_GED_ID);
// Break long lists by initial letter of given name
if ($surname || $show_all == 'yes') {
// Don't show the list until we have some filter criteria
$show = $falpha || $show_all_firstnames == 'yes' ? 'indi' : 'none';
$list = array();
foreach ($givn_initials as $givn_initial => $count) {
switch ($givn_initial) {
case '@':
$html = $UNKNOWN_PN;
break;
default:
示例10: array
$path = $INDEX_DIRECTORY;
// snag our path
$entryList = array();
while (false !== ($entry = $dir->read())) {
$entryList[] = $entry;
}
sort($entryList);
foreach ($entryList as $entry) {
//echo $entry, "\n";
if ($entry[0] != '.') {
if ($ged_id = get_id_from_gedcom($entry)) {
print "<li class=\"facts_value\" name=\"{$entry}\" style=\"margin-bottom:2px;\" id=\"lock_{$entry}\" >";
print "<img src=\"./images/RESN_confidential.gif\" alt=\"\" /> ";
print "<span class=\"name2\">" . $entry . "</span>";
print " {$pgv_lang["associated_files"]}<i> " . str_replace($path, "", get_gedcom_setting($ged_id, 'privacy'));
print " " . str_replace($path, "", get_gedcom_setting($ged_id, 'config')) . "</i>";
} else {
if (in_array($entry, $locked_by_context)) {
print "<li class=\"facts_value\" name=\"{$entry}\" style=\"margin-bottom:2px;\" id=\"lock_{$entry}\" >";
print "<img src=\"./images/RESN_confidential.gif\" alt=\"\" /> ";
print "<span class=\"name2\">" . $entry . "</span>";
} else {
if (in_array($entry, $locked_with_warning)) {
print "<li class=\"facts_value\" name=\"{$entry}\" warn=\"true\" style=\"cursor:move;margin-bottom:2px;\" id=\"li_{$entry}\" >";
print "<input type=\"checkbox\" name=\"to_delete[]\" warn=\"true\" value=\"" . $entry . "\" onclick=\"warnuser(this);\" />\n";
print "<img src=\"./images/RESN_locked.gif\" alt=\"\" /> ";
print $entry;
$element[] = "li_" . $entry;
} else {
print "<li class=\"facts_value\" name=\"{$entry}\" style=\"cursor:move;margin-bottom:2px;\" id=\"li_{$entry}\" >";
print "<input type=\"checkbox\" name=\"to_delete[]\" value=\"" . $entry . "\" />\n";
示例11: format_indi_table
function format_indi_table($datalist, $option = '')
{
global $GEDCOM, $SHOW_LAST_CHANGE, $SEARCH_SPIDER, $MAX_ALIVE_AGE, $controller;
$table_id = 'table-indi-' . Uuid::uuid4();
// lists requires a unique ID in case there are multiple lists per page
$SHOW_EST_LIST_DATES = get_gedcom_setting(WT_GED_ID, 'SHOW_EST_LIST_DATES');
$controller->addExternalJavascript(WT_JQUERY_DATATABLES_URL)->addInlineJavascript('
jQuery.fn.dataTableExt.oSort["unicode-asc" ]=function(a,b) {return a.replace(/<[^<]*>/, "").localeCompare(b.replace(/<[^<]*>/, ""))};
jQuery.fn.dataTableExt.oSort["unicode-desc" ]=function(a,b) {return b.replace(/<[^<]*>/, "").localeCompare(a.replace(/<[^<]*>/, ""))};
jQuery.fn.dataTableExt.oSort["num-html-asc" ]=function(a,b) {a=parseFloat(a.replace(/<[^<]*>/, "")); b=parseFloat(b.replace(/<[^<]*>/, "")); return (a<b) ? -1 : (a>b ? 1 : 0);};
jQuery.fn.dataTableExt.oSort["num-html-desc"]=function(a,b) {a=parseFloat(a.replace(/<[^<]*>/, "")); b=parseFloat(b.replace(/<[^<]*>/, "")); return (a>b) ? -1 : (a<b ? 1 : 0);};
jQuery("#' . $table_id . '").dataTable( {
dom: \'<"H"<"filtersH_' . $table_id . '">T<"dt-clear">pf<"dt-clear">irl>t<"F"pl<"dt-clear"><"filtersF_' . $table_id . '">>\',
' . WT_I18N::datatablesI18N() . ',
jQueryUI: true,
autoWidth: false,
processing: true,
retrieve: true,
columns: [
/* 0 givn */ { dataSort: 2 },
/* 1 surn */ { dataSort: 3 },
/* 2 GIVN,SURN */ { type: "unicode", visible: false },
/* 3 SURN,GIVN */ { type: "unicode", visible: false },
/* 4 sosa */ { dataSort: 5, class: "center", visible: ' . ($option == 'sosa' ? 'true' : 'false') . ' },
/* 5 SOSA */ { type: "num", visible: false },
/* 6 birt date */ { dataSort: 7 },
/* 7 BIRT:DATE */ { visible: false },
/* 8 anniv */ { dataSort: 7, class: "center" },
/* 9 birt plac */ { type: "unicode" },
/* 10 children */ { dataSort: 11, class: "center" },
/* 11 children */ { type: "num", visible: false },
/* 12 deat date */ { dataSort: 13 },
/* 13 DEAT:DATE */ { visible: false },
/* 14 anniv */ { dataSort: 13, class: "center" },
/* 15 age */ { dataSort: 16, class: "center" },
/* 16 AGE */ { type: "num", visible: false },
/* 17 deat plac */ { type: "unicode" },
/* 18 CHAN */ { dataSort: 19, visible: ' . ($SHOW_LAST_CHANGE ? 'true' : 'false') . ' },
/* 19 CHAN_sort */ { visible: false },
/* 20 SEX */ { visible: false },
/* 21 BIRT */ { visible: false },
/* 22 DEAT */ { visible: false },
/* 23 TREE */ { visible: false }
],
sorting: [[' . ($option == 'sosa' ? '4, "asc"' : '1, "asc"') . ']],
displayLength: 20,
pagingType: "full_numbers"
});
jQuery("#' . $table_id . '")
/* Hide/show parents */
.on("click", ".btn-toggle-parents", function() {
jQuery(this).toggleClass("ui-state-active");
jQuery(".parents", jQuery(this).closest("table").DataTable().rows().nodes()).slideToggle();
})
/* Hide/show statistics */
.on("click", ".btn-toggle-statistics", function() {
jQuery(this).toggleClass("ui-state-active");
jQuery("#indi_list_table-charts_' . $table_id . '").slideToggle();
})
/* Filter buttons in table header */
.on("click", "button[data-filter-column]", function() {
var btn = jQuery(this);
// De-activate the other buttons in this button group
btn.siblings().removeClass("ui-state-active");
// Apply (or clear) this filter
var col = jQuery("#' . $table_id . '").DataTable().column(btn.data("filter-column"));
if (btn.hasClass("ui-state-active")) {
btn.removeClass("ui-state-active");
col.search("").draw();
} else {
btn.addClass("ui-state-active");
col.search(btn.data("filter-value")).draw();
}
});
jQuery(".indi-list").css("visibility", "visible");
jQuery(".loading-image").css("display", "none");
');
$stats = new WT_Stats($GEDCOM);
// Bad data can cause "longest life" to be huge, blowing memory limits
$max_age = min($MAX_ALIVE_AGE, $stats->LongestLifeAge()) + 1;
// Inititialise chart data
for ($age = 0; $age <= $max_age; $age++) {
$deat_by_age[$age] = '';
}
for ($year = 1550; $year < 2030; $year += 10) {
$birt_by_decade[$year] = '';
$deat_by_decade[$year] = '';
}
$html = '
<div class="loading-image"> </div>
<div class="indi-list">
<table id="' . $table_id . '">
<thead>
<tr>
<th colspan="24">
<div class="btn-toolbar">
<div class="btn-group">
<button
//.........这里部分代码省略.........
示例12: load_gedcom_settings
function load_gedcom_settings($ged_id = WT_GED_ID)
{
// Load the configuration settings into global scope
// TODO: some of these are used infrequently - just load them when we need them
global $ADVANCED_NAME_FACTS;
$ADVANCED_NAME_FACTS = get_gedcom_setting($ged_id, 'ADVANCED_NAME_FACTS');
global $ADVANCED_PLAC_FACTS;
$ADVANCED_PLAC_FACTS = get_gedcom_setting($ged_id, 'ADVANCED_PLAC_FACTS');
global $CALENDAR_FORMAT;
$CALENDAR_FORMAT = get_gedcom_setting($ged_id, 'CALENDAR_FORMAT');
global $CHART_BOX_TAGS;
$CHART_BOX_TAGS = get_gedcom_setting($ged_id, 'CHART_BOX_TAGS');
global $CONTACT_USER_ID;
$CONTACT_USER_ID = get_gedcom_setting($ged_id, 'CONTACT_USER_ID');
global $DEFAULT_PEDIGREE_GENERATIONS;
$DEFAULT_PEDIGREE_GENERATIONS = get_gedcom_setting($ged_id, 'DEFAULT_PEDIGREE_GENERATIONS');
global $EXPAND_NOTES;
$EXPAND_NOTES = get_gedcom_setting($ged_id, 'EXPAND_NOTES');
global $EXPAND_RELATIVES_EVENTS;
$EXPAND_RELATIVES_EVENTS = get_gedcom_setting($ged_id, 'EXPAND_RELATIVES_EVENTS');
global $EXPAND_SOURCES;
$EXPAND_SOURCES = get_gedcom_setting($ged_id, 'EXPAND_SOURCES');
global $FAM_ID_PREFIX;
$FAM_ID_PREFIX = get_gedcom_setting($ged_id, 'FAM_ID_PREFIX');
global $FULL_SOURCES;
$FULL_SOURCES = get_gedcom_setting($ged_id, 'FULL_SOURCES');
global $GEDCOM_ID_PREFIX;
$GEDCOM_ID_PREFIX = get_gedcom_setting($ged_id, 'GEDCOM_ID_PREFIX');
global $GEDCOM_MEDIA_PATH;
$GEDCOM_MEDIA_PATH = get_gedcom_setting($ged_id, 'GEDCOM_MEDIA_PATH');
global $GENERATE_UIDS;
$GENERATE_UIDS = get_gedcom_setting($ged_id, 'GENERATE_UIDS');
global $HIDE_GEDCOM_ERRORS;
$HIDE_GEDCOM_ERRORS = get_gedcom_setting($ged_id, 'HIDE_GEDCOM_ERRORS');
global $HIDE_LIVE_PEOPLE;
$HIDE_LIVE_PEOPLE = get_gedcom_setting($ged_id, 'HIDE_LIVE_PEOPLE');
global $KEEP_ALIVE_YEARS_BIRTH;
$KEEP_ALIVE_YEARS_BIRTH = get_gedcom_setting($ged_id, 'KEEP_ALIVE_YEARS_BIRTH');
global $KEEP_ALIVE_YEARS_DEATH;
$KEEP_ALIVE_YEARS_DEATH = get_gedcom_setting($ged_id, 'KEEP_ALIVE_YEARS_DEATH');
global $LANGUAGE;
$LANGUAGE = get_gedcom_setting($ged_id, 'LANGUAGE');
global $MAX_ALIVE_AGE;
$MAX_ALIVE_AGE = get_gedcom_setting($ged_id, 'MAX_ALIVE_AGE');
global $MAX_DESCENDANCY_GENERATIONS;
$MAX_DESCENDANCY_GENERATIONS = get_gedcom_setting($ged_id, 'MAX_DESCENDANCY_GENERATIONS');
global $MAX_PEDIGREE_GENERATIONS;
$MAX_PEDIGREE_GENERATIONS = get_gedcom_setting($ged_id, 'MAX_PEDIGREE_GENERATIONS');
global $MEDIA_DIRECTORY;
$MEDIA_DIRECTORY = get_gedcom_setting($ged_id, 'MEDIA_DIRECTORY');
global $MEDIA_ID_PREFIX;
$MEDIA_ID_PREFIX = get_gedcom_setting($ged_id, 'MEDIA_ID_PREFIX');
global $NOTE_ID_PREFIX;
$NOTE_ID_PREFIX = get_gedcom_setting($ged_id, 'NOTE_ID_PREFIX');
global $NO_UPDATE_CHAN;
$NO_UPDATE_CHAN = get_gedcom_setting($ged_id, 'NO_UPDATE_CHAN');
global $PEDIGREE_FULL_DETAILS;
$PEDIGREE_FULL_DETAILS = get_gedcom_setting($ged_id, 'PEDIGREE_FULL_DETAILS');
global $PEDIGREE_LAYOUT;
$PEDIGREE_LAYOUT = get_gedcom_setting($ged_id, 'PEDIGREE_LAYOUT');
global $PEDIGREE_SHOW_GENDER;
$PEDIGREE_SHOW_GENDER = get_gedcom_setting($ged_id, 'PEDIGREE_SHOW_GENDER');
global $PREFER_LEVEL2_SOURCES;
$PREFER_LEVEL2_SOURCES = get_gedcom_setting($ged_id, 'PREFER_LEVEL2_SOURCES');
global $QUICK_REQUIRED_FACTS;
$QUICK_REQUIRED_FACTS = get_gedcom_setting($ged_id, 'QUICK_REQUIRED_FACTS');
global $QUICK_REQUIRED_FAMFACTS;
$QUICK_REQUIRED_FAMFACTS = get_gedcom_setting($ged_id, 'QUICK_REQUIRED_FAMFACTS');
global $REPO_ID_PREFIX;
$REPO_ID_PREFIX = get_gedcom_setting($ged_id, 'REPO_ID_PREFIX');
global $REQUIRE_AUTHENTICATION;
$REQUIRE_AUTHENTICATION = get_gedcom_setting($ged_id, 'REQUIRE_AUTHENTICATION');
global $SAVE_WATERMARK_IMAGE;
$SAVE_WATERMARK_IMAGE = get_gedcom_setting($ged_id, 'SAVE_WATERMARK_IMAGE');
global $SAVE_WATERMARK_THUMB;
$SAVE_WATERMARK_THUMB = get_gedcom_setting($ged_id, 'SAVE_WATERMARK_THUMB');
global $SHOW_AGE_DIFF;
$SHOW_AGE_DIFF = get_gedcom_setting($ged_id, 'SHOW_AGE_DIFF');
global $SHOW_COUNTER;
$SHOW_COUNTER = get_gedcom_setting($ged_id, 'SHOW_COUNTER');
global $SHOW_DEAD_PEOPLE;
$SHOW_DEAD_PEOPLE = get_gedcom_setting($ged_id, 'SHOW_DEAD_PEOPLE');
global $SHOW_FACT_ICONS;
$SHOW_FACT_ICONS = get_gedcom_setting($ged_id, 'SHOW_FACT_ICONS');
global $SHOW_GEDCOM_RECORD;
$SHOW_GEDCOM_RECORD = get_gedcom_setting($ged_id, 'SHOW_GEDCOM_RECORD');
global $SHOW_HIGHLIGHT_IMAGES;
$SHOW_HIGHLIGHT_IMAGES = get_gedcom_setting($ged_id, 'SHOW_HIGHLIGHT_IMAGES');
global $SHOW_LAST_CHANGE;
$SHOW_LAST_CHANGE = get_gedcom_setting($ged_id, 'SHOW_LAST_CHANGE');
global $SHOW_LDS_AT_GLANCE;
$SHOW_LDS_AT_GLANCE = get_gedcom_setting($ged_id, 'SHOW_LDS_AT_GLANCE');
global $SHOW_LEVEL2_NOTES;
$SHOW_LEVEL2_NOTES = get_gedcom_setting($ged_id, 'SHOW_LEVEL2_NOTES');
global $SHOW_LIVING_NAMES;
$SHOW_LIVING_NAMES = get_gedcom_setting($ged_id, 'SHOW_LIVING_NAMES');
global $SHOW_MEDIA_DOWNLOAD;
$SHOW_MEDIA_DOWNLOAD = get_gedcom_setting($ged_id, 'SHOW_MEDIA_DOWNLOAD');
global $SHOW_NO_WATERMARK;
$SHOW_NO_WATERMARK = get_gedcom_setting($ged_id, 'SHOW_NO_WATERMARK');
//.........这里部分代码省略.........
示例13: helpPopup03
print "function helpPopup03(which) {";
print "location.href = 'editlang_edit_settings.php?' + which + '&new_shortcut=' + document.new_lang_form.new_shortcut.value;";
print "return false;";
print "}";
print PGV_JS_END;
// Create array with configured languages in gedcoms and users
$configuredlanguages = array();
// Read GEDCOMS configuration and collect language data
foreach (get_all_gedcoms() as $ged_id => $ged_name) {
require get_gedcom_setting($ged_id, 'config');
if (!isset($configuredlanguages["gedcom"][$LANGUAGE][$ged_name])) {
$configuredlanguages["gedcom"][$LANGUAGE][$ged_name] = true;
}
}
// Restore the current settings
require get_gedcom_setting(PGV_GED_ID, 'config');
// Read user configuration and collect language data
foreach (get_all_users() as $user_id => $user_name) {
if (!isset($configuredlanguages["users"][get_user_setting($user_id, 'language')][$user_id])) {
$configuredlanguages["users"][get_user_setting($user_id, 'language')][$user_id] = true;
}
}
// Sort the Language table into localized language name order
foreach ($pgv_language as $key => $value) {
$d_LangName = "lang_name_" . $key;
$Sorted_Langs[$key] = $pgv_lang[$d_LangName];
}
asort($Sorted_Langs);
// Split defined languages into active and inactive
$split_langs_active = array();
$split_langs_inactive = array();
示例14: header
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
if (!defined('WT_WEBTREES')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
echo '</div>';
// <div id="content">
if ($view != 'simple') {
echo '<div id="footer" class="', $TEXT_DIRECTION, '">';
echo '<br>';
echo contact_links();
echo '<br>';
echo '<p class="logo">';
echo '<a href="', WT_WEBTREES_URL, '" target="_blank" class="icon-webtrees" title="', WT_WEBTREES, ' ', WT_VERSION, '"></a>';
echo '</p>';
if (WT_DEBUG || get_gedcom_setting(WT_GED_ID, 'SHOW_STATS')) {
echo execution_stats();
}
if (exists_pending_change()) {
echo '<a href="#" onclick="window.open(\'edit_changes.php\', \'_blank\', chan_window_specs); return false;">';
echo '<p class="error center">', WT_I18N::translate('There are pending changes for you to moderate.'), '</p>';
echo '</a>';
}
echo '</div>';
// <div id="footer">
}
示例15: getThemeMenu
public static function getThemeMenu()
{
global $SEARCH_SPIDER;
if (WT_GED_ID && !$SEARCH_SPIDER && WT_Site::preference('ALLOW_USER_THEMES') && get_gedcom_setting(WT_GED_ID, 'ALLOW_THEME_DROPDOWN')) {
$menu = new WT_Menu(WT_I18N::translate('Theme'), '#', 'menu-theme');
foreach (get_theme_names() as $themename => $themedir) {
$submenu = new WT_Menu($themename, get_query_url(array('theme' => $themedir), '&'), 'menu-theme-' . $themedir);
if (WT_THEME_DIR == 'themes/' . $themedir . '/') {
$submenu->addClass('', '', 'theme-active');
}
$menu->addSubMenu($submenu);
}
return $menu;
} else {
return null;
}
}