]> git.mxchange.org Git - friendica.git/commitdiff
Proxy settings removed
authorMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 06:44:18 +0000 (06:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 06:44:18 +0000 (06:44 +0000)
src/Module/Admin/Site.php
src/Util/Proxy.php
view/templates/admin/site.tpl
view/theme/frio/templates/admin/site.tpl

index 3dde6c1242d9a018fcca016ed72cc79da56ee2d4..068b013269b4d2db9f42e2cc7e86c8447d6cdb4e 100644 (file)
@@ -198,7 +198,6 @@ class Site extends BaseAdmin
                $max_display_comments   = (!empty($_POST['max_display_comments'])   ? intval($_POST['max_display_comments'])          : 0);
                $temppath               = (!empty($_POST['temppath'])               ? Strings::escapeTags(trim($_POST['temppath']))   : '');
                $singleuser             = (!empty($_POST['singleuser'])             ? Strings::escapeTags(trim($_POST['singleuser'])) : '');
-               $proxy_disabled         = !empty($_POST['proxy_disabled']);
                $only_tag_search        = !empty($_POST['only_tag_search']);
                $rino                   = (!empty($_POST['rino'])                   ? intval($_POST['rino'])                          : 0);
                $check_new_version_url  = (!empty($_POST['check_new_version_url'])  ? Strings::escapeTags(trim($_POST['check_new_version_url'])) : 'none');
@@ -402,7 +401,6 @@ class Site extends BaseAdmin
 
                DI::config()->set('system', 'temppath', $temppath);
 
-               DI::config()->set('system', 'proxy_disabled'   , $proxy_disabled);
                DI::config()->set('system', 'only_tag_search'  , $only_tag_search);
 
                DI::config()->set('system', 'worker_queues'    , $worker_queues);
@@ -668,7 +666,6 @@ class Site extends BaseAdmin
                        '$max_comments'           => ['max_comments', DI::l10n()->t('Maximum numbers of comments per post'), DI::config()->get('system', 'max_comments'), DI::l10n()->t('How much comments should be shown for each post? Default value is 100.')],
                        '$max_display_comments'   => ['max_display_comments', DI::l10n()->t('Maximum numbers of comments per post on the display page'), DI::config()->get('system', 'max_display_comments'), DI::l10n()->t('How many comments should be shown on the single view for each post? Default value is 1000.')],
                        '$temppath'               => ['temppath', DI::l10n()->t('Temp path'), DI::config()->get('system', 'temppath'), DI::l10n()->t('If you have a restricted system where the webserver can\'t access the system temp path, enter another path here.')],
-                       '$proxy_disabled'         => ['proxy_disabled', DI::l10n()->t('Disable picture proxy'), DI::config()->get('system', 'proxy_disabled'), DI::l10n()->t('The picture proxy increases performance and privacy. It shouldn\'t be used on systems with very low bandwidth.')],
                        '$only_tag_search'        => ['only_tag_search', DI::l10n()->t('Only search in tags'), DI::config()->get('system', 'only_tag_search'), DI::l10n()->t('On large systems the text search can slow down the system extremely.')],
 
                        '$relocate_url'           => ['relocate_url', DI::l10n()->t('New base url'), DI::baseUrl()->get(), DI::l10n()->t('Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.')],
index 12be746a687f1548b30208e9b3dc2872ff199dc6..443725a3d88f334c5ebe440ac60de0efb5db7d12 100644 (file)
@@ -72,8 +72,7 @@ class Proxy
         * Transform a remote URL into a local one.
         *
         * This function only performs the URL replacement on http URL and if the
-        * provided URL isn't local, "the isn't deactivated" (sic) and if the config
-        * system.proxy_disabled is set to false.
+        * provided URL isn't local
         *
         * @param string $url       The URL to proxyfy
         * @param string $size      One of the ProxyUtils::SIZE_* constants
@@ -91,11 +90,6 @@ class Proxy
                        return $url;
                }
 
-               // Is the proxy disabled?
-               if (DI::config()->get('system', 'proxy_disabled')) {
-                       return $url;
-               }
-
                // Image URL may have encoded ampersands for display which aren't desirable for proxy
                $url = html_entity_decode($url, ENT_NOQUOTES, 'utf-8');
 
index 9405992005ec8bc68f550c70ec5667ef0a5daaa1..64d49d3a31a93ab2d66d2a3d5f1411d4c3ee9bea 100644 (file)
                {{include file="field_checkbox.tpl" field=$only_tag_search}}
                {{include file="field_input.tpl" field=$max_comments}}
                {{include file="field_input.tpl" field=$max_display_comments}}
-               {{include file="field_checkbox.tpl" field=$proxy_disabled}}
                {{include file="field_checkbox.tpl" field=$dbclean}}
                {{include file="field_input.tpl" field=$dbclean_expire_days}}
                {{include file="field_input.tpl" field=$dbclean_unclaimed}}
index 97d5907a6500578e0a43acc921620d83279ecb96..ad8715177711f93826bfe266b0a30f0d801e38be 100644 (file)
                                                {{include file="field_checkbox.tpl" field=$only_tag_search}}
                                                {{include file="field_input.tpl" field=$max_comments}}
                                                {{include file="field_input.tpl" field=$max_display_comments}}
-                                               {{include file="field_checkbox.tpl" field=$proxy_disabled}}
                                                {{include file="field_checkbox.tpl" field=$dbclean}}
                                                {{include file="field_input.tpl" field=$dbclean_expire_days}}
                                                {{include file="field_input.tpl" field=$dbclean_unclaimed}}