PHP-test 7


Text of the file "nav_eng.php"

<?php

//**********************    nav_eng.php    **********************
//
//  This file is included on all English pages.
//  This script contains information (URL, button image and
//  "ALT text") for the links in the navigation bar.
//
//                   Bo Johansson 2000-07-24
//
//  2001-06-23: guestbook links added
//  2001-07-22: no Swedish button if $altLang is set to ""
//  2001-07-24: using bt_noswe button if $altLang is set to ""
//  2002-04-23: changed '$HTTP_HOST' to 'getenv("HTTP_HOST")'
//  2002-08-29: changed 'getenv("HTTP_HOST")' to '$_SERVER["HTTP_HOST"]'
//  2002-08-29: link to the Apache manual instead of Xitami
//***************************************************************


$hrefText[0] = $navBase . "index.php";
$srcText[0] = $navBase . "navbt/bt_serv-e_";
$altText[0] = "My own server";


if(
$altLang != "")
{
  
$hrefText[1] = $altLang;
  
$srcText[1] = $navBase . "navbt/bt_svenska_";
  
$altText[1] = "P&aring; svenska, tack!";
}

else
{
  
$hrefText[1] = "Z";
  
$srcText[1] = $navBase . "navbt/bt_noswe_";;
  
$altText[1] = "";
}


if(
$_SERVER["HTTP_HOST"] == "127.0.0.1")
  
$hrefText[2] = "http://hem.bredband.net/bhj56bhj/index_e.htm";

else
  
$hrefText[2] = "http://hem.bredband.net/bhj56bhj/index_e.htm";

$srcText[2] = $navBase . "navbt/bt_home1_";
$altText[2] = "My Home page";


$hrefText[3] = $navBase . 'guest/sign_gb_e.php" TARGET="_blank';
$srcText[3] = $navBase . "navbt/bt_sgb_e_";
$altText[3] = "Sign Guestbook";

$hrefText[4] = 'http://htmlgear.lycos.com/guest/control.guest?u=bojoha&i=1001&a=view" TARGET="_blank';
$srcText[4] = $navBase . "navbt/bt_rgb_e_";
$altText[4] = "Read Guestbook";

$hrefText[5] = "Z";
$srcText[5] = $navBase . "navbt/empty_";
$altText[5] = "";

$hrefText[6] = $navBase . "manual/";
$srcText[6] = $navBase . "navbt/bt_apache_";
$altText[6] = "The Apache manual";

$hrefText[7] = $navBase . "php_man/pmain_s.html";
$srcText[7] = $navBase . "navbt/bt_php-man_";
$altText[7] = "The PHP manual";

$hrefText[8] = "Z";
$srcText[8] = $navBase . "navbt/empty_";
$altText[8] = "";

$hrefText[9] = $navBase . "navbt/ex_core_e.php";
$srcText[9] = $navBase . "navbt/bt_php-ex-core_";
$altText[9] = "PHP examples (Core PHP Progr.)";

$hrefText[10] = $navBase . "navbt/ex_pro_e.php";
$srcText[10] = $navBase . "navbt/bt_php-ex-pro_";
$altText[10] = "PHP examples (Pro. PHP Progr.)";

$hrefText[11] = $navBase . "test/dir_e.php";
$srcText[11] = $navBase . "navbt/bt_php-ex-e_";
$altText[11] = "My own PHP exemples";

//*************************  File end  **************************

?>

Page created 2001-07-22, last changed 2003-08-30 10:22
This mirror page last changed 2009-12-04

© 2003 Bo Johansson