forked from leonardoxc/leonardoxc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGUI_header.php
38 lines (30 loc) · 1.6 KB
/
GUI_header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?
/************************************************************************/
/* Leonardo: Gliding XC Server */
/* ============================================ */
/* */
/* Copyright (c) 2004-5 by Andreadakis Manolis */
/* http://sourceforge.net/projects/leonardoserver */
/* */
/* 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. */
/************************************************************************/
require $moduleRelPath."/CL_template.php";
$Ltemplate = new LTemplate($moduleRelPath."/templates/".$PREFS->themeName);
$Ltemplate ->set_filenames(array(
'body' => 'header.html')
);
$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 (in_array($userID,$admin_users) ) $Ltemplate->assign_block_vars('SWITCH_ADMIN', array() );
$Ltemplate->pparse('body');
function docookie($setuid, $setusername, $setpass) {
$info = base64_encode("$setuid:$setusername:$setpass");
setcookie("user","$info",time()+2592000);
}
?>