9 assert(
'is_array($hookinfo)');
10 assert(
'array_key_exists("errors", $hookinfo)');
11 assert(
'array_key_exists("info", $hookinfo)');
16 $hookinfo[
'errors'][] =
'[statistics] Could not get configuration: ' . $e->getMessage();
return;
22 if (file_exists($statdir)) {
23 $hookinfo[
'info'][] =
'[statistics] Statistics dir [' . $statdir .
'] exists';
24 if (is_writable($statdir)) {
25 $hookinfo[
'info'][] =
'[statistics] Statistics dir [' . $statdir .
'] is writable';
27 $hookinfo[
'errors'][] =
'[statistics] Statistics dir [' . $statdir .
'] is not writable';
30 $hookinfo[
'errors'][] =
'[statistics] Statistics dir [' . $statdir .
'] does not exists';
33 if (file_exists($inputfile)) {
34 $hookinfo[
'info'][] =
'[statistics] Input file [' . $inputfile .
'] exists';
36 $hookinfo[
'errors'][] =
'[statistics] Input file [' . $inputfile .
'] does not exists';
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
statistics_hook_sanitycheck(&$hookinfo)
Hook to do santity checks.