home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / defaults.inc < prev    next >
Encoding:
Text File  |  2003-03-16  |  710 b   |  27 lines

  1. <?php
  2. /********************************************************
  3.     conf/defaults.inc
  4.         
  5.     PRE-CONDITION:
  6.         $lang = Language to use (e.g. "eng/" or "jp/")
  7.     PURPOSE:
  8.         Provide central location for setting default
  9.         values for user options.
  10. ********************************************************/
  11. if ((!isset($lang))||(strlen($lang)<3)) $lang="eng/";
  12. include("../lang/".$lang."init.inc");
  13. if (!isset($lang_charset)) $lang_charset="ISO-8859-1";
  14. if (!isset($rootdir)) $rootdir="";
  15.  
  16. if (isset($host)){
  17.     $defaults_path="../conf/defaults.".$host.".inc";
  18.     if (file_exists(realpath($defaults_path))){
  19.         include($defaults_path);
  20.         $included=true;
  21.     }
  22. }
  23.  
  24. if (!$included){
  25.     include("../conf/defaults.generic.inc");
  26. }
  27. ?>