Ejemplo n.º 1
0
function ClickTale_callback($buffer)
{
    // Implementation of new AJAX via IM method. Check headers
    $IMCache = false;
    //If 'getallheaders()' doesn't exist - create it
    if (!function_exists('getallheaders')) {
        function getallheaders()
        {
            $headers = '';
            foreach ($_SERVER as $name => $value) {
                if (substr($name, 0, 5) == 'HTTP_') {
                    $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
                }
            }
            return $headers;
        }
    }
    //Run through all headers etc...
    foreach (getallheaders() as $name => $value) {
        if (strtolower($name) == "x-clicktale-imcache" & $value == "1") {
            $IMCache = true;
        }
    }
    //Return callback
    return ClickTale_ProcessOutput($buffer, $IMCache);
}
Ejemplo n.º 2
0
function ClickTale_callback($buffer)
{
    return ClickTale_ProcessOutput($buffer);
}