Example #1
0
<?php

$cookieconsent = true;
$noconsent = $this->getvar('noconsent');
if (isset($noconsent)) {
    $cookieconsent = false;
}
ldSetUserCookie($cookieconsent, "ARCookieConsent", time() + 60 * 60 * 24 * 365);
// Cookie consent, valid for 1 year.
Example #2
0
function ldSetConsentedCookie($cookie, $cookiename = "ARUserCookie", $expire = 0, $path = "/", $domain = "", $secure = 0)
{
    // Sets a cookie, but only when ARCookieConsent has been given.
    return ldSetUserCookie($cookie, $cookiename, $expire, $path, $domain, $secure, true);
}
Example #3
0
<?php

$ARCurrent->nolangcheck = true;
if ($this->CheckSilent("read") && $this->CheckConfig()) {
    ldSetUserCookie(array("query" => $this->getdata("query"), "searchname" => $this->getdata("searchname"), "searchtext" => $this->getdata("searchtext"), "arimplements" => $this->getdata("arimplements"), "context" => $context, "advanced" => $advanced), "ariadneDialogSearch");
    $query = $this->call("dialog.search.results.query.php", array("context" => $context, "advanced" => $advanced));
    if ($query || $this->getvar("wgWizAction") === "0") {
        ?>
<style type="text/css">
	#resultSet {
		margin-top: 10px;
		margin-left: 3px;
		margin-right: 3px;
		position: relative;
	}
	#resultSet table {
		width: 100%;
	}
	.yui-dt table th.yui-dt-last,
	.yui-dt table td.yui-dt-last,
	.yui-dt table thead {
		border-right: 0px;
	}
	#resultSet img {
		border: 0px;
	}
	#resultSet img.icon {
		height: 16px;
		width: 16px;
	}
	#resultSet A {