/users/patterns/www/index.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
<?php    
session_start
();
print 
'<script src="javascript/jquery.s.min.js"></script>';
    
$action $_GET['action'];
    function 
lan_de ()
{
$_SESSION['lang'] = 'de';
}
        
function  
lan_en ()
{
$_SESSION['lang'] = 'en';
}
    
switch (
$action) {
    case 
'lan_de'lan_de (); break;
    case 
'lan_en'lan_en (); break;
}  
    
    if(
$_SESSION['lang'] == 'de'){    
    
$page 'Startseite deutsch';
    
//include ( './counter/counter.php');
    //addinfo($page);
    
include './templates/header_w_nav.php';
    
//include './templates/header_w_nav_winter.php';
    
include './startseite.php';
    
//include './news.html';
    
} else {
            
$page 'Startseite englisch';
            
//include ( './counter/counter.php');
            //addinfo($page);
            
include './templates/header_w_nav_en.php';
            
//include './templates/header_w_nav_en_winter.php';
            
include './startseite_en.php';
        }
    
//echo '</div>';
    /*echo '<h1>'.$_SERVER["DOCUMENT_ROOT"].'</h1>';*/
    
include './templates/foot.html';
?>