Commit a0d7a3d8 authored by Franco Fichtner's avatar Franco Fichtner

src: lol, PHP

parent 45396cc2
......@@ -2059,7 +2059,7 @@ EOD;
$platform = $g['product_name'];
$sysDescr = "{$g['product_name']} " . php_uname("n") .
" {$version} {$platform} " . php_uname("s") .
" " . php_uname("r") . " " . php_uname("p");
" " . php_uname("r") . " " . trim(shell_exec('uname -p'));
$snmpdconf .= <<<EOD
system := 1
......
......@@ -69,7 +69,7 @@ $crash_report_header = sprintf(
trim(file_get_contents('/usr/local/opnsense/version/opnsense')),
file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '',
trim(shell_exec('/usr/local/bin/openssl version')),
php_uname('p'),
trim(shell_exec('uname -p')),
shell_exec('/sbin/sysctl -b kern.hostuuid'),
date('r')
);
......
......@@ -141,7 +141,7 @@ function system_api_versions()
$result = array();
$result[] = sprintf('%s %s-%s', $g['product_name'], explode('-', trim(file_get_contents('/usr/local/opnsense/version/opnsense')))[0], php_uname('p'));
$result[] = sprintf('%s %s-%s', $g['product_name'], explode('-', trim(file_get_contents('/usr/local/opnsense/version/opnsense')))[0], trim(shell_exec('uname -p')));
$result[] = php_uname('s') . ' ' . php_uname('r');
$result[] = exec('/usr/local/bin/openssl version');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment