Last change
on this file since 25 was 25, checked in by maron, 17 years ago |
Nový systém překladu-vzhled, kostra
|
File size:
1.5 KB
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | function GetRemoteAddress()
|
---|
4 | {
|
---|
5 | if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ;
|
---|
6 | else $IP = $_SERVER['REMOTE_ADDR'];
|
---|
7 | //if($IP == '127.0.0.1')
|
---|
8 | return($IP);
|
---|
9 | }
|
---|
10 |
|
---|
11 | function ShowHeader()
|
---|
12 | { // BEGIN function ShowHeader
|
---|
13 | global $Config,$menu;
|
---|
14 | echo '<?xml version="1.0" encoding="'.$Config['Charset'].'"?\>
|
---|
15 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
---|
16 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
---|
17 | <head>
|
---|
18 | <link href="style.css" rel="stylesheet" type="text/css" />
|
---|
19 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
---|
20 | <title>'.HEAD_TITLE.'</title>
|
---|
21 | </head>
|
---|
22 | <body>
|
---|
23 |
|
---|
24 | <div id="container">
|
---|
25 | <div id="banner">
|
---|
26 | <div id="banner1"><div id="banner2"></div><div id="bannertitle">'.HEAD_TITLE.'</div></div>
|
---|
27 |
|
---|
28 | </div>
|
---|
29 |
|
---|
30 | <div id="outer">
|
---|
31 | <div id="inner">
|
---|
32 | <div id="left">
|
---|
33 | <div class="verticalmenu">
|
---|
34 | <ul>';
|
---|
35 | foreach ($menu as $key=>$value) {
|
---|
36 | echo '<li><a href="'.$value[2].'" title="'.$value[1].'">'.$value[0].'</a></li>';
|
---|
37 | };
|
---|
38 |
|
---|
39 | echo '</ul>
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 | ';
|
---|
43 |
|
---|
44 | } // END function ShowHeader
|
---|
45 |
|
---|
46 | function ShowFoodter()
|
---|
47 | { // BEGIN function ShowFoodter
|
---|
48 | echo ' </div><!-- end inner -->
|
---|
49 | </div><!-- end outer -->
|
---|
50 | <div id="footer"><h1>'.FOOD_TEXT.'</h1></div>
|
---|
51 | </div><!-- end container -->
|
---|
52 | </body></html>';
|
---|
53 | } // END function ShowFoodter
|
---|
54 |
|
---|
55 |
|
---|
56 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.