parent
e7b58ed2bd
commit
84a651e46d
@ -0,0 +1,11 @@ |
||||
$(document).ready(function() { |
||||
|
||||
$('#fileSharingSettings input').change(function() { |
||||
var value = 'no'; |
||||
if (this.checked) { |
||||
value = 'yes'; |
||||
} |
||||
OC.AppConfig.setValue('files_sharing', $(this).attr('name'), value); |
||||
}); |
||||
|
||||
}); |
@ -0,0 +1,17 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) 2011 Robin Appelman <icewind@owncloud.com> |
||||
* This file is licensed under the Affero General Public License version 3 or |
||||
* later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
\OC_Util::checkAdminUser(); |
||||
|
||||
\OCP\Util::addScript('files_sharing', 'settings-admin'); |
||||
|
||||
$tmpl = new OCP\Template('files_sharing', 'settings-admin'); |
||||
$tmpl->assign('outgoingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isOutgoingServer2serverShareEnabled()); |
||||
$tmpl->assign('incomingServer2serverShareEnabled', OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled()); |
||||
|
||||
return $tmpl->fetchPage(); |
@ -0,0 +1,13 @@ |
||||
<div class="section" id="fileSharingSettings" > |
||||
|
||||
<h2><?php p($l->t('File Sharing'));?></h2>
|
||||
|
||||
<input type="checkbox" name="outgoing_server2server_share_enabled" id="outgoingServer2serverShareEnabled" |
||||
value="1" <?php if ($_['outgoingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
|
||||
<label for="outgoingServer2serverShareEnabled"><?php p($l->t('Allow other instances to mount public links shared from this server'));?></label><br/>
|
||||
|
||||
<input type="checkbox" name="incoming_server2server_share_enabled" id="incomingServer2serverShareEnabled" |
||||
value="1" <?php if ($_['incomingServer2serverShareEnabled']) print_unescaped('checked="checked"'); ?> />
|
||||
<label for="incomingServer2serverShareEnabled"><?php p($l->t('Allow users to mount public link shares'));?></label><br/>
|
||||
|
||||
</div> |
Loading…
Reference in new issue