writeConfig.js 316 B

1234567891011121314
  1. if (newDBTableIfNotExists("FFmpeg Factory")){
  2. if (writeDBItem("FFmpeg Factory",USERNAME + "_" + key,value)){
  3. sendJSONResp(JSON.stringify("OK"));
  4. }else{
  5. sendJSONResp(JSON.stringify({
  6. error: "Database write failed"
  7. }));
  8. }
  9. }else{
  10. sendJSONResp(JSON.stringify({
  11. error: "Database Creation Failed"
  12. }));
  13. }