. * */ header('Content-type: text/html; charset=UTF-8') ; //no apps or filesystem $RUNTIME_NOAPPS=true; $RUNTIME_NOSETUPFS=true; require_once('../../../lib/base.php'); error_log($_GET['autoupdate']); $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true'); error_log((integer)$autoUpdate); OC_Preferences::setValue(OC_User::getUser(),'media','autoupdate',(integer)$autoUpdate); echo json_encode( array( "status" => "success", "data" => $autoUpdate)); ?>