| @@ 126-130 (lines=5) @@ | ||
| 123 | $validated = false; |
|
| 124 | } |
|
| 125 | ||
| 126 | if (!$validated) { |
|
| 127 | header('WWW-Authenticate: Basic realm="'.$this->config->getSecret('admin_authrealm').'"'); |
|
| 128 | header('HTTP/1.0 401 Unauthorized'); |
|
| 129 | $this->helper->terminateScript('Not authorized'); |
|
| 130 | } |
|
| 131 | ||
| 132 | } else { |
|
| 133 | header('WWW-Authenticate: Basic realm="'.$this->config->getSecret('admin_authrealm').'"'); |
|
| @@ 132-136 (lines=5) @@ | ||
| 129 | $this->helper->terminateScript('Not authorized'); |
|
| 130 | } |
|
| 131 | ||
| 132 | } else { |
|
| 133 | header('WWW-Authenticate: Basic realm="'.$this->config->getSecret('admin_authrealm').'"'); |
|
| 134 | header('HTTP/1.0 401 Unauthorized'); |
|
| 135 | $this->helper->terminateScript('Not authorized'); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | } |
|
| 139 | ||