* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
12
root/opt/phpsysinfo/tools/cputest.php
Normal file
12
root/opt/phpsysinfo/tools/cputest.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
header('Content-Type: text/plain');
|
||||
$filename = '/proc/cpuinfo';
|
||||
$contents=file_get_contents($filename);
|
||||
echo "----------".$filename."----------\n";
|
||||
if (strlen($contents)>0) {
|
||||
if (substr($contents, -1)!="\n") {
|
||||
$contents.="\n";
|
||||
}
|
||||
$contents = preg_replace('/^(\s*serial\s*:\s*)(\S+)/im', '$1xxxxxxxxxxxxxxxx', $contents);
|
||||
echo $contents;
|
||||
}
|
Reference in New Issue
Block a user