Code Duplication    Length = 7-7 lines in 2 locations

htdocs/config2/settings-dist-common.inc.php 2 locations

@@ 209-215 (lines=7) @@
206
    $opt['page']['absolute_https_url'] = 'https' . $adr;
207
    $opt['page']['https']['active'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off');
208
209
    if ($opt['page']['https']['active']) {
210
        $opt['page']['absolute_url'] = $opt['page']['absolute_https_url'];
211
        $opt['page']['protocol'] = 'https';
212
    } else {
213
        $opt['page']['absolute_url'] = $opt['page']['absolute_http_url'];
214
        $opt['page']['protocol'] = 'http';
215
    }
216
217
    if ($lib == 1) {
218
        $absolute_server_URI = $opt['page']['absolute_url'];
@@ 221-227 (lines=7) @@
218
        $absolute_server_URI = $opt['page']['absolute_url'];
219
    }
220
221
    if ($opt['page']['https']['is_default']) {
222
        $opt['page']['default_absolute_url'] = $opt['page']['absolute_https_url'];
223
        $opt['page']['default_protocol'] = 'https';
224
    } else {
225
        $opt['page']['default_absolute_url'] = $opt['page']['absolute_http_url'];
226
        $opt['page']['default_protocol'] = 'http';
227
    }
228
229
    // 3. create shortlink URLs
230