22 global $ilUser,$rbacsystem,
$lng;
24 $count_limit = (bool)$ilUser->getPref(
'systemcheck_count_limit');
25 $age_limit = (bool)$ilUser->getPref(
'systemcheck_age_limit');
26 $type_limit = $ilUser->getPref(
'systemcheck_type_limit');
28 include_once
"classes/class.ilValidator.php";
32 $possible_modes = $validator->getPossibleModes();
33 foreach($possible_modes as $possible_mode)
35 $pref_key =
'systemcheck_mode_'.$possible_mode;
36 $modes[$possible_mode] = (bool)$ilUser->getPref($pref_key);
46 $validator->setMode(
"all",
false);
48 $used_modes = array();
49 foreach($modes as $mode => $value)
51 $validator->setMode($mode,(
bool) $value);
52 $used_modes[] = $mode.
'='.$value;
55 $scan_log = $validator->validate();
57 $mode = $lng->txt(
"scan_modes").
": ".implode(
', ',$used_modes);
60 echo $lng->txt(
"scanning_system");
63 if ($logging ===
true)
65 echo $lng->txt(
"view_log");
68 $validator->writeScanLogLine($mode);
70 $echo = ob_get_contents();
73 $echo = preg_replace(
"/<br\/>/",
"\n",$echo);
74 $echo = preg_replace(
"/<br \/>/",
"\n",$echo);
75 $echo = preg_replace(
"/<br>/",
"\n",$echo);