Code Duplication    Length = 12-12 lines in 2 locations

class.FlipPage.php 1 location

@@ 115-126 (lines=12) @@
112
     */
113
    protected function addAllLinks()
114
    {
115
        if($this->user === false || $this->user === null)
116
        {
117
            if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false)
118
            {
119
                $this->addLink('Login', $this->loginUrl);
120
            }
121
        }
122
        else
123
        {
124
            $this->add_links();
125
            $this->addLink('Logout', $this->logoutUrl);
126
        }
127
        if($this->aboutUrl !== false)
128
        {
129
            if(!empty($this->aboutMenu))

Http/class.WebPage.php 1 location

@@ 61-72 (lines=12) @@
58
        $this->content['urls']['loginUrl'] = $this->loginUrl;
59
        $this->content['urls']['logoutUrl'] = $this->logoutUrl;
60
61
	if($this->user === false || $this->user === null)
62
        {
63
            if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false)
64
            {
65
                $this->addLink('Login', $this->loginUrl);
66
            }
67
        }
68
        else
69
        {
70
            $this->addLink('Logout', $this->settings->getGlobalSetting('logout_url', $this->profilesUrl.'/logout.php'));
71
            $this->addLinks();
72
        }
73
74
        $this->minified = 'min';
75
        $this->cdn      = 'cdn';