1 2 3 4 5 6 7 8 9 10 11
<?php OCP\JSON::checkAppEnabled('files_sharing'); OCP\JSON::checkAdminUser(); if ($_POST['resharing'] == true) { OCP\Config::setAppValue('files_sharing', 'resharing', 'yes'); } else { OCP\Config::setAppValue('files_sharing', 'resharing', 'no'); } ?>