-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindividual.php
More file actions
89 lines (74 loc) · 3.12 KB
/
individual.php
File metadata and controls
89 lines (74 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* Individual Page
*
* Display all of the information about an individual
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2007 PGV Development Team
*
* 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 PhpGedView
* @subpackage Charts
* @version $Id$
*/
/**
* Initialization
*/
require_once( '../kernel/setup_inc.php' );
// Is package installed and enabled
$gBitSystem->verifyPackage( 'phpgedview' );
require_once( PHPGEDVIEW_PKG_PATH.'includes/bitsession.php' );
include_once( PHPGEDVIEW_PKG_PATH.'BitGEDCOM.php' );
$gGedcom = new BitGEDCOM( 1 );
// leave manual config until we can move it to bitweaver table
require_once 'includes/controllers/individual_ctrl.php';
require_once 'includes/bit_print.php';
$controller=new IndividualController();
$controller->init();
global $USE_THUMBS_MAIN, $mediacnt, $tabno;
global $linkToID;
global $SEARCH_SPIDER;
global $factarray, $pgv_lang;
global $INDI_FACTS_ADD;
global $INDI_FACTS_UNIQUE;
global $INDI_FACTS_QUICK;
$addfacts = preg_split("/[, ;:]+/", $INDI_FACTS_ADD, -1, PREG_SPLIT_NO_EMPTY);
$uniquefacts = preg_split("/[, ;:]+/", $INDI_FACTS_UNIQUE, -1, PREG_SPLIT_NO_EMPTY);
$quickfacts = preg_split("/[, ;:]+/", $INDI_FACTS_QUICK, -1, PREG_SPLIT_NO_EMPTY);
$addfacts=array_merge( CheckFactUnique( $uniquefacts, $quickfacts, "INDI" ), $addfacts );
$quickfacts=array_intersect($quickfacts, $addfacts);
usort($addfacts, "factsort");
$gBitSmarty->assign_by_ref( "addfacts", $addfacts);
$gBitSmarty->assign_by_ref( "factarray", $factarray);
$globalfacts = $controller->getGlobalFacts();
$indifacts = $controller->getIndiFacts();
$otherfacts = $controller->getOtherFacts();
$family = $controller->indi->getSpouseFamilies();
$families = $controller->indi->getChildFamilies();
$stepfams = $controller->indi->getStepFamilies();
$gBitSmarty->assign_by_ref( "globalfacts", $globalfacts->globalfacts);
$gBitSmarty->assign_by_ref( "indifacts", $indifacts->indifacts);
$gBitSmarty->assign_by_ref( "otherfacts", $otherfacts->otherfacts);
$gBitSmarty->assign_by_ref( "family", $family);
$gBitSmarty->assign_by_ref( "families", $families);
$gBitSmarty->assign_by_ref( "stepfams", $stepfams);
$linkToID = $controller->pid; // -- Tell addmedia.php what to link to
$gBitSmarty->assign_by_ref( "controller", $controller);
$doctitle = "Individual Summary : ".$controller->indi->GetFullName();
$gBitSmarty->assign( "pagetitle", $doctitle );
$gBitSystem->display( 'bitpackage:phpgedview/individual.tpl', tra( 'Individual Summary' ) );
?>