<?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
include 'includes/functions.php4.php';
include 'includes/classes.php4.php';
if (!($index_version==$class_version AND $index_version==$funct_version))
die('Please goto <a href="http://www.phpmyserver.com">PHPMyServer.com</a> and download PHPMyServer again, this is an incompatible version!');
//Start PHPMyServer
$pmsSystem =& pmsModuleStatic();
$pmsFunc =& pmsFuncStatic();
//Sets the version to class pmsModule
$pmsSystem->SetVersion($index_version);
//Create modules array
$pmsLoadedModules = array();
//Load all modules from /modules
//And check on version, if not supported, don't add
foreach($pmsSystem->GetInstalledModules() as $work_module) {
if (file_exists($work_module.'/index.php4.php') AND file_exists($work_module.'/index.php5.php')) {
if ($pmsFunc->IsPHP5()==true)
include $work_module.'/index.php5.php'; //Includes the file
else
include $work_module.'/index.php4.php'; //Includes the file
$module_name = 'pmsmod_'.$work_module;
$tmp_mod_data = new $module_name;
if (is_object($tmp_mod_data)) {
$work_mod_array = $tmp_mod_data->pmsmod_return();
if (isset($work_mod_array) AND isset($work_mod_array['compatible_version']) AND in_array($index_version,$work_mod_array['compatible_version'])) {
$pmsLoadedModules[$work_module] = $work_mod_array;
}
}
}
}
//Send headers to the browser
header("Content-Type: text/xml");
header("Pragma: no-cache");
//Generate XML
echo $pmsSystem->GenerateXML($pmsLoadedModules);
?>