From 360b89275a04a221062f5224ea2baec62a72740c Mon Sep 17 00:00:00 2001 From: fisharebest Date: Thu, 25 Nov 2010 08:26:11 +0000 Subject: For code that only runs for the current gedcom, use WT_GEDCOM instead of $GEDCOM --- .../_CENS/census_3_search_add.php | 22 +++++++++--------- .../_MEDIA/media_3_search_add.php | 26 +++++++++++----------- modules/clippings/module.php | 14 ++++++------ modules/googlemap/pedigree_map.php | 6 ++--- 4 files changed, 34 insertions(+), 34 deletions(-) (limited to 'modules') diff --git a/modules/GEDFact_assistant/_CENS/census_3_search_add.php b/modules/GEDFact_assistant/_CENS/census_3_search_add.php index aaafc093b0..ff27b01a99 100644 --- a/modules/GEDFact_assistant/_CENS/census_3_search_add.php +++ b/modules/GEDFact_assistant/_CENS/census_3_search_add.php @@ -75,7 +75,7 @@ if (!defined('WT_WEBTREES')) { @@ -180,7 +180,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -314,7 +314,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -464,7 +464,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -633,7 +633,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -780,7 +780,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -917,7 +917,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -1077,7 +1077,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -1224,7 +1224,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -1364,7 +1364,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -1469,7 +1469,7 @@ require_once 'includes/functions/functions_charts.php'; */ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $currpid, $censyear) { - global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $ZOOM_BOXES, $LINK_ICONS, $SCRIPT_NAME, $GEDCOM; + global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $ZOOM_BOXES, $LINK_ICONS, $SCRIPT_NAME; global $MULTI_MEDIA, $SHOW_HIGHLIGHT_IMAGES, $bwidth, $bheight, $PEDIGREE_FULL_DETAILS, $SHOW_PEDIGREE_PLACES; global $TEXT_DIRECTION, $DEFAULT_PEDIGREE_GENERATIONS, $OLD_PGENS, $talloffset, $PEDIGREE_LAYOUT, $MEDIA_DIRECTORY; global $WT_IMAGES, $ABBREVIATE_CHART_LABELS, $USE_MEDIA_VIEWER; diff --git a/modules/GEDFact_assistant/_MEDIA/media_3_search_add.php b/modules/GEDFact_assistant/_MEDIA/media_3_search_add.php index 892e9b213c..17fb82bf43 100644 --- a/modules/GEDFact_assistant/_MEDIA/media_3_search_add.php +++ b/modules/GEDFact_assistant/_MEDIA/media_3_search_add.php @@ -78,7 +78,7 @@ if (!defined('WT_WEBTREES')) { @@ -149,7 +149,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -230,7 +230,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -334,7 +334,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -448,7 +448,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -539,7 +539,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -633,7 +633,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -732,7 +732,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -828,7 +828,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -926,7 +926,7 @@ if (!defined('WT_WEBTREES')) { getXref()."&gedcom=".rawurlencode($GEDCOM)."\">"; + echo "getXref()."&gedcom=".WT_GEDURL."\">"; echo $headImg2; echo ""; ?> @@ -1007,7 +1007,7 @@ require_once WT_ROOT.'includes/functions/functions_charts.php'; * @param int $count on some charts it is important to keep a count of how many boxes were printed */ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $currpid, $censyear) { - global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $ZOOM_BOXES, $LINK_ICONS, $GEDCOM; + global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $ZOOM_BOXES, $LINK_ICONS; global $MULTI_MEDIA, $SHOW_HIGHLIGHT_IMAGES, $bwidth, $bheight, $PEDIGREE_FULL_DETAILS, $SHOW_PEDIGREE_PLACES; global $TEXT_DIRECTION, $DEFAULT_PEDIGREE_GENERATIONS, $OLD_PGENS, $talloffset, $PEDIGREE_LAYOUT, $MEDIA_DIRECTORY; global $WT_IMAGES, $ABBREVIATE_CHART_LABELS, $USE_MEDIA_VIEWER; @@ -1239,7 +1239,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $marn = $nam[1]['surname']; } - $parentlinks .= ""; + $parentlinks .= ""; $parentlinks .= PrintReady($husb->getFullName()); $parentlinks .= ""; } else { @@ -1277,7 +1277,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1", $fulmn = rtrim($nam[1]['givn'],'*')." ".$nam[1]['surname']; $marn = $nam[1]['surname']; } - $parentlinks .= ""; + $parentlinks .= ""; $parentlinks .= PrintReady($wife->getFullName()); $parentlinks .= ""; } else { diff --git a/modules/clippings/module.php b/modules/clippings/module.php index 23f3a9f2e8..1ddc451e70 100644 --- a/modules/clippings/module.php +++ b/modules/clippings/module.php @@ -67,14 +67,14 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module // Implement WT_Module_Menu public function getMenu() { - global $TEXT_DIRECTION, $WT_IMAGES, $GEDCOM, $SEARCH_SPIDER, $controller; + global $TEXT_DIRECTION, $WT_IMAGES, $SEARCH_SPIDER, $controller; if ($TEXT_DIRECTION=="rtl") $ff="_rtl"; else $ff=""; if ($SEARCH_SPIDER) { return new Menu("", "", ""); } //-- main clippings menu item - $menu = new Menu($this->getTitle(), 'module.php?mod=clippings&mod_action=index&ged='.rawurlencode($GEDCOM), "down"); + $menu = new Menu($this->getTitle(), 'module.php?mod=clippings&mod_action=index&ged='.WT_GEDURL, "down"); $menu->addIcon('clippings'); $menu->addClass("menuitem$ff", "menuitem_hover$ff", "submenu$ff", "icon_large_clippings"); if (isset($controller->indi) && $controller->indi->canDisplayDetails()) { @@ -123,7 +123,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module // Impelement WT_Module_Sidebar public function getSidebarContent() { - global $WT_IMAGES, $cart, $GEDCOM; + global $WT_IMAGES, $cart; $out = ''; @@ -160,7 +160,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module // Impelement WT_Module_Sidebar public function getSidebarAjaxContent() { - global $GEDCOM, $cart; + global $cart; $controller = new ClippingsController(); $this->controller = $controller; $add = safe_GET_xref('add',''); @@ -178,7 +178,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module $clipping = array (); $clipping['type'] = strtolower($record->getType()); $clipping['id'] = $add; - $clipping['gedcom'] = $GEDCOM; + $clipping['gedcom'] = WT_GEDCOM; $ret = $controller->add_clipping($clipping); if (isset($_SESSION["cart"])) $_SESSION["cart"]=$cart; if ($ret) return $this->askAddOptions($record); @@ -289,7 +289,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module } public function getCartList() { - global $WT_IMAGES, $cart, $GEDCOM; + global $WT_IMAGES, $cart; $out ='
    '; $ct = count($cart); @@ -300,7 +300,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module $tag = strtoupper(substr($clipping['type'], 0, 4)); // source => SOUR //print_r($clipping); //-- don't show clippings from other gedcoms - if ($clipping['gedcom']==$GEDCOM) { + if ($clipping['gedcom']==WT_GEDCOM) { $icon=''; if ($tag=='INDI') $icon = "indis"; if ($tag=='FAM' ) $icon = "sfamily"; diff --git a/modules/googlemap/pedigree_map.php b/modules/googlemap/pedigree_map.php index 73010b96be..f673a2a6dd 100644 --- a/modules/googlemap/pedigree_map.php +++ b/modules/googlemap/pedigree_map.php @@ -42,7 +42,7 @@ if (!defined('WT_WEBTREES')) { require WT_ROOT.'includes/controllers/pedigree_ctrl.php'; require WT_ROOT.'modules/googlemap/defaultconfig.php'; -global $PEDIGREE_GENERATIONS, $MAX_PEDIGREE_GENERATIONS, $ENABLE_AUTOCOMPLETE, $MULTI_MEDIA, $SHOW_HIGHLIGHT_IMAGES, $WT_IMAGES, $GEDCOM; +global $PEDIGREE_GENERATIONS, $MAX_PEDIGREE_GENERATIONS, $ENABLE_AUTOCOMPLETE, $MULTI_MEDIA, $SHOW_HIGHLIGHT_IMAGES, $WT_IMAGES; // Default is show for both of these. $hideflags = safe_GET('hideflags'); @@ -104,7 +104,7 @@ echo PrintReady($controller->getPersonName()).""; //-->   -
    + @@ -662,7 +662,7 @@ for ($i=0; $i<($controller->treesize); $i++) { echo "var point = new GLatLng(" . $lat[$i] . "," . $lon[$i]. ");\n"; echo "var marker = createMarker(point, \"" . addslashes($name). "\",\n\t\"
    ".$dataleft.$datamid.$dataright."
    \", \""; echo "
    "; - echo "