OXID eShop CE
4.8.12
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
clearcookies.php
Go to the documentation of this file.
1
<?php
2
6
class
ClearCookies
extends
oxUBase
7
{
12
protected
$_sThisTemplate
=
'page/info/clearcookies.tpl'
;
13
21
public
function
render
()
22
{
23
parent::render
();
24
25
$this->
_removeCookies
();
26
27
return
$this->_sThisTemplate
;
28
}
29
35
protected
function
_removeCookies
()
36
{
37
$oUtilsServer =
oxRegistry::get
(
"oxUtilsServer"
);
38
if
( isset( $_SERVER[
'HTTP_COOKIE'
] ) ) {
39
$aCookies = explode(
';'
, $_SERVER[
'HTTP_COOKIE'
] );
40
foreach
( $aCookies as $sCookie ) {
41
$sRawCookie = explode(
'='
, $sCookie);
42
$oUtilsServer->setOxCookie( trim( $sRawCookie[0] ),
''
, time() - 10000,
'/'
);
43
}
44
}
45
$oUtilsServer->setOxCookie(
'language'
,
''
, time() - 10000,
'/'
);
46
$oUtilsServer->setOxCookie(
'displayedCookiesNotification'
,
''
, time() - 10000,
'/'
);
47
}
48
54
public
function
getBreadCrumb
()
55
{
56
$aPaths = array();
57
$aPath = array();
58
59
$aPath[
'title'
] =
oxRegistry::getLang
()->translateString(
'INFO_ABOUT_COOKIES'
,
oxRegistry::getLang
()->getBaseLanguage(),
false
);
60
$aPath[
'link'
] = $this->
getLink
();
61
$aPaths[] = $aPath;
62
63
return
$aPaths;
64
}
65
66
}
application
controllers
clearcookies.php
Generated by
1.8.1.2