generated from deschutesdesigngroupllc/invision-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added claim filed notification for infringing member (#1)
- Loading branch information
1 parent
6dc2426
commit 1c12d5a
Showing
24 changed files
with
364 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"10000": "1.0.0", | ||
"10001": "1.0.1" | ||
"10001": "1.0.1", | ||
"10002": "1.0.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<ips:template parameters="$name, $message, $report, $email" /> | ||
<strong style="font-size: 17px">Hi {$name},</strong> | ||
<br> | ||
{$message|raw} | ||
{$report|raw} | ||
<br> | ||
<em style='color: #8c8c8c'>— {setting="board_name"}</em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<ips:template parameters="$name, $message, $report, $email" /> | ||
Hi {$name}, | ||
{$message|raw} | ||
{$report|raw} | ||
|
||
-- {setting="board_name"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ips:template parameters="$message, $report, $email" /> | ||
{$message|raw} | ||
{$report|raw} | ||
<br> | ||
<em style='color: #8c8c8c'>— {setting="board_name"}</em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<ips:template parameters="$message, $email" /> | ||
{$message|raw} | ||
|
||
-- {setting="board_name"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
src/extensions/core/EditorLocations/ClaimFiledEmail.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
<?php | ||
/** | ||
* @brief Editor Extension: ClaimFiledEmail | ||
* @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 DMCA Copyright Claim Manager | ||
* @since 29 Aug 2023 | ||
*/ | ||
|
||
namespace IPS\dmca\extensions\core\EditorLocations; | ||
|
||
/* 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; | ||
} | ||
|
||
/** | ||
* Editor Extension: ClaimFiledEmail | ||
*/ | ||
class _ClaimFiledEmail | ||
{ | ||
/** | ||
* Can we use HTML in this editor? | ||
* | ||
* @param \IPS\Member $member The member | ||
* @return bool|null NULL will cause the default value (based on the member's permissions) to be used, and is recommended in most cases. A boolean value will override that. | ||
*/ | ||
public function canUseHtml($member) | ||
{ | ||
return false; | ||
} | ||
|
||
/** | ||
* Can we use attachments in this editor? | ||
* | ||
* @param \IPS\Member $member The member | ||
* @param \IPS\Helpers\Form\Editor $field The editor field | ||
* @return bool|null NULL will cause the default value (based on the member's permissions) to be used, and is recommended in most cases. A boolean value will override that. | ||
*/ | ||
public function canAttach($member, $field) | ||
{ | ||
return false; | ||
} | ||
|
||
/** | ||
* Permission check for attachments | ||
* | ||
* @param \IPS\Member $member The member | ||
* @param int|null $id1 Primary ID | ||
* @param int|null $id2 Secondary ID | ||
* @param string|null $id3 Arbitrary data | ||
* @param array $attachment The attachment data | ||
* @param bool $viewOnly If true, just check if the user can see the attachment rather than download it | ||
* @return bool | ||
*/ | ||
public function attachmentPermissionCheck($member, $id1, $id2, $id3, $attachment, $viewOnly=false): bool | ||
{ | ||
/* Make sure that you add a relevant permission check to prevent attachments being accessed via ID enumeration. */ | ||
return true; | ||
} | ||
|
||
/** | ||
* Attachment lookup | ||
* | ||
* @param int|null $id1 Primary ID | ||
* @param int|null $id2 Secondary ID | ||
* @param string|null $id3 Arbitrary data | ||
* @return \IPS\Http\Url|\IPS\Content|\IPS\Node\Model | ||
* @throws \LogicException | ||
*/ | ||
public function attachmentLookup($id1, $id2, $id3) | ||
{ | ||
// return \IPS\Http\Url::internal( ... ); | ||
} | ||
|
||
/** | ||
* Rebuild attachment images in non-content item areas | ||
* | ||
* @param int|null $offset Offset to start from | ||
* @param int|null $max Maximum to parse | ||
* @return int Number completed | ||
* @note This method is optional and will only be called if it exists | ||
*/ | ||
//public function rebuildAttachmentImages( $offset, $max ) | ||
//{ | ||
//} | ||
|
||
/** | ||
* Rebuild content post-upgrade | ||
* | ||
* @param int|null $offset Offset to start from | ||
* @param int|null $max Maximum to parse | ||
* @return int Number completed | ||
* @note This method is optional and will only be called if it exists | ||
*/ | ||
//public function rebuildContent( $offset, $max ) | ||
//{ | ||
//} | ||
|
||
/** | ||
* @brief Store lazy loading status ( true = enabled ) | ||
*/ | ||
protected $_lazyLoadStatus = null; | ||
|
||
/** | ||
* Rebuild content to add or remove lazy loading | ||
* | ||
* @param int|null $offset Offset to start from | ||
* @param int|null $max Maximum to parse | ||
* @param bool $status Enable/Disable lazy loading | ||
* @return int Number completed | ||
* @note This method is optional and will only be called if it exists | ||
*/ | ||
//public function rebuildLazyLoad( $offset, $max, $status=TRUE ) | ||
//{ | ||
//} | ||
|
||
/** | ||
* Total content count to be used in progress indicator | ||
* | ||
* @return int Total Count | ||
*/ | ||
//public function contentCount() | ||
//{ | ||
// return \IPS\Db::i()->select( 'COUNT(*) as count', '...', "..." )->setKeyField('count')->first(); | ||
//} | ||
} |
Oops, something went wrong.