Esempio n. 1
0
switch ($action) {
    case 'edit':
        print_header($pgv_lang['edit_lang_utility']);
        break;
    case 'export':
        print_header($pgv_lang['export_lang_utility']);
        break;
    case 'compare':
        print_header($pgv_lang['compare_lang_utility']);
        break;
    default:
        print_header($pgv_lang['edit_langdiff']);
        break;
}
if ($execute && $action == 'debug') {
    $_SESSION['DEBUG_LANG'] = safe_GET_bool('DEBUG_LANG');
}
if (!isset($_SESSION['DEBUG_LANG'])) {
    $_SESSION['DEBUG_LANG'] = false;
}
$QUERY_STRING = str_replace(array("&", "&&"), "&", $QUERY_STRING);
if (strpos($QUERY_STRING, "&dv=")) {
    $QUERY_STRING = substr($QUERY_STRING, 0, strpos($QUERY_STRING, "&dv="));
}
echo "<script language=\"JavaScript\" type=\"text/javascript\">";
echo "var helpWin;";
echo "function helpPopup00(which) {";
echo "if ((!helpWin)||(helpWin.closed)) {helpWin = window.open('editlang_edit.php?' + which, '_blank' , 'left=50, top=30, width=600, height=500, resizable=1, scrollbars=1'); helpWin.focus();}";
echo "else helpWin.location = 'editlang_edit.php?' + which;";
echo "return false;";
echo "}";
Esempio n. 2
0
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
* @package PhpGedView
* @subpackage Lists
* @version $Id: branches.php 6879 2010-01-30 11:35:46Z fisharebest $
*/
define('PGV_SCRIPT_NAME', 'branches.php');
require './config.php';
//-- const
define('PGV_ICON_RINGS', "<img src=\"images/small/rings.gif\" alt=\"{$factarray["MARR"]}\" title=\"{$factarray["MARR"]}\" />");
define('PGV_ICON_BRANCHES', "<img src=\"" . $PGV_IMAGE_DIR . "/" . $PGV_IMAGES["patriarch"]["small"] . "\" alt=\"\" align=\"middle\" />");
//-- args
$surn = safe_GET('surn', '[^<>&%{};]*');
$surn = UTF8_strtoupper($surn);
$soundex_std = safe_GET_bool('soundex_std');
$soundex_dm = safe_GET_bool('soundex_dm');
$ged = safe_GET('ged');
if (empty($ged)) {
    $ged = $GEDCOM;
}
//-- rootid
$rootid = "";
if (PGV_USER_ID) {
    $rootid = PGV_USER_ROOT_ID;
    if (empty($_SESSION['user_ancestors']) || $_SESSION['user_ancestors'][1] !== $rootid) {
        unset($_SESSION['user_ancestors']);
        load_ancestors_array($rootid);
    }
}
//-- random surname
if ($surn == '*') {
Esempio n. 3
0
$type = safe_GET('type', PGV_REGEX_ALPHA, 'indi');
$filter = safe_GET('filter');
$action = safe_GET('action');
$callback = safe_GET('callback', PGV_REGEX_NOSCRIPT, 'paste_id');
$create = safe_GET('create');
$media = safe_GET('media');
$external_links = safe_GET('external_links');
$directory = safe_GET('directory', PGV_REGEX_NOSCRIPT, $MEDIA_DIRECTORY);
$multiple = safe_GET_bool('multiple');
$showthumb = safe_GET_bool('showthumb');
$all = safe_GET_bool('all');
$subclick = safe_GET('subclick');
$choose = safe_GET('choose', PGV_REGEX_NOSCRIPT, '0all');
$level = safe_GET('level', PGV_REGEX_INTEGER, 0);
$language_filter = safe_GET('language_filter');
$magnify = safe_GET_bool('magnify');
if ($showthumb) {
    $thumbget = '&showthumb=true';
} else {
    $thumbget = '';
}
if ($subclick == 'all') {
    $all = true;
}
$embed = substr($choose, 0, 1) == "1";
$chooseType = substr($choose, 1);
if ($chooseType != "media" && $chooseType != "0file") {
    $chooseType = "all";
}
//-- force the thumbnail directory to have the same layout as the media directory
//-- Dots and slashes should be escaped for the preg_replace