* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme

- Adding SM2 panel [SME: 13004]
- Upgrade to phpsysinfo 3.4.4
- Add code to delete inline styles and add css to make it look better.
- version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
2025-05-14 16:14:01 +01:00
parent 80b1da5fa5
commit c8ce77259d
952 changed files with 51341 additions and 28699 deletions

View File

@@ -8,7 +8,7 @@
* @package PSI
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
* @version SVN: $Id: autoloader.inc.php 660 2012-08-27 11:08:40Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
@@ -22,7 +22,7 @@ error_reporting(E_ALL | E_STRICT);
*
* @return void
*/
function __autoload($class_name)
function psi_autoload($class_name)
{
//$class_name = str_replace('-', '', $class_name);
@@ -30,8 +30,8 @@ function __autoload($class_name)
$dirs = array('/plugins/'.strtolower($class_name).'/', '/includes/mb/', '/includes/ups/');
foreach ($dirs as $dir) {
if (file_exists(APP_ROOT.$dir.'class.'.strtolower($class_name).'.inc.php')) {
include_once APP_ROOT.$dir.'class.'.strtolower($class_name).'.inc.php';
if (file_exists(PSI_APP_ROOT.$dir.'class.'.strtolower($class_name).'.inc.php')) {
include_once PSI_APP_ROOT.$dir.'class.'.strtolower($class_name).'.inc.php';
return;
}
@@ -41,19 +41,21 @@ function __autoload($class_name)
$dirs = array('/includes/', '/includes/interface/', '/includes/to/', '/includes/to/device/', '/includes/os/', '/includes/plugin/', '/includes/xml/', '/includes/web/', '/includes/error/', '/includes/js/', '/includes/output/');
foreach ($dirs as $dir) {
if (file_exists(APP_ROOT.$dir.'class.'.$class_name.'.inc.php')) {
include_once APP_ROOT.$dir.'class.'.$class_name.'.inc.php';
if (file_exists(PSI_APP_ROOT.$dir.'class.'.$class_name.'.inc.php')) {
include_once PSI_APP_ROOT.$dir.'class.'.$class_name.'.inc.php';
return;
}
}
$error = Error::singleton();
$error = PSI_Error::singleton();
$error->addError("_autoload(\"".$class_name."\")", "autoloading of class file (class.".$class_name.".inc.php) failed!");
$error->addError("psi_autoload(\"".$class_name."\")", "autoloading of class file (class.".$class_name.".inc.php) failed!");
$error->errorsAsXML();
}
spl_autoload_register('psi_autoload');
/**
* sets a user-defined error handler function
*
@@ -66,8 +68,10 @@ function __autoload($class_name)
*/
function errorHandlerPsi($level, $message, $file, $line)
{
$error = Error::singleton();
$error->addPhpError("errorHandlerPsi : ", "Level : ".$level." Message : ".$message." File : ".$file." Line : ".$line);
$error = PSI_Error::singleton();
if ((PSI_DEBUG && !preg_match("/^fgets\(|^stream_select\(/", $message)) || (($level !== 2) && ($level !== 8)) || !preg_match("/^[^:]*: open_basedir |^fopen\(|^fwrite\(|^is_readable\(|^file_exists\(|^fgets\(|^stream_select\(/", $message)) { // disable open_basedir, fopen, is_readable, file_exists, fgets and stream_select warnings and notices
$error->addPhpError("errorHandlerPsi : ", "Level : ".$level." Message : ".$message." File : ".$file." Line : ".$line);
}
}
set_error_handler('errorHandlerPsi');