/usr/share/phpsysinfo/includes/output/class.Output.inc.php is in phpsysinfo 3.0.17-1ubuntu1.
This file is owned by nobody:nogroup, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | <?php
/**
* basic output functions
*
* PHP version 5
*
* @category PHP
* @package PSI_Output
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.Output.inc.php 569 2012-04-16 06:08:18Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* basic output functions for all output formats
*
* @category PHP
* @package PSI_Output
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version Release: 3.0
* @link http://phpsysinfo.sourceforge.net
*/
abstract class Output
{
/**
* error object for logging errors
*
* @var Error
*/
protected $error;
/**
* call the parent constructor and check for needed extensions
*/
public function __construct()
{
CommonFunctions::checkForSVN();
CommonFunctions::checkForExtensions();
$this->error = Error::singleton();
$this->_checkConfig();
}
/**
* read the config file and check for existence
*
* @return void
*/
private function _checkConfig()
{
if (!is_readable(APP_ROOT.'/config.php')) {
$this->error->addError('file_exists(config.php)', 'config.php does not exist or is not readable by the webserver in the phpsysinfo directory.');
} else {
include_once APP_ROOT.'/config.php';
}
if ($this->error->errorsExist()) {
$this->error->errorsAsXML();
}
}
}
?>
|