setup-options.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. switch ($options[xPDOTransport::PACKAGE_ACTION]) {
  3. case xPDOTransport::ACTION_INSTALL:
  4. case xPDOTransport::ACTION_UPGRADE:
  5. $output = <<<HTML
  6. <p>If you already have resources and elements in place, you can let the setup process create a snapshot of them to the VersionX database, providing you with a baseline to start comparing from. The system will check for existing versions and only create a snapshot when needed.</p>
  7. <br />
  8. <p style="font-size: 90%; font-style: italic;">Note: depending on the amount of resources and elements you currently have in place as well as your server's configuration, this process can take quite some time.</p>
  9. <br />
  10. <p>Choose what to create snapshots for:</p>
  11. <div style="padding-left: 20px;">
  12. <input type="checkbox" name="vx_snapshot_resources" id="vx_snapshot_resources" />
  13. <label for="vx_snapshot_resources" style="display: inline;">Resources</label> <br />
  14. <input type="checkbox" name="vx_snapshot_templates" id="vx_snapshot_templates" />
  15. <label for="vx_snapshot_templates" style="display: inline;">Templates</label> <br />
  16. <input type="checkbox" name="vx_snapshot_chunks" id="vx_snapshot_chunks" />
  17. <label for="vx_snapshot_chunks" style="display: inline;">Chunks</label> <br />
  18. <input type="checkbox" name="vx_snapshot_snippets" id="vx_snapshot_snippets" />
  19. <label for="vx_snapshot_snippets" style="display: inline;">Snippets</label> <br />
  20. <input type="checkbox" name="vx_snapshot_plugins" id="vx_snapshot_plugins" />
  21. <label for="vx_snapshot_plugins" style="display: inline;">Plugins</label> <br />
  22. <input type="checkbox" name="vx_snapshot_tmplvars" id="vx_snapshot_tmplvars" />
  23. <label for="vx_snapshot_tmplvars" style="display: inline;">Template Variables</label>
  24. </div>
  25. HTML;
  26. break;
  27. default:
  28. case xPDOTransport::ACTION_UNINSTALL:
  29. $output = '';
  30. break;
  31. }
  32. return $output;