Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2976 → Rev 3037

/web/acc/phpsysinfo/includes/output/class.Webpage.inc.php
28,7 → 28,7
/**
* configured indexname
*
* @var String
* @var string
*/
private $_indexname;
 
35,7 → 35,7
/**
* configured language
*
* @var String
* @var string
*/
private $_language;
 
42,7 → 42,7
/**
* configured template
*
* @var String
* @var string
*/
private $_template;
 
56,7 → 56,7
/**
* configured bootstrap template
*
* @var String
* @var string
*/
private $_bootstrap_template;
 
/web/acc/phpsysinfo/includes/output/class.WebpageXML.inc.php
174,8 → 174,8
*/
public function run()
{
header("Cache-Control: no-cache, must-revalidate\n");
header("Content-Type: text/xml\n\n");
header('Cache-Control: no-cache, must-revalidate');
header('Content-Type: text/xml');
$xml = $this->_xml->getXml();
echo $xml->asXML();
}
228,18 → 228,16
parent::__construct();
 
if (is_string($plugin) && ($plugin !== "")) {
$plugin = strtolower($plugin);
if ($plugin === "complete") {
if (preg_match('/[^A-Za-z]/', $plugin)) {
$this->_blockName = ' '; // mask wrong plugin name
} elseif (($plugin = strtolower($plugin)) === "complete") {
$this->_completeXML = true;
} elseif (in_array($plugin, array('vitals','hardware','memory','filesystem','network','voltage','current','temperature','fans','power','other','ups'))) {
$this->_blockName = $plugin;
} elseif (in_array($plugin, CommonFunctions::getPlugins())) {
$this->_pluginName = $plugin;
} else {
$validblocks = array('vitals','hardware','memory','filesystem','network','voltage','current','temperature','fans','power','other','ups');
if (in_array($plugin, $validblocks)) {
$this->_blockName = $plugin;
} elseif (in_array($plugin, CommonFunctions::getPlugins())) {
$this->_pluginName = $plugin;
} else {
$this->_blockName = ' '; //disable all blocks
}
$this->_blockName = ' '; // disable all blocks
}
}
$this->_prepare();
/web/acc/phpsysinfo/includes/output/class.WebpageXSLT.inc.php
49,7 → 49,7
$domxsl->load($xslfile);
$xsltproc = new XSLTProcessor;
$xsltproc->importStyleSheet($domxsl);
header("Cache-Control: no-cache, must-revalidate\n");
header('Cache-Control: no-cache, must-revalidate');
echo $xsltproc->transformToXML($domxml);
}
}