Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -589,6 +589,7 @@ class _Install
|
||||
'sys_module_position' => ++$modulePos,
|
||||
'sys_module_area' => $area,
|
||||
'sys_module_default_controller' => $data['default_controller'],
|
||||
'sys_module_default' => (int) ( isset( $data['default'] ) and $data['default'] )
|
||||
) );
|
||||
|
||||
\IPS\Db::i()->insert( 'core_permission_index', array(
|
||||
@@ -651,17 +652,16 @@ class _Install
|
||||
$member->member_group_id = 4;
|
||||
$member->allow_admin_mails = 0;
|
||||
$member->joined = time();
|
||||
$member->members_pass_salt = $member->generateSalt();
|
||||
$member->members_pass_hash = $member->encryptedPassword( $this->adminPass );
|
||||
$member->setLocalPassword( $this->adminPass );
|
||||
$member->members_bitoptions['view_sigs'] = TRUE;
|
||||
$member->save();
|
||||
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $this->adminEmail ), "conf_key = 'email_out'" );
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $this->adminEmail ), "conf_key = 'email_in'" );
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $this->adminEmail ), "conf_key = 'upgrade_email'" );
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $this->diagnostics ), "conf_key = 'diagnostics_reporting'" );
|
||||
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => $this->diagnostics ), "conf_key = 'diagnostics_reporting' OR conf_key = 'usage_reporting'" );
|
||||
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
\IPS\Settings::i()->clearCache();
|
||||
|
||||
return array( 5 );
|
||||
}
|
||||
@@ -690,7 +690,7 @@ class _Install
|
||||
protected function step6( $data )
|
||||
{
|
||||
/* Install the default language */
|
||||
$locales = array( 'en_US', 'en_US.utf8', 'en_US.UTF8' );
|
||||
$locales = array( 'en_US', 'en_US.utf8', 'en_US.UTF8', 'english' );
|
||||
foreach ( $locales as $k => $localeCode )
|
||||
{
|
||||
try
|
||||
@@ -880,9 +880,9 @@ class _Install
|
||||
/* Insert default emoticons and reaction */
|
||||
if( $app == 'core' )
|
||||
{
|
||||
$setId = md5( uniqid() );
|
||||
$setId = mt_rand();
|
||||
$position = 0;
|
||||
\IPS\Lang::saveCustom( 'core', "core_emoticon_group_{$setId}", "Default" );
|
||||
\IPS\Lang::saveCustom( 'core', "core_emoticon_group_{$setId}", "Classic" );
|
||||
|
||||
$inserts = array();
|
||||
|
||||
|
||||
Reference in new issue
Block a user