diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 20:36:34 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-27 20:39:31 -0400 |
commit | 9cd55508c3181ff59080f84a341bd5ecf3e88eab (patch) | |
tree | 35c3874e37d2026244318895151bfc997f6c9636 /settings/templates | |
parent | 2aac6f02a0dd3da73db09e1b23aa14cb84d4d88e (diff) | |
download | nextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.tar.gz nextcloud-server-9cd55508c3181ff59080f84a341bd5ecf3e88eab.zip |
Add Share API settings to admin page
Diffstat (limited to 'settings/templates')
-rwxr-xr-x | settings/templates/admin.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 1306d90f402..b701b0e839a 100755 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -35,6 +35,34 @@ if(!$_['htaccessworking']) { <label for="backgroundjobs_cron" title="<?php echo $l->t("use systems cron service"); ?>">Cron</label><br /> </fieldset> +<fieldset class="personalblock" id="shareAPI"> + <legend><strong><?php echo $l->t('Share API');?></strong></legend> + <table class="shareAPI nostyle"> + <tr> + <td id="enable"> + <input type="checkbox" name="shareapi_enabled" id="shareAPIEnabled" value="1" <?php if ($_['shareAPIEnabled'] == 'yes') echo 'checked="checked"'; ?> /> + <label for="shareAPIEnabled"><?php echo $l->t('Enable Share API');?></label><br /> + <em><?php echo $l->t('Allow apps to use the Share API'); ?></em> + </td> + <td <?php if ($_['shareAPIEnabled'] == 'no') echo 'style="display:none"';?>> + <input type="checkbox" name="shareapi_allow_links" id="allowLinks" value="1" <?php if ($_['allowLinks'] == 'yes') echo 'checked="checked"'; ?> /> + <label for="allowLinks"><?php echo $l->t('Allow links');?></label><br /> + <em><?php echo $l->t('Allow users to share items to the public with links'); ?></em> + </td> + <td <?php if ($_['shareAPIEnabled'] == 'no') echo 'style="display:none"';?>> + <input type="checkbox" name="shareapi_allow_resharing" id="allowResharing" value="1" <?php if ($_['allowResharing'] == 'yes') echo 'checked="checked"'; ?> /> + <label for="allowResharing"><?php echo $l->t('Allow resharing');?></label><br /> + <em><?php echo $l->t('Allow users to share items shared with them again'); ?></em> + <td <?php if ($_['shareAPIEnabled'] == 'no') echo 'style="display:none"';?>> + <input type="radio" name="shareapi_share_policy" id="sharePolicyGlobal" value="global" <?php if ($_['sharePolicy'] == 'global') echo 'checked="checked"'; ?> /> + <label for="sharePolicyGlobal"><?php echo $l->t('Allow users to share with anyone'); ?></label><br /> + <input type="radio" name="shareapi_share_policy" id="sharePolicyGroupsOnly" value="groups_only" <?php if ($_['sharePolicy'] == 'groups_only') echo 'checked="checked"'; ?> /> + <label for="sharePolicyGroupsOnly"><?php echo $l->t('Allow users to only share with users in their groups');?></label><br /> + </td> + </tr> + </table> +</fieldset> + <fieldset class="personalblock"> <legend><strong><?php echo $l->t('Log');?></strong></legend> Log level: <select name='loglevel' id='loglevel'> |