-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (31 loc) · 1.02 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
<?php
session_start();
if(isset($_POST) && $_POST) {
$_SESSION['user_id'] = $_POST['user_id'];
}
if(isset($_SESSION['user_id'])) {
header('Location: app.php?t=viewinvoices');
}
require_once('config.php');
$elements = new Facturi_Elements;
echo $elements->header();
?>
<div class="wrapper">
<div id="login_form" class="login_form">
<form id="do_login_form" name="form1" method="post" action="">
<div class="login_form_block">
<label for="username">User:</label>
<input id="login_user" name="username" type="text" />
</div>
<div class="login_form_block">
<label for="password">Password:</label>
<input id="login_pass" name="password" type="password" />
</div>
<input type="hidden" id="login_id" name="user_id" />
<div class="login_form_block">
<button id="login_button">Login</button>
</div>
</form>
</div>
</div>
<?php echo $elements->footer(); ?>