forked from sdn4nigeria/monitoring-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
/
login.php
28 lines (24 loc) · 857 Bytes
/
login.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
<?php
// Author: Alberto González Palomo <http://sentido-labs.com>
// ©2013 Alberto González Palomo <http://sentido-labs.com>
// The author grants Stakeholder Democracy Network Ltd.
// a sublicensable, assignable, royalty free, including the rights
// to create and distribute derivative works, non-exclusive license
// to this software.
// This makes any errors be displayed on the web page:
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once "../_backend/lib/session.php";
require_once "../_backend/lib/data.php";
$bin_root = "../../bin/";
$data_root = "/var/www/data/";
$backup_root = "/var/www/data/backup/";
header("Content-type: text/html; charset=UTF-8");
if (!login($_POST)) {
$data = login_request();
include "forms/incident-report-login-form.php";
}
else {
include "forms/incident-report-logout-form.php";
}
?>