Code Duplication    Length = 5-5 lines in 3 locations

diff.php 1 location

@@ 23-27 (lines=5) @@
20
                <label class="col-md-4 control-label" for="lang">Language:</label>
21
                <div class="col-md-4">
22
                    <select id="lang" name="lang" class="form-control" required="required">
23
                        <?php foreach ($langcodes as $language) {
24
                        echo '<option value="'.$language[0].'" ';
25
                        if (isset($_SESSION['lang']) && $language[0] == $_SESSION['lang']) echo 'selected';
26
                        echo '> $language[1]</option>';
27
                        }?>
28
                    </select>
29
                </div>
30
            </div>

encoding.php 1 location

@@ 23-27 (lines=5) @@
20
                <label class="col-md-4 control-label" for="lang">Language:</label>
21
                <div class="col-md-4">
22
                    <select id="lang" name="lang" class="form-control" required="required">
23
                        <?php foreach ($langcodes as $language) {
24
                        echo '<option value="'.$language[0].'" ';
25
                        if (isset($_SESSION['lang']) && $language[0] == $_SESSION['lang']) echo 'selected';
26
                        echo '> $language[1]</option>';
27
                        }?>
28
                    </select>
29
                </div>
30
            </div>

index.php 1 location

@@ 23-27 (lines=5) @@
20
                <label class="col-md-4 control-label" for="lang">Language:</label>
21
                <div class="col-md-4">
22
                    <select id="lang" name="lang" class="form-control" required="required">
23
                        <?php foreach ($langcodes as $language) {
24
                        echo '<option value="'.$language[0].'" ';
25
                        if (isset($_SESSION['lang']) && $language[0] == $_SESSION['lang']) echo 'selected';
26
                        echo '> $language[1]</option>';
27
                        }?>
28
                    </select>
29
                </div>
30
            </div>