home *** CD-ROM | disk | FTP | other *** search
- <?PHP
- #
- # global configuration file for TSW [Control Center]
- #
-
- # define the path to the installation
- @@TSWINSTPATH@@
- $tsw_content_path = "\Apache2\conf\httpd.conf";
- $tsw_control_path = "\Apache2\conf\control.conf";
-
- $backfrominc = "../scripts/manipulation.php";
-
- # definition of languages, @ this moment ist only de
- # values: [de|en]
- $lang = "deutsch";
-
-
- /* some versions and ports */
- $tsw_version = "3.4.0";
- $ap2vers = "2.0.50";
- $ap2proto = "http,s";
- $ap2ports = "80/443";
- $mysqlvers = "4.0.20d";
- $mysqlport = "3306";
- $fbvers = "1.5.0";
- $fbports = "3050/3060";
- $fzvers = "0.92";
- $fzprot = "ftp";
- $fzports = "20/21";
- $mailvers = "2.0.5.5";
- $mailprots = "smtp,pop3,nntp,imap";
- $mailports = "25/110/119/143";
- $ap2modgzip = "2.0.26a";
- $ap2modsec = "1.8.2";
- $phpvers = "5.0.0";
- $perlvers = "5.8.3";
- $modperl_vers = "1.99_13";
- $pythonvers = "2.3.4";
- $modpyth_vers = "3.1.3";
- $tomcat_vers = "5.0.25";
- $wordpress_vers = "1.2";
- $pma_vers = "2.5.7-pl1";
- $zopt_vers = "2.5.3";
- $spyce_vers = "1.3.12";
-
- /***********************************************/
- /* */
- /* don't touch this file below this line */
- /* */
- /***********************************************/
-
- /* service names */
- $sn_tswh = "TSW-Contentserver";
- $sn_mysql = "TSW-MySQL";
- $sn_filezi = "\"FileZilla Server\"";
- $sn_fbs = "FireBirdServerDefaultInstance";
- $sn_fbg = "FirebirdGuardianDefaultInstance";
- $sn_mail = "TSW-MailServer";
-
- /* this part of the script extracts the 'ServerName' from TSW-Contentserver: httpd.conf */
- $hhttpd_conf = "$tsw_inst_path$tsw_content_path";
- $mystring = file_get_contents ($hhttpd_conf);
- $stringsearch1 = "ServerName";
-
- preg_match("/\n\s*$stringsearch1\s+([^\n]+)/i", $mystring, $res1_array);
-
- $servername = $res1_array[1];
-
- /* this part of the script extracts the 'ServerName' from TSW-Controlserver control.conf */
- $tsw_control_conf = "$tsw_inst_path$tsw_control_path";
- $mystring2 = file_get_contents ($tsw_control_conf);
- $stringsearch2 = "ServerName";
-
- preg_match("/\n\s*$stringsearch2\s+([^\n]+)/i", $mystring2, $res2_array);
-
- $tswcont_servername = $res2_array[1];
-
-
- /* this snippet makes the loading time of pages visible... */
- $take_time_1 = microtime();
- $take_time_1_explode = explode(" ",$take_time_1);
- $time_1 = $take_time_1_explode[0] + $take_time_1_explode[1];
-
- $take_time_2 = microtime();
- $take_time_2_explode = explode(" ",$take_time_2);
- $time_2 = $take_time_2_explode[0] + $take_time_2_explode[1];
-
- $time_unformated = $time_2 - $time_1;
- $time = substr($time_unformated,0,4);
-
- ?>