$ip = getenv("REMOTE_ADDR"); if ($ip=="127.0.0.1") {$www="http://localhost/";} else {$www="http://www.janko-soft.com/";} $ref = getenv("HTTP_REFERER"); if ($ref=="") {$ref="personal";} $ref = rawurlencode(base64_encode($ref)); ?>