<?php

//Look at the cookies and try to work out what is going on

header("Content-type: image/png");

if (
$_COOKIE['webwise']=="stuff") {
    if (
$_COOKIE['inphormer']=="active") {
        
readfile("nophorm.png"); }
    else {
        
readfile("error.png"); }
    }
elseif (
$_COOKIE['inphormer']=="active") {
    
readfile("phorm.png"); }
else {
    
readfile("blocked.png"); }
?>