Revision 1598
Added by Luisehahne almost 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
=========================== add small Features 2.8.2 ========================== |
14 |
06 Feb-2012 Build 1598 Dietmar Woellbrink (Luisehahne) |
|
15 |
# fixed undefined fragment index in initialize.php |
|
16 |
! add $_SESSION['HTTP_REFERER'] storing active pagelink if page_id != 0 |
|
14 | 17 |
05 Feb-2012 Build 1597 Dietmar Woellbrink (Luisehahne) |
15 | 18 |
# fixed issues with get_magic_quotes_gpc and FCKeditor |
16 | 19 |
04 Feb-2012 Build 1596 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.2'); |
54 |
if(!defined('REVISION')) define('REVISION', '1597');
|
|
54 |
if(!defined('REVISION')) define('REVISION', '1598');
|
|
55 | 55 |
if(!defined('SP')) define('SP', 'SP2'); |
branches/2.8.x/wb/framework/initialize.php | ||
---|---|---|
27 | 27 |
$sTmpReferer = ''; |
28 | 28 |
if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') { |
29 | 29 |
$tmp0 = parse_url($_SERVER['HTTP_REFERER']); |
30 |
if ($tmp0 !== false) { |
|
31 |
$tmp0['host'] = isset($tmp0['host']) ? $tmp0['host'] : ''; |
|
32 |
$tmp0['path'] = isset($tmp0['path']) ? $tmp0['path'] : ''; |
|
33 |
$tmp1 = parse_url(WB_URL); |
|
34 |
if ($tmp1 !== false) { |
|
35 |
$tmp1['host'] = isset($tmp1['host']) ? $tmp1['host'] : ''; |
|
36 |
$tmp1['path'] = isset($tmp1['path']) ? $tmp1['path'] : ''; |
|
37 |
if (strpos($tmp0['host'].'/'.$tmp0['path'], $tmp1['host'].'/'.$tmp1['path'])) { |
|
38 |
$sTmpReferer = WB_URL.$tmp['path'].$tmp[fragment]; |
|
39 |
} |
|
40 |
} |
|
41 |
} |
|
30 |
if ($tmp0 !== false) { |
|
31 |
$tmp0['host'] = isset($tmp0['host']) ? $tmp0['host'] : ''; |
|
32 |
$tmp0['path'] = isset($tmp0['path']) ? $tmp0['path'] : ''; |
|
33 |
$tmp0['fragment'] = isset($tmp0['fragment']) ? '#'.$tmp0['fragment'] : ''; |
|
34 |
$tmp1 = parse_url(WB_URL); |
|
35 |
if ($tmp1 !== false) { |
|
36 |
$tmp1['host'] = isset($tmp1['host']) ? $tmp1['host'] : ''; |
|
37 |
$tmp1['path'] = isset($tmp1['path']) ? $tmp1['path'] : ''; |
|
38 |
if (strpos($tmp0['host'].$tmp0['path'], $tmp1['host'].$tmp1['path']) !== false) { |
|
39 |
$sTmpReferer = WB_URL.$tmp0['path'].$tmp0['fragment']; |
|
40 |
} |
|
41 |
} |
|
42 |
} |
|
42 | 43 |
} |
43 | 44 |
$_SERVER['HTTP_REFERER'] = $sTmpReferer; |
44 | 45 |
date_default_timezone_set('UTC'); |
... | ... | |
157 | 158 |
|
158 | 159 |
define('EDITOR_WIDTH', 0); |
159 | 160 |
|
160 |
} |
|
161 |
|
|
162 |
?> |
|
161 |
} |
branches/2.8.x/wb/framework/class.frontend.php | ||
---|---|---|
186 | 186 |
$this->page_keywords=$this->page['keywords']; |
187 | 187 |
// Page link |
188 | 188 |
$this->link=$this->page_link($this->page['link']); |
189 |
$_SESSION['PAGE_ID'] = $this->page_id; |
|
190 |
$_SESSION['HTTP_REFERER'] = $this->link; |
|
189 | 191 |
|
190 | 192 |
// End code to set details as either variables of constants |
191 | 193 |
} |
branches/2.8.x/wb/framework/frontend.functions.php | ||
---|---|---|
266 | 266 |
if(!defined('PAGE_CONTENT') OR $block!=1) |
267 | 267 |
{ |
268 | 268 |
$page_id = intval($wb->page_id); |
269 |
/* move to class.frontend |
|
269 | 270 |
// set session variable to save page_id only if PAGE_CONTENT is empty |
270 | 271 |
$_SESSION['PAGE_ID'] = !isset($_SESSION['PAGE_ID']) ? $page_id : $_SESSION['PAGE_ID']; |
271 | 272 |
// set to new value if page_id changed and not 0 |
... | ... | |
273 | 274 |
{ |
274 | 275 |
$_SESSION['PAGE_ID'] = $page_id; |
275 | 276 |
} |
277 |
*/ |
|
276 | 278 |
// First get all sections for this page |
277 | 279 |
$sql = 'SELECT `section_id`, `module`, `publ_start`, `publ_end` '; |
278 | 280 |
$sql .= 'FROM `'.TABLE_PREFIX.'sections` '; |
Also available in: Unified diff
fixed undefined fragment index in initialize.php
add $_SESSION['HTTP_REFERER'] storing active pagelink if page_id != 0