Skip to content

Commit

Permalink
NEW: Add HTTP Client Proxy Settings
Browse files Browse the repository at this point in the history
 - #19
  • Loading branch information
aljawaid committed Sep 15, 2023
1 parent c13169a commit d34c44f
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions Template/config/app-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,66 @@
<div class="accordion-content">
<fieldset class="http-client-proxy">
<legend class=""><?= t('HTTP Client Proxy') ?></legend>
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Hostname') ?></li>
<?php if (HTTP_PROXY_HOSTNAME == ''): ?>
<li class="app-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick">
<?= HTTP_PROXY_HOSTNAME ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Port') ?></li>
<?php if (HTTP_PROXY_PORT == '3128'): ?>
<li class="app-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>">
<?= HTTP_PROXY_PORT ?>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick">
<?= HTTP_PROXY_PORT ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Username') ?></li>
<?php if (HTTP_PROXY_USERNAME == ''): ?>
<li class="app-info-value border-bottom-thick privacy" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick privacy">
<?= HTTP_PROXY_USERNAME ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Password') ?></li>
<?php if (HTTP_PROXY_PASSWORD == ''): ?>
<li class="app-info-value border-bottom-thick privacy" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick privacy">
<?= HTTP_PROXY_PASSWORD ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Exclude') ?></li>
<?php if (HTTP_PROXY_EXCLUDE == 'localhost'): ?>
<li class="app-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>">
<?= HTTP_PROXY_EXCLUDE ?>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick">
<?= HTTP_PROXY_EXCLUDE ?>
</li>
<?php endif ?>
</span>
</fieldset>
<fieldset class="reverse-proxy">
<legend class=""><?= t('Reverse Proxy') ?></legend>
Expand Down

0 comments on commit d34c44f

Please sign in to comment.