Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -60,7 +60,7 @@ class _Server extends \IPS\Node\Model
public static function constructFromData( $data, $updateMultitonStoreIfExists = TRUE )
{
/* Initiate an object */
$classname = 'IPS\\nexus\Hosting\\' . ucfirst( $data['server_type'] ) . '\\Server';
$classname = 'IPS\\nexus\Hosting\\' . mb_ucfirst( $data['server_type'] ) . '\\Server';
$obj = new $classname;
$obj->_new = FALSE;
@@ -157,7 +157,7 @@ class _Server extends \IPS\Node\Model
{
$types[ mb_strtolower( $file ) ] = 'nexus_server_' . $file;
$class = 'IPS\nexus\Hosting\\' . ucfirst( $file ) . '\Server';
$class = 'IPS\nexus\Hosting\\' . mb_ucfirst( $file ) . '\Server';
$extraFields[ mb_strtolower( mb_substr( $file, 0, -4 ) ) ] = $class::extraFormFields( $this );
$toggles[ mb_strtolower( $file ) ] = array_keys( $extraFields[ mb_strtolower( mb_substr( $file, 0, -4 ) ) ] );
}
@@ -221,13 +221,13 @@ class _Server extends \IPS\Node\Model
unset( $values['server_nameservers_default'] );
unset( $values['server_monitor_on'] );
$values = call_user_func( array( 'IPS\nexus\Hosting\\' . ucfirst( $values['server_type'] ) . '\Server', '_formatFormValues' ), $values );
$values = call_user_func( array( 'IPS\nexus\Hosting\\' . mb_ucfirst( $values['server_type'] ) . '\Server', '_formatFormValues' ), $values );
foreach ( new \DirectoryIterator( \IPS\ROOT_PATH . '/applications/nexus/sources/Hosting' ) as $file )
{
if ( !$file->isDot() and mb_substr( $file, 0, 1 ) !== '.' and $file->isDir() )
{
$class = 'IPS\nexus\Hosting\\' . ucfirst( $file ) . '\Server';
$class = 'IPS\nexus\Hosting\\' . mb_ucfirst( $file ) . '\Server';
foreach ( array_keys( $class::extraFormFields( $this ) ) as $k )
{
unset( $values[ $k ] );