2012-07-17 16:09:01 +04:00
|
|
|
<?php
|
|
|
|
|
2012-07-20 22:12:36 +04:00
|
|
|
OCP\JSON::callCheck();
|
|
|
|
|
2012-07-17 16:09:01 +04:00
|
|
|
OCP\JSON::checkAppEnabled('files_sharing');
|
|
|
|
OCP\JSON::checkAdminUser();
|
|
|
|
if ($_POST['allowSharingWithEveryone'] == true) {
|
|
|
|
OCP\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'yes');
|
|
|
|
} else {
|
|
|
|
OCP\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'no');
|
|
|
|
}
|