server/apps/files_sharing/ajax/toggleresharing.php
2012-04-25 11:51:30 -04:00

16 lines
371 B
PHP

<?php
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
error_log($_POST['resharing']);
if ($_POST['resharing'] == true) {
error_log("enabling");
OC_Appconfig::setValue('files_sharing', 'resharing', 'yes');
} else {
error_log("disabling");
OC_Appconfig::setValue('files_sharing', 'resharing', 'no');
}
?>