1 | <?php
|
---|
2 | include_once('global.php');
|
---|
3 |
|
---|
4 | function ShowHeader($Title, $Path, $BodyParam = '')
|
---|
5 | {
|
---|
6 | global $Time_Start, $refresh, $Config;
|
---|
7 | $Time_Start = GetMicrotime(); // Zjisti počáteční čas
|
---|
8 | $Rozcestnik = '<a href="/">Rozcestník</a>';
|
---|
9 | $ScriptName = $_SERVER['SCRIPT_NAME'];
|
---|
10 | while(strpos($ScriptName, '//')!==false)
|
---|
11 | $ScriptName = str_replace('//', '/', $ScriptName);
|
---|
12 | $Cesty = array(
|
---|
13 | '/index.php' => $Rozcestnik,
|
---|
14 | '/missing.php' => $Rozcestnik,
|
---|
15 | '/manualy.php' => $Rozcestnik.' > <a href="/manualy.php">Manuály</a>',
|
---|
16 | '/is/administration_page.php' => $Rozcestnik.' > <a href="/is/administration_page.php">Administrace sítě</a>',
|
---|
17 | '/network.php' => $Rozcestnik.' > <a href="/network.php">Technické informace</a>',
|
---|
18 | '/mapy/mapa_nabidka.php' => $Rozcestnik.' > <a href="mapy/mapa_nabidka.php">Nabídky mapy</a>',
|
---|
19 | '/map/index.php' => $Rozcestnik.' > <a href="/map/">Mapa</a>',
|
---|
20 | '/nabidky_pripojeni.php' => $Rozcestnik.' > <a href="nabidky_pripojeni.php">Nabídky připojení</a>',
|
---|
21 | '/telseznam.php' => $Rozcestnik.' > <a href="/telseznam.php">Telefonní seznam</a>',
|
---|
22 | '/merak.php' => $Rozcestnik.' > <a href="/merakm.php">Měřič spotřeby</a>',
|
---|
23 | '/tkr.php' => $Rozcestnik.' > <a href="/tkr.php">Kanály kabelové televize </a>',
|
---|
24 | '/share/index.php' => $Rozcestnik.' > <a href="/share/index.php">Prohledat sdílení</a>',
|
---|
25 | '/share/firefox.php' => $Rozcestnik.' > <a href="/share/index.php">Prohledat sdílení</a> > <a href="/share/firefox.php">Integrace do prohlížeče</a> ',
|
---|
26 | '/hostlist.php' => $Rozcestnik.' > <a href="/hostlist.php">Seznam počítačů</a>',
|
---|
27 | '/userlist.php' => $Rozcestnik.' > <a href="/userlist.php">Seznam uživatelů</a>',
|
---|
28 | '/farnost/index.php' => $Rozcestnik.' > <a href="/farnost/index.php">Rozpis mší</a>',
|
---|
29 | // Finance
|
---|
30 | '/finance/index.php' => $Rozcestnik.' > <a href="/finance/">Finance</a>',
|
---|
31 | '/finance/spotreba.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/spotreba.php">Spotřeba</a>',
|
---|
32 | '/finance/changes.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/changes.php">Změny</a>',
|
---|
33 | '/finance/tarify.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/tarify.php">Tarify</a>',
|
---|
34 | '/finance/inventory.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/inventory.php">Skladové zásoby</a>',
|
---|
35 | '/finance/clenove.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/clenove.php">Seznam členů</a>',
|
---|
36 | '/finance/zarizeni.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/zarizeni.php">Zařízení</a>',
|
---|
37 | '/finance/strom.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/strom.php">Strom zařízení</a>',
|
---|
38 | '/finance/srovnani.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/srovnani.php">Porovnání tarifů s konkurencí</a>',
|
---|
39 | '/finance/faktury/index.php' => $Rozcestnik.' > <a href="/finance/">Finance</a> > <a href="/finance/faktury/">Faktury za internet</a>',
|
---|
40 | '/is/topologie.php' => $Rozcestnik.' > <a href="/is/topologie.php">Topologie sítě</a>',
|
---|
41 | '/is/dostupnost.php' => $Rozcestnik.' > <a href="/is/dostupnost.php">Dostupnost zařízení</a>',
|
---|
42 | '/statistic/trafficview.php' => $Rozcestnik.' > <a href="/statistic/trafficview.php">Vytížení internetu</a>',
|
---|
43 | '/statistic/index.php' => $Rozcestnik.' > <a href="/statistic/">Statistika</a>',
|
---|
44 | '/statistic/trafficview2.php' => $Rozcestnik.' > <a href="/statistic/trafficview2.php">Statistika</a>',
|
---|
45 | '/statistic/bandwidth.php' => $Rozcestnik.' > <a href="/statistic/bandwidth.php">Zatížení internetu</a>',
|
---|
46 | '/statistic/bandwidth_full.php' => $Rozcestnik.' > <a href="/statistic/bandwidth_full.php">Zatížení internetu všech počítačů</a>',
|
---|
47 | '/download/addfile.php' => $Rozcestnik.' > <a href="/download/addfile.php">Stažení souborů</a>',
|
---|
48 | '/fotbal.php' => $Rozcestnik.' > <a href="/fotbal.php">Fotbal</a>',
|
---|
49 | '/webcam/index.php' => $Rozcestnik.' > <a href="/webcam/index.php">Web kamera</a>',
|
---|
50 | '/mapy/mapa.php' => $Rozcestnik.' > <a href="/mapy/mapa.php">Mapa</a>',
|
---|
51 | '/navody.php' => $Rozcestnik.' > <a href="/navody.php">Návody</a>',
|
---|
52 | '/ukoly.php' => $Rozcestnik.' > <a href="/ukoly.php">Plány do budoucna</a>',
|
---|
53 | '/otevreno.php' => $Rozcestnik.' > <a href="/otevreno.php">Otvírací doby</a>',
|
---|
54 | '/aktuality/index.php' => $Rozcestnik.' > <a href="/aktuality/">Aktuality</a>',
|
---|
55 | '/aktuality/subscription.php' => $Rozcestnik.' > <a href="/aktuality/subscription.php">RSS aktuality</a>',
|
---|
56 | '/sluzby.php' => $Rozcestnik.' > <a href="/sluzby.php">Služby</a>',
|
---|
57 | '/history.php' => $Rozcestnik.' > <a href="/history.php">Historie</a>',
|
---|
58 | '/lanchat/seznam.php' => $Rozcestnik.' > <a href="/lanchat/seznam.php">Historie SunriseChatu</a>',
|
---|
59 | '/lanchat/show.php' => $Rozcestnik.' > <a href="/lanchat/seznam.php">Historie SunriseChatu</a>',
|
---|
60 | '/sunrisechat/history.php' => $Rozcestnik.' > <a href="/sunrisechat/history.php">Historie SunriseChatu</a>',
|
---|
61 | '/sunrisechat/network.php' => $Rozcestnik.' > <a href="/sunrisechat/network.php">Obsah testu sítě SunriseChatu 2.7+</a>',
|
---|
62 | '/sunrisechat/network_old.php' => $Rozcestnik.' > <a href="/sunrisechat/network_old.php">Obsah testu sítě SunriseChatu 2.6</a>',
|
---|
63 | '/sunrisechat/webchat.php' => $Rozcestnik.' > <a href="/sunrisechat/webchat.php">Okno SunriseChatu</a>',
|
---|
64 | '/docs/zapisy/zapisy.php' => $Rozcestnik.' > <a href="/docs/zapisy/zapisy.php">Zápisy ze schůzí</a>',
|
---|
65 | '/jidelna/index.php' => $Rozcestnik.' > <a href="/jidelna">Jídelníček</a>',
|
---|
66 | '/jidelna/menuedit.php' => $Rozcestnik.' > <a href="/jidelna/menuedit.php">Editace jídelníčku</a>',
|
---|
67 | '/backup/index.php' => $Rozcestnik.' > <a href="/backup/index.php">Nastavení zálohování</a>',
|
---|
68 | );
|
---|
69 | echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
70 | <html><head>
|
---|
71 | <meta http-equiv="Content-Language" content="cs">
|
---|
72 | <meta http-equiv="Content-Type" content="text/html; charset=');
|
---|
73 | echo($Config['Web']['Charset']);
|
---|
74 |
|
---|
75 | echo('">');
|
---|
76 | if (isset($refresh)) echo('<meta http-equiv="Refresh" content="'.$refresh."\">\n");
|
---|
77 | // <link href="style.css" rel="stylesheet" type="text/css">
|
---|
78 | echo("\n".' <title>Centrála - '.$Path.'</title>
|
---|
79 | </head><body style="font-family: sans-serif;" '.$BodyParam.'>
|
---|
80 | <div style="padding: 3px; font-size: 20px; border-style: solid; border-color: blue; border-width: 1; background-color: #F0F0FF; margin-bottom: 4px;">'.$Title.'</div>
|
---|
81 | <div style="border-style: solid; border-bottom-color: gray; border-width: 0 0 1 0; margin-bottom: 3px; padding-bottom: 2px;"><strong>Navigace >></strong> '.$Cesty[$ScriptName].'</div>');
|
---|
82 | }
|
---|
83 |
|
---|
84 | function ShowFooter()
|
---|
85 | {
|
---|
86 | global $Time_Start;
|
---|
87 | $Time = floor((GetMicrotime() - $Time_Start)*100)/100;
|
---|
88 | echo('<div style="border-style: solid; border-top-color: gray; border-width: 1 0 0 0; margin-top: 7px; padding-top: 2px;" align="center">
|
---|
89 | <i style="font-size: 10;">| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770 | Vygenerováno za '.$Time.' s | Verze: 1.0 | Naposledy aktualizováno: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i>
|
---|
90 | </div>');
|
---|
91 | //ShowArray($GLOBALS);
|
---|
92 | echo('</body></html>');
|
---|
93 | }
|
---|
94 |
|
---|
95 | ?>
|
---|