Location: PHPKode > scripts > NukeLayout Clas > nukelayout-clas/globalinclude.php
<?php
// filename: globalinclude.php
//
// +----------------------------------------------------------------------------+
// | NukeLayoutClass (PHP)  global include file                                 |
// +----------------------------------------------------------------------------+
// | Copyright (C) 2001  Chauncey Thorn             			        |
// +----------------------------------------------------------------------------+
// / This program is free software; you can redistribute it and/or              /
// / modify it under the terms of the GNU General Public License                /
// / as published by the Free Software Foundation; either version 2             /
// / of the License, or (at your option) any later version.                     /
// /                                                                            /
// / This program is distributed in the hope that it will be useful,            /
// / but WITHOUT ANY WARRANTY; without even the implied warranty of             /
// / MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              /
// / GNU General Public License for more details.                               /
// /                                                                            /
// / You should have received a copy of the GNU General Public License          /
// / along with this program; if not, write to the Free Software                /
// / Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA./
// +----------------------------------------------------------------------------+
// | Author:                                                                   /
// / Chauncey Thorn <hide@address.com>                                             |
// +----------------------------------------------------------------------------+
//
// $Id: globalinclude.php ,v 1.3 2001/12/8 cthorn 
error_reporting(E_ALL);

/******************************************************************/
/** don't allow anyone to load file directly **/

if (eregi('globalinclude.php', $_SERVER['PHP_SELF'])) {
    die ("ERROR File not found ...");
}

// Defined the location of the layout directory
// you will need to modify this value!!!
	if(!isset($INCLUDE_DIR)) $INCLUDE_DIR = dirname(__FILE__).'/etc/';


// make sure the class file it's there
if(!file_exists($INCLUDE_DIR ."nukelayoutclass.php")) {

	print "The Class script is not in $INCLUDE_DIR";
	print "<br>Check the \$INCLUDE_DIR value ";
	exit;

} else {
// load the include file
	require_once ($INCLUDE_DIR ."nukelayoutclass.php");
}
 
// make sure the nukeLayout class exist
if(class_exists('nukeLayout')) $mypage = new nukeLayout;

/******************************************************************/

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// create your color theme here..
//
// bgcolor = "441215"; //Page background color, for readability reasons should not be the same as any text or link color
// sectionheader = "643235"; //Background color of top banner and header area
// headertextColor = "8c8f72"; //Color of text used in top banner and header area
// sectionbody = "643235"; //Background color of section boady area
// trimcolor = "8c8f72"; //Color used for border of boxes
// textcolor = "FFFFFF"; //Text color, for readability reasons should not be the same as bgcolor
// linkcolor = "FFFFFF"; //Text color of a link, for readability reasons this should not be the same as bgcolor or textcolor
// vlinkcolor = "FFFFFF"; // Text color of a visited link
// alinkcolor = "FFFFFF"; // Text color of an active link
// hlinkcolor = "0080C0"; // CSS Hover text color, this is the color used when your mouse passes over the text link
//
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/***** CREATE / EXTEND ARRAY TO SUPPORT THEME SYSTEM ******/
$nukelayout_theme = array(

	"forest"=>array("bgcolor"=>"003F00","sectionheader"=>"997F00",
			"sectionbody"=>"997F00","headertextColor"=>"003F00",
			"trimcolor"=>"CC9F00","textcolor"=>"FFFFFF",
			"linkcolor"=>"FFFFFF","vlinkcolor"=>"FFFFFF",
			"alinkcolor"=>"FFFFFF","hlinkcolor"=>"0080C0"),

	"hlug"=>array("bgcolor"=>"666666","sectionheader"=>"FF9900",
		      "sectionbody"=>"303030","headertextColor"=>"FFFFFF",
		      "trimcolor"=>"000000","textcolor"=>"FFFFFF",
		      "linkcolor"=>"FFFFFF","vlinkcolor"=>"FFFFFF",
		      "alinkcolor"=>"FFFFFF","hlinkcolor"=>"CC9F00"),

	"lightblue"=>array("bgcolor"=>"0066FF","sectionheader"=>"0099FF",
			   "sectionbody"=>"0099FF","headertextColor"=>"FFFFFF",
			   "trimcolor"=>"000066","textcolor"=>"FFFFFF",
			   "linkcolor"=>"FFFFFF","vlinkcolor"=>"FFFFFF",
			   "alinkcolor"=>"FFFFFF","hlinkcolor"=>"000066"),

	"midnight"=>array("bgcolor"=>"000033","sectionheader"=>"336699",
			  "sectionbody"=>"336699","headertextColor"=>"003366",
			  "trimcolor"=>"003366","textcolor"=>"FFFFFF",
			  "linkcolor"=>"FFFFFF","vlinkcolor"=>"FFFFFF",
			  "alinkcolor"=>"FFFFFF","hlinkcolor"=>"003366"),

	"lightgreen"=>array("bgcolor"=>"CCCC99","sectionheader"=>"CCCC99",
			  "sectionbody"=>"CCCC99","headertextColor"=>"003366",
			  "trimcolor"=>"CCCC99","textcolor"=>"003366",
			  "linkcolor"=>"003366","vlinkcolor"=>"003366",
			  "alinkcolor"=>"003366","hlinkcolor"=>"003366"),


	"yellow"=>array("bgcolor"=>"FFFFCC","sectionheader"=>"FFFFCC",
			  "sectionbody"=>"FFFFCC","headertextColor"=>"003366",
			  "trimcolor"=>"FFFFCC","textcolor"=>"003366",
			  "linkcolor"=>"003366","vlinkcolor"=>"003366",
			  "alinkcolor"=>"003366","hlinkcolor"=>"003366"),

	"blueish"=>array("bgcolor"=>"336699","sectionheader"=>"224466",
			  "sectionbody"=>"336699","headertextColor"=>"FFFFFF",
			  "trimcolor"=>"FFFFCC","textcolor"=>"000000",
			  "linkcolor"=>"FFFFCC","vlinkcolor"=>"CCCC99",
			  "alinkcolor"=>"FFFFCC","hlinkcolor"=>"000000"),

	"solidblueish"=>array("bgcolor"=>"336699","sectionheader"=>"336699",
			  "sectionbody"=>"336699","headertextColor"=>"000000",
			  "trimcolor"=>"336699","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"CCCC99",
			  "alinkcolor"=>"000000","hlinkcolor"=>"003366"),

	"darkblueish"=>array("bgcolor"=>"224466","sectionheader"=>"224466",
			  "sectionbody"=>"224466","headertextColor"=>"000000",
			  "trimcolor"=>"336699","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"CCCC99",
			  "alinkcolor"=>"000000","hlinkcolor"=>"FFFFFF"),


	"fm"=>array("bgcolor"=>"BBDDFF","sectionheader"=>"C9C9C9",
			  "sectionbody"=>"FFFFFF","headertextColor"=>"000000",
			  "trimcolor"=>"C9C9C9","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"000000",
			  "alinkcolor"=>"000000","hlinkcolor"=>"336699"),

	"greystrips"=>array("bgcolor"=>"999999","sectionheader"=>"999999",
			  "sectionbody"=>"999999","headertextColor"=>"000000",
			  "trimcolor"=>"C9C9C9","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"000000",
			  "alinkcolor"=>"000000","hlinkcolor"=>"FFFFFF"),

	"blackred"=>array("bgcolor"=>"000000","sectionheader"=>"000000",
			  "sectionbody"=>"000000","headertextColor"=>"FFFFFF",
			  "trimcolor"=>"FF0000","textcolor"=>"FFFFFF",
			  "linkcolor"=>"FFFFFF","vlinkcolor"=>"FFFFFF",
			  "alinkcolor"=>"FFFFFF","hlinkcolor"=>"FF0000"),

	"goldblack"=>array("bgcolor"=>"CC9933","sectionheader"=>"CC9933",
			  "sectionbody"=>"CC9933","headertextColor"=>"000000",
			  "trimcolor"=>"000000","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"000000",
			  "alinkcolor"=>"000000","hlinkcolor"=>"FFFFFF"),

	"whiteblack"=>array("bgcolor"=>"FFFFFF","sectionheader"=>"FFFFFF",
			  "sectionbody"=>"FFFFFF","headertextColor"=>"000000",
			  "trimcolor"=>"000000","textcolor"=>"000000",
			  "linkcolor"=>"000000","vlinkcolor"=>"004080",
			  "alinkcolor"=>"000000","hlinkcolor"=>"004080"),					


	"white"=>array("bgcolor"=>"FFFFFF","sectionheader"=>"FFFFFF",
			  "sectionbody"=>"FFFFFF","headertextColor"=>"000066",
			  "trimcolor"=>"FFFFFF","textcolor"=>"000066",
			  "linkcolor"=>"004080","vlinkcolor"=>"004080",
			  "alinkcolor"=>"004080","hlinkcolor"=>"0080C0")					
);

/**** DEFINE SITE THEME COLOR SCHEMA ****/
$theme = isset($theme) ? $theme : "whiteblack";


/**** DEFINE SITE FONTS ****/
// CSS names used to define preference of font type used, for OS reasons 
// stay away from wierd fonts that the target PC may not have

$site_fonts = isset($site_fonts) ? $site_fonts : "Trebuchet MS, Verdana, Arial, Helvetica, Sans-Serif"; 


/**** DEFINE SITE LOGO ****/
// You should be able to put where ever you want here.
// If not let me know!!
// $mylogo = "<h1>Put your logo here</h1>";

$thisdate = strtolower(date('l'));

$mylogo = "<H2>Nukelayout PHP Class</H2>";

//////////////////////////////////////////
// set_nukeLayout()		       ///
// Defined SiteName		      ///
// Logo Image file name		      ///
// Greeting ON/OFF		      ///
// Logo placement (left,center,right) //
////////////////////////////////////////

$mypage->set_nukeLayout("NukeLayout php Class",$mylogo,"OFF", "center");

///////////////////////////////
// Left/Right Column ON/OFF //
//////////////////////////////

$mypage->set_columnStatus("ON","ON");

// Set width of left block table width
// 
$mypage->set_leftblocktblwidth("150");

$mypage->set_rightblocktblwidth("150");
///////////////////////////////
// Top/Bottom banner ON/OFF //
// Logo Active link ON/OFF //
/////////////////////////////

$mypage->set_bannerStatus("ON","ON","OFF");


// Set Page title 
// You may want to move this to each script
$mypage->set_pageTitle("NukeLayout PHP Class ");

/////////////////////////////////////////
// set e-mail addr and page owner name //
// CHANGE THIS VALUE		      //
////////////////////////////////////////

$mypage->set_pageOwner("hide@address.com", "Chauncey Thorn");

///////////////////////////////////
// this is site META description //
//////////////////////////////////

$mypage->set_Metadata("This is a Nukelayout PHP Class generated Web Site");

//////////////////////////////////////////////////////////
// Text that is to be displayed in bottom banner footer //
/////////////////////////////////////////////////////////

$mypage->set_layoutfooterText("Site Powered by NukeLayout PHP Class");

//////////////////////
// Main Menu links  //
//////////////////////

//$nukelayoutmenuLink_array = array("HOME"=>"./",
//		"Developers Site"=>"rhttp://www.pccs-linux.com/");

///////////////////////////////////////////////////////////
/*** SET CONTENT TO BE DISPLAYED UNDER TOP BANNER ***/
//////////////////////////////////////////////////////////

$quicklink_array = array("Linux.com"=>"http://www.linux.com/",
			 "Apache.org"=>"http://Apache.org/",
			 "MySQL.com"=>"http://www.mysql.com/",
			 "PHP.net"=>"http://www.php.net/");


// $linkbar = $mypage->getrandQuote("randomquotes.txt")			 
$linkbar = $mypage->displayLinks($quicklink_array);
///////////////////////////
/***** SET BASE HREF ****/
/////////////////////////

// $menulinks = $mypage->displaymyLinks($nukelayoutmenuLink_array);

// $mypage->addleftbar("Main Menu", "$menulinks");

// $mypage->nukelayoutbasehref = "http://mylaptop/nukelayout/";

?>
Return current item: NukeLayout Clas