*/ $pass = false; /** * Total famlist array * * The tfamlist array will contain families that are extracted from the database. * @global array $tfamlist */ $tfamlist = array(); /** * Family alpha array * * The famalpha array will contain all first letters that are extracted from families last names * @global array $famalpha */ $famalpha = get_indilist_salpha($SHOW_MARRIED_NAMES, false, $gGedcom->mGEDCOMId); //uasort($famalpha, "stringsort"); asort($famalpha); if (empty($surname_sublist)) { $surname_sublist = "yes"; } /** * In the first half of 2007, Google is only indexing the first 1,000 urls * on a page. We now produce 4 urls per line, instead of 12. So, we divide * 1000 by 5 for some breathing room, and adjust to do surname pages if the * alphalist page would exceed that number minus the header urls and alphas. * 200 - letters - unknown and all - menu urls * If you have over 200 families in the same surname, some will still not * get indexed through here, and will have to be caught by the close relatives * on the individual.php, family.php, or the indilist.php page. */
} setcookie('surname_sublist', $surname_sublist); // We can either include or exclude married names. // We default to exclude. $show_marnm = safe_GET('show_marnm', array('no', 'yes')); if (!$show_marnm) { $show_marnm = safe_COOKIE('show_marnm_famlist', array('no', 'yes')); } if (!$show_marnm) { $show_marnm = 'no'; } setcookie('show_marnm_famlist', $show_marnm); // Override $SHOW_MARRIED_NAMES for this page $SHOW_MARRIED_NAMES = $show_marnm == 'yes'; // Fetch a list of the initial letters of all surnames in the database $initials = get_indilist_salpha($SHOW_MARRIED_NAMES, true, PGV_GED_ID); // If there are no individuals in the database, do something sensible if (!$initials) { $initials[] = '@'; } // Make sure selections are consistent. // i.e. can't specify show_all and surname at the same time. if ($show_all == 'yes') { $alpha = ''; $surname = ''; $legend = $pgv_lang['all']; $url = 'famlist.php?show_all=yes'; } elseif ($surname) { $surname = UTF8_strtoupper($surname); $alpha = UTF8_substr($surname, 0, 1); foreach (db_collation_digraphs() as $from => $to) {