-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.inc.php
62 lines (51 loc) · 1.66 KB
/
header.inc.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php /* hlavicka - pocatecni definice stranky */
if (!defined("__HIDE_TEST__")) exit; /* zamezeni samostatneho vykonani */ ?>
<?php
require_once ('./version.inc.php');
require_once ('./common.inc.php');
// Date in the past
header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
$head_addons = '';
$head_addons .="\t".'<script src="functions.js" type="text/javascript"></script>'."\n";
$head_addons .="\t".'<script src="./js/jquery-3.7.1.min.js"></script>'."\n";
$head_addons .="\t".'<script language="javascript">'."\n";
$head_addons .="\t".'<!-- '."\n";
$head_addons .="\t\t".'javascript:set_default_race_url(\''.$g_baseadr.'race_info_show.php?id_zav=\');'."\n";
$head_addons .="\t".'//-->'."\n";
$head_addons .="\t".'</script>'."\n";
require_once('./cfg/_colors.php');
$body_addons = 'text="'.$g_colors['body_text'].'" bgcolor="'.$g_colors['body_bgcolor'].'"';
HTML_Header($g_www_title, 'main.css.php', $body_addons, $head_addons);
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<?
if(defined('IS_INDEX'))
{
?>
<td class="HdrClubName"><?echo $g_www_name;?></td>
</tr>
<tr>
<td height="2" bgcolor="<? echo $g_colors['nav_bgcolor_out'];?>"></td>
<?
}
else
{
?>
<td class="HdrAppName">oddílový přihláškový systém</td>
<td class="HdrClubName"><?echo $g_www_name;?></td>
</tr>
<tr>
<td colspan="2" height="2" bgcolor="<? echo $g_colors['nav_bgcolor_out'];?>"></td>
<?
}
?>
</tr>
</table>