diff options
Diffstat (limited to 'settings')
-rwxr-xr-x | settings/admin.php | 3 | ||||
-rw-r--r-- | settings/templates/admin.php | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/settings/admin.php b/settings/admin.php index db041ef889c..cc30c70d474 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -38,9 +38,10 @@ if (OC_Request::serverProtocol() == 'https') { $connectedHTTPS = false; } $tmpl->assign('isConnectedViaHTTPS', $connectedHTTPS); -$tmpl->assign('enforceHTTPSEnabled', OC_Config::getValue( "forcessl", false)); +$tmpl->assign('enforceHTTPSEnabled', OC_Config::getValue( "forcessl", false)); $tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes')); +$tmpl->assign('allowPublicUpload', OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes')); $tmpl->assign('allowResharing', OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes')); $tmpl->assign('sharePolicy', OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global')); $tmpl->assign('forms', array()); diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 4af53a649b8..9f16db0948d 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -140,13 +140,21 @@ if (!$_['internetconnectionworking']) { <tr> <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>> <input type="checkbox" name="shareapi_allow_links" id="allowLinks" - value="1" <?php if ($_['allowLinks'] == 'yes') print_unescaped('checked="checked"'); ?> /> + value="1" <?php if ($_['allowLinks'] == 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowLinks"><?php p($l->t('Allow links'));?></label><br/> <em><?php p($l->t('Allow users to share items to the public with links')); ?></em> </td> </tr> <tr> <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>> + <input type="checkbox" name="shareapi_allow_public_upload" id="allowPublicUpload" + value="1" <?php if ($_['allowPublicUpload'] == 'yes') print_unescaped('checked="checked"'); ?> /> + <label for="allowPublicUpload"><?php p($l->t('Allow anonymous uploads'));?></label><br/> + <em><?php p($l->t('Allow users to enable others to anonymously upload into their publicly shared folders')); ?></em> + </td> + </tr> + <tr> + <td <?php if ($_['shareAPIEnabled'] == 'no') print_unescaped('style="display:none"');?>> <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" value="1" <?php if ($_['allowResharing'] == 'yes') print_unescaped('checked="checked"'); ?> /> <label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/> |