config.js 564 B

1234567891011121314151617181920212223242526
  1. /*
  2. Config.js
  3. This script handle the save and restore of the
  4. 1) Blog post source
  5. 2) Blog post release (Merged with template)
  6. */
  7. //Create the blog table if not exists
  8. newDBTableIfNotExists("blog");
  9. function getBlogPostStore(){
  10. return readDBItem("blog", "post-store");
  11. }
  12. function setBlogPostStore(newpath){
  13. return writeDBItem("blog", "post-store", newpath);
  14. }
  15. function getBlogReleasePath(){
  16. return readDBItem("blog", "post-release");
  17. }
  18. function setBlogReleasePath(newpath){
  19. return writeDBItem("blog", "post-release", newpath);
  20. }