Exemplo n.º 1
0
            if (count($parts) == 1) {
                $path = $INDEX_DIRECTORY;
            } else {
                foreach ($parts as $key => $pathpart) {
                    if ($key < $ctparts) {
                        $path .= $pathpart . "/";
                    }
                }
            }
        }
        $GEDFILENAME = $ged;
        if (!isset($gedcom_title)) {
            $gedcom_title = get_gedcom_setting($ged_id, 'title');
        }
        $gedcom_config = get_config_file($ged_id);
        $gedcom_privacy = get_privacy_file($ged_id);
        $FILE = $ged;
        $oldged = $ged;
    } else {
        if (empty($_POST["GEDCOMPATH"])) {
            $GEDCOMPATH = "";
            $gedcom_title = "";
        }
        $gedcom_config = "config_gedcom.php";
        $gedcom_privacy = "privacy.php";
    }
} else {
    $GEDCOMPATH = "";
    $gedcom_title = "";
    $gedcom_config = "config_gedcom.php";
    $gedcom_privacy = "privacy.php";
Exemplo n.º 2
0
    if (!empty($_SESSION['CLANGUAGE'])) {
        $CLANGUAGE = $_SESSION['CLANGUAGE'];
    } else {
        if (!empty($HTTP_SESSION_VARS['CLANGUAGE'])) {
            $CLANGUAGE = $HTTP_SESSION_VARS['CLANGUAGE'];
        }
    }
    if (!empty($CLANGUAGE)) {
        $LANGUAGE = $CLANGUAGE;
    }
}
// Load all the language variables and language-specific functions
loadLanguage($LANGUAGE, true);
require_once PHPGEDVIEW_PKG_PATH . "privacy.php";
//-- load the privacy file
require_once PHPGEDVIEW_PKG_PATH . get_privacy_file();
//-- load the privacy functions
require_once PHPGEDVIEW_PKG_PATH . "includes/functions/functions_privacy.php";
if (!isset($SCRIPT_NAME)) {
    $SCRIPT_NAME = $_SERVER["SCRIPT_NAME"];
}
$monthtonum = array();
$monthtonum["jan"] = 1;
$monthtonum["feb"] = 2;
$monthtonum["mar"] = 3;
$monthtonum["apr"] = 4;
$monthtonum["may"] = 5;
$monthtonum["jun"] = 6;
$monthtonum["jul"] = 7;
$monthtonum["aug"] = 8;
$monthtonum["sep"] = 9;
Exemplo n.º 3
0
?>
')) cbox.checked = false;
	}
}
//-->
</script>
<form name="delete_form" method="post" action="">
<table>
	<tr>
		<td>
		<ul id="reorder_list">
		<?php 
$locked_with_warning = array("lang_settings.php", "pgv_changes.php");
//-- lock the GEDCOM and settings files
foreach (get_all_gedcoms() as $ged_id => $ged_name) {
    $file = get_privacy_file($ged_id);
    if ($file != 'privacy.php') {
        $locked_by_context[] = str_replace($INDEX_DIRECTORY, "", $file);
    }
    $file = get_config_file($ged_id);
    if ($file != 'config_gedcom.php') {
        $locked_by_context[] = str_replace($INDEX_DIRECTORY, "", $file);
    }
}
$dir = dir($INDEX_DIRECTORY);
$path = $INDEX_DIRECTORY;
// snag our path
$entryList = array();
while (false !== ($entry = $dir->read())) {
    $entryList[] = $entry;
}
Exemplo n.º 4
0
 print "<a href=\"" . encode_url("editconfig_gedcom.php?ged={$ged_name}") . "\">" . $pgv_lang["edit"] . "</a>";
 print "</td>";
 print "<td colspan=\"4\" valign=\"top\">";
 // Columns 4-7  (blank)
 print "&nbsp;";
 print "</td>";
 print "</tr>";
 // Row 4: Privacy File
 print "<tr>";
 print "<td valign=\"top\">";
 // Column 1  (row legend)
 print_text("ged_privacy");
 print "</td>";
 print "<td valign=\"top\">";
 // Column 2  (file name & notices)
 print getLRM() . get_privacy_file($ged_id);
 print "</td>";
 print "<td valign=\"top\">";
 // Column 3  (Edit action)
 print "<a href=\"" . encode_url("edit_privacy.php?ged={$ged_name}") . "\">" . $pgv_lang["edit"] . "</a>";
 print "</td>";
 print "<td colspan=\"4\" valign=\"top\">";
 // Columns 4-7  (blank)
 print "&nbsp;";
 print "</td>";
 print "</tr>";
 // Row 5: Search Log File
 print "<tr>";
 print "<td valign=\"top\">";
 // Column 1  (row legend)
 print_text("ged_search");
Exemplo n.º 5
0
    $record = GedcomRecord::getInstance($checkVar);
    if ($record) {
        echo $record->format_list('span');
    } else {
        print "<span class=\"error\">";
        if ($outputVar == 1) {
            print $pgv_lang["unable_to_find_privacy_indi"];
            print "<br />[" . $checkVar . "]";
        }
        if ($outputVar == 2) {
            print $pgv_lang["unable_to_find_privacy_indi"];
        }
        print "</span><br /><br />";
    }
}
$PRIVACY_MODULE = get_privacy_file(PGV_GED_ID);
print_header($pgv_lang["privacy_header"]);
if ($ENABLE_AUTOCOMPLETE) {
    require PGV_ROOT . 'js/autocomplete.js.htm';
}
?>
<table class="facts_table <?php 
print $TEXT_DIRECTION;
?>
">
	<tr>
		<td colspan="2" class="facts_label"><?php 
print "<h2>" . $pgv_lang["edit_privacy_title"] . " - " . PrintReady(strip_tags(get_gedcom_setting(get_id_from_gedcom($ged), 'title'))) . "</h2>";
print "(" . getLRM() . $PRIVACY_MODULE . ")";
print "<br /><br /><a href=\"editgedcoms.php\"><b>";
print $pgv_lang["lang_back_manage_gedcoms"];
Exemplo n.º 6
0
    $record = GedcomRecord::getInstance($checkVar);
    if ($record) {
        echo $record->format_list('span');
    } else {
        print "<span class=\"error\">";
        if ($outputVar == 1) {
            print $pgv_lang["unable_to_find_privacy_indi"];
            print "<br />[" . $checkVar . "]";
        }
        if ($outputVar == 2) {
            print $pgv_lang["unable_to_find_privacy_indi"];
        }
        print "</span><br /><br />";
    }
}
$PRIVACY_MODULE = get_privacy_file();
print_header($pgv_lang["privacy_header"]);
if ($ENABLE_AUTOCOMPLETE) {
    require './js/autocomplete.js.htm';
}
?>
<table class="facts_table <?php 
print $TEXT_DIRECTION;
?>
">
	<tr>
		<td colspan="2" class="facts_label"><?php 
print "<h2>" . $pgv_lang["edit_privacy_title"] . " - " . PrintReady(strip_tags(get_gedcom_setting($ged, 'title'))) . "</h2>";
print "(" . getLRM() . $PRIVACY_MODULE . ")";
print "<br /><br /><a href=\"editgedcoms.php\"><b>";
print $pgv_lang["lang_back_manage_gedcoms"];