<?PHP
//
// PHPMyServer - A PHP System Information Script - Old project name was PHPMyStats
// http://www.phpmyserver.com/
//
// 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: index.php/index.php4.php/index.php5.php/etc ,v 2.6 13-08-2005 16:30 precision Exp $
//
// Date in $Id is as DD-MM-YY
//PHPMyServer - XML Server v2.6
//Build version:
// split version at the DOT, before the DOT is the CORE version, AFTER the DOT is de RELEASE
//Every new release will get an higher number, so when i released version 2 of the script for the 126523st time, its version v2.126523
//Copyright 2004-2005 by KingOfDos Intra/Extra/Internet WebServices
//http://www.phpmyserver.com
//http://www.kingofdos.com
//http://www.kingofdos.com
$val = array();
if (function_exists('pmsFuncStatic'))
$func =& pmsFuncStatic();
if (isset($func) AND $func->OSIsWindows()) {
if ($drivedata = $func->shell_mexec('.\harddisk\drvfind.exe'.$onlyhdd)) {
$drivedata = explode(',',$drivedata);
foreach($drivedata as $drive_no => $drive_str) {
if (!eregi('a:',$drive_str) AND !eregi('b:',$drive_str))
$val[] = str_replace('\\','',$drive_str);
}
//$val[] = 'h:';
} else
$var[] = 'Can\'t open drvfind.exe';
} else {
$var[] = 'No linux support';
}
?>