Files
ICEcoder/processes/on-bug-check.php
Matt Pass 2ea0ae8793 Die if not logged in to protect files
Avoids risk of them being run by visiting URL when not logged in
2014-10-18 21:09:32 +01:00

11 lines
414 B
PHP

<?php
if (!isset($_SESSION['loggedIn'])) {
die('Sorry, not logged in.');
}
// Purpose: This file is run after a bug check, has $result string and $status arrays available to it
// Langs: PHP only
// Example:
// $fh = fopen(dirname(__FILE__)."/../bug-logs.log", 'a');
// fwrite($fh, "Bug check on: ".date("D dS M Y h:i:sa")."\nresult: ".$result.", status array:".var_export($status, true)."\n");
// fclose($fh);
?>