Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into service-worker-notifications
Browse files Browse the repository at this point in the history
# Conflicts:
#	wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.1.php
  • Loading branch information
Cyperghost committed Jun 24, 2024
2 parents 45f8ea4 + 1eba6a4 commit dafe4e4
Show file tree
Hide file tree
Showing 363 changed files with 10,714 additions and 4,323 deletions.
6 changes: 6 additions & 0 deletions com.woltlab.wcf/cronjob.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<description language="de">Löscht verwaiste Dateianhänge</description>
<expression>0 2 * * *</expression>
</cronjob>
<cronjob name="com.woltlab.wcf.fileCleanUp">
<classname>wcf\system\cronjob\FileCleanUpCronjob</classname>
<description>Deletes orphaned files</description>
<description language="de">Löscht verwaiste Dateien</description>
<expression>0 3 * * *</expression>
</cronjob>
<cronjob name="com.woltlab.wcf.backgroundQueueCleanUp">
<classname>wcf\system\cronjob\BackgroundQueueCleanUpCronjob</classname>
<description>Requeues stuck queue items</description>
Expand Down
Binary file removed com.woltlab.wcf/files_pre_check.tar
Binary file not shown.
5 changes: 5 additions & 0 deletions com.woltlab.wcf/objectType.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,11 @@
<name>com.woltlab.wcf.rescueMode</name>
<definitionname>com.woltlab.wcf.floodControl</definitionname>
</type>
<type>
<name>com.woltlab.wcf.attachment</name>
<definitionname>com.woltlab.wcf.file</definitionname>
<classname>wcf\system\file\processor\AttachmentFileProcessor</classname>
</type>
<!-- deprecated -->
<type>
<name>com.woltlab.wcf.page.controller</name>
Expand Down
4 changes: 4 additions & 0 deletions com.woltlab.wcf/objectTypeDefinition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,9 @@
<name>com.woltlab.wcf.multifactor</name>
<interfacename>wcf\system\user\multifactor\IMultifactorMethod</interfacename>
</definition>
<definition>
<name>com.woltlab.wcf.file</name>
<interfacename>wcf\system\file\processor\IFileProcessor</interfacename>
</definition>
</import>
</data>
31 changes: 13 additions & 18 deletions com.woltlab.wcf/option.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,6 @@
<parent>security.general</parent>
<showorder>15</showorder>
</category>
<category name="security.blacklist">
<parent>security</parent>
</category>
<category name="security.blacklist.sfs">
<parent>security.blacklist</parent>
<showorder>1</showorder>
</category>
<category name="security.blacklist.custom">
<parent>security.blacklist</parent>
<showorder>2</showorder>
</category>
<category name="security.antispam">
<parent>security</parent>
</category>
Expand All @@ -186,6 +175,9 @@
<category name="security.antispam.recaptcha">
<parent>security.antispam</parent>
</category>
<category name="security.blacklist.sfs">
<parent>security.antispam</parent>
</category>
<category name="security.censorship">
<parent>security</parent>
</category>
Expand Down Expand Up @@ -672,13 +664,6 @@ moreThanOnce:wcf.acp.option.blacklist_sfs_enable.moreThanOnce
simpleMatch:wcf.acp.option.blacklist_sfs_enable.simpleMatch]]></selectoptions>
<defaultvalue>90percentile</defaultvalue>
</option>
<option name="blacklist_sfs_action">
<categoryname>security.blacklist.sfs</categoryname>
<optiontype>select</optiontype>
<selectoptions><![CDATA[disable:wcf.acp.option.blacklist_sfs_action.disable
block:wcf.acp.option.blacklist_sfs_action.block]]></selectoptions>
<defaultvalue>disable</defaultvalue>
</option>
<!-- /security.blacklist.stopforumspam -->
<!-- security.antispam.captcha -->
<option name="captcha_type">
Expand Down Expand Up @@ -1102,6 +1087,13 @@ XING</selectoptions>
2:wcf.acp.option.register_activation_method.byAdmin
3:wcf.acp.option.register_activation_method.byUserAndAdmin</selectoptions>
</option>
<option name="register_antispam_action">
<categoryname>user.register</categoryname>
<optiontype>select</optiontype>
<selectoptions><![CDATA[disable:wcf.acp.option.register_antispam_action.disable
block:wcf.acp.option.register_antispam_action.block]]></selectoptions>
<defaultvalue>disable</defaultvalue>
</option>
<option name="register_username_min_length">
<categoryname>user.register</categoryname>
<optiontype>integer</optiontype>
Expand Down Expand Up @@ -1625,5 +1617,8 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
<option name="article_enable_visit_tracking"/>
<option name="enable_woltlab_news"/>
<option name="users_online_record_no_guests"/>
<option name="blacklist_sfs_action"/>
<category name="security.blacklist"/>
<category name="security.blacklist.custom"/>
</delete>
</data>
4 changes: 4 additions & 0 deletions com.woltlab.wcf/templates/articleAdd.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{elseif $errorType == 'disallowedBBCodes'}
{lang}wcf.message.error.disallowedBBCodes{/lang}
{else}
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
{/if}
Expand Down Expand Up @@ -583,6 +585,8 @@
<small class="innerError">
{if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{elseif $errorType == 'disallowedBBCodes'}
{lang}wcf.message.error.disallowedBBCodes{/lang}
{else}
{lang}wcf.acp.article.content.error.{@$errorType}{/lang}
{/if}
Expand Down
4 changes: 0 additions & 4 deletions com.woltlab.wcf/templates/attachments.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
{icon name='up-right-and-down-left-from-center'}
{#$attachment->width} × {#$attachment->height}
</li>
<li>
{icon name='eye'}
{#$attachment->downloads}
</li>
</ul>
</a>
</li>
Expand Down
38 changes: 0 additions & 38 deletions com.woltlab.wcf/templates/captchaQuestion.tpl

This file was deleted.

1 change: 0 additions & 1 deletion com.woltlab.wcf/templates/comments.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script data-relocate="true">
require(['Language', 'WoltLabSuite/Core/Component/Comment/List'], (Language, { setup }) => {
Language.addObject({
'wcf.comment.guestDialog.title': '{jslang}wcf.comment.guestDialog.title{/jslang}',
'wcf.comment.more': '{jslang}wcf.comment.more{/jslang}',
'wcf.comment.response.more': '{jslang}wcf.comment.response.more{/jslang}',
});
Expand Down
4 changes: 2 additions & 2 deletions com.woltlab.wcf/templates/headIncludeJavaScript.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ window.addEventListener('pageshow', function(event) {
User.init(
{@$__wcf->user->userID},
{if $__wcf->user->userID}'{@$__wcf->user->username|encodeJS}'{else}''{/if},
{if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if}
{if $__wcf->user->userID}'{@$__wcf->user->getLink()|encodeJS}'{else}''{/if},
'{link controller='GuestTokenDialog'}{/link}'
);
BootstrapFrontend.setup({
Expand Down Expand Up @@ -134,7 +135,6 @@ window.addEventListener('pageshow', function(event) {
);
</script>

{js application='wcf' file='WCF.Attachment' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.ColorPicker' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.ImageViewer' bundle='WCF.Combined' hasTiny=true}
{js application='wcf' file='WCF.Label' bundle='WCF.Combined' hasTiny=true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@

{if !$ajaxCaptcha|empty}
<script data-relocate="true">
$(function() {
WCF.System.Captcha.addCallback('{$captchaID}', function() {
require(['WoltLabSuite/Core/Controller/Captcha'], (ControllerCaptcha) => {
ControllerCaptcha.add('{unsafe:$captchaID|encodeJS}', () => {
return {
captchaAnswer: $('#captchaAnswer').val(),
captchaQuestion: '{$captchaQuestion}'
captchaAnswer: document.getElementById('captchaAnswer').value,
captchaQuestion: '{unsafe:$captchaQuestion|encodeJS}'
};
});
});
Expand Down
90 changes: 19 additions & 71 deletions com.woltlab.wcf/templates/shared_messageFormAttachments.tpl
Original file line number Diff line number Diff line change
@@ -1,81 +1,29 @@
<div class="jsOnly formAttachmentContent messageTabMenuContent" id="attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if}">
<ul class="formAttachmentList clearfix jsObjectActionContainer" data-object-action-class-name="wcf\data\attachment\AttachmentAction"{if !$attachmentHandler->getAttachmentList()|count} style="display: none"{/if}>
{foreach from=$attachmentHandler->getAttachmentList() item=$attachment}
<li class="box64 formAttachmentListItem jsObjectActionObject" data-object-id="{@$attachment->getObjectID()}" data-height="{@$attachment->height}" data-width="{@$attachment->width}" data-is-image="{@$attachment->isImage}">
{if $attachment->tinyThumbnailType}
<img src="{$attachment->getThumbnailLink('tiny')}" alt="" class="attachmentTinyThumbnail">
{else}
{icon size=64 name=$attachment->getIconName()}
{/if}

<div>
<div>
<p><a href="{$attachment->getLink()}" target="_blank"{if $attachment->isImage} title="{$attachment->filename}" class="jsImageViewer"{/if}>{$attachment->filename}</a></p>
<small>{@$attachment->filesize|filesize}</small>
</div>

<ul class="buttonGroup">
<li><button type="button" class="button small jsObjectAction" data-object-action="delete" data-confirm-message="{lang}wcf.attachment.delete.sure{/lang}">{lang}wcf.global.button.delete{/lang}</button></li>
{if $attachment->isImage}
{if $attachment->thumbnailType}<li><button type="button" class="button small jsButtonAttachmentInsertThumbnail" data-object-id="{@$attachment->attachmentID}" data-url="{$attachment->getThumbnailLink('thumbnail')}">{lang}wcf.attachment.insertThumbnail{/lang}</button></li>{/if}
<li><button type="button" class="button small jsButtonAttachmentInsertFull" data-object-id="{@$attachment->attachmentID}" data-url="{$attachment->getLink()}">{lang}wcf.attachment.insertFull{/lang}</button></li>
{else}
<li><button type="button" class="button small jsButtonInsertAttachment" data-object-id="{@$attachment->attachmentID}">{lang}wcf.attachment.insert{/lang}</button></li>
{/if}
</ul>
</div>
</li>
<div class="messageTabMenuContent" id="attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if}">
{unsafe:$attachmentHandler->getHtmlElement()}

<div class="attachment__list__existingFiles">
{foreach from=$attachmentHandler->getAttachmentList() item=attachment}
{unsafe:$attachment->toHtmlElement()}
{/foreach}
</ul>
</div>

<dl class="wide">
<dt></dt>
<dd>
<div data-max-size="{@$attachmentHandler->getMaxSize()}"></div>
<div data-max-size="{$attachmentHandler->getMaxSize()}"></div>
<small>{lang}wcf.attachment.upload.limits{/lang}</small>
</dd>
</dl>

<script data-relocate="true">
{jsphrase name='wcf.attachment.insert'}
{jsphrase name='wcf.attachment.insertFull'}
{jsphrase name='wcf.attachment.moreOptions'}
require(["WoltLabSuite/Core/Component/Attachment/List"], ({ setup }) => {
setup("{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if}");
});
</script>

{event name='fields'}
</div>

<script data-relocate="true">
$(function() {
WCF.Language.addObject({
'wcf.attachment.upload.error.invalidExtension': '{jslang}wcf.attachment.upload.error.invalidExtension{/jslang}',
'wcf.attachment.upload.error.tooLarge': '{jslang}wcf.attachment.upload.error.tooLarge{/jslang}',
'wcf.attachment.upload.error.reachedLimit': '{jslang}wcf.attachment.upload.error.reachedLimit{/jslang}',
'wcf.attachment.upload.error.reachedRemainingLimit': '{jslang}wcf.attachment.upload.error.reachedRemainingLimit{/jslang}',
'wcf.attachment.upload.error.uploadFailed': '{jslang}wcf.attachment.upload.error.uploadFailed{/jslang}',
'wcf.attachment.upload.error.http413': '{jslang}wcf.attachment.upload.error.http413{/jslang}',
'wcf.attachment.upload.error.uploadPhpLimit': '{jslang}wcf.attachment.upload.error.uploadPhpLimit{/jslang}',
'wcf.attachment.insert': '{jslang}wcf.attachment.insert{/jslang}',
'wcf.attachment.insertAll': '{jslang}wcf.attachment.insertAll{/jslang}',
'wcf.attachment.insertFull': '{jslang}wcf.attachment.insertFull{/jslang}',
'wcf.attachment.insertThumbnail': '{jslang}wcf.attachment.insertThumbnail{/jslang}',
'wcf.attachment.delete.sure': '{jslang}wcf.attachment.delete.sure{/jslang}'
});
new WCF.Attachment.Upload(
$('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > dl > dd > div'),
$('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > ul'),
'{@$attachmentObjectType}',
'{@$attachmentObjectID}',
'{$tmpHash|encodeJS}',
'{@$attachmentParentObjectID}',
{@$attachmentHandler->getMaxCount()},
'{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if}',
{
autoScale: {
enable: {if ATTACHMENT_IMAGE_AUTOSCALE}true{else}false{/if},
maxWidth: {ATTACHMENT_IMAGE_AUTOSCALE_MAX_WIDTH},
maxHeight: {ATTACHMENT_IMAGE_AUTOSCALE_MAX_HEIGHT},
fileType: '{ATTACHMENT_IMAGE_AUTOSCALE_FILE_TYPE}',
quality: {ATTACHMENT_IMAGE_AUTOSCALE_QUALITY / 100}
}
}
);
});
</script>

<input type="hidden" name="tmpHash" value="{$tmpHash}">
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*}>
{foreach from=$field->getValue() item=value}
<li data-value="{$value}">
<button class="jsEditItem jsTooltip" type="button" title="{lang}wcf.global.button.edit{/lang}">
{icon name='pencil'}
</button>
<button class="jsDeleteItem jsTooltip" type="button" title="{lang}wcf.global.button.delete{/lang}">
{icon name='trash'}
</button>
<button class="jsEditItem jsTooltip" type="button" title="{lang}wcf.global.button.edit{/lang}">
{icon name='edit'}
</button>
<span>{$value}</span>
</li>
{/foreach}
Expand Down
3 changes: 3 additions & 0 deletions com.woltlab.wcf/templates/shared_simpleAclFormField.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{include file='shared_aclSimple'}

{include file='shared_formFieldDataHandler'}
Loading

0 comments on commit dafe4e4

Please sign in to comment.