Version 4.5.0

This commit is contained in:
Neo committed 2025-12-19 05:51:58 -08:00
1 parent 1a0c7fd3c2
commit f79dcf067a
3791 files changed
+248032 -76372

No files matched your search

+12 -12
View File
@@ -11,7 +11,7 @@
namespace IPS\core\setup\upg_32000;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
@@ -91,7 +91,7 @@ class _Upgrade
CHANGE COLUMN rep_points rep_points INT(10) NOT NULL DEFAULT 0;"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 3 ) ) );
@@ -982,7 +982,7 @@ class _Upgrade
ADD INDEX notify_meta_key ( notify_meta_key );"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 5 ) ) );
@@ -1130,7 +1130,7 @@ class _Upgrade
'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "message_posts CHANGE COLUMN msg_ip_address msg_ip_address VARCHAR(46) NOT NULL DEFAULT '';"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 8 ) ) );
@@ -1170,7 +1170,7 @@ class _Upgrade
CHANGE COLUMN pp_setting_count_visitors pp_setting_count_visitors TINYINT(1) NOT NULL DEFAULT 0;"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 9 ) ) );
@@ -1221,7 +1221,7 @@ class _Upgrade
ADD INDEX starter_id (starter_id, forum_id, approved, start_date);"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 11 ) ) );
@@ -1254,7 +1254,7 @@ class _Upgrade
ADD INDEX queued (queued,pdelete_time)"
) ) );
if ( count( $toRun ) )
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 12 ) ) );
@@ -1466,7 +1466,7 @@ class _Upgrade
include( $file->getPathname() . '/conf.php' );/*noLibHook*/
if( is_array($LOGIN_CONF) AND count($LOGIN_CONF) )
if( \is_array($LOGIN_CONF) AND \count($LOGIN_CONF) )
{
\IPS\Db::i()->update( 'login_methods', array( 'login_custom_config' => @serialize( $LOGIN_CONF ) ), array( "login_folder_name=?", $file->getFilename() ) );
}
@@ -1499,7 +1499,7 @@ class _Upgrade
$convertFrom = $_SESSION['upgrade_options']['core']['32000']['avatar_or_photo'];
/* Init */
$st = intval( \IPS\Request::i()->extra );
$st = \intval( \IPS\Request::i()->extra );
$did = 0;
$each = 200;
@@ -1581,8 +1581,8 @@ class _Upgrade
$thumbnail = file_put_contents( \IPS\Settings::i()->upload_dir . '/' . $thumbnailName, (string) $image );
$update['pp_thumb_photo'] = $thumbnailName;
$update['pp_thumb_width'] = intval( $image->width );
$update['pp_thumb_height'] = intval( $image->height );
$update['pp_thumb_width'] = \intval( $image->width );
$update['pp_thumb_height'] = \intval( $image->height );
}
catch( \InvalidArgumentException $e )
{
@@ -1598,7 +1598,7 @@ class _Upgrade
}
}
if( count($update) )
if( \count($update) )
{
\IPS\Db::i()->update( 'profile_portal', $update, 'pp_member_id=' . $r['pp_member_id'] );
}