Login   Register  
PHP Classes
elePHPant
Icontem

File: lang.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ben  >  Portscan  >  lang.php  >  Download  
File: lang.php
Role: Configuration script
Content type: text/plain
Description: language selector
Class: Portscan
Check whether given TCP ports are opened
Author: By
Last change: added danish language made by Jens Henrik
Date: 8 years ago
Size: 795 bytes
 

Contents

Class file image Download
<?
    
/*
    Date: 9-05-2006 15:57
    Author: B.Heesen (b.heesen@dbds.nl)
    Version: 0.1b
     Cpyright 2006 De Bron Digital Solutions (http://www.dbds.nl)
    */

// Set language according to the user's international settings
$strAcceptLanguage $_SERVER['HTTP_ACCEPT_LANGUAGE'];
  
$strPos =  strrpos($strAcceptLanguage",");
If (
$strPos>0) {$strAcceptLanguage substr($strAcceptLanguage0$strPos);}
   
Switch (
strToLower($strAcceptLanguage))
    {
    
// Danish Locations
  
case "da":
        require(
"lang/da.lang.php");
    break;

    
// Dutch Locations
  
case "nl" or "nl-be":
        require(
"lang/nl.lang.php");
    break;
    
// Italian Locations
  
case "it" or "it-ch":
         require(
"lang/it.lang.php");
    break;
    
//english and others
  
default:
        require(
"lang/en.lang.php");
    break;
}
?>