Code Duplication    Length = 8-8 lines in 2 locations

login.php 1 location

@@ 18-25 (lines=8) @@
15
    }
16
}
17
18
if(isset($_GET['return']))
19
{
20
    $return = '<input type="hidden" name="return" value="'.$_GET['return'].'"/>';
21
}
22
else
23
{
24
    $return = '';
25
}
26
if(isset($_GET['failed']))
27
{
28
    $page->addNotification('Login Failed! <a href="'.$page->resetUrl.'" class="alert-link">Click here to reset your password.</a>', $page::NOTIFICATION_FAILED);

register.php 1 location

@@ 26-33 (lines=8) @@
23
$captcha = new FlipsideCAPTCHA();
24
FlipSession::setVar('captcha', $captcha);
25
26
if(isset($_GET['return']))
27
{
28
    $return = '<input type="hidden" name="return" value="'.$_GET['return'].'"/>';
29
}
30
else
31
{
32
    $return = '';
33
}
34
35
if(FlipSession::isLoggedIn())
36
{