@@ 372-384 (lines=13) @@ | ||
369 | @mkdir($curr.'/'.$dir, 0755, true); |
|
370 | } |
|
371 | ||
372 | function ldGetUserCookie($cookiename="ARUserCookie") { |
|
373 | $cookie = false; |
|
374 | ||
375 | if( $_COOKIE[$cookiename] && !($cookiename == "ARSessionCookie") && !($cookiename == 'ARCurrentSession') ) { |
|
376 | $ARUserCookie = $_COOKIE[$cookiename]; |
|
377 | debug("ldGetUserCookie() = $ARUserCookie","object"); |
|
378 | $cookie = json_decode($ARUserCookie,true); |
|
379 | if ($cookie === null) { |
|
380 | $cookie = unserialize($ARUserCookie); |
|
381 | } |
|
382 | } |
|
383 | return $cookie; |
|
384 | } |
|
385 | ||
386 | function ldSetConsentedCookie($cookie, $cookiename="ARUserCookie", $expire=0, $path="/", $domain="", $secure=0) { |
|
387 | // Sets a cookie, but only when ARCookieConsent has been given. |
@@ 255-269 (lines=15) @@ | ||
252 | } |
|
253 | } |
|
254 | ||
255 | function ldGetUserCookie($cookiename="ARUserCookie") { |
|
256 | ||
257 | $cookie = false; |
|
258 | ||
259 | if( $_COOKIE[$cookiename] && !($cookiename == "ARCookie")) { |
|
260 | $ARUserCookie = $_COOKIE[$cookiename]; |
|
261 | ||
262 | debug("ldGetUserCookie() = $ARUserCookie","object"); |
|
263 | $cookie=json_decode($ARUserCookie,true); |
|
264 | if ($cookie === null) { |
|
265 | $cookie=unserialize($ARUserCookie); |
|
266 | } |
|
267 | } |
|
268 | return $cookie; |
|
269 | } |
|
270 | ||
271 | function ldSetUserCookie($cookie, $cookiename="ARUserCookie", $expire=null, $path="/", $domain="", $secure=0) { |
|
272 |