Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

+15 -10
View File
@@ -12,16 +12,21 @@
namespace IPS\core\setup\upg_106138;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Db;
use IPS\Settings;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.6.8 Beta 1 Upgrade Code
*/
class _Upgrade
class Upgrade
{
/**
* Reorganise tracking code
@@ -32,23 +37,23 @@ class _Upgrade
{
/* Move code to the appropriate setting */
switch( \IPS\Settings::i()->ipbseo_ga_provider )
switch( Settings::i()->ipbseo_ga_provider )
{
case 'ga':
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'ga_enabled', 'conf_value' => 1, 'conf_default' => 0, 'conf_app' => 'core' ), TRUE );
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'ga_code', 'conf_value' => \IPS\Settings::i()->ipseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'ga_enabled', 'conf_value' => 1, 'conf_default' => 0, 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'ga_code', 'conf_value' => Settings::i()->ipseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
break;
case 'piwik':
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'matomo_enabled', 'conf_value' => 1, 'conf_default' => 0, 'conf_app' => 'core' ), TRUE );
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'matomo_code', 'conf_value' => \IPS\Settings::i()->ipseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'matomo_enabled', 'conf_value' => 1, 'conf_default' => 0, 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'matomo_code', 'conf_value' => Settings::i()->ipseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
break;
case 'custom':
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'custom_body_code', 'conf_value' => \IPS\Settings::i()->ipbseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'custom_page_view_js', 'conf_value' => \IPS\Settings::i()->ipbseo_ga_paginatecode, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'custom_body_code', 'conf_value' => Settings::i()->ipbseo_ga, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'custom_page_view_js', 'conf_value' => Settings::i()->ipbseo_ga_paginatecode, 'conf_default' => "", 'conf_app' => 'core' ), TRUE );
break;
}