⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class.mbm5.inc.php

📁 这是一个可以显示localhost 的系统信息的php 生成网页
💻 PHP
字号:
<?php //// phpSysInfo - A PHP System Information Script// http://phpsysinfo.sourceforge.net///// This program is free software; you can redistribute it and/or// modify it under the terms of the GNU General Public License// as published by the Free Software Foundation; either version 2// of the License, or (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.//// $Id: class.mbm5.inc.php,v 1.7 2007/02/18 19:11:31 bigmichi1 Exp $class mbinfo {	var $buf_label;	var $buf_value;	function mbinfo() {		$buffer = rfts( APP_ROOT . "/data/MBM5.csv" );		if( strpos( $buffer, ";") === false ) {			$delim = ",";		} else {			$delim = ";";		}		$buffer = split( "\n", $buffer );		$this->buf_label = split( $delim, $buffer[0] );		$this->buf_value = split( $delim, $buffer[1] );	}		function temperature() {		$results = array();		$intCount = 0;				for( $intPosi = 3; $intPosi < 6; $intPosi++ ) { 			$results[$intCount]['label'] = $this->buf_label[$intPosi];			$results[$intCount]['value'] = $this->buf_value[$intPosi];			$results[$intCount]['limit'] = '70.0';			$intCount++;		}		return $results;	} 		function fans() {		$results = array();		$intCount = 0;				for( $intPosi = 13; $intPosi < 16; $intPosi++ ) {			$results[$intCount]['label'] = $this->buf_label[$intPosi];			$results[$intCount]['value'] = $this->buf_value[$intPosi];			$results[$intCount]['min'] = '3000';			$intCount++;		}		return $results;	} 		function voltage() {		$results = array();		$intCount = 0;				for( $intPosi = 6; $intPosi < 13; $intPosi++ ) {			$results[$intCount]['label'] = $this->buf_label[$intPosi];			$results[$intCount]['value'] = $this->buf_value[$intPosi];			$results[$intCount]['min'] = '0.00';			$results[$intCount]['max'] = '0.00';			$intCount++;		}		return $results;	} } ?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -