privacy.phtml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /** @var FreshRSS_View $this */
  3. $this->partial('aside_configure');
  4. $host = parse_url(FreshRSS_Context::systemConf()->base_url);
  5. if ($host !== false) {
  6. $host = $host['host'] ?? '';
  7. } else {
  8. $host = '';
  9. }
  10. ?>
  11. <main class="post">
  12. <h1><?= _t('conf.privacy') ?></h1>
  13. <form method="post" action="<?= _url('configure', 'privacy') ?>" data-auto-leave-validation="1">
  14. <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
  15. <div class="form-group">
  16. <label class="group-name" for="retrieve_extension_list"><?= _t('conf.privacy.retrieve_extension_list') ?></label>
  17. <div class="group-controls">
  18. <input type="checkbox" id="retrieve_extension_list" name="retrieve_extension_list" value="1"<?=
  19. FreshRSS_Context::userConf()->retrieve_extension_list !== false ? ' checked="checked"' : '' ?> />
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="group-name" for="send_referrer_allowlist"><?= _t('conf.privacy.send_referrer_allowlist', $host) ?></label>
  24. <div class="group-controls">
  25. <textarea id="send_referrer_allowlist" name="send_referrer_allowlist"><?= implode("\n", FreshRSS_Context::userConf()->send_referrer_allowlist) ?></textarea>
  26. </div>
  27. </div>
  28. <div class="form-group form-actions">
  29. <div class="group-controls">
  30. <button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
  31. <button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
  32. </div>
  33. </div>
  34. </form>
  35. </main>