. * */ header('Content-type: text/html; charset=UTF-8') ; //no apps or filesystem $RUNTIME_NOAPPS=true; $RUNTIME_NOSETUPFS=true; OC_JSON::checkAppEnabled('media'); $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true'); OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate); OC_JSON::success(array('data' => $autoUpdate)); ?>