Code Duplication    Length = 6-6 lines in 3 locations

change.php 1 location

@@ 5-10 (lines=6) @@
2
ini_set('display_errors', 1);
3
error_reporting(E_ALL);
4
5
if(strpos($_SERVER['REQUEST_URI'], '//') !== false)
6
{
7
    $uri = str_replace('//', '/', $_SERVER['REQUEST_URI']);
8
    header("Location: https://".$_SERVER["HTTP_HOST"].$uri);
9
    exit();
10
}
11
12
require_once('class.ProfilesPage.php');
13
$page = new ProfilesPage('Burning Flipside Password Change');

register.php 1 location

@@ 11-16 (lines=6) @@
8
    header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
9
    exit();
10
}
11
if(strpos($_SERVER['REQUEST_URI'], '//') !== false)
12
{
13
    $uri = str_replace('//', '/', $_SERVER['REQUEST_URI']);
14
    header("Location: https://".$_SERVER["HTTP_HOST"].$uri);
15
    exit();
16
}
17
18
require_once('class.FlipsideCAPTCHA.php');
19
require_once('class.ProfilesPage.php');

reset.php 1 location

@@ 2-7 (lines=6) @@
1
<?php
2
if(strpos($_SERVER['REQUEST_URI'], '//') !== false)
3
{
4
    $uri = str_replace('//', '/', $_SERVER['REQUEST_URI']);
5
    header("Location: https://".$_SERVER["HTTP_HOST"].$uri);
6
    exit();
7
}
8
ini_set('display_errors', 1);
9
error_reporting(E_ALL);
10
require_once('class.ProfilesPage.php');