Version 4.0.13.1

This commit is contained in:
Neo committed 2025-12-19 04:57:54 -08:00
1 parent f9e857d255
commit c6a86f0d9b
7517 files changed
+597400 -668041

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,951 @@
{
"1": {
"method": "insert",
"params": [
"nexus_gateways",
{
"g_key": "stripe",
"g_name": "Stripe",
"g_testmode": 0,
"g_position": null,
"g_payout": 0
}
]
},
"2": {
"method": "insert",
"params": [
"nexus_gateways",
{
"g_key": "sagepay",
"g_name": "Sage Pay (Form Integration)",
"g_testmode": 0,
"g_position": null,
"g_payout": 0
}
]
},
"3": {
"method": "createTable",
"params": [
{
"name": "nexus_fraud_rules",
"columns": {
"f_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "f_id",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"f_name": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "f_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_groups": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "f_groups",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_amount": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_amount",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_amount_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 3,
"name": "f_amount_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_methods": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "f_methods",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_voucher": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_voucher",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_email": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 1,
"name": "f_email",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_email_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "f_email_unit",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_country": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "f_country",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 3,
"name": "f_maxmind_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_address_valid": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_address_valid",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_address_match": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_address_match",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_proxy": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_proxy",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_proxy_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 2,
"name": "f_maxmind_proxy_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_freeemail": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_freeemail",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_phone_match": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_phone_match",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_riskyemail": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_riskyemail",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_maxmind_riskyusername": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_maxmind_riskyusername",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_trans_okay": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_trans_okay",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_trans_okay_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 3,
"name": "f_trans_okay_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_trans_fraud": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_trans_fraud",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_trans_fraud_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 3,
"name": "f_trans_fraud_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_action": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 4,
"name": "f_action",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_action_ban": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "f_action_ban",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"f_order": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "f_order",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"f_id"
]
}
},
"collation": "latin1_swedish_ci",
"engine": "InnoDB"
}
]
},
"4": {
"method": "addColumn",
"params": [
"nexus_transactions",
{
"name": "t_fraud_blocked",
"type": "INT",
"length": 10,
"allow_null": false,
"default": 0
}
]
},
"5": {
"method": "addColumn",
"params": [
"nexus_transactions",
{
"name": "t_fraud_checked",
"type": "TINYINT",
"length": 1,
"allow_null": false,
"default": 0
}
]
},
"6": {
"method": "addIndex",
"params": [
"nexus_transactions",
{
"type": "key",
"name": "t_invoice",
"columns": [
"t_invoice"
]
}
]
},
"7": {
"method": "addIndex",
"params": [
"nexus_transactions",
{
"type": "key",
"name": "t_member",
"columns": [
"t_member",
"t_status"
]
}
]
},
"8": {
"method": "addIndex",
"params": [
"nexus_transactions",
{
"type": "key",
"name": "t_member2",
"columns": [
"t_member",
"t_status",
"t_fraud_blocked"
]
}
]
},
"9": {
"method": "addColumn",
"params": [
"nexus_packages",
{
"name": "p_methods",
"type": "TEXT",
"allow_null": true
}
]
},
"10": {
"method": "createTable",
"params": [
{
"name": "nexus_referral_rules",
"columns": {
"rrule_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rrule_id",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"rrule_name": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "rrule_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_by_purchases_type": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_by_purchases_type",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_by_purchases_op": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_by_purchases_op",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_by_purchases_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rrule_by_purchases_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_by_group": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "rrule_by_group",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_for_purchases_type": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_for_purchases_type",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_for_purchases_op": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_for_purchases_op",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_for_purchases_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rrule_for_purchases_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_for_group": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "rrule_for_group",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_packages": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "rrule_purchase_packages",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_any": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_purchase_any",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_package_limit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_purchase_package_limit",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_renewal": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_purchase_renewal",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_amount_op": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rrule_purchase_amount_op",
"type": "CHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_purchase_amount_unit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rrule_purchase_amount_unit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_commission": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 3,
"name": "rrule_commission",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rrule_commission_limit": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rrule_commission_limit",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"rrule_id"
]
}
},
"collation": "latin1_swedish_ci",
"engine": "InnoDB"
}
]
},
"11": {
"method": "addColumn",
"params": [
"nexus_support_departments",
{
"name": "dpt_ppi",
"type": "FLOAT",
"allow_null": false,
"default": 0
}
]
},
"12": {
"method": "addColumn",
"params": [
"nexus_support_tracker",
{
"name": "notify",
"type": "TINYINT",
"length": 1,
"allow_null": false,
"default": 0
}
]
},
"13": {
"method": "addColumn",
"params": [
"nexus_support_replies",
{
"name": "reply_textformat",
"type": "CHAR",
"length": 1,
"allow_null": false,
"default": ""
}
]
},
"14": {
"method": "createTable",
"params": [
{
"name": "nexus_support_ratings",
"columns": {
"rating_reply": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "rating_reply",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"rating_rating": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 1,
"name": "rating_rating",
"type": "SMALLINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_from": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 8,
"name": "rating_from",
"type": "MEDIUMINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_staff": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 8,
"name": "rating_staff",
"type": "MEDIUMINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_note": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "rating_note",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_date": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rating_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"rating_reply"
]
},
"rating_staff": {
"type": "key",
"name": "rating_staff",
"length": [
null
],
"columns": [
"rating_staff"
]
},
"rating_date": {
"type": "key",
"name": "rating_date",
"length": [
null
],
"columns": [
"rating_date"
]
}
},
"collation": "utf8mb4_unicode_ci",
"engine": "InnoDB"
}
]
}
}
@@ -0,0 +1,65 @@
<?php
/**
* @brief 1.5.0 Alpha 1 Upgrade Code
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @subpackage
* @since 19 Dec 2014
* @version SVN_VERSION_NUMBER
*/
namespace IPS\nexus\setup\upg_15000;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 1.5.0 Alpha 1 Upgrade Code
*/
class _Upgrade
{
/**
* Convert MaxMind settings into fraud rules
*
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
*/
public function step1()
{
if ( \IPS\Settings::i()->maxmind_hold )
{
\IPS\Db::i()->insert( 'nexus_fraud_rules', array(
'f_name' => "MaxMind Hold",
'f_groups' => '*',
'f_methods' => '*',
'f_maxmind' => 'g',
'f_maxmind_unit' => \IPS\Settings::i()->maxmind_hold,
'f_action' => 'hold',
'f_order' => 1,
) );
}
if ( \IPS\Settings::i()->maxmind_decline )
{
\IPS\Db::i()->insert( 'nexus_fraud_rules', array(
'f_name' => "MaxMind Decline",
'f_groups' => '*',
'f_methods' => '*',
'f_maxmind' => 'g',
'f_maxmind_unit' => \IPS\Settings::i()->maxmind_decline,
'f_action' => 'fail',
'f_order' => 2,
) );
}
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key='maxmind_hold'" );
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key='maxmind_decline'" );
return TRUE;
}
}