| Server IP : 195.134.90.114 / Your IP : 216.73.216.86 Web Server : Apache/2.4.58 System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/public_html/plugins/generic/controlPublicFiles/templates/ |
Upload File : |
{**
* templates/settings.tpl
*
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2003-2022 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Settings form for the controlPublicFiles plugin.
*}
<script>
$(function() {ldelim}
$('#controlPublicFilesSettings').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
{translate key="plugins.generic.controlPublicFiles.settings.description"}
<form
class="pkp_form"
id="controlPublicFilesSettings"
method="POST"
action="{url router=$smarty.const.ROUTE_COMPONENT op="manage" category="generic" plugin=$pluginName verb="settings" save=true}"
>
<!-- Always add the csrf token to secure your form -->
{csrf}
{fbvFormArea id="controlPublicFilesSettingsCommon"}
{fbvFormSection label="plugins.generic.controlPublicFiles.setting.disableAllUploads" for="disableAllUploads" list=true}
{fbvElement
type="checkbox"
name="disableAllUploads"
id="disableAllUploads"
checked=$disableAllUploads
value=true
label="plugins.generic.controlPublicFiles.setting.disableAllUploads.description"
translate="true"
}
{/fbvFormSection}
{fbvFormSection label="plugins.generic.controlPublicFiles.setting.allowedFileTypes" description="plugins.generic.controlPublicFiles.setting.allowedFileTypes.description"}
{fbvElement
type="text"
id="allowedFileTypes"
value=$allowedFileTypes
}
{/fbvFormSection}
{fbvFormSection label="plugins.generic.controlPublicFiles.setting.allowedDirSize" description="plugins.generic.controlPublicFiles.setting.allowedDirSize.description"}
{fbvElement
type="text"
id="allowedDirSize"
value=$allowedDirSize
}
{/fbvFormSection}
{fbvFormSection label="plugins.generic.controlPublicFiles.setting.disableRoles" for="disableRoles" list=true}
{foreach from=$roles key=$roleId item=$role}
{if $disableRoles && in_array($roleId, $disableRoles)}
{assign var="checked" value=true}
{else}
{assign var="checked" value=false}
{/if}
{capture assign="label"}{translate key="plugins.generic.controlPublicFiles.setting.disableRoles.option" role=$role}{/capture}
{fbvElement
type="checkbox"
name="disableRoles[]"
id="disableRoles"
checked=$checked
value=$roleId
label=$label
translate=false
}
{/foreach}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormButtons submitText="common.save"}
</form>