forked from do1eh/geodetective
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplateohne.php
More file actions
37 lines (24 loc) · 785 Bytes
/
Copy pathtemplateohne.php
File metadata and controls
37 lines (24 loc) · 785 Bytes
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
<?php
//Sprache
declare(strict_types=1);
session_start();
//Wenn nicht angemeldet zurück zur Anmeldung
if (!isset($_SESSION['userid'])) {
session_destroy();
echo "<script>window.location.href='../splashscreen.php';</script>";
//header('location: ../splashscreen.php');
exit(1);
}
include('credentials.php');
$conn = mysqli_connect($server, $user, $pass,$dbase);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
//Alle GET Variablen einlesen
foreach($_GET as $key => $val){$$key=htmlspecialchars($val);}
foreach($_POST as $key => $val) {$$key=htmlspecialchars($val);}
if (!isset($_SESSION['language'])) {
$_SESSION['language']='de';
}
include('../locale/' . $_SESSION['language'] . '.php');
?>