Implement login facility and basic user handling
[misc/kostenrechnung] / index.php
1 <?php
2 # Register session
3 session_name('W8KLRSESSION');
4 session_start();
5
6 require_once('config.php');
7 require_once('lib/general.php');
8 require_once('lib/menu.php');
9
10 connect_db();
11 check_session();
12
13 $jsfiles = array('lib/json_parse.js');
14 $jscode = '';
15 $menu = menu();
16 $html = process();
17 $debug = debug_info();
18
19 ?>
20 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
21 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">
22 <head>
23 <title>Kostenleistungsrechnung</title>
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
25 <?=load_js($jsfiles, $jscode);?>
26 <link href="stylesheet.css" rel="stylesheet" type="text/css">
27 <link href="style.css" rel="stylesheet" type="text/css">
28 </head>
29 <body>
30 <div id="header">
31 <h1>Kostenrechnung Friesoyther Wasseracht</h1>
32 <?=$menu; ?>
33 </div>
34
35 <div class="content">
36 <?=$html; ?>
37 </div>
38
39 <?=$debug; ?>
40 </body>
41 </html>