Line | |
---|
1 | <?php
|
---|
2 | session_start();
|
---|
3 |
|
---|
4 | include('config.php');
|
---|
5 |
|
---|
6 | function __autoload($class_name) {
|
---|
7 | require_once 'class/'.$class_name . '.php';
|
---|
8 | }
|
---|
9 |
|
---|
10 | $database = new database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password'], $Config['Database']['Database']);
|
---|
11 | $database->Prefix = $Config['Database']['Prefix'];
|
---|
12 | $database->charset($Config['Database']['Charset']);
|
---|
13 |
|
---|
14 | include('language_cz.php');
|
---|
15 | include('frontend.php');
|
---|
16 |
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
20 | function show_header() {
|
---|
21 | global $menu;
|
---|
22 | echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
23 | <HTML>
|
---|
24 | <HEAD>
|
---|
25 | <META http-equiv="Content-Language" content="cs">
|
---|
26 | <META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
---|
27 | <link rel="alternate" title="RSS aktuality" href="rss.php" type="application/rss+xml">
|
---|
28 | <TITLE>'.HEAD_TITLE.'</TITLE>
|
---|
29 | <style type="text/css" media="screen">@import url(style.css);</style>
|
---|
30 | </HEAD>
|
---|
31 | <body>
|
---|
32 | <div id="header">
|
---|
33 |
|
---|
34 |
|
---|
35 | <p><span>Studio de conception et réalisation multimedia</span></p>
|
---|
36 | <div id="coin"></div>
|
---|
37 | </div>
|
---|
38 | <div id="gauche">
|
---|
39 | <div id="droite">
|
---|
40 | <div id="menu">
|
---|
41 |
|
---|
42 | <h2>Navigation</h2>
|
---|
43 | <ul>';
|
---|
44 | foreach ($menu as $key=>$value) {
|
---|
45 | echo '<li><a href="'.$value[2].'" title="'.$value[1].'">'.$value[0].'</a></li>';
|
---|
46 | };
|
---|
47 |
|
---|
48 | echo '</ul>
|
---|
49 | </div>';
|
---|
50 | }
|
---|
51 |
|
---|
52 | function show_footer() {
|
---|
53 | echo '
|
---|
54 | <div id="footer">
|
---|
55 | <div>
|
---|
56 | <span class="left"><a href="http://alexandrejoseph.com/">Designed by Alexandre Joseph</a></span>
|
---|
57 | <a href="?admin">© '.FOOD_TEXT.'</a>
|
---|
58 | </div>
|
---|
59 |
|
---|
60 | </div>
|
---|
61 | </div>
|
---|
62 | </div>
|
---|
63 | </body>
|
---|
64 |
|
---|
65 | </html>';
|
---|
66 | }
|
---|
67 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.