diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-03-15 05:16:19 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-03-15 05:16:19 +0000 |
commit | b62c7782ac3910b626ca5b1f7ddc4448a1b30e3a (patch) | |
tree | 5c32325d5bd55224212e1ccde07307d7b325dacb /www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php | |
parent | Do not install .la files again (diff) |
add phpSysInfo 2.0
A php script that displays info about the host being accessed
PR: 35581
Submitted by: Bob Bomar <bob@fly.homeunix.org>
Notes
Notes:
svn path=/head/; revision=56122
Diffstat (limited to 'www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php')
-rw-r--r-- | www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php b/www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php new file mode 100644 index 000000000000..3758d732942b --- /dev/null +++ b/www/phpsysinfo/files/patch-includes-os-class.BSD.common.inc.php @@ -0,0 +1,27 @@ +Index: includes/os/class.BSD.common.inc.php +==================================================================XRCS file: /cvsroot/phpsysinfo/phpsysinfo-dev/includes/os/class.BSD.common.inc.php,v +retrieving revision 1.4 +diff -u -3 -r1.4 class.BSD.common.inc.php +--- includes/os/class.BSD.common.inc.php 4 Feb 2002 01:27:30 -0000 1.4 ++++ includes/os/class.BSD.common.inc.php 17 Feb 2002 06:50:27 -0000 +@@ -179,14 +179,17 @@ + $results[$s]['model'] = $ar_buf[3]; + $results[$s]['media'] = 'Hard Disk'; + $results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049; +- } +- if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) { ++ } else ++ if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) { + $s = $ar_buf[1]; + $results[$s]['model'] = $ar_buf[3]; + $results[$s]['media'] = 'CD-ROM'; + } + } +- return array_values(array_unique($results)); ++ //return array_values(array_unique($results)); ++ //1. more useful to have device names ++ //2. php 4.1.1 array_unique() deletes non-unique values. ++ return $results; + } + + function memory () |