2) { $url .= "/"; } elseif (strpos($url, "?") === false) { // Try a ? $url .= "?"; } elseif (substr($url, -1, 1) != "?") { // Try an & $url .= "&"; } } // Add our own link suffix $url .= "adr_passed=1"; // Return it return $url; } // Checks wether the adr_passed=1 is set function adr_is_passed () { return (isset($_GET['adr_passed'])); } // Do we have the cookie not yet set? if ((!adr_check_cookie()) && (adr_is_index()) && (!adr_is_passed())) { // Then set it adr_set_cookie(); // Output page ?>