Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

Whitespace-only changes.
@@ -1,48 +0,0 @@
<?php
/**
* @brief 4.0.0 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 Calendar
* @since 30 Oct 2014
*/
namespace IPS\calendar\setup\upg_100002;
/* 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.0.0 Upgrade Code
*/
class _Upgrade
{
/**
* Act on blogs
*
* @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()->update( 'calendar_calendars', array( 'cal_title_seo' => null ) );
\IPS\Db::i()->update( 'calendar_events', array( 'event_title_seo' => null ) );
return true;
}
/**
* Custom title for this step
*
* @return string
*/
public function step1CustomTitle()
{
return "Resetting calendar friendly URL titles";
}
}
Whitespace-only changes.
@@ -1,30 +0,0 @@
{
"1": {
"method": "dropIndex",
"params": [
"calendar_events",
"event_content"
]
},
"2": {
"method": "dropIndex",
"params": [
"calendar_events",
"event_title"
]
},
"3": {
"method": "dropIndex",
"params": [
"calendar_event_comments",
"comment_text"
]
},
"4": {
"method": "dropIndex",
"params": [
"calendar_event_reviews",
"review_text"
]
}
}
Whitespace-only changes.
@@ -1,23 +0,0 @@
{
"1": {
"method": "changeColumn",
"params": [
"calendar_event_reviews",
"review_votes_data",
{
"name": "review_votes_data",
"type": "TEXT",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": "",
"comment": "JSON object containing data about who has voted helpful\/unhelpful ",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}
Whitespace-only changes.
@@ -1,38 +0,0 @@
<?php
/**
* @brief 4.0.0 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 Calendar
* @since 15 Jan 2015
*/
namespace IPS\calendar\setup\upg_100015;
/* 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.0.0 RC 2 Upgrade Code
*/
class _Upgrade
{
/**
* Finish - This is run after all apps have been upgraded
*
* @return mixed 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)
* @note We opted not to let users run this immediately during the upgrade because of potential issues (it taking a long time and users stopping it or getting frustrated) but we can revisit later
*/
public function finish()
{
\IPS\Task::queue( 'core', 'RebuildItems', array( 'class' => 'IPS\calendar\Event' ), 3, array( 'class' ) );
\IPS\Task::queue( 'core', 'RebuildItemCounts', array( 'class' => 'IPS\calendar\Event', 'count' => 0 ), 4, array( 'class' ) );
\IPS\Task::queue( 'core', 'RebuildContainerCounts', array( 'class' => 'IPS\calendar\Calendar', 'count' => 0 ), 5, array( 'class' ) );
}
}
Whitespace-only changes.
@@ -1,13 +0,0 @@
{
"1": {
"method": "delete",
"params": [
"core_modules",
[
"sys_module_application=? AND sys_module_key=?",
"calendar",
"events"
]
]
}
}
Whitespace-only changes.
@@ -1,42 +0,0 @@
<?php
/**
* @brief 4.0.0 RC 5 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 Calendar
* @since 5 May 2015
*/
namespace IPS\calendar\setup\upg_100018;
/* 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.0.0 RC 5 Upgrade Code
*/
class _Upgrade
{
/**
* Make sure all theme settings are applied to every theme.
*
* @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 finish()
{
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => 'IPS\calendar\Event' ), 4 );
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => 'IPS\calendar\Event\Comment' ), 4 );
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => 'IPS\calendar\Event\Review' ), 4 );
\IPS\Task::queue( 'core', 'RebuildContainerCounts', array( 'class' => 'IPS\calendar\Calendar', 'count' => 0 ), 5, array( 'class' ) );
return TRUE;
}
}
Whitespace-only changes.
@@ -1,111 +0,0 @@
{
"1": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_start_date",
{
"name": "event_start_date",
"type": "DATETIME",
"length": 0,
"decimals": null,
"values": [],
"allow_null": false,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"2": {
"method": "addIndex",
"params": [
"calendar_event_comments",
{
"type": "key",
"name": "comment_approved",
"columns": [
"comment_approved"
],
"length": [
null
]
}
]
},
"3": {
"method": "addIndex",
"params": [
"calendar_event_reviews",
{
"type": "key",
"name": "review_approved",
"columns": [
"review_approved"
],
"length": [
null
]
}
]
},
"4": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "event_featured",
"columns": [
"event_featured",
"event_approved",
"event_calendar_id"
],
"length": [
null,
null,
null
]
}
]
},
"5": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "recurring_events",
"columns": [
"event_recurring",
"event_approved",
"event_calendar_id"
],
"length": [
250,
null,
null
]
}
]
},
"6": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "ip_lookup",
"columns": [
"event_ip_address"
],
"length": [
null
]
}
]
}
}
Whitespace-only changes.
@@ -1,12 +0,0 @@
{
"1": {
"method": "update",
"params": [
"calendar_events",
{
"event_end_date": null
},
"event_start_date=event_end_date"
]
}
}
Whitespace-only changes.
@@ -1,89 +0,0 @@
{
"1": {
"method": "dropColumn",
"params": [
"calendar_events",
"event_comments_pending"
]
},
"2": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_queued_comments",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"3": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_hidden_comments",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"4": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_unapproved_reviews",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"5": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_hidden_reviews",
"type": "INT",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}
Whitespace-only changes.
@@ -1,41 +0,0 @@
<?php
/**
* @brief 4.0.5 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 Calendar
* @since 5 May 2015
*/
namespace IPS\calendar\setup\upg_100028;
/* 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.0.5 Upgrade Code
*/
class _Upgrade
{
/**
* Make sure all theme settings are applied to every theme.
*
* @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 finish()
{
\IPS\core\Setup\Upgrade::repairFileUrls('calendar');
\IPS\Task::queue( 'core', 'RebuildContentImages', array( 'class' => 'IPS\calendar\Event' ), 3, array( 'class' ) );
\IPS\Task::queue( 'core', 'RebuildContentImages', array( 'class' => 'IPS\calendar\Event\Comment' ), 3, array( 'class' ) );
\IPS\Task::queue( 'core', 'RebuildContentImages', array( 'class' => 'IPS\calendar\Event\Review' ), 3, array( 'class' ) );
return TRUE;
}
}
Whitespace-only changes.
@@ -1,120 +0,0 @@
<?php
/**
* @brief 4.0.12 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 Calendar
* @since 21 Jul 2015
*/
namespace IPS\calendar\setup\upg_100042;
/* 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.0.12 Upgrade Code
*/
class _Upgrade
{
/**
* Fix all day calendar events
*
* @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 = 500;
$did = 0;
$limit = \intval( \IPS\Request::i()->extra );
/* Try to prevent timeouts to the extent possible */
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
/* We need all day events where the time is not already 00:00 - these are the ones that are time zone adjusted and need to be fixed */
foreach( \IPS\Db::i()->select( '*', 'calendar_events', array( "event_all_day=? AND DATE_FORMAT(event_start_date,'%H:%i') != ?", 1, '00:00' ), 'event_id ASC', array( $limit, $perCycle ) ) as $event )
{
if( $cutOff !== null AND time() >= $cutOff )
{
return ( $limit + $did );
}
$did++;
$update = array();
/* We need to figure out the submitter's time zone offset so we can put the event back to where it belongs */
if( $event['event_member_id'] )
{
$member = \IPS\Member::load( $event['event_member_id'] );
$startDate = new \IPS\DateTime( $event['event_start_date'], $member->timezone ? new \DateTimeZone( $member->timezone ) : NULL );
}
else
{
$startDate = new \IPS\DateTime( $event['event_start_date'], NULL );
}
/* Then move it back to UTC */
$startDate->setTimezone( new \DateTimeZone('UTC') );
/* And then return our datetime */
$update['event_start_date'] = $startDate->format( 'Y-m-d 00:00:00' );
/* Do the same if we have an end date */
if( $event['event_end_date'] )
{
/* We need to figure out the submitter's time zone offset so we can put the event back to where it belongs */
if( $event['event_member_id'] )
{
$member = \IPS\Member::load( $event['event_member_id'] );
$endDate = new \IPS\DateTime( $event['event_end_date'], $member->timezone ? new \DateTimeZone( $member->timezone ) : NULL );
}
else
{
$endDate = new \IPS\DateTime( $event['event_end_date'], NULL );
}
/* Then move it back to UTC */
$endDate->setTimezone( new \DateTimeZone('UTC') );
/* And then return our datetime */
$update['event_end_date'] = $endDate->format( 'Y-m-d 00:00:00' );
}
\IPS\Db::i()->update( 'calendar_events', $update, array( 'event_id=?', $event['event_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(*)', 'calendar_events', array( "event_all_day=? AND DATE_FORMAT(event_start_date,'%H:%i') != ?", 1, '00:00' ) )->first();
}
return "Fixing all day calendar events (Updated so far: " . ( ( $limit > $_SESSION['_step1Count'] ) ? $_SESSION['_step1Count'] : $limit ) . ' out of ' . $_SESSION['_step1Count'] . ')';
}
}
Whitespace-only changes.
@@ -1,23 +0,0 @@
{
"1": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_end_date",
{
"name": "event_end_date",
"type": "DATETIME",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}
Whitespace-only changes.
@@ -1,56 +0,0 @@
<?php
/**
* @brief 4.1.16 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 Calendar
* @since 30 Sep 2016
*/
namespace IPS\calendar\setup\upg_101064;
/* 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.1.16 Beta 1 Upgrade Code
*/
class _Upgrade
{
/**
* Fix broken end dates
*
* @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()
{
/* At one point we set the default value for an end date field as 0000-00-00 00:00:00, however more recent versions of MySQL and/or
STRICT mode does not allow this date, so we changed over to storing NULL instead, which is of course more appropriate. We then
attempted to fix these dates in an upgrade routine, however even querying with a value of 0000-00-00 00:00:00 is not allowed with STRICT
mode enabled, so it caused errors. This upgrade routine will now reset the end date as we used to, but catch any exceptions and ignore
them for people with strict mode enabled. */
try
{
\IPS\Db::i()->update( 'calendar_events', array( 'event_end_date' => NULL ), array( 'event_end_date=?', '0000-00-00 00:00:00' ) );
}
catch( \Exception $e ){}
return TRUE;
}
/**
* Custom title for this step
*
* @return string
*/
public function step1CustomTitle()
{
return "Fixing incorrectly stored event dates";
}
}
Whitespace-only changes.
@@ -1,321 +0,0 @@
{
"1": {
"method": "createTable",
"params": [
{
"name": "calendar_event_reminders",
"columns": {
"reminder_id": {
"name": "reminder_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
},
"reminder_event_id": {
"name": "reminder_event_id",
"type": "BIGINT",
"length": 10,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "Event to remind about",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"reminder_member_id": {
"name": "reminder_member_id",
"type": "BIGINT",
"length": 20,
"decimals": null,
"values": null,
"allow_null": false,
"default": null,
"comment": "Member to notify",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"reminder_date": {
"name": "reminder_date",
"type": "INT",
"length": 10,
"decimals": null,
"values": null,
"allow_null": false,
"default": null,
"comment": "Timestamp after which to send notification",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"reminder_days_before": {
"name": "reminder_days_before",
"type": "INT",
"length": 2,
"decimals": null,
"values": null,
"allow_null": false,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"reminder_id"
],
"length": [
null
]
},
"reminder": {
"type": "key",
"name": "reminder",
"columns": [
"reminder_event_id",
"reminder_member_id"
],
"length": [
null,
null
]
},
"date": {
"type": "key",
"name": "date",
"columns": [
"reminder_date"
],
"length": [
null
]
}
}
}
]
},
"2": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_venue",
"type": "INT",
"length": 5,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true
}
]
},
"3": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_meta_data",
"type": "BIT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"4": {
"method": "addColumn",
"params": [
"calendar_import_feeds",
{
"name": "feed_venue_id",
"type": "INT",
"length": 5,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"5": {
"method": "createTable",
"params": [
{
"name": "calendar_venues",
"columns": {
"venue_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "ID Number",
"decimals": null,
"default": "0",
"length": 20,
"name": "venue_id",
"type": "BIGINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"venue_position": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 5,
"name": "venue_position",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"venue_enabled": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "1",
"length": 1,
"name": "venue_enabled",
"type": "TINYINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"venue_title_seo": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "venue_title_seo",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"venue_address": {
"name": "venue_address",
"type": "TEXT",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": "",
"comment": "Physical Address",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"venue_id"
]
}
}
}
]
},
"6": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "event_venue",
"columns": [
"event_venue"
],
"length": [
null
]
}
]
},
"7": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_club_id",
"type": "BIGINT",
"length": null,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "The club ID if this calendar belongs to a club, or NULL",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"8": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_bitoptions",
"type": "INT",
"length": 10,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}
Whitespace-only changes.
@@ -1,37 +0,0 @@
<?php
/**
* @brief 4.2.2 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 Calendar
* @since 26 Jul 2017
*/
namespace IPS\calendar\setup\upg_102005;
/* 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.2.2 Beta 1 Upgrade Code
*/
class _Upgrade
{
/**
* Recount containers
*
* @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 finish()
{
\IPS\Task::queue( 'core', 'RebuildContainerCounts', array( 'class' => 'IPS\calendar\Calendar', 'count' => 0 ), 5, array( 'class' ) );
return TRUE;
}
}
Whitespace-only changes.
@@ -1,92 +0,0 @@
{
"1": {
"method": "addColumn",
"params": [
"calendar_event_reviews",
{
"name": "review_author_response",
"type": "MEDIUMTEXT",
"length": null,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"2": {
"method": "changeIndex",
"params": [
"calendar_event_reviews",
"review_mid",
{
"type": "key",
"name": "review_mid",
"columns": [
"review_mid",
"review_date"
],
"length": [
null,
null
]
}
]
},
"3": {
"method": "addIndex",
"params": [
"calendar_event_rsvp",
{
"type": "key",
"name": "rsvp_search",
"columns": [
"rsvp_date",
"rsvp_member_id"
],
"length": [
null,
null
]
}
]
},
"4": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "event_album",
"columns": [
"event_album",
"event_approved",
"event_saved"
],
"length": [
null,
null,
null
]
}
]
},
"5": {
"method": "update",
"params": [
"core_sys_lang_words",
{
"word_app": "calendar"
},
[
"word_app=? AND word_key LIKE '%calendar_venue_%'",
"venues"
]
]
}
}
@@ -1,34 +0,0 @@
{
"1": {
"method": "addIndex",
"params": [
"calendar_event_reminders",
{
"type": "key",
"name": "member",
"columns": [
"reminder_member_id"
],
"length": [
null
]
}
]
},
"2": {
"method": "addIndex",
"params": [
"calendar_import_feeds",
{
"type": "key",
"name": "member",
"columns": [
"feed_member_id"
],
"length": [
null
]
}
]
}
}
@@ -12,16 +12,28 @@
namespace IPS\calendar\setup\upg_105013;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use DateInterval;
use DatePeriod;
use InvalidArgumentException;
use IPS\calendar\Date;
use IPS\calendar\Icalendar\ICSParser;
use IPS\core\Setup\Upgrade as UpgradeClass;
use IPS\Db;
use IPS\Request;
use function defined;
use function intval;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.5.0 Beta 1 Upgrade Code
*/
class _Upgrade
class Upgrade
{
/**
* Set the event recurring end date/time for recurring events that end
@@ -32,12 +44,12 @@ class _Upgrade
{
$perCycle = 100;
$did = 0;
$limit = \intval( \IPS\Request::i()->extra );
$limit = intval( Request::i()->extra );
/* Try to prevent timeouts to the extent possible */
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
$cutOff = UpgradeClass::determineCutoff();
foreach( \IPS\Db::i()->select( '*', 'calendar_events', array( 'event_recurring IS NOT NULL' ), 'event_id ASC', array( $limit, $perCycle ) ) as $event )
foreach( Db::i()->select( '*', 'calendar_events', array( 'event_recurring IS NOT NULL' ), 'event_id ASC', array( $limit, $perCycle ) ) as $event )
{
if( $cutOff !== null AND time() >= $cutOff )
{
@@ -48,9 +60,9 @@ class _Upgrade
try
{
$recurrenceRule = \IPS\calendar\Icalendar\ICSParser::parseRrule( $event['event_recurring'], 'UTC' );
$recurrenceRule = ICSParser::parseRrule( $event['event_recurring'], 'UTC' );
}
catch( \InvalidArgumentException $e )
catch( InvalidArgumentException $e )
{
continue;
}
@@ -84,7 +96,7 @@ class _Upgrade
break;
}
$period = new \DatePeriod( \IPS\calendar\Date::parseTime( $event['event_start_date'], $event['event_all_day'] ? FALSE : TRUE ), new \DateInterval( 'P' . $recurrenceRule['event_repeat_freq'] . mb_strtoupper( mb_substr( $keyword, 0, 1 ) ) ), $recurrenceRule['repeat_end_occurrences'] );
$period = new DatePeriod( Date::parseTime( $event['event_start_date'], $event['event_all_day'] ? FALSE : TRUE ), new DateInterval( 'P' . $recurrenceRule['event_repeat_freq'] . mb_strtoupper( mb_substr( $keyword, 0, 1 ) ) ), $recurrenceRule['repeat_end_occurrences'] );
foreach( $period as $dateOccurrence )
{
@@ -94,7 +106,7 @@ class _Upgrade
if( $endDate !== NULL )
{
\IPS\Db::i()->update( 'calendar_events', array( 'event_recurring_end_date' => $endDate ), array( 'event_id=?', $event['event_id'] ) );
Db::i()->update( 'calendar_events', array( 'event_recurring_end_date' => $endDate ), array( 'event_id=?', $event['event_id'] ) );
}
}
@@ -116,11 +128,11 @@ class _Upgrade
*/
public function step1CustomTitle()
{
$limit = isset( \IPS\Request::i()->extra ) ? \IPS\Request::i()->extra : 0;
$limit = isset( Request::i()->extra ) ? Request::i()->extra : 0;
if( !isset( $_SESSION['_step1Count'] ) )
{
$_SESSION['_step1Count'] = \IPS\Db::i()->select( 'COUNT(*)', 'calendar_events', array( 'event_recurring IS NOT NULL' ) )->first();
$_SESSION['_step1Count'] = Db::i()->select( 'COUNT(*)', 'calendar_events', array( 'event_recurring IS NOT NULL' ) )->first();
}
return "Upgrading recurring calendar events (Upgraded so far: " . ( ( $limit > $_SESSION['_step1Count'] ) ? $_SESSION['_step1Count'] : $limit ) . ' out of ' . $_SESSION['_step1Count'] . ')';
@@ -12,16 +12,20 @@
namespace IPS\calendar\setup\upg_107300;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Settings;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.7.3 Beta 1 Upgrade Code
*/
class _Upgrade
class Upgrade
{
/**
* ...
@@ -30,7 +34,7 @@ class _Upgrade
*/
public function step1()
{
\IPS\Settings::i()->changeValues( array( 'calendar_default_view' => 'overview' ) );
Settings::i()->changeValues( array( 'calendar_default_view' => 'overview' ) );
return TRUE;
}
@@ -12,16 +12,20 @@
namespace IPS\calendar\setup\upg_107305;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Widget;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.7.3 Upgrade Code
*/
class _Upgrade
class Upgrade
{
/**
* ...
@@ -30,7 +34,7 @@ class _Upgrade
*/
public function step1()
{
\IPS\Widget::deprecateWidget('todaysBirthdays', 'calendar');
Widget::deprecateWidget('todaysBirthdays', 'calendar');
return TRUE;
}
@@ -1,23 +0,0 @@
{
"id": 107702,
"name": "4.7.12 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107748,
"name": "4.7.16",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107750,
"name": "4.7.16",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107751,
"name": "4.7.16",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107760,
"name": "4.7.17 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107774,
"name": "4.7.18",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107775,
"name": "4.7.18",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107781,
"name": "4.7.19 Beta 2",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107782,
"name": "4.7.19 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107783,
"name": "4.7.19 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107784,
"name": "4.7.19",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107785,
"name": "4.7.19",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107786,
"name": "4.7.19",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107787,
"name": "4.7.19",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107795,
"name": "4.7.20 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107796,
"name": "4.7.20 Beta 2",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107797,
"name": "4.7.20 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107798,
"name": "4.7.20 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107799,
"name": "4.7.20 Beta 5",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107800,
"name": "4.7.20",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107801,
"name": "4.7.20",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107802,
"name": "4.7.20",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107803,
"name": "4.7.20",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107810,
"name": "4.7.21 Beta 1",
"steps": {
"queries": true,
"lang": false,
"theme": false,
"themeSettings": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
"modules": false,
"widgets": false,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,20 +0,0 @@
{
"1": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_views",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": 0,
"comment": "",
"unsigned": false,
"auto_increment": false
}
]
}
}
@@ -1,23 +0,0 @@
{
"id": 107811,
"name": "4.7.21",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107815,
"name": "4.7.22 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107816,
"name": "4.7.22 Beta 2",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107817,
"name": "4.7.22",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107818,
"name": "4.7.22",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107819,
"name": "4.7.22",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107820,
"name": "4.7.22",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107826,
"name": "4.7.23 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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,23 +0,0 @@
{
"id": 107827,
"name": "4.7.23",
"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,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
Whitespace-only changes.
File diff suppressed because it is too large. Load diff
@@ -1,55 +0,0 @@
<?php
/**
* @brief 4.0.0 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 Calendar
* @since 24 Oct 2014
*/
namespace IPS\calendar\setup\upg_32000;
/* 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.0.0 Upgrade Code
*/
class _Upgrade
{
/**
* Conversion from 3.0
*
* @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()
{
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( array(
array(
'table' => 'cal_events_bak',
'query' => "INSERT INTO " . \IPS\Db::i()->prefix . "cal_events SELECT event_id, event_calendar_id, event_member_id, event_content, event_title, event_smilies, 0, 0, event_perms, event_private, event_approved, event_unixstamp, event_unixstamp,
event_recurring, FROM_UNIXTIME(event_unix_from), CASE WHEN event_unix_to > 0 THEN FROM_UNIXTIME(event_unix_to) ELSE NULL END, '', 0, 0, 0, 0, MD5( CONCAT( event_id, event_title ) ), 0, 1 FROM " . \IPS\Db::i()->prefix . "cal_events_bak"
),
array(
'table' => 'cal_events_bak',
'query' => "DROP TABLE " . \IPS\Db::i()->prefix . "cal_events_bak"
)
) );
if ( \count( $toRun ) )
{
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'calendar', 'extra' => array( '_upgradeStep' => 2 ) ) );
/* Queries to run manually */
return array( 'html' => \IPS\Theme::i()->getTemplate( 'forms' )->queries( $toRun, \IPS\Http\Url::internal( 'controller=upgrade' )->setQueryString( array( 'key' => $_SESSION['uniqueKey'], 'mr_continue' => 1, 'mr' => \IPS\Request::i()->mr ) ) ) );
}
return TRUE;
}
}
Whitespace-only changes.
@@ -1,28 +0,0 @@
{
"1": {
"method": "addColumn",
"params": [
"cal_events",
{
"name": "event_all_day",
"type": "tinyint",
"length": 1,
"allow_null": false,
"default": 0
}
]
},
"2": {
"method": "update",
"params": [
"cal_events",
{
"event_all_day": 1
},
[
"TIME(event_start_date)=?",
"00:00:00"
]
]
}
}
Whitespace-only changes.
@@ -1,967 +0,0 @@
{
"1": {
"method": "renameTable",
"params": [
"cal_calendars",
"calendar_calendars"
]
},
"2": {
"method": "renameTable",
"params": [
"cal_event_comments",
"calendar_event_comments"
]
},
"3": {
"method": "renameTable",
"params": [
"cal_event_rsvp",
"calendar_event_rsvp"
]
},
"4": {
"method": "dropTable",
"params": [
"calendar_events",
true
]
},
"5": {
"method": "renameTable",
"params": [
"cal_events",
"calendar_events"
]
},
"6": {
"method": "dropIndex",
"params": [
"calendar_events",
"approved"
]
},
"7": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_end_date",
{
"name": "event_end_date",
"type": "VARCHAR",
"length": 255,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"8": {
"method": "update",
"params": [
"calendar_events",
"event_end_date=NULL",
"event_end_date='0000-00-00 00:00:00'"
]
},
"9": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_end_date",
{
"name": "event_end_date",
"type": "DATETIME",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"10": {
"method": "addIndex",
"params": [
"calendar_events",
{
"type": "key",
"name": "approved",
"length": [
null,
null,
null,
null
],
"columns": [
"event_calendar_id",
"event_approved",
"event_start_date",
"event_end_date"
]
}
]
},
"11": {
"method": "renameTable",
"params": [
"cal_import_feeds",
"calendar_import_feeds"
]
},
"12": {
"method": "renameTable",
"params": [
"cal_import_map",
"calendar_import_map"
]
},
"13": {
"method": "dropIndex",
"params": [
"calendar_events",
"event_content"
]
},
"14": {
"method": "dropIndex",
"params": [
"calendar_events",
"event_title"
]
},
"15": {
"method": "dropIndex",
"params": [
"calendar_event_comments",
"comment_text"
]
},
"16": {
"method": "dropColumn",
"params": [
"calendar_calendars",
[
"cal_rss_cache",
"cal_rss_update",
"cal_rss_export",
"cal_rss_export_days",
"cal_rss_update_last",
"cal_rss_export_max",
"cal_rsvp_owner",
"cal_bday_limit",
"cal_event_limit"
]
]
},
"17": {
"method": "dropColumn",
"params": [
"calendar_import_feeds",
"feed_recache_freq"
]
},
"18": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_color",
"type": "VARCHAR",
"length": 7,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Hex color code to represent this calendar",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"19": {
"method": "update",
"params": [
"calendar_calendars",
"cal_color='#000000'"
]
},
"20": {
"method": "changeColumn",
"params": [
"calendar_event_comments",
"ip_address",
{
"name": "comment_ip_address",
"type": "VARCHAR",
"length": 46,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"21": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_reviews",
"type": "INT",
"length": null,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"22": {
"method": "dropColumn",
"params": [
"calendar_events",
[
"event_smilies",
"event_rating_hits",
"event_rating_total",
"event_attachments"
]
]
},
"23": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_ip_address",
"type": "VARCHAR",
"length": 46,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"24": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_locked",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "Whether the event is locked (for new comments\/reviews) or not",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"25": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_featured",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "Whether the event is featured or not",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"26": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_rating_avg",
{
"name": "event_rating",
"type": "SMALLINT",
"length": 5,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"27": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_last_comment",
"type": "INT",
"length": 11,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"28": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_last_review",
"type": "INT",
"length": 11,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"29": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_approved_by",
"type": "BIGINT",
"length": 0,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Member ID who approved the event",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"30": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_approved_on",
"type": "INT",
"length": 11,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Date the event was approved on",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"31": {
"method": "dropTable",
"params": [
"cal_event_ratings",
true
]
},
"32": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_allow_comments",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "1",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"33": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_allow_reviews",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"34": {
"method": "addColumn",
"params": [
"calendar_calendars",
{
"name": "cal_review_moderate",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"35": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_location",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Stores location data for the event, used to create a map",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"36": {
"method": "addColumn",
"params": [
"calendar_import_feeds",
{
"name": "feed_allow_rsvp",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"37": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_rsvp_limit",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Maximum number of attendees allowed for the event",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"38": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_cover_photo",
"type": "VARCHAR",
"length": 255,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Header background image for the event",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"39": {
"method": "addColumn",
"params": [
"calendar_event_rsvp",
{
"name": "rsvp_response",
"type": "TINYINT",
"length": null,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "0=No, 1=Yes, 2=Maybe",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"40": {
"method": "update",
"params": [
"calendar_event_rsvp",
"rsvp_response=1"
]
},
"41": {
"method": "changeColumn",
"params": [
"calendar_events",
"event_recurring",
{
"name": "event_recurring",
"type": "TEXT",
"length": 2,
"decimals": null,
"values": [],
"allow_null": true,
"default": "0",
"comment": "Holds an RRULE value to indicate how the event recurs",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"42": {
"method": "changeColumn",
"params": [
"calendar_import_feeds",
"feed_next_run",
{
"name": "feed_last_run",
"type": "INT",
"length": 11,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"43": {
"method": "changeIndex",
"params": [
"calendar_import_feeds",
"feed_next_run",
{
"type": "key",
"name": "feed_last_run",
"columns": [
"feed_last_run"
],
"length": [
null
]
}
]
},
"44": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_album",
"type": "MEDIUMINT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Holds album ID associated with this event",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"45": {
"method": "createTable",
"params": [
{
"name": "calendar_event_reviews",
"columns": {
"review_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "ID Number",
"decimals": null,
"default": null,
"length": 20,
"name": "review_id",
"type": "BIGINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_eid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "The event ID",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_eid",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_mid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "The member ID of the review author",
"decimals": null,
"default": "0",
"length": 8,
"name": "review_mid",
"type": "MEDIUMINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_text": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "The review contents",
"decimals": null,
"default": null,
"length": 0,
"name": "review_text",
"type": "MEDIUMTEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_append_edit": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "Boolean indicating if edit message should show",
"decimals": null,
"default": "0",
"length": 1,
"name": "review_append_edit",
"type": "TINYINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_edit_time": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "Unix timestamp of when the review was last edited",
"decimals": null,
"default": null,
"length": 10,
"name": "review_edit_time",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_edit_name": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "Username of user who last edited review",
"decimals": null,
"default": null,
"length": 255,
"name": "review_edit_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_date": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "Unix timestamp of when review was made",
"decimals": null,
"default": null,
"length": 10,
"name": "review_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_ip": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "IP address review was made from",
"decimals": null,
"default": "",
"length": 46,
"name": "review_ip",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_author_name": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "Username of user who made review",
"decimals": null,
"default": "",
"length": 255,
"name": "review_author_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_rating": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "The rating (out of 5) with the review",
"decimals": null,
"default": null,
"length": 1,
"name": "review_rating",
"type": "TINYINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_votes": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "The number of people who have voted \"helpful\" or \"unhelpful\"",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_votes",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_votes_helpful": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "The number of people who have voted \"helpful\"",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_votes_helpful",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"review_votes_data": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "JSON object containing data about who has voted helpful\/unhelpful ",
"decimals": null,
"default": "",
"length": 0,
"name": "review_votes_data",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_approved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "Review is approved?",
"decimals": null,
"default": "1",
"length": 1,
"name": "review_approved",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"review_id"
]
},
"review_eid": {
"type": "key",
"name": "review_eid",
"length": [
null
],
"columns": [
"review_eid"
]
},
"review_mid": {
"type": "key",
"name": "review_mid",
"length": [
null
],
"columns": [
"review_mid"
]
},
"review_ip": {
"type": "key",
"name": "review_ip",
"columns": [
"review_ip"
],
"length": [
null
]
}
}
}
]
},
"46": {
"method": "addIndex",
"params": [
"calendar_event_comments",
{
"type": "key",
"name": "comment_mid",
"columns": [
"comment_mid"
],
"length": [
null
]
}
]
},
"47": {
"method": "addColumn",
"params": [
"calendar_events",
{
"name": "event_cover_offset",
"type": "INT",
"length": null,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}
@@ -1,98 +0,0 @@
<?php
/**
* @brief 4.0.0 Alpha 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/
* @subpackage Calendar
* @package Invision Community
* @since 8 Jan 2014
*/
namespace IPS\calendar\setup\upg_40000;
/* 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.0.0 Alpha 1 Upgrade Code
*/
class _Upgrade
{
/**
* Upgrade calendar
*
* @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()->update( 'calendar_events', array( 'event_recurring' => NULL ), array( 'event_recurring=?', '0' ) );
\IPS\Db::i()->update( 'calendar_events', array( 'event_recurring' => "FREQ=yearly;INTERVAL=1" ), array( 'event_recurring=?', '3' ) );
\IPS\Db::i()->update( 'calendar_events', array( 'event_recurring' => "FREQ=monthly;INTERVAL=1" ), array( 'event_recurring=?', '2' ) );
\IPS\Db::i()->update( 'calendar_events', array( 'event_recurring' => "FREQ=weekly;INTERVAL=1" ), array( 'event_recurring=?', '1' ) );
\IPS\Db::i()->update( 'calendar_events', "event_recurring=CONCAT( event_recurring, ';UNTIL=', DATE_FORMAT( event_end_date, '%Y%m%dT%k%i%sZ' ) ), event_end_date=NULL", 'event_recurring IS NOT NULL AND event_end_date IS NOT NULL' );
\IPS\Db::i()->update( 'calendar_events', array( 'event_approved' => 0 ), "event_private=1 or event_perms!='*'" );
\IPS\Db::i()->dropColumn( 'calendar_events', array( 'event_private', 'event_perms' ) );
return true;
}
/**
* Custom title for this step
*
* @return string
*/
public function step1CustomTitle()
{
return "Upgrading calendar events";
}
/**
* Upgrade calendar
*
* @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 step2()
{
foreach( \IPS\Db::i()->select( '*', 'calendar_calendars' ) as $calendar )
{
\IPS\Lang::saveCustom( 'calendar', "calendar_calendar_{$calendar['cal_id']}", \IPS\Text\Parser::utf8mb4SafeDecode( $calendar['cal_title'] ) );
}
\IPS\Db::i()->dropColumn( 'calendar_calendars', 'cal_title' );
return true;
}
/**
* Custom title for this step
*
* @return string
*/
public function step2CustomTitle()
{
return "Upgrading calendars";
}
/**
* Finish - This is run after all apps have been upgraded
*
* @return mixed 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)
* @note We opted not to let users run this immediately during the upgrade because of potential issues (it taking a long time and users stopping it or getting frustrated) but we can revisit later
*/
public function finish()
{
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\calendar\Event' ), 2 );
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\calendar\Event\Comment' ), 2 );
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\calendar\Event\Review' ), 2 );
return TRUE;
}
}
@@ -1,14 +1,13 @@
{
"id": 107745,
"name": "4.7.16",
"id": 5000003,
"name": "5.0.0 Alpha 3",
"steps": {
"queries": false,
"lang": false,
"theme": false,
"themeSettings": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
@@ -1,14 +1,13 @@
{
"id": 107780,
"name": "4.7.19 Beta 1",
"id": 5000004,
"name": "5.0.0 Alpha 4",
"steps": {
"queries": false,
"lang": false,
"theme": true,
"themeSettings": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
@@ -0,0 +1,20 @@
{
"html": {
"added": [],
"edited": [
"front\/view\/view",
"front\/widgets\/recentReviews"
],
"removed": []
},
"css": {
"added": [],
"edited": [],
"removed": []
},
"resources": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -0,0 +1,22 @@
{
"added": [],
"edited": [
"app=calendar&module=calendars&controller=calendars&searchResult=form_new_cal_allow_comments",
"app=calendar&module=calendars&controller=calendars&searchResult=form_new_cal_moderate",
"app=calendar&module=calendars&controller=calendars&searchResult=form_new_cal_title",
"app=calendar&module=calendars&controller=ical&do=add&searchResult=form_feed_calendar_id",
"app=calendar&module=calendars&controller=ical&do=add&searchResult=form_feed_member_id",
"app=calendar&module=calendars&controller=ical&do=add&searchResult=form_feed_title",
"app=calendar&module=calendars&controller=ical&do=upload&searchResult=form_feed_calendar_id",
"app=calendar&module=calendars&controller=ical&do=upload&searchResult=form_feed_member_id",
"app=calendar&module=calendars&controller=venues"
],
"removed": [
"app=calendar&module=calendars&controller=calendars&do=permissions",
"app=calendar&module=calendars&controller=calendars&searchResult=form_1_cal_allow_comments",
"app=calendar&module=calendars&controller=calendars&searchResult=form_1_cal_allow_reviews",
"app=calendar&module=calendars&controller=calendars&searchResult=form_1_cal_color",
"app=calendar&module=calendars&controller=calendars&searchResult=form_1_cal_moderate",
"app=calendar&module=calendars&controller=calendars&searchResult=form_1_cal_title"
]
}
@@ -0,0 +1,22 @@
{
"id": 5000005,
"name": "5.0.0 Alpha 5",
"steps": {
"queries": false,
"lang": true,
"theme": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"acpSearchKeywords": true,
"settings": false,
"tasks": false,
"modules": false,
"widgets": false,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -0,0 +1,18 @@
{
"normal": {
"added": [
"acpsearch__upload_feed_calendar",
"acpsearch__add_feed_calendar",
"acpsearch__add_feed_member",
"acpsearch__upload_feed_member",
"acpsearch__feed_title"
],
"edited": [],
"removed": []
},
"js": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -1,14 +1,13 @@
{
"id": 107746,
"name": "4.7.16",
"id": 5000006,
"name": "5.0.0 Alpha 5",
"steps": {
"queries": false,
"lang": false,
"theme": false,
"themeSettings": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
@@ -1,14 +1,13 @@
{
"id": 107747,
"name": "4.7.16",
"id": 5000007,
"name": "5.0.0 Alpha 5",
"steps": {
"queries": false,
"lang": false,
"theme": false,
"themeSettings": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
@@ -1,14 +1,13 @@
{
"id": 107722,
"name": "4.7.14",
"id": 5000008,
"name": "5.0.0 Alpha 5",
"steps": {
"queries": false,
"lang": false,
"theme": false,
"themeSettings": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
@@ -0,0 +1,22 @@
{
"id": 5000009,
"name": "5.0.0 Alpha 6",
"steps": {
"queries": false,
"lang": true,
"theme": true,
"themeeditor": false,
"javascript": true,
"emailTemplates": true,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
"modules": false,
"widgets": true,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -0,0 +1,7 @@
{
"added": [],
"edited": [
"notification_event_reminder"
],
"removed": []
}
@@ -0,0 +1,14 @@
{
"files": {
"added": [],
"edited": [
"calendar\/front\/templates\/ips.templates.overview.js"
],
"removed": []
},
"orders": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -0,0 +1,14 @@
{
"normal": {
"added": [],
"edited": [],
"removed": []
},
"js": {
"added": [],
"edited": [
"until"
],
"removed": []
}
}
@@ -0,0 +1,32 @@
{
"html": {
"added": [],
"edited": [
"front\/events\/featured",
"front\/events\/nearMe",
"front\/events\/nearMeContent",
"front\/overview\/byMonth",
"front\/overview\/header",
"front\/overview\/wrapper",
"front\/submit\/calendarSelector",
"front\/submit\/datesForm",
"front\/submit\/submitForm",
"front\/view\/comments",
"front\/widgets\/recentReviews",
"front\/widgets\/upcomingEvents"
],
"removed": []
},
"css": {
"added": [],
"edited": [
"front\/calendar.css"
],
"removed": []
},
"resources": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -0,0 +1,8 @@
{
"added": [],
"edited": [
"upcomingEvents",
"recentReviews"
],
"removed": []
}
@@ -0,0 +1,7 @@
{
"added": [
"app=calendar&module=stats&controller=rsvp"
],
"edited": [],
"removed": []
}
@@ -0,0 +1,22 @@
{
"id": 500001,
"name": "5.0.0 Alpha 1",
"steps": {
"queries": false,
"lang": true,
"theme": true,
"themeeditor": false,
"javascript": true,
"emailTemplates": false,
"acpSearchKeywords": true,
"settings": false,
"tasks": false,
"modules": true,
"widgets": false,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -0,0 +1,26 @@
{
"files": {
"added": [],
"edited": [
"calendar\/front\/controllers\/browse\/ips.browse.main.js",
"calendar\/front\/controllers\/overview\/ips.overview.eventList.js",
"calendar\/front\/controllers\/overview\/ips.overview.nearMe.js",
"calendar\/front\/controllers\/overview\/ips.overview.search.js",
"calendar\/front\/controllers\/submit\/ips.submit.dates.js",
"calendar\/front\/controllers\/venue\/ips.venue.main.js",
"calendar\/front\/controllers\/view\/ips.view.reminderButton.js",
"calendar\/front\/templates\/ips.calendar.templates.js",
"calendar\/front\/templates\/ips.templates.overview.js"
],
"removed": [
"calendar\/front\/controllers\/overview\/ips.overview.carousel.js"
]
},
"orders": {
"added": [],
"edited": [
"global\/\/dev\/js\/\/library\/\/jquery"
],
"removed": []
}
}
@@ -0,0 +1,21 @@
{
"normal": {
"added": [
"can_view_reports_calendar_event",
"calendar_bm_filters",
"mf_rsvp",
"mf_rsvp_events",
"mf_rsvp_events_desc"
],
"edited": [
"calendars_sg",
"calendars_sg_lc"
],
"removed": []
},
"js": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -0,0 +1,7 @@
{
"added": [],
"edited": [],
"removed": [
"admin\/venues"
]
}
@@ -0,0 +1,42 @@
{
"html": {
"added": [],
"edited": [
"front\/events\/event",
"front\/events\/featured",
"front\/events\/featuredEvent",
"front\/events\/nearMe",
"front\/events\/nearMeContent",
"front\/overview\/byMonth",
"front\/overview\/searchBar",
"front\/overview\/wrapper",
"front\/widgets\/upcomingEvents",
"front\/events\/event",
"front\/events\/featuredEvent",
"front\/widgets\/upcomingEvents",
"front\/browse\/calendarHeader",
"front\/browse\/calendarWrapper",
"front\/submit\/submitForm",
"front\/view\/eventSidebar",
"front\/view\/view",
"front\/events\/featured",
"front\/view\/eventSidebar",
"front\/widgets\/recentReviews",
"front\/widgets\/upcomingEvents"
],
"removed": []
},
"css": {
"added": [],
"edited": [
"front\/calendar.css",
"front\/calendar.css"
],
"removed": []
},
"resources": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -0,0 +1,22 @@
{
"id": 5000010,
"name": "5.0.0 Alpha 7",
"steps": {
"queries": false,
"lang": false,
"theme": false,
"themeeditor": false,
"javascript": false,
"emailTemplates": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
"modules": false,
"widgets": false,
"customOptions": false,
"customRoutines": false
},
"forceMainUpgrader": false,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
Loaded 100 of 6736 files, more files were not shown because too many files have changed in this diff. Show more