Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -115,7 +115,7 @@ class _Application extends \IPS\Application
|
||||
return (
|
||||
$module->key == 'system'
|
||||
and
|
||||
in_array( $controller, array( 'login', 'register', 'lostpass', 'terms', 'ajax', 'privacy', 'editor', 'language', 'theme', 'redirect', 'guidelines' ) )
|
||||
in_array( $controller, array( 'login', 'register', 'lostpass', 'terms', 'ajax', 'privacy', 'editor', 'language', 'theme', 'redirect', 'guidelines', 'announcement' ) )
|
||||
)
|
||||
or
|
||||
(
|
||||
@@ -141,7 +141,8 @@ class _Application extends \IPS\Application
|
||||
'login', // Because you can login when offline
|
||||
'embed', // Because the offline message can contain embedded media
|
||||
'lostpass',
|
||||
'register'
|
||||
'register',
|
||||
'announcement' // Announcements can be useful when the site is offline
|
||||
) )
|
||||
or
|
||||
(
|
||||
@@ -271,6 +272,110 @@ class _Application extends \IPS\Application
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=modcp&controller=modcp&tab=reports&action=view&id=' . \IPS\Request::i()->rid , 'front', 'modcp_report' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get any third parties this app uses for the privacy policy
|
||||
*
|
||||
* @return array( title => language bit, description => language bit, privacyUrl => privacy policy URL )
|
||||
*/
|
||||
public function privacyPolicyThirdParties()
|
||||
{
|
||||
/* Apps can overload this */
|
||||
$subprocessors = array();
|
||||
|
||||
/* Analytics */
|
||||
if ( \IPS\Settings::i()->ipbseo_ga_provider == 'ga' )
|
||||
{
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('enhancements__core_GoogleAnalytics'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_GoogleAnalytics'),
|
||||
'privacyUrl' => 'https://www.google.com/intl/en/policies/privacy/'
|
||||
);
|
||||
}
|
||||
else if ( \IPS\Settings::i()->ipbseo_ga_provider == 'piwik' )
|
||||
{
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('analytics_provider_piwik'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_Piwik'),
|
||||
'privacyUrl' => 'https://matomo.org/privacy-policy/'
|
||||
);
|
||||
}
|
||||
|
||||
/* Facebook Pixel */
|
||||
$fb = new \IPS\core\extensions\core\CommunityEnhancements\FacebookPixel();
|
||||
if ( $fb->enabled )
|
||||
{
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('enhancements__core_FacebookPixel'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_FacebookPixel'),
|
||||
'privacyUrl' => 'https://www.facebook.com/about/privacy/'
|
||||
);
|
||||
}
|
||||
|
||||
/* IPS Spam defense */
|
||||
if ( \IPS\Settings::i()->spam_service_enabled )
|
||||
{
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('enhancements__core_SpamMonitoring'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_SpamMonitoring'),
|
||||
'privacyUrl' => 'https://invisioncommunity.com/legal/privacy'
|
||||
);
|
||||
}
|
||||
|
||||
/* Send Grid */
|
||||
$sendgrid = new \IPS\core\extensions\core\CommunityEnhancements\Sendgrid();
|
||||
if ( $sendgrid->enabled )
|
||||
{
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('enhancements__core_Sendgrid'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_SendGrid'),
|
||||
'privacyUrl' => 'https://sendgrid.com/policies/privacy/'
|
||||
);
|
||||
}
|
||||
|
||||
/* Captcha */
|
||||
if ( \IPS\Settings::i()->bot_antispam_type !== 'none' )
|
||||
{
|
||||
switch ( \IPS\Settings::i()->bot_antispam_type )
|
||||
{
|
||||
case 'recaptcha2':
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('captcha_type_recaptcha2'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_captcha'),
|
||||
'privacyUrl' => 'https://www.google.com/policies/privacy/'
|
||||
);
|
||||
break;
|
||||
case 'invisible':
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('captcha_type_invisible'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_captcha'),
|
||||
'privacyUrl' => 'https://www.google.com/policies/privacy/'
|
||||
);
|
||||
break;
|
||||
case 'keycaptcha':
|
||||
$subprocessors[] = array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack('captcha_type_keycaptcha'),
|
||||
'description' => \IPS\Member::loggedIn()->language()->addToStack('pp_desc_captcha'),
|
||||
'privacyUrl' => 'https://www.keycaptcha.com'
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $subprocessors;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get any settings that are uploads
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function uploadSettings()
|
||||
{
|
||||
/* Apps can overload this */
|
||||
return array( 'email_logo' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Imports an IN_DEV email template into the database
|
||||
|
||||
Reference in new issue
Block a user