-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
96 lines (68 loc) · 3.12 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
<?php
# this must be the first thing in this file because we might need to call header()
require_once ("APP/globals.php"); # for $pg_encrypt_key
$config_file = "../gms_etc/config.ini";
if(!is_readable($config_file)){
header("Location: setup.php");
}
require_once("APP/dbcon/php_functions.php"); # for pg_encrypt();
$encoded_configs = file_get_contents($config_file);
$decoded_configs = pg_encrypt($encoded_configs,$pg_encrypt_key,"decode");
$config = parse_ini_string($decoded_configs, true);
?>
<!--
*** Date modified 12-29-2016
***
GSuite Management System
Copyright (C) 2017 Michael Keough (Keoflex.com, MichaelKeough.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Login Form</title>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<body>
<div class="login">
<div class="login-screen">
<div class="app-title">
<h1 >
<b style="color:#848484; margin-left:10px; font-size: 30px">[</b>
<b style="color:#3C78F1; margin-left:10px; font-size: 30px">G</b>
<b style="color:#F70408; margin-left:10px;font-size: 30px">M</b>
<b style="color:#f1b500; margin-left:10px;font-size: 30px">S</b>
<b style="color:#848484; margin-left:10px; font-size: 30px">]</b>
</h1>
<h2><span>GSuite Management System</h2>
</div>
<form method="post" action="APP/">
<div class="login-form">
<div class="control-group">
<input type="text" class="login-field" value="" name="SIGNIN-USERNAME" placeholder="username" id="SIGNING-USERNAME">
<label class="login-field-icon fui-user" for="login-name"></label>
</div>
<div class="control-group">
<input type="password" class="login-field" value="" name="signin-password" placeholder="password" id="signin-password">
<label class="login-field-icon fui-lock" for="login-pass"></label>
</div>
<input type="submit" class="btn btn-primary btn-large btn-block" value="login" />
<!-- <a class="login-link" href="#">Lost your password?</a> -->
</div>
</form
</div>
</div>
</body>
</body>
</html>