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 / config.inc.php < prev    next >
Encoding:
PHP Script  |  2004-07-20  |  2.7 KB  |  91 lines

  1. <?PHP
  2. #
  3. #  global configuration file for TSW [Control Center]
  4. #
  5.  
  6. # define the path to the installation
  7. @@TSWINSTPATH@@
  8. $tsw_content_path     = "\Apache2\conf\httpd.conf";
  9. $tsw_control_path     = "\Apache2\conf\control.conf";
  10.  
  11. $backfrominc         = "../scripts/manipulation.php";
  12.  
  13. # definition of languages, @ this moment ist only de
  14. #   values: [de|en]
  15. $lang = "deutsch";
  16.  
  17.  
  18. /* some versions and ports */
  19. $tsw_version    = "3.4.0";
  20. $ap2vers        = "2.0.50";
  21. $ap2proto        = "http,s";
  22. $ap2ports        = "80/443";
  23. $mysqlvers        = "4.0.20d";
  24. $mysqlport        = "3306";
  25. $fbvers            = "1.5.0";
  26. $fbports        = "3050/3060";
  27. $fzvers            = "0.92";
  28. $fzprot            = "ftp";
  29. $fzports        = "20/21";
  30. $mailvers        = "2.0.5.5";
  31. $mailprots        = "smtp,pop3,nntp,imap";
  32. $mailports        = "25/110/119/143";
  33. $ap2modgzip        = "2.0.26a";
  34. $ap2modsec        = "1.8.2";
  35. $phpvers        = "5.0.0";
  36. $perlvers        = "5.8.3";
  37. $modperl_vers    = "1.99_13";
  38. $pythonvers        = "2.3.4";
  39. $modpyth_vers    = "3.1.3";
  40. $tomcat_vers    = "5.0.25";
  41. $wordpress_vers = "1.2";
  42. $pma_vers       = "2.5.7-pl1";
  43. $zopt_vers      = "2.5.3";
  44. $spyce_vers     = "1.3.12";
  45.  
  46. /***********************************************/
  47. /*                                             */
  48. /* don't touch this file below this line       */
  49. /*                                             */
  50. /***********************************************/
  51.  
  52. /* service names */
  53. $sn_tswh         = "TSW-Contentserver";
  54. $sn_mysql         = "TSW-MySQL";
  55. $sn_filezi         = "\"FileZilla Server\"";
  56. $sn_fbs         = "FireBirdServerDefaultInstance";
  57. $sn_fbg         = "FirebirdGuardianDefaultInstance";
  58. $sn_mail         = "TSW-MailServer";
  59.  
  60. /* this part of the script extracts the 'ServerName' from TSW-Contentserver: httpd.conf */
  61. $hhttpd_conf = "$tsw_inst_path$tsw_content_path";
  62. $mystring = file_get_contents ($hhttpd_conf);
  63. $stringsearch1 = "ServerName";
  64.  
  65.     preg_match("/\n\s*$stringsearch1\s+([^\n]+)/i", $mystring, $res1_array);
  66.  
  67. $servername = $res1_array[1];
  68.  
  69. /* this part of the script extracts the 'ServerName' from TSW-Controlserver control.conf */
  70. $tsw_control_conf = "$tsw_inst_path$tsw_control_path";
  71. $mystring2 = file_get_contents ($tsw_control_conf);
  72. $stringsearch2 = "ServerName";
  73.  
  74.     preg_match("/\n\s*$stringsearch2\s+([^\n]+)/i", $mystring2, $res2_array);
  75.  
  76. $tswcont_servername = $res2_array[1];
  77.  
  78.  
  79. /* this snippet makes the loading time of pages visible... */
  80. $take_time_1 = microtime();
  81. $take_time_1_explode = explode(" ",$take_time_1);
  82. $time_1 = $take_time_1_explode[0] + $take_time_1_explode[1];
  83.  
  84. $take_time_2 = microtime();
  85. $take_time_2_explode = explode(" ",$take_time_2);
  86. $time_2 = $take_time_2_explode[0] + $take_time_2_explode[1];
  87.  
  88. $time_unformated = $time_2 - $time_1;
  89. $time = substr($time_unformated,0,4);
  90.  
  91. ?>