summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-11-25 08:26:11 +0000
committerfisharebest <fisharebest@gmail.com>2010-11-25 08:26:11 +0000
commit360b89275a04a221062f5224ea2baec62a72740c (patch)
tree4ce6adb6c680c68f3abfca336437121511db2d72 /modules
parent103e98a19f02ff7bb94fab8bf8755275b0b23185 (diff)
downloadwebtrees-360b89275a04a221062f5224ea2baec62a72740c.tar.gz
webtrees-360b89275a04a221062f5224ea2baec62a72740c.tar.bz2
webtrees-360b89275a04a221062f5224ea2baec62a72740c.zip
For code that only runs for the current gedcom, use WT_GEDCOM instead of $GEDCOM
Diffstat (limited to 'modules')
-rw-r--r--modules/GEDFact_assistant/_CENS/census_3_search_add.php22
-rw-r--r--modules/GEDFact_assistant/_MEDIA/media_3_search_add.php26
-rw-r--r--modules/clippings/module.php14
-rw-r--r--modules/googlemap/pedigree_map.php6
4 files changed, 34 insertions, 34 deletions
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')) {
<?php
//-- Add Family Members to Census -------------------------------------------
- global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION, $GEDCOM;
+ global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION;
?>
<tr>
@@ -180,7 +180,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value" style="text-decoration:none;" >
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -314,7 +314,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -464,7 +464,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -633,7 +633,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -780,7 +780,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -917,7 +917,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -1077,7 +1077,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -1224,7 +1224,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -1364,7 +1364,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addnewnote_assisted&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -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')) {
<?php
//-- Add Family Members to Census -------------------------------------------
- global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION, $GEDCOM, $censyear, $censdate;
+ global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION, $censyear, $censdate;
// echo "CENS = " . $censyear;
?>
<tr>
@@ -149,7 +149,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value" >
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -230,7 +230,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -334,7 +334,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -448,7 +448,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -539,7 +539,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -633,7 +633,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value" >
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -732,7 +732,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value" >
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["husb"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -828,7 +828,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$people["wife"]->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -926,7 +926,7 @@ if (!defined('WT_WEBTREES')) {
<td align="left" class="facts_value">
<font size=1>
<?php
- echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ echo "<a href=\"edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=".$child->getXref()."&amp;gedcom=".WT_GEDURL."\">";
echo $headImg2;
echo "</a>";
?>
@@ -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 .= "<a href=\"individual.php?pid={$tmp}&amp;tab={$tabno}&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ $parentlinks .= "<a href=\"individual.php?pid={$tmp}&amp;tab={$tabno}&amp;gedcom=".WT_GEDURL."\">";
$parentlinks .= PrintReady($husb->getFullName());
$parentlinks .= "</a>";
} else {
@@ -1277,7 +1277,7 @@ function print_pedigree_person_nav2($pid, $style=1, $count=0, $personcount="1",
$fulmn = rtrim($nam[1]['givn'],'*')."&nbsp;".$nam[1]['surname'];
$marn = $nam[1]['surname'];
}
- $parentlinks .= "<a href=\"individual.php?pid={$tmp}&amp;tab={$tabno}&amp;gedcom=".rawurlencode($GEDCOM)."\">";
+ $parentlinks .= "<a href=\"individual.php?pid={$tmp}&amp;tab={$tabno}&amp;gedcom=".WT_GEDURL."\">";
$parentlinks .= PrintReady($wife->getFullName());
$parentlinks .= "</a>";
} 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&amp;mod_action=index&amp;ged='.rawurlencode($GEDCOM), "down");
+ $menu = new Menu($this->getTitle(), 'module.php?mod=clippings&amp;mod_action=index&amp;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 ='<ul>';
$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())."</h2>";
//-->
</script>
</td><td width="50px">&nbsp;</td><td>
- <form name="people" method="get" action="module.php?ged=<?php echo rawurlencode($GEDCOM); ?>&amp;mod=googlemap&amp;mod_action=pedigree_map">
+ <form name="people" method="get" action="module.php?ged=<?php echo WT_GEDURL; ?>&amp;mod=googlemap&amp;mod_action=pedigree_map">
<input type="hidden" name="mod" value="googlemap" />
<input type="hidden" name="mod_action" value="pedigree_map" />
<table class="pedigree_table <?php echo $TEXT_DIRECTION; ?>" width="555">
@@ -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\"<div>".$dataleft.$datamid.$dataright."</div>\", \"";
echo "<div class='iwstyle'>";
- echo "<a href='module.php?ged=".rawurlencode($GEDCOM)."&mod=googlemap&mod_action=pedigree_map&rootid={$pid}&PEDIGREE_GENERATIONS={$PEDIGREE_GENERATIONS}";
+ echo "<a href='module.php?ged=".WT_GEDURL."&mod=googlemap&mod_action=pedigree_map&rootid={$pid}&PEDIGREE_GENERATIONS={$PEDIGREE_GENERATIONS}";
if ($hideflags) echo "&hideflags=1";
if ($hidelines) echo "&hidelines=1";
if ($clustersize != 5) echo "&clustersize=". $clustersize; // ignoring the default of 5