| Subcribe via RSS

Flir security check.

April 16th, 2009 | Comments Off | Posted in Code

This is the PHP snippet in the generate.php file from the FLIR.

This code will check if the request to generate the FLIR image is allowed or not.

if(false !== ALLOWED_DOMAIN && $_SERVER['HTTP_REFERER'] != '') {
    $refhost = get_hostname($_SERVER['HTTP_REFERER']);
    if(substr(ALLOWED_DOMAIN, 0, 1) == '.') {
        if(false === strpos($refhost, substr(ALLOWED_DOMAIN, 1)))
            err('DISALLOWED_DOMAIN');
    }else {
        if($refhost != ALLOWED_DOMAIN)
            err('DISALLOWED_DOMAIN');
    }
}
Tags: , ,

Vacation

April 8th, 2009 | Comments Off | Posted in Food, Life, Travel

It’s time for Ester Vacation!
Rome here I come, Gelato here I come, watch out Colosseum.

picture-1

Tags: , , ,

Sunday walk.

April 5th, 2009 | Comments Off | Posted in Weather

Here’s some pictures from today’s Sunday walk. Trying out my new Panasonic Lumix DMC-FZ28k.

p1000030 p1000075 p1000070 p1000058 p1000037 p1000050 p1000035 p1000079

Tags: , , ,