diff options
| author | 2021-01-16 16:32:18 -0500 | |
|---|---|---|
| committer | 2021-01-16 22:32:18 +0100 | |
| commit | ee175dd6169a016fc898fac62d046e22c205dec0 (patch) | |
| tree | c9b1f31f47dac1ec2d12f186e9df8831d5504eca /app/views | |
| parent | 5c18c64afbdc8b888fdedf2d7cc45e1930225f02 (diff) | |
CURLOPT parameters per feed (#3367)
* Working curlopt_params
* Examples
* curl_params for fetching the article
* cleanup
* clarification
* Remove debugging
* Options corrected
* Removed Debugging
* i18n not needed (right now)
* Translations and UI rework
* Checks in update.phtml
* Unset Proxy&Cookies
* remove clutter
* minor fuckup
* i18n added properly
* resolve Errors
* linting errors
* linting errors, again
* Review
* Minor revert
* Minor i18n: de
Co-authored-by: maru <maru@nyx.im>
Co-authored-by: Aeris <a3x@eris.cc>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/feed/update.phtml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml index 002298b06..184d78114 100644 --- a/app/views/helpers/feed/update.phtml +++ b/app/views/helpers/feed/update.phtml @@ -287,6 +287,42 @@ </div> <div class="form-group"> + <label class="group-name" for="path_entries"><?= _t('sub.feed.css_cookie') ?></label> + <div class="group-controls"> + <div class="stick"> + <input type="text" name="curl_params_cookie" id="curl_params_cookie" class="extend" value="<?= + is_array($this->feed->attributes('curl_params')) && !empty($this->feed->attributes('curl_params')[CURLOPT_COOKIE]) ? + $this->feed->attributes('curl_params')[CURLOPT_COOKIE] : '' + ?>" placeholder="<?= _t('gen.short.blank_to_disable') ?>" /> + </div> + <p class="help"><?= _i('help') ?> <?= _t('sub.feed.css_cookie_help') ?></p> + </div> + </div> + + <div class="form-group"> + <label class="group-name" for="path_entries"><?= _t('sub.feed.proxy') ?></label> + <div class="group-controls"> + <select class="number" name="proxy_type" id="proxy_type"><?php + $type = ''; + if (is_array($this->feed->attributes('curl_params')) && isset($this->feed->attributes('curl_params')[CURLOPT_PROXYTYPE])) { + $type = $this->feed->attributes('curl_params')[CURLOPT_PROXYTYPE]; + } + foreach(['' => '', 3 => 'NONE', 0 => 'HTTP', 2 => 'HTTPS', 4 => 'SOCKS4', 6 => 'SOCKS4A', 5 => 'SOCKS5', 7 => 'SOCKS5H'] as $k => $v) { + echo '<option value="' . $k . ($type === $k ? '" selected="selected' : '' ) . '">' . $v . '</option>'; + } + ?> + </select> + <div class="stick"> + <input type="text" name="curl_params" id="curl_params" class="extend" value="<?= + is_array($this->feed->attributes('curl_params')) && !empty($this->feed->attributes('curl_params')[CURLOPT_PROXY]) ? + $this->feed->attributes('curl_params')[CURLOPT_PROXY] : '' + ?>" placeholder="<?= _t('gen.short.blank_to_disable') ?>" /> + </div> + <p class="help"><?= _i('help') ?> <?= _t('sub.feed.proxy_help') ?></p> + </div> + </div> + + <div class="form-group"> <label class="group-name" for="mark_updated_article_unread"><?= _t('conf.reading.mark_updated_article_unread') ?></label> <div class="group-controls"> <label class="checkbox" for="mark_updated_article_unread"> |
