Beispiel #1
0
<?php

//************************************************************************
// Leonardo XC Server, http://www.leonardoxc.net
//
// Copyright (c) 2004-2010 by Andreadakis Manolis
//
// 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.
//
// $Id: GUI_footer.php,v 1.6 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' => 'footer.html'));
$Ltemplate->pparse('body');
Beispiel #2
0
<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());
    }
}
// end of new code -------------------------------------
if (!$print) {
    $Ltemplate->assign_block_vars('show_header', array());
}
$Ltemplate->pparse('overall_header');
function docookie($setuid, $setusername, $setpass)
{
    $info = base64_encode("{$setuid}:{$setusername}:{$setpass}");
    setcookie("user", "{$info}", time() + 2592000);
}