Exemplo n.º 1
0
//Inloggen database.
// *** Use UTF-8 database connection ***
//$dbh->query("SET NAMES 'utf8'");
include_once CMS_ROOTPATH . "include/safe.php";
include_once CMS_ROOTPATH . "include/settings_global.php";
//Variables
include_once CMS_ROOTPATH . "include/settings_user.php";
// USER variables
include_once CMS_ROOTPATH . "include/person_cls.php";
// for privacy
include_once CMS_ROOTPATH . "include/language_date.php";
include_once CMS_ROOTPATH . "include/date_place.php";
$tree_id = $_SESSION['tree_id'];
include_once CMS_ROOTPATH . "include/db_functions_cls.php";
$db_functions = new db_functions();
$db_functions->set_tree_id($tree_id);
$language_folder = opendir(CMS_ROOTPATH . 'languages/');
while (false !== ($file = readdir($language_folder))) {
    if (strlen($file) < 5 and $file != '.' and $file != '..') {
        $language_file[] = $file;
        // *** Save choice of language ***
        $language_choice = '';
        if (isset($_GET["language"])) {
            $language_choice = $_GET["language"];
        }
        if ($language_choice != '') {
            // Check if file exists (IMPORTANT DO NOT REMOVE THESE LINES)
            // ONLY save an existing language file.
            if ($language_choice == $file) {
                $_SESSION['language'] = $file;
            }
Exemplo n.º 2
0
    echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'fontsize.js"></script>';
    // *** Style sheet select ***
    include_once CMS_ROOTPATH . "styles/sss1.php";
    // *** Pop-up menu ***
    echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'include/popup_menu/popup_menu.js"></script>';
    if (CMS_SPECIFIC == 'Joomla') {
        JHTML::stylesheet('popup_menu.css', CMS_ROOTPATH . 'include/popup_menu/');
    } elseif (CMS_SPECIFIC == 'CMSMS') {
        // Do nothing. stylesheet links outside header won't validate. styling will be managed in CMS
    } else {
        echo '<link rel="stylesheet" type="text/css" href="' . CMS_ROOTPATH . 'include/popup_menu/popup_menu.css">';
    }
    // *** Photo lightbox effect ***
    if ($user['group_pictures'] == 'j') {
        //echo '<script type="text/javascript" src="'.CMS_ROOTPATH.'include/lightbox/js/jquery.min.js"></script>';
        echo '<script type="text/javascript" src="' . CMS_ROOTPATH . 'include/lightbox/js/slimbox2.js"></script>';
        echo '<link rel="stylesheet" href="' . CMS_ROOTPATH . 'include/lightbox/css/slimbox2.css" type="text/css" media="screen">';
    }
    // *** CSS changes for mobile devices ***
    echo '<link rel="stylesheet" media="(max-width: 640px)" href="gedcom_mobile.css">';
    if (!CMS_SPECIFIC) {
        print "</head>\n";
        print "<body onload='checkCookie()'>\n";
    }
    include_once CMS_ROOTPATH . "include/db_functions_cls.php";
    $db_functions = new db_functions();
    $db_functions->set_tree_prefix($tree_prefix_quoted);
    $db_functions->set_tree_id($_SESSION['tree_id']);
    echo '<div class="silverbody">';
}
// *** End of PDF export check ***