@@ 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)) |
@@ 49-60 (lines=12) @@ | ||
46 | $this->resetUrl = $this->settings->getGlobalSetting('reset_url', $this->profilesUrl.'/reset.php'); |
|
47 | $this->loginUrl = $this->settings->getGlobalSetting('login_url', $this->profilesUrl.'/login.php'); |
|
48 | ||
49 | if($this->user === false || $this->user === null) |
|
50 | { |
|
51 | if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false) |
|
52 | { |
|
53 | $this->addLink('Login', $this->loginUrl); |
|
54 | } |
|
55 | } |
|
56 | else |
|
57 | { |
|
58 | $this->addLink('Logout', $this->settings->getGlobalSetting('logout_url', $this->profilesUrl.'/logout.php')); |
|
59 | $this->addLinks(); |
|
60 | } |
|
61 | ||
62 | $this->minified = 'min'; |
|
63 | $this->cdn = 'cdn'; |