Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -193,5 +193,34 @@
|
||||
"perm_6": "<%NO_GUESTS%>"
|
||||
}
|
||||
]
|
||||
},
|
||||
"14": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_groups",
|
||||
{
|
||||
"name": "idm_paid_restrictions",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"null": false,
|
||||
"default": 0,
|
||||
"comment": "Download restrictions apply to Paid files?",
|
||||
"unsigned": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"15": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_groups",
|
||||
{
|
||||
"name": "idm_max_size",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"default": -1,
|
||||
"comment": "Maximum file size allowed",
|
||||
"unsigned": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100002;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100005;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -194,7 +194,7 @@ class _Upgrade
|
||||
/* Base price */
|
||||
$costs = @json_decode( $file['file_cost'], TRUE );
|
||||
|
||||
if( !is_array( $costs ) and $file['file_cost'] )
|
||||
if( !\is_array( $costs ) and $file['file_cost'] )
|
||||
{
|
||||
$costs = array();
|
||||
|
||||
@@ -209,7 +209,7 @@ class _Upgrade
|
||||
/* Renewal price */
|
||||
$costs = @json_decode( $file['file_renewal_price'], TRUE );
|
||||
|
||||
if( !is_array( $costs ) )
|
||||
if( !\is_array( $costs ) )
|
||||
{
|
||||
$costs = array();
|
||||
|
||||
@@ -221,7 +221,7 @@ class _Upgrade
|
||||
$update['file_renewal_price'] = json_encode( $costs );
|
||||
}
|
||||
|
||||
if( count( $update ) )
|
||||
if( \count( $update ) )
|
||||
{
|
||||
\IPS\Db::i()->update( 'downloads_files', $update, array( 'file_id=?', $file['file_id'] ) );
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100011;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -33,7 +33,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 50;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100012;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -59,7 +59,7 @@ class _Upgrade
|
||||
break;
|
||||
}
|
||||
|
||||
if( count( $update ) )
|
||||
if( \count( $update ) )
|
||||
{
|
||||
\IPS\Db::i()->update( 'downloads_cfields', $update, 'cf_id=' . $field['cf_id'] );
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100013;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100015;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100018;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100028;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100035;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_100044;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -33,7 +33,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 1000;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
@@ -50,7 +50,7 @@ class _Upgrade
|
||||
$votes = unserialize( $file['file_votes'] );
|
||||
$voteCount = 0;
|
||||
|
||||
if ( is_array( $votes ) and count( $votes ) )
|
||||
if ( \is_array( $votes ) and \count( $votes ) )
|
||||
{
|
||||
foreach( $votes as $member => $rating )
|
||||
{
|
||||
|
||||
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_101000;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -32,7 +32,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 1000;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -11,7 +11,7 @@
|
||||
namespace IPS\downloads\setup\upg_101024;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_101071;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_101088;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -50,11 +50,11 @@ class _Upgrade
|
||||
\IPS\Db::i()->returnQuery = FALSE;
|
||||
}
|
||||
|
||||
if( count( $queries ) )
|
||||
if( \count( $queries ) )
|
||||
{
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( $queries );
|
||||
|
||||
if ( count( $toRun ) )
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'downloads', 'extra' => array( '_upgradeStep' => 2 ) ) );
|
||||
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_102005;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_cfields",
|
||||
{
|
||||
"name": "cf_display_location",
|
||||
"type": "ENUM",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": [
|
||||
"below",
|
||||
"tab",
|
||||
"Sidebar"
|
||||
],
|
||||
"allow_null": false,
|
||||
"default": "sidebar",
|
||||
"comment": "Display location for custom fields",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "file_approver",
|
||||
"columns": [
|
||||
"file_approver"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "delete",
|
||||
"params": [
|
||||
"core_sys_lang_words",
|
||||
[
|
||||
"word_app=? and word_key=?",
|
||||
"downloads",
|
||||
"change_author"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "file_submitted",
|
||||
"columns": [
|
||||
"file_submitted"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
"file_open"
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "dropIndex",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
"file_cat"
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_groups",
|
||||
{
|
||||
"name": "idm_paid_restrictions",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"null": false,
|
||||
"default": 0,
|
||||
"comment": "Download restrictions apply to Paid files?",
|
||||
"unsigned": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_categories",
|
||||
{
|
||||
"name": "cversion_numbers",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "1",
|
||||
"comment": "0 = Disable version numbers, 1 = Allow version numbers, 2 = Require version numbers",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"added": [
|
||||
"app=core&module=members&controller=groups&searchResult=4_idm_add_paid",
|
||||
"app=core&module=members&controller=groups&searchResult=4_idm_bulk_submit",
|
||||
"app=core&module=members&controller=groups&searchResult=4_idm_linked_files",
|
||||
"app=core&module=members&controller=groups&searchResult=4_idm_view_downloads",
|
||||
"app=core&module=members&controller=members&searchResult=form_idm_block_submissions",
|
||||
"app=downloads&module=downloads&controller=categories",
|
||||
"app=downloads&module=downloads&controller=categories&do=form",
|
||||
"app=downloads&module=downloads&controller=categories&do=permissions",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_allowss",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_comment_moderation",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_comments",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_reqss",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_reviews_download",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cbitoptions_reviews_mod",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cdisclaimer-editor",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=clog",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cmaxdims",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cmaxfile",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cmaxss",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=csortorder",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=ctags_disabled",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=ctags_noprefixes",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=ctypes",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=cversioning",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cbitoptions_moderation",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cbitoptions_reviews",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cdesc",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cforum_on",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_clog_on",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cname",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cparent",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_csubmissionterms",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_cversioning_on",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_noperm_dl",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=form_2_noperm_view",
|
||||
"app=downloads&module=downloads&controller=categories&searchResult=submitter_log",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_allowss",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_comment_moderation",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_comments",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_reqss",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_reviews_download",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cbitoptions_reviews_mod",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cdisclaimer-editor",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=clog",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cmaxdims",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cmaxfile",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cmaxss",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=csortorder",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=ctags_disabled",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=ctags_noprefixes",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=ctypes",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=cversioning",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cbitoptions_moderation",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cbitoptions_reviews",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cdesc",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cforum_on",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_clog_on",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cname",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cparent",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_csubmissionterms",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_cversioning_on",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_noperm_dl",
|
||||
"app=downloads&module=downloads&controller=categories&subnode=0&parent=1&searchResult=form_new_noperm_view",
|
||||
"app=downloads&module=downloads&controller=fields",
|
||||
"app=downloads&module=downloads&controller=fields&do=form",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_1_cf_topic",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_1_pf_desc",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_1_pf_format",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_1_pf_title",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_1_pf_type",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_new_cf_topic",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_new_pf_desc",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_new_pf_format",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_new_pf_title",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=form_new_pf_type",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=pf_input_format",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=pf_max_input",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=pf_not_null",
|
||||
"app=downloads&module=downloads&controller=fields&searchResult=pf_search_type",
|
||||
"app=downloads&module=downloads&controller=settings",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_antileech",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_link_blacklist",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_nexus_display",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_nexus_on",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_rss",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_show_featured",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_show_highest_rated",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_show_most_downloaded",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_show_newest",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=form_idm_watermarkpath",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=idm_nexus_gateways",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=idm_nexus_percent",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=idm_nexus_tax",
|
||||
"app=downloads&module=downloads&controller=settings&searchResult=idm_nexus_transfee",
|
||||
"app=downloads&module=stats&controller=downloaders",
|
||||
"app=downloads&module=stats&controller=downloads",
|
||||
"app=downloads&module=stats&controller=submitters"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105013,
|
||||
"name": "4.5.0 Beta 1",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": true,
|
||||
"emailTemplates": true,
|
||||
"hooks": true,
|
||||
"acpSearchKeywords": true,
|
||||
"settings": true,
|
||||
"tasks": true,
|
||||
"modules": true,
|
||||
"widgets": true,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"notification_new_file_version"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"added": [
|
||||
"Forums",
|
||||
"nexusPackage",
|
||||
"Forum",
|
||||
"frontModcp"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [
|
||||
"downloads\/front\/controllers\/view\/ips.view.subscribe.js"
|
||||
],
|
||||
"edited": [
|
||||
"downloads\/front\/controllers\/submit\/ips.submit.main.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/\/dev\/js\/\/library\/\/jquery"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"__indefart_downloads_file_pending",
|
||||
"cmultiple_files",
|
||||
"cmultiple_files_desc",
|
||||
"downloads_file_pending",
|
||||
"downloads_file_pending_pl",
|
||||
"downloads_file_pending_pl_lc",
|
||||
"file_pending_approval_version",
|
||||
"file_pending_version_button",
|
||||
"err_too_many_files",
|
||||
"upload_new_version_pending",
|
||||
"select_your_file",
|
||||
"save_and_submit_file",
|
||||
"save_and_submit_new_version",
|
||||
"downloads_single_upload",
|
||||
"stats_overview_downloads",
|
||||
"stats_overview_downloads_desc",
|
||||
"notification__new_file_version_with",
|
||||
"backgroundQueue_new_version",
|
||||
"file_subscribe",
|
||||
"file_unsubscribe",
|
||||
"file_subscribed",
|
||||
"file_unsubscribed",
|
||||
"file_notify_heading",
|
||||
"file_notify_current",
|
||||
"file_notify_none",
|
||||
"file_version_pending_approval",
|
||||
"pending_no_new_files",
|
||||
"pending_no_changelog",
|
||||
"pending_version",
|
||||
"pending_version_reject",
|
||||
"pending_version_reject_title",
|
||||
"pending_version_reject_desc"
|
||||
],
|
||||
"edited": [
|
||||
"cbitoptions_moderation_edits",
|
||||
"idm_bulk_submit",
|
||||
"file_auto_follow_suffix",
|
||||
"notifications__downloads_Files_desc"
|
||||
],
|
||||
"removed": [
|
||||
"idm_rss_desc",
|
||||
"upload_files"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [
|
||||
"file_subscribe",
|
||||
"file_unsubscribe",
|
||||
"files_optional"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"added": [
|
||||
"admin\/downloads",
|
||||
"admin\/stats",
|
||||
"front\/downloads"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,441 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "downloads_files_notify",
|
||||
"columns": {
|
||||
"notify_id": {
|
||||
"name": "notify_id",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "ID Number",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": true,
|
||||
"binary": false
|
||||
},
|
||||
"notify_member_id": {
|
||||
"name": "notify_member_id",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"notify_file_id": {
|
||||
"name": "notify_file_id",
|
||||
"type": "BIGINT",
|
||||
"length": 20,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
},
|
||||
"notify_sent": {
|
||||
"name": "notify_sent",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": true,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"columns": [
|
||||
"notify_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
},
|
||||
"member_file": {
|
||||
"type": "key",
|
||||
"name": "member_file",
|
||||
"columns": [
|
||||
"notify_member_id",
|
||||
"notify_file_id"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "file_cat",
|
||||
"columns": [
|
||||
"file_cat"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"name": "file_edit_time",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"name": "file_edit_name",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"5": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"name": "file_appened_edit",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"6": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
"file_appened_edit",
|
||||
{
|
||||
"name": "file_append_edit",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"7": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
{
|
||||
"name": "file_edit_reason",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"8": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
"file_edit_time",
|
||||
{
|
||||
"name": "file_edit_time",
|
||||
"type": "INT",
|
||||
"length": 10,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"9": {
|
||||
"method": "delete",
|
||||
"params": [
|
||||
"core_sys_lang_words",
|
||||
[
|
||||
"word_key=?",
|
||||
"idm_rss_desc"
|
||||
]
|
||||
]
|
||||
},
|
||||
"10": {
|
||||
"method": "createTable",
|
||||
"params": [
|
||||
{
|
||||
"name": "downloads_files_pending",
|
||||
"columns": {
|
||||
"pending_file_id": {
|
||||
"name": "pending_file_id",
|
||||
"type": "INT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_id": {
|
||||
"name": "pending_id",
|
||||
"type": "BIGINT",
|
||||
"length": "20",
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": null,
|
||||
"comment": "ID Number",
|
||||
"unsigned": true,
|
||||
"auto_increment": true
|
||||
},
|
||||
"pending_date": {
|
||||
"name": "pending_date",
|
||||
"type": "INT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_approved": {
|
||||
"name": "pending_approved",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_member_id": {
|
||||
"name": "pending_member_id",
|
||||
"type": "BIGINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_record_deletions": {
|
||||
"name": "pending_record_deletions",
|
||||
"type": "TEXT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_save_version": {
|
||||
"name": "pending_save_version",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
},
|
||||
"pending_form_values": {
|
||||
"name": "pending_form_values",
|
||||
"type": "TEXT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": {
|
||||
"type": "primary",
|
||||
"name": "PRIMARY",
|
||||
"columns": [
|
||||
"pending_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
},
|
||||
"file_id": {
|
||||
"type": "unique",
|
||||
"name": "file_id",
|
||||
"columns": [
|
||||
"pending_file_id"
|
||||
],
|
||||
"length": [
|
||||
null
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"11": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_files_records",
|
||||
{
|
||||
"name": "record_hidden",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"12": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_categories",
|
||||
{
|
||||
"name": "cmultiple_files",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "1",
|
||||
"comment": "Allow multiple files to be uploaded",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"13": {
|
||||
"method": "changeColumn",
|
||||
"params": [
|
||||
"downloads_files",
|
||||
"file_meta_data",
|
||||
{
|
||||
"name": "file_meta_data",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": true,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"14": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"downloads_categories",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "category_open",
|
||||
"columns": [
|
||||
"copen",
|
||||
"cposition"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
null
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"added": [
|
||||
"idm_antileech",
|
||||
"idm_featured_count",
|
||||
"idm_highest_rated_categories",
|
||||
"idm_link_blacklist",
|
||||
"idm_newest_categories",
|
||||
"idm_rss",
|
||||
"idm_show_featured",
|
||||
"idm_show_highest_rated",
|
||||
"idm_show_most_downloaded",
|
||||
"idm_show_most_downloaded_categories",
|
||||
"idm_show_newest",
|
||||
"idm_watermarkpath"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"added": [
|
||||
"tempFileCleanup",
|
||||
"logCleanup"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"front\/submit\/submissionForm",
|
||||
"front\/view\/notify",
|
||||
"front\/view\/notifyBlurb",
|
||||
"front\/view\/pendingView"
|
||||
],
|
||||
"edited": [
|
||||
"front\/browse\/category",
|
||||
"front\/browse\/categoryButtons",
|
||||
"front\/browse\/categoryRow",
|
||||
"front\/browse\/featuredFile",
|
||||
"front\/browse\/index",
|
||||
"front\/browse\/indexBlock",
|
||||
"front\/browse\/rows",
|
||||
"front\/global\/commentTableHeader",
|
||||
"front\/global\/embedFile",
|
||||
"front\/global\/embedFileComment",
|
||||
"front\/global\/embedFileReview",
|
||||
"global\/global\/link",
|
||||
"front\/global\/manageFollowRow",
|
||||
"front\/global\/searchResultFileSnippet",
|
||||
"front\/nexus\/filePurchaseInfo",
|
||||
"admin\/stats\/downloadsTable",
|
||||
"front\/view\/changeLog",
|
||||
"front\/view\/comments",
|
||||
"front\/view\/reviews",
|
||||
"front\/view\/view",
|
||||
"front\/widgets\/downloadsCommentFeed",
|
||||
"front\/widgets\/downloadsReviewFeed",
|
||||
"front\/widgets\/downloadStats",
|
||||
"front\/widgets\/fileRow"
|
||||
],
|
||||
"removed": [
|
||||
"front\/submit\/newVersion",
|
||||
"front\/submit\/submitForm"
|
||||
]
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/downloads.css",
|
||||
"front\/embed.css",
|
||||
"front\/widgets.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 4.5.0 Beta 1 Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @subpackage Downloads
|
||||
* @since 14 Oct 2019
|
||||
*/
|
||||
|
||||
namespace IPS\downloads\setup\upg_105013;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.5.0 Beta 1 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* Copy follow data to new file versions notify table
|
||||
*
|
||||
* @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()
|
||||
{
|
||||
$perCycle = 1000;
|
||||
$did = 0;
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
|
||||
foreach( \IPS\Db::i()->select( '*', 'core_follow', array( 'follow_app=? and follow_area=?', 'downloads', 'file' ), 'follow_rel_id ASC', array( $limit, $perCycle ) ) as $follow )
|
||||
{
|
||||
if( $cutOff !== null AND time() >= $cutOff )
|
||||
{
|
||||
return ( $limit + $did );
|
||||
}
|
||||
|
||||
$did++;
|
||||
|
||||
/* Don't insert if this is the file author, however, because author's can't receive notifications of their own files */
|
||||
try
|
||||
{
|
||||
if( $follow['follow_member_id'] != \IPS\Db::i()->select( 'file_submitter', 'downloads_files', array( 'file_id=?', $follow['follow_rel_id'] ) )->first() )
|
||||
{
|
||||
\IPS\Db::i()->insert( 'downloads_files_notify', array( 'notify_member_id' => $follow['follow_member_id'], 'notify_file_id' => $follow['follow_rel_id'], 'notify_sent' => $follow['follow_notify_sent'] ) );
|
||||
}
|
||||
}
|
||||
catch( \UnderflowException $e )
|
||||
{
|
||||
/* The follow record is orphaned - just remove it */
|
||||
\IPS\Db::i()->delete( 'core_follow', array( 'follow_id=?', $follow['follow_id'] ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $did )
|
||||
{
|
||||
return ( $limit + $did );
|
||||
}
|
||||
else
|
||||
{
|
||||
unset( $_SESSION['_step1Count'] );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step1CustomTitle()
|
||||
{
|
||||
$limit = isset( \IPS\Request::i()->extra ) ? \IPS\Request::i()->extra : 0;
|
||||
|
||||
if( !isset( $_SESSION['_step1Count'] ) )
|
||||
{
|
||||
$_SESSION['_step1Count'] = \IPS\Db::i()->select( 'COUNT(*)', 'core_follow', array( 'follow_app=? and follow_area=?', 'downloads', 'file' ) )->first();
|
||||
}
|
||||
|
||||
return "Copying downloads follows (Copied so far: " . ( ( $limit > $_SESSION['_step1Count'] ) ? $_SESSION['_step1Count'] : $limit ) . ' out of ' . $_SESSION['_step1Count'] . ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"added": [
|
||||
"topSubmitters",
|
||||
"downloadStats",
|
||||
"topDownloads",
|
||||
"fileFeed",
|
||||
"downloadsCommentFeed",
|
||||
"downloadsReviewFeed"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105014,
|
||||
"name": "4.5.0 Beta 1",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105015,
|
||||
"name": "4.5.0 Beta 2",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": true,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"downloads\/front\/controllers\/submit\/ips.submit.main.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/\/dev\/js\/\/library\/\/jquery"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"idm_nexus_mincost",
|
||||
"idm_nexus_mincost_desc",
|
||||
"file_cost_desc_minimum",
|
||||
"file_cost_too_low"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/view\/view"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105016,
|
||||
"name": "4.5.0 Beta 3",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105017,
|
||||
"name": "4.5.0 Beta 4",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/global\/commentTableHeader"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105018,
|
||||
"name": "4.5.0 Beta 4",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105019,
|
||||
"name": "4.5.0 Beta 4",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105020,
|
||||
"name": "4.5.0 Beta 4",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105021,
|
||||
"name": "4.5.0 Beta 5",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/browse\/category"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105022,
|
||||
"name": "4.5.0 Beta 6",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105023,
|
||||
"name": "4.5.0 Beta 6",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105024,
|
||||
"name": "4.5.0 Beta 7",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"cdisclaimer_location",
|
||||
"cdisclaimer_purchase",
|
||||
"cdisclaimer_download",
|
||||
"cdisclaimer_both",
|
||||
"downloads_field_paid",
|
||||
"downloads_field_paid_desc",
|
||||
"download_purchase_terms",
|
||||
"download_purchase_terms_desc",
|
||||
"agree_and_purchase"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"front\/view\/purchaseTerms"
|
||||
],
|
||||
"edited": [
|
||||
"front\/global\/searchResultFileSnippet",
|
||||
"front\/view\/view"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 4.5.0 Beta 7 Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
* @subpackage Downloads
|
||||
* @since 08 Jul 2020
|
||||
*/
|
||||
|
||||
namespace IPS\downloads\setup\upg_105024;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.5.0 Beta 7 Upgrade Code
|
||||
*/
|
||||
class _Upgrade
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
*
|
||||
* @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()
|
||||
{
|
||||
\IPS\Db::i()->query( "DELETE " . \IPS\Db::i()->prefix . "downloads_files_notify FROM " . \IPS\Db::i()->prefix . "downloads_files_notify LEFT JOIN " . \IPS\Db::i()->prefix . "downloads_files ON (" . \IPS\Db::i()->prefix . "downloads_files.file_id=" . \IPS\Db::i()->prefix . "downloads_files_notify.notify_file_id AND " . \IPS\Db::i()->prefix . "downloads_files.file_submitter=" . \IPS\Db::i()->prefix . "downloads_files_notify.notify_member_id) WHERE " . \IPS\Db::i()->prefix . "downloads_files.file_id IS NOT NULL" );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom title for this step
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function step1CustomTitle()
|
||||
{
|
||||
return "Cleaning up Downloads author notifications";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105025,
|
||||
"name": "4.5.0 Beta 8",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"modlog__action_newversion_reject",
|
||||
"modlog__action_newversion_approved"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_categories",
|
||||
{
|
||||
"name": "cdisclaimer_location",
|
||||
"type": "ENUM",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": [
|
||||
"purchase",
|
||||
"download",
|
||||
"both"
|
||||
],
|
||||
"allow_null": false,
|
||||
"default": "download",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_cfields",
|
||||
{
|
||||
"name": "cf_paid_field",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105026,
|
||||
"name": "4.5.0 Beta 8",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105027,
|
||||
"name": "4.5.0 Beta 8",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105028,
|
||||
"name": "4.5.0 Beta 9",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"file_new_version_date"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/view\/pendingView",
|
||||
"front\/view\/view"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105029,
|
||||
"name": "4.5.0 Beta 10",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": true,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/view\/view"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105030,
|
||||
"name": "4.5.0 Beta 11",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105031,
|
||||
"name": "4.5.0 Beta 11",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105032,
|
||||
"name": "4.5.0 Beta 12",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"idm_max_size",
|
||||
"idm_max_size_desc",
|
||||
"idm_maxsize_suffix"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_groups",
|
||||
{
|
||||
"name": "idm_max_size",
|
||||
"type": "INT",
|
||||
"null": false,
|
||||
"default": -1,
|
||||
"comment": "Maximum file size allowed",
|
||||
"unsigned": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"id": 105100,
|
||||
"name": "4.5.0",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": false,
|
||||
"theme": false,
|
||||
"themeSettings": false,
|
||||
"javascript": false,
|
||||
"emailTemplates": false,
|
||||
"hooks": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"whatsnew": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": false
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_23000;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -45,7 +45,7 @@ class _Upgrade
|
||||
{
|
||||
$_subscriptions = explode( ',', trim( $r['file_sub_mems'], ',' ) );
|
||||
|
||||
if( count( $_subscriptions ) )
|
||||
if( \count( $_subscriptions ) )
|
||||
{
|
||||
foreach( $_subscriptions as $mid )
|
||||
{
|
||||
@@ -65,7 +65,7 @@ class _Upgrade
|
||||
}
|
||||
}
|
||||
|
||||
if( count( $members ) )
|
||||
if( \count( $members ) )
|
||||
{
|
||||
foreach( $members as $file => $_members )
|
||||
{
|
||||
|
||||
@@ -1193,5 +1193,25 @@
|
||||
"unsigned": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"53": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"downloads_categories",
|
||||
{
|
||||
"name": "cversion_numbers",
|
||||
"type": "TINYINT",
|
||||
"length": 1,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": false,
|
||||
"default": "1",
|
||||
"comment": "0 = Disable version numbers, 1 = Allow version numbers, 2 = Require version numbers",
|
||||
"unsigned": false,
|
||||
"zerofill": false,
|
||||
"auto_increment": false,
|
||||
"binary": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
namespace IPS\downloads\setup\upg_40000;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -32,7 +32,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 100;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
@@ -76,6 +76,7 @@ class _Upgrade
|
||||
$category->maxfile = $options['opt_maxfile'] ?: null;
|
||||
$category->maxss = $options['opt_maxss'] ?: null;
|
||||
$category->maxdims = NULL; // We purposefully don't retain the `opt_thumb_x` setting, since that is intended for thumbnails only.
|
||||
$category->version_numbers = \IPS\Settings::i()->idm_versioning ? 1 : 0;
|
||||
$category->versioning = \IPS\Settings::i()->idm_versioning ? NULL : 0;
|
||||
$category->log = \IPS\Settings::i()->idm_logalldownloads ? ( \IPS\Settings::i()->idm_log_prune ?: NULL ) : 0;
|
||||
$category->forum_id = ( isset( $options['opt_topicf'] ) ) ? $options['opt_topicf'] : 0;
|
||||
@@ -208,7 +209,7 @@ class _Upgrade
|
||||
$update['cf_content'] = json_encode( $newOptions );
|
||||
}
|
||||
|
||||
if( count( $update ) )
|
||||
if( \count( $update ) )
|
||||
{
|
||||
\IPS\Db::i()->update( 'downloads_cfields', $update, 'cf_id=' . $field['cf_id'] );
|
||||
}
|
||||
@@ -251,7 +252,7 @@ class _Upgrade
|
||||
$update[] = "field_{$fieldId}=TRIM( BOTH ',' FROM field_{$fieldId} )";
|
||||
}
|
||||
|
||||
if( count( $update ) )
|
||||
if( \count( $update ) )
|
||||
{
|
||||
\IPS\Db::i()->update( 'downloads_ccontent', implode( ", ", $update ) );
|
||||
}
|
||||
@@ -327,7 +328,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 500;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
|
||||
/* Try to prevent timeouts to the extent possible */
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
@@ -405,7 +406,7 @@ class _Upgrade
|
||||
{
|
||||
$offset = isset( \IPS\Request::i()->extra ) ? \IPS\Request::i()->extra : 0;
|
||||
$select = \IPS\Db::i()->select( '*', 'core_files', NULL, 'id', array( $offset, 25 ) );
|
||||
if ( count( $select ) )
|
||||
if ( \count( $select ) )
|
||||
{
|
||||
foreach ( $select as $row )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user