-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
executable file
·72 lines (68 loc) · 2.45 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
<?php
/*
* index.php
*
* Copyright 2018 Krzysztof Hrybacz <krzysztof@zygtech.pl>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*
*/
?>
<?php
require_once('config.php');
session_start();
if ($_GET['logout']=='true' || $_SESSION['login']=='') {
$_SESSION['login']='';
?>
<html>
<head>
<title>Goldwater Business</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Titillium+Web%3A400%2C300%2C900%7CPT+Sans%3A00&subset=latin" rel="stylesheet">
<link rel="icon" href="icon.png" sizes="100x100">
</head>
<body>
<div class="container">
<img class="right" src="logo.png" />
<h1> Goldwater Business </h1>
</div>
<div class="ribbonlogin"><div class="container">
<h2> LOG IN </h2>
</div></div>
<div class="mainlogin"><div class="container">
<form action="login.php" method="POST">
<div id="box">
<table>
<tr><td>COMPANY:</td><td><input type="text" name="company" pattern="[A-Za-z0-9\S]{1,20}" /></td></tr>
<tr><td>LOGIN:</td><td><input type="text" name="user" pattern="[A-Za-z0-9\S]{1,20}" /></td></tr>
<tr><td>PASS:</td><td><input type="password" name="pass" /></td></tr>
<tr><td></td><td><input type="submit" value="LOG IN" /></td></tr>
<tr><td></td><td><a href="addaccount.php">REGISTER YOUR COMPANY FOR FREE</a></td></tr>
</table>
</div>
</form>
</div></div>
<div class="ribbonlogin"><center><a href="<?php echo $url; ?>/"><img src="uk.jpg" height="50" /></a> <a href="<?php echo $url; ?>/pl/"><img src="pl.png" height="50" /></a></center></div>
</body>
</html>
<?php } else {
?>
<meta http-equiv="refresh" content="0;url=<?php echo $url; ?>/tasks.php">
<?php
}
?>