forceResult(400, "Wrong parameters."); return; } $name = $API_OPTIONS['name']; $updatedata = $SITE->modules->UpdatesLog()->listUpdateData(); if (!array_key_exists($name, $updatedata)) { $FRAME_OPTIONS->forceResult(404, 'Invalid Request - [Name] not found'); return; } $data = $updatedata[$name]; $SITE->modules->UpdatesLog()->insert($name, $data['version']); print($name."
".$data['version']."
".$data['url']);