Exemple #1
0
function do_headers_dojo($title, $extra = '')
{
    $config = Config::getInstance();
    if ($config->dojo) {
        $ext = "<link rel='stylesheet' href='http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dijit/themes/tundra/tundra.css'>\n<link rel='stylesheet' href='http://ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/resources/dojo.css'>\n<script>dojoConfig = {parseOnLoad: true}</script>\n<script src=\"//ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.js\"></script>\n    <script language=\"JavaScript\" type=\"text/javascript\">\n\t\trequire([\"dojo/parser\"]);\n    </script>";
    } else {
        $ext = "";
    }
    $ext .= $extra;
    do_headers($title, $ext);
}
Exemple #2
0
//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.
// include the configuration parameters and functions
include_once "modules/db/DAOFactory.php";
include_once "inc/header.inc.php";
$images = new Image();
$images->setFromRequest();
$dao = getImageDAO();
$dao->getImages($images);
$img = $images->results[0];
// fill out the header
do_headers($img->getTitle() . " (" . $img->person->getDisplayName() . ")");
?>

<table class="header" width="100%">
  <tbody>
    <tr>
      <td align="center"><h2><?php 
echo $img->getTitle();
?>
</h2></td>
    </tr>
  </tbody>
</table>


<hr />
Exemple #3
0
if ($peep->numResults != 1) {
    die("Could not find person");
}
$per = $peep->results[0];
// the query for the database
// Security ------------------
// set security for living people (born after 01/01/1910)
if (!$per->isViewable()) {
    // ATTENTION: Correct path to the inc directory
    //		   die(include $our_path."inc/forbidden.inc.php");
    die(include "inc/forbidden.inc.php");
}
// ------------------------------------------
// Fill out the HTML-headers
$headername = $strAncestors . " - " . $per->getDisplayName();
do_headers($headername);
// pickout father and mother for use in queries
// set to -1 to avoid too many siblings!!! :-)
$father = $per->father->person_id;
if ($father == 0) {
    $father = -1;
}
$mother = $per->mother->person_id;
if ($mother == 0) {
    $mother = -1;
}
?>

<!-- Create the page header -->

<table class="header" width="100%">
Exemple #4
0
//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.
// include the configuration parameters and function
include "modules/db/DAOFactory.php";
include "modules/census/show.php";
include "inc/header.inc.php";
$search = new CensusDetail();
$search->event->setFromRequest();
$search->queryType = Q_FAMILY;
$dao = getCensusDAO();
$dao->getCensusDetails($search);
$cnt = $search->numResults;
// Fill out the headers
do_headers($strCensusDetails . ": " . $search->schedule);
if (isset($_SERVER["HTTP_REFERER"])) {
    $referer = $_SERVER["HTTP_REFERER"];
} else {
    $referer = "index.php";
}
$caption = "";
if ($cnt > 0) {
    $cap = $search->results[0];
} else {
    $dao->getCensusName($search);
    $cap = $search;
}
$caption = $cap->country . " (" . $cap->year . ")";
?>
Exemple #5
0
//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.
// include the configuration parameters and functions
include_once "modules/db/DAOFactory.php";
include_once "inc/header.inc.php";
include_once "modules/image/show.php";
// fill out the headers
do_headers($strGallery);
$images = new Image();
$dao = getImageDAO();
$dao->getImages($images);
?>

<script language="JavaScript" type="text/javascript">
 <!--
 function confirm_delete(year, section, url) {
 	input_box = confirm(<?php 
echo $strConfirmDelete;
?>
);
 	if (input_box == true) {
		window.location = url;
 	}
Exemple #6
0
            $err = $err_pwd_match;
        }
        break;
        // delete an existing user
    // delete an existing user
    case "delete":
        $query = "DELETE FROM " . $tblprefix . "users WHERE id = '" . $_REQUEST["id"] . "'";
        $result = mysql_query($query) or die($err_delete_user);
        break;
        // bail out if we don't know what else to do
    // bail out if we don't know what else to do
    default:
        break;
}
// fill out the header
do_headers("phpmyfamily Admin");
if ($func != "ged") {
    ?>
<table class="header" width="100%">
  <tbody>
    <tr>
      <td><h3><?php 
    echo $strAdminFuncs;
    ?>
</h3>  </td>
<?php 
    $fp = @fopen("http://www.phpmyfamily.net/pmf_version.php", "r");
    if ($fp) {
        $buffer = "";
        while (!feof($fp)) {
            $buffer = fgets($fp, 1024);
Exemple #7
0
//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.
// include the configuration parameters and functions
include_once "modules/db/DAOFactory.php";
include_once "inc/header.inc.php";
// fill out the headers
do_headers($strSurnameIndex);
?>

<table class="header" width="100%">
	<tbody>
		<tr>
			<td align="center" width="65%"><h2><?php 
echo $strSurnameIndex;
?>
</h2></td>
			<td width="35%" valign="top" align="right">
<?php 
user_opts();
?>
			</td>
    </tr>
Exemple #8
0
include_once "modules/db/DAOFactory.php";
include_once "inc/functions.inc.php";
include_once "inc/header.inc.php";
// pick up the passed variables
@($email = $_REQUEST["email"]);
@($person = $_REQUEST["person"]);
@($action = $_REQUEST["action"]);
@($key = $_REQUEST["key"]);
$config = Config::getInstance();
// bail out if we don't allow anonymous tracking
if (!$config->tracking) {
    die(include "inc/forbidden.inc.php");
}
$dao = getTrackingDAO();
// Fill out the headers
do_headers($strTracking);
?>

<script language="JavaScript" type="text/javascript">
 <!--
 function check_email() {
 	if (document.trackform.email.value == '') {
		alert(<?php 
echo $strNoEmail;
?>
);
		return false
 	}
 }
 -->
</script>
Exemple #9
0
//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.
// include the configuration parameters and functions
include_once "modules/db/DAOFactory.php";
include_once "inc/header.inc.php";
include_once "inc/class.phpmailer.php";
require_once 'inc/recaptchalib.php';
$config = Config::getInstance();
// fill out the headers
do_headers($strMailTo);
@($action = $_REQUEST["action"]);
@($subject = $_REQUEST["subject"]);
if (!isset($subject)) {
    $subject = "";
}
@($referer = $_REQUEST["referer"]);
if (!isset($referer) && isset($_SERVER["HTTP_REFERER"])) {
    $referer = $_SERVER["HTTP_REFERER"];
} elseif (!isset($referer)) {
    $referer = "index.php";
}
?>

<script language="JavaScript" type="text/javascript">
 <!--
Exemple #10
0
<?php

include_once "modules/db/DAOFactory.php";
include_once "inc/header.inc.php";
// fill out the headers
do_headers($strReport);
?>
<body class="tundra">
<?php 
include_once "inc/analyticstracking.php";
?>
<table class="header" width="100%">
	<tbody>
		<tr>
			<td align="center" width="65%"><h2><?php 
echo $strReport;
?>
</h2></td>
			<td width="35%" valign="top" align="right">
<?php 
user_opts();
?>
			</td>
    </tr>
  </tbody>
</table>

<?php 
if (isset($_REQUEST["area"])) {
    include_once "modules/" . $_REQUEST["area"] . "/report.php";
} else {
//phpmyfamily - opensource genealogy webbuilder
//Copyright (C) 2002 - 2005  Simon E Booth (simon.booth@giric.com)
//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.
include_once "inc/header.inc.php";
do_headers($strForbidden);
?>
<body>
<?php 
include_once "inc/analyticstracking.php";
?>
<table class="header" width="100%">
  <tbody>
    <tr>
      <td><h2><?php 
echo $strForbidden;
?>
</h2>  </td>
    </tr>
  </tbody>
</table>