Added issue tracking details to readme. master
[PHPCredLocker.git] /
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
<?php
/** API Entry Point
*
* Copyright (C) 2012 B Tasker
* Released under GNU AGPL V3
* See LICENSE
*
*/

session_start();
error_reporting(0);

ob_start();


define('_CREDLOCK',1);

// Prevent Caching
header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
header('Pragma: no-cache');
header('Expires: Thu, 01 Jan 1970 00:00:00 GMT');

// Load the framework
require_once 'lib/Framework/main.php';


 if (  BTMain::getSessVar('Banned') ){
	echo "Excessive authentication attempts";
    die;
    }

require_once 'lib/API.php';

?>