This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Incam_SGD/bin/diagtools/winDiag.php

22 lines
488 B
PHP

<?php
/*
$template=file_get_contents('ReportTemplate.html');
$rep=array();
$rep['running processes']=shell_exec('tasklist');
$rep['services']=shell_exec('sc query');
$rep['system path']=shell_exec('path');
$rep['environment variables']=shell_exec('set');
$report=array();
foreach ($rep as $test=>$results){
$test=ucwords($test);
$report[]=str_replace(array('[heading]','[content]'),array($test,$results),$template);
}
$report=join('',$report);
echo $report;
*/
?>