Version 4.0.13.1 (nulled)
This commit is contained in:
1 parent
c6a86f0d9b
commit
3ba79295ee
19 files changed
+277
-490
No files matched your search
@@ -7,6 +7,7 @@
|
||||
* @package IPS Social Suite
|
||||
* @since 20 June 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
* @modified 13.09.2015 by IAF
|
||||
*/
|
||||
|
||||
namespace IPS\core\extensions\core\CommunityEnhancements;
|
||||
@@ -184,18 +185,17 @@ class _Mandrill
|
||||
throw new \DomainException( 'mandrill_bad_credentials' );
|
||||
}
|
||||
|
||||
/* Tell IPS */
|
||||
$response = NULL;
|
||||
try
|
||||
{
|
||||
$response = \IPS\Http\Url::ips( 'mandrill' )->request()->post( array(
|
||||
'key' => $values['mandrill_api_key'],
|
||||
'username' => $values['mandrill_username'],
|
||||
'lkey' => \IPS\Settings::i()->ipb_reg_number,
|
||||
'version' => \IPS\Application::load('core')->long_version
|
||||
) )->decodeJson();
|
||||
}
|
||||
catch ( \IPS\Http\Request\Exception $e ) { }
|
||||
/* Do not Tell IPS */
|
||||
|
||||
$response = array(
|
||||
"mail_method" => "smtp",
|
||||
"smtp_host" => "smtp.mandrillapp.com",
|
||||
"smtp_port"=> 587,
|
||||
"mail_wrap_brackets" => 0,
|
||||
"smtp_user" => $values['mandrill_username'],
|
||||
"smtp_pass" => $values['mandrill_api_key'],
|
||||
"smtp_helo" => "HELO"
|
||||
);
|
||||
|
||||
/* If we want to use Mandrill for "everything", we need to update our local SMTP settings with the values returned from the API call */
|
||||
if( $values['mandrill_use_for'] == 2 )
|
||||
@@ -213,4 +213,6 @@ class _Mandrill
|
||||
unset( \IPS\Data\Store::i()->settings );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Nulled by IandroidFan (IAF) */
|
||||
@@ -7,6 +7,7 @@
|
||||
* @package IPS Social Suite
|
||||
* @since 17 Apr 2013
|
||||
* @version SVN_VERSION_NUMBER
|
||||
* @modified 13.09.2015 by IAF
|
||||
*/
|
||||
|
||||
namespace IPS\core\extensions\core\CommunityEnhancements;
|
||||
@@ -78,7 +79,7 @@ class _SpamMonitoring
|
||||
}
|
||||
catch ( \LogicException $e )
|
||||
{
|
||||
\IPS\Output::i()->error( $e->getMessage(), '2C116/2', 403, '' );
|
||||
//Do not show error message. We will see error message in Settings
|
||||
}
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=membersettings&controller=spam&tab=service' ) );
|
||||
@@ -125,4 +126,6 @@ class _SpamMonitoring
|
||||
throw new \DomainException('spam_service_noservice');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Nulled by IandroidFan (IAF) */
|
||||
Reference in new issue
Block a user