-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
241 lines (96 loc) · 3.22 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
if(file_exists('mysql.php')){
include('config.php');
$infos='';
if(isset($you_logged_in) AND $you_logged_in==true){
}else{
include('login.php');
}
?>
<!doctype html>
<html lang="de">
<head>
<?php
$index_page=true;
include('tamplate/header.php');
?>
<title><?php echo $language['title_login']; ?></title>
</head>
<body id="indexpage">
<?php
include('tamplate/nav.php');
echo $infos;
?>
<form class="well form-horizontal" action="index.php" method="post" id="contact_form">
<fieldset>
<?php
if(isset($you_logged_in) AND $you_logged_in==true){
echo "<div class='alert alert-success' role='alert'>
<span class='glyphicon glyphicon-ok' aria-hidden='true'></span>
<span class='sr-only'>".$language['login_name_1']." ".$you_logged_in_name."</span>
".$language['text_login'].
</div>";
} else {
if(isset($_GET['logout'])){
echo "<div class='alert alert-success' role='alert'>
<span class='glyphicon glyphicon-ok' aria-hidden='true'></span>
<span class='sr-only'>Ok:</span>
".$language['succes_login'].
</div>";
}
?>
<h1><?php echo $language['user_login_text']; ?></h1>
<div class="form-group">
<label class="col-md-4 control-label"><?php echo $language['admin_nickname']; ?></label>
<div class="col-md-4 inputGroupContainer">
<div class="input-group">
<span class="input-group-addon">
<i class="glyphicon glyphicon-user"></i>
</span>
<input type="text" placeholder="<?php echo $language['placeholder_name']; ?>" class="form-control" name="username" value="" require>
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" ><?php echo $language['admin_password']; ?></label>
<div class="col-md-4 inputGroupContainer">
<div class="input-group">
<span class="input-group-addon">
<i class="glyphicon glyphicon-lock"></i>
</span>
<input type="password" placeholder="<?php echo $language['placeholder_password']; ?>" class="form-control" name="pw" value="" require>
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label"></label>
<div class="col-md-4">
<button type="submit" name="submit" class="btn btn-warning">
<?php echo $language['placeholder_submit']; ?>
<span class="glyphicon glyphicon-send"></span>
</button>
</div>
</div>
</fieldset>
</form>
<?php
}
}else{
?>
<html lang="de">
<head>
<?php
include('tamplate/header.php');
?>
<title><?php echo $language['title_install']; ?></title>
</head>
<body>
<?php
include('install/install.php');
}
if(isset($footer_aktive) AND $footer_aktive=='true'){
include('tamplate/footer.php');
}
?>
</body>
</html>