Exemplo n.º 1
0
$mapImg .= $commentsHtml;
$mapImg .= "</div>";
if ($imagesHtml) {
    $mapImg .= "<script type='text/javascript' src='{$moduleRelPath}/js/xns.js'></script>";
}
$mapImg = $mapImg0 . $mapImg;
if ($flight->is3D() && is_file($flight->getChartfilename("alt", $PREFS->metricSystem))) {
    $chart1 = "<br><br><img src='" . $flight->getChartRelPath("alt", $PREFS->metricSystem) . "'>";
}
if (is_file($flight->getChartfilename("takeoff_distance", $PREFS->metricSystem))) {
    $chart2 = "<br><br><img src='" . $flight->getChartRelPath("takeoff_distance", $PREFS->metricSystem) . "'>";
}
if (is_file($flight->getChartfilename("speed", $PREFS->metricSystem))) {
    $chart3 = "<br><br><img src='" . $flight->getChartRelPath("speed", $PREFS->metricSystem) . "'>";
}
if ($flight->is3D() && is_file($flight->getChartfilename("vario", $PREFS->metricSystem))) {
    $chart4 = "<br><br><img src='" . $flight->getChartRelPath("vario", $PREFS->metricSystem) . "'>";
}
$extLinkLanguageStr = "";
if ($CONF['servers']['list'][$flight->serverID]['isLeo']) {
    $extLinkLanguageStr = "&lng={$currentlang}";
}
$extFlightLegend = _Ext_text1 . " <i>" . $CONF['servers']['list'][$flight->serverID]['name'] . "</i>. <a href='" . $flight->getOriginalURL() . $extLinkLanguageStr . "' target='_blank'>" . _Ext_text3 . leoHtml::img('icon_link.gif', 0, 0, '', _External_Entry, 'icons1 flagIcon') . "</a>";
$Ltemplate->assign_vars(array('extFlightLegend' => $extFlightLegend, 'M_PATH' => $moduleRelPath, 'T_PATH' => $moduleRelPath . '/templates/' . $PREFS->themeName, 'ADMIN_PANEL' => $adminPanel, 'MAP_IMG' => $mapImg, 'activeTabName' => $activeTabName, 'CHART_IMG1' => $chart1, 'CHART_IMG2' => $chart2, 'CHART_IMG3' => $chart3, 'CHART_IMG4' => $chart4, 'linkURL' => $linkURL, 'glider' => $glider, 'gliderCat' => $gliderCat, 'igcPath' => $flight->getIGCRelPath(), 'igcLink' => $igcLink, 'flightID' => $flight->flightID));
if ($flight->externalFlightType && !$CONF['servers']['list'][$flight->serverID]['treat_flights_as_local']) {
    $Ltemplate->assign_block_vars('EXT_FLIGHT', array());
}
if ($adminPanel) {
    $Ltemplate->assign_block_vars('ADMIN_PANEL', array());
}
$Ltemplate->pparse('body');
Exemplo n.º 2
0
//	);
$Ltemplate->set_filenames(array('overall_header' => 'tpl/overall_header.html'));
if ($CONF_use_utf) {
    define('CONF_LANG_ENCODING_TYPE', 'utf8');
    $CONF_ENCODING = 'utf-8';
} else {
    define('CONF_LANG_ENCODING_TYPE', 'iso');
    $CONF_ENCODING = $langEncodings[$currentlang];
}
if (!is_array($lang)) {
    $lang = array();
}
$lang['ENCODING'] = $CONF_ENCODING;
$Ltemplate->assign_vars(array('STYLE_LINK' => $moduleRelPath . "/templates/" . $PREFS->themeName . "/style.css", 'IMG_PATH' => $moduleRelPath . "/templates/" . $PREFS->themeName . "/img/"));
if (!$userID) {
    $Ltemplate->assign_block_vars('SWITCH_ANON_USER', array());
} else {
    $Ltemplate->assign_block_vars('SWITCH_LOGIN_USER', array());
}
if (L_auth::isAdmin($userID)) {
    $Ltemplate->assign_block_vars('SWITCH_ADMIN', array());
}
// new code ----------------------------------
//
// Generate logged in/logged out status
//
if ($userdata['session_logged_in']) {
    if (empty($leonardo_header)) {
        $u_login_logout = 'login.' . $phpEx . '?logout=true&amp;sid=' . $userdata['session_id'];
    } else {
        $u_login_logout = CONF_MODULE_ARG . '&op=login&logout=true&amp;sid=' . $userdata['session_id'];
Exemplo n.º 3
0
// $Id: GUI_index_full.php,v 1.13 2010/03/14 20:56:11 manolis Exp $
//
//************************************************************************
require_once dirname(__FILE__) . "/CL_template.php";
$Ltemplate = new LTemplate(dirname(__FILE__) . '/templates/' . $PREFS->themeName);
$Ltemplate->set_filenames(array('body' => 'index_full.html'));
list($countriesCodes, $countriesNames, $countriesFlightsNum) = getCountriesList();
$countriesNum = count($countriesNames);
require_once dirname(__FILE__) . "/FN_areas.php";
$i = 0;
foreach ($countriesNames as $countryName) {
    $continentNum = $countries2continent[$countriesCodes[$i]];
    $lgStrings[$continentNum] .= "<li><a href='javascript:jumpToLeague(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $ctStrings[$continentNum] .= "<li><a href='javascript:jumpToFlights(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $tkStrings[$continentNum] .= "<li><a href='javascript:jumpToTakeoffs(\"" . $countriesCodes[$i] . "\") '>{$countryName} </a></li>\n";
    $Ltemplate->assign_block_vars('lg', array('link' => "javascript:jumpToLeague('" . $countriesCodes[$i] . "')", 'name' => $countryName));
    $Ltemplate->assign_block_vars('ct', array('link' => "javascript:jumpToFlights('" . $countriesCodes[$i] . "')", 'name' => $countryName, 'flNum' => $countriesFlightsNum[$i]));
    $Ltemplate->assign_block_vars('tk', array('link' => "javascript:jumpToTakeoffs('" . $countriesCodes[$i] . "')", 'name' => $countryName));
    $i++;
}
$lgStr = '<div class="vnav">
<ul>
  <li><a href="javascript:jumpToLeague(0)"><b>' . _WORLD_WIDE . '</b></a></li>
   
';
$ctStr = '<div class="vnav">
<ul>
  <li><a href="javascript:jumpToFlights(0)"><b>' . _WORLD_WIDE . '</b></a></li>
';
$tkStr = '<div class="vnav">
<ul>
Exemplo n.º 4
0
<meta name="identifier-url" content="' . $board_config['meta_identifier_url'] . '">
<meta name="reply-to" content="' . $board_config['meta_reply_to'] . '">
<meta name="revisit-after" content="' . $board_config['meta_revisit_after'] . '">
<meta name="category" content="' . $board_config['meta_category'] . '">
<meta name="copyright" content="' . $board_config['meta_copyright'] . '">
<meta name="generator" content="' . $board_config['meta_generator'] . '">
<meta name="robots" content="' . $board_config['meta_robots'] . '">
<meta name="distribution" content="' . $board_config['meta_distribution'] . '">
<meta name="date-creation-yyyymmdd" content="' . $board_config['meta_date_creation_year'] . '' . $board_config['meta_date_creation_month'] . '' . $board_config['meta_date_creation_day'] . '">
<meta name="date-revision-yyyymmdd" content="' . $board_config['meta_date_revision_year'] . '' . $board_config['meta_date_revision_month'] . '' . $board_config['meta_date_revision_day'] . '">
' . $metaFlight, 'PAGE_TITLE' => $page_title, 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])), 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), 'S_LOGIN_ACTION' => append_sid('login.' . $phpEx), 'T_PATH' => $tplPath . '/', 'TOP_CUSTOM_LOGO' => $topCustomLogo, 'TOP_CUSTOM_LOGO_DISPLAY' => $topCustomLogo ? 'block' : 'none', 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), 'U_INDEX' => '/' . append_sid('index.' . $phpEx), 'T_HEAD_STYLESHEET' => $tplPath . '/style.css', 'T_BODY_BACKGROUND' => $theme['body_background'], 'T_BODY_BGCOLOR' => '#' . $theme['body_bgcolor'], 'T_BODY_TEXT' => '#' . $theme['body_text'], 'T_BODY_LINK' => '#' . $theme['body_link'], 'T_BODY_VLINK' => '#' . $theme['body_vlink'], 'T_BODY_ALINK' => '#' . $theme['body_alink'], 'T_BODY_HLINK' => '#' . $theme['body_hlink']));
//
// Login box?
//
if (!$userdata['session_logged_in']) {
    $Ltemplate->assign_block_vars('switch_user_logged_out', array());
} else {
    $Ltemplate->assign_block_vars('switch_user_logged_in', array());
    if (!empty($userdata['user_popup_pm'])) {
        $Ltemplate->assign_block_vars('switch_enable_pm_popup', array());
    }
}
// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';
// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
/*
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}