Guides


You are here>> "; # What file do you want to not print a link to? (drop the .php suffix & capitalize the filename) $ignore = array("Index","Home"); ####################################### # Do not modify beneath this point unless you know what you're doing! function check_ignore($ignore,$referer){ if (count($ignore)){ global $errors; $found = true; #$referer = $path[$number]; for ($x=0; $x < count($ignore); $x++){ if ($ignore[$x] == $referer){ $found = false; } } return $found; } else { return true; //Not a good idea, if empty, it will allow it. } } #Splits the path into an array using a forward slash $path = explode ("/", $originalpath); #Counts How many elements are in the array so the loop below knows how long to loop $totalelements = count ($path); # Print out the Link to the Homepage printf("%s", $urlbase, $roottitle); # Loops thru the array printing out the link to the respective directory or file for($number=1; $number<$totalelements-1 ; $number++) { #Appends the next directory or file down to the URL $urlbase = $urlbase . "/" . $path[$number]; # Do Some Formatting on the Link Text #Replace Triple Underscore with Ampersand Surrounded By Underscores to be later converted to spaces $path[$number] = str_replace("___", "_&_", $path[$number]); #Replace Underscore with Space $path[$number] = str_replace("_", " ", $path[$number]); #Replace Tilde with Question Mark $path[$number] = str_replace("~", "?", $path[$number]); #Erase .php file extension $path[$number] = str_replace(".php", "", $path[$number]); #Capitalize All Words $path[$number] = ucwords($path[$number]); # Print Out The URL With The Formatted Link Text if(check_ignore($ignore,$path[$number])){ printf("%s%s", $seperator, $urlbase, $path[$number]); } } print ("> Current Page "); ?>

Greenpeace - Sea Wind East Report
How offshore wind in East Anglia could supply a quarter of UK electricity needs.


Alternative Energy
Overview of Alternative energy


Recycle
Some tips and hints on recycling


Fairtrade Shops
Listing of green and Fairtrade Shops


Green-i Pocket Food Shopping Guide
A pocket guide showing some things to look out for when shopping


Recommended Reading
Publications and online books worth reading


Homemade Cleaners
Safer alternatives to household cleaners


Back

Send to a Friend