Minor bug fixes and setting up test database
[PHPCredLocker.git] / cron.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
<?php
/** System entry point for cron calls
*
* Copyright (C) 2012 B Tasker
* Released under GNU GPL V2
* See LICENSE
*
*/
session_start();
ob_start();
// Cronjobs are called from the CLI which will ignore the header. Redirect anyone in a browser
header("Location: index.php");
 
define('_CREDLOCK',1);
 
 
 
error_reporting(0);
 
// Load the framework
require_once 'lib/Framework/main.php';
 
 
// pass off to the handler
include_once 'lib/CronHandler.php';