Location: PHPKode > scripts > Particle Whois > includes/page_header.php
<?php
if (!defined("IN_SCRIPT")){
	die("Hacking attempt");
}

// set up the template
include("template.php");

// create template from class
$t = new Template("skins/" . $_GLOBALS["skin"] . "/");

// set up some variables
$t->set_var("SITE_TITLE", $config["sitename"]);
$t->set_var("PAGE_TITLE", $pagetitle);
$t->set_var("ROOT", $config["virtualpath"]);
$t->set_var("SKIN_ROOT", $config["virtualpath"] . "skins/" . $_GLOBALS["skin"] . "/");

// try to work out the domain
if ($_GET["domain"] <> ""){
	$d_domain = strip_tags($_GET["domain"]);
	$dsplit = explode(".", $d_domain);
	$t->set_var("DEFAULT_SEARCH", $dsplit[0]);
} elseif ($_REQUEST["target"] <> ""){
	$d_target = strip_tags($_REQUEST["target"]);
	$dsplit = explode(".", $d_target);
	$t->set_var("DEFAULT_SEARCH", un($dsplit[0]));
}

// compile top page section
if (defined("SIMPLE_PAGE")){
	$t->set_file("page_header", "simple_header.tpl");
} else {
	$t->set_file("page_header", "overall_header.tpl"); }
$t->parse("page_all", "page_header", true);
?>
Return current item: Particle Whois