1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php session_start(); $sprache = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; if ( preg_match('/de/i', $sprache) ) {$_SESSION['lang'] = 'de'; } else { $_SESSION['lang'] = 'en'; } /*header("Location: http://patterns.bplaced.net/index.php");*/ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'index.php'; header("Location: http://$host$uri/$extra"); exit;
?>
|