Revision 1872
Added by Dietmar over 11 years ago
- bugfix preferences timezone, date_format, time_format settings, backend and frontend
class.frontend.php | ||
---|---|---|
170 | 170 |
|
171 | 171 |
public function get_page_details() { |
172 | 172 |
global $database; |
173 |
if($this->page_id != 0) { |
|
173 |
|
|
174 |
$bCanRedirect = false; |
|
175 |
// set defaults |
|
176 |
$aLanguagesDetailsInUsed = $this->GetLanguagesDetailsInUsed(); |
|
177 |
$_SESSION['HTTP_REFERER'] = WB_URL; |
|
178 |
$_SESSION['PAGE_ID'] = $this->page_id; |
|
179 |
if($this->page_id != 0) { |
|
174 | 180 |
// Query page details |
175 | 181 |
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `page_id`='.(int)$this->page_id; |
176 | 182 |
$get_page = $database->query($sql); |
... | ... | |
244 | 250 |
$this->page_keywords=$this->page['keywords']; |
245 | 251 |
// Page link |
246 | 252 |
|
247 |
$bCanRedirect = ($this->visibility == 'registered' || $this->visibility == 'privat');
|
|
253 |
$bCanRedirect = ($this->visibility == 'registered' || $this->visibility == 'privat');
|
|
248 | 254 |
|
249 | 255 |
$this->link=$this->page_link($this->page['link']); |
250 | 256 |
|
251 | 257 |
$_SESSION['PAGE_ID'] = $this->page_id; |
252 |
|
|
253 | 258 |
$_SESSION['HTTP_REFERER'] = $bCanRedirect != true ? $this->link : WB_URL; |
254 |
$_SESSION['HTTP_REFERER'] = !$this->is_authenticated() ? $this->link : $_SESSION['HTTP_REFERER'];
|
|
259 |
$_SESSION['HTTP_REFERER'] = !$this->is_authenticated() ? $this->link : $_SESSION['HTTP_REFERER'];
|
|
255 | 260 |
|
256 | 261 |
// End code to set details as either variables of constants |
257 | 262 |
} |
Also available in: Unified diff