Newer
Older
backup-commander / file-layout.txt
  1.  
  2. File Layout
  3. ===========
  4.  
  5. 2024-12-04
  6. This is how the files are laid out. Important notes are the split between web and cli, db and rpc.
  7. Service files, or CLI
  8. ---------------------
  9.  
  10. Service Only
  11. These files should not contain RPC. This is to remove the likelyhood of rpc blocking. Since the main app
  12. is not able to respond to its own RPC.
  13. Files may contain DB code.
  14. ./svc/main.php
  15. ./svc/db-reads.php
  16. ./svc/db-writes.php
  17. ./svc/file-line-reader.php - might contain some generally useful file access, may want to extract
  18.  
  19. Service Child Process Only
  20. These files can have both database and RPC. This is because the child has been forked from main and is a legitimate
  21. separate (child) process. It can invoke RPC to main comfortably.
  22. ./svc/backup.php
  23. Shared Files
  24. ------------
  25. These files contain no RPC and no DB. This allows them to be included in any process. They contain code of the most
  26. general nature.
  27.  
  28. ./shd/common.php (some old code needs to be removed)
  29. ./shd/backup-funcs.php
  30. ./inc/paths.php (auto-generated file: this will be upgraded and likely split into path-files specific to each section)
  31.  
  32. Web-server Files
  33. ----------------
  34. These files specialise in handling the GUI, browser interaction using JS and HTML and session life-cycle.
  35. No DB code allowed here. All calls but go via RPC to main.php.
  36. ./phpinfo.php
  37. ./post_handler.php
  38.  
  39. ./inc/bu_list_content.php
  40. ./inc/secure.php
  41. ./inc/pagemap.php
  42. ./index.php
  43. ./inc/new-file-bu.php
  44. ./inc/login.php
  45. ./inc/edit-sh-bu.php
  46. Libraries
  47. (included as required)
  48. ./lib/sysVcom.php
  49. ./lib/time.php
  50.  
  51.