Mercurial > hg > extraction-interface
comparison _xampp/status.php @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 <? include("langsettings.php"); ?> | |
2 <html> | |
3 <head> | |
4 <meta name="author" content="Kai Oswald Seidler"> | |
5 <link href="xampp.css" rel="stylesheet" type="text/css"> | |
6 </head> | |
7 | |
8 <body> | |
9 <p> | |
10 | |
11 <h1><?=$TEXT['status-head']?></h1> | |
12 | |
13 <?=$TEXT['status-text1']?><p> | |
14 | |
15 <?php | |
16 | |
17 $i=0; | |
18 | |
19 $up=""; | |
20 | |
21 if($_SERVER['SERVER_PORT']==443) | |
22 $prot="https"; | |
23 else | |
24 $prot="http"; | |
25 | |
26 if(@$_SERVER['PHP_AUTH_USER']) | |
27 $up="{$_SERVER['PHP_AUTH_USER']}:{$_SERVER['PHP_AUTH_PW']}@"; | |
28 $path=dirname($_SERVER['PHP_SELF']); | |
29 $b="$prot://$up".$_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT'].$path; | |
30 function line($text,$status,$link="") | |
31 { | |
32 global $i,$TEXT; | |
33 | |
34 if($i>0) | |
35 { | |
36 echo "<tr valign=bottom>"; | |
37 echo "<td bgcolor=#ffffff background='img/strichel.gif' colspan=5><img src=img/blank.gif width=1 height=1></td>"; | |
38 echo "</tr>"; | |
39 } | |
40 echo "<tr bgcolor=#ffffff>"; | |
41 echo "<td bgcolor=#ffffff><img src=img/blank.gif width=1 height=20></td>"; | |
42 echo "<td class=tabval>"; | |
43 echo "$text"; | |
44 echo "</td>"; | |
45 if(trim($status)=="OK"){ | |
46 echo "<td><span class=green> ".$TEXT['status-ok']." </span></td>"; | |
47 echo "<td></td>"; | |
48 $i++; | |
49 } | |
50 else | |
51 { | |
52 echo "<td><span class=red> ".$TEXT['status-nok']." </span></td>"; | |
53 if($link=="") | |
54 echo "<td></td>"; | |
55 else | |
56 echo "<td><a target=faq href='$link'><span style='font-size: 10pt'>".$TEXT['status-lookfaq']."</span></a></td>"; | |
57 } | |
58 echo "<td bgcolor=#ffffff><img src=img/blank.gif width=1 height=1></td>"; | |
59 echo "</tr>"; | |
60 $i++; | |
61 } | |
62 | |
63 | |
64 $a=@file("$b/php.php"); | |
65 $php=$a[0]; | |
66 $a=@file("$b/mysql.php"); | |
67 $mysql=$a[0]; | |
68 $a=@file("$b/cgi.cgi"); | |
69 $cgi=$a[0]; | |
70 $a=@file("$b/ssi.shtml"); | |
71 $ssi=$a[0]; | |
72 $a=@file("$b/perl.pl"); | |
73 $perl=$a[0]; | |
74 | |
75 if(extension_loaded('eAccelerator')) | |
76 $eaccelerator="OK"; | |
77 else | |
78 $eaccelerator="NOK"; | |
79 | |
80 if(extension_loaded('oci8')) | |
81 $oci8="OK"; | |
82 else | |
83 $oci8="NOK"; | |
84 | |
85 | |
86 echo '<table border=0 cellpadding=0 cellspacing=0>'; | |
87 echo "<tr valign=top>"; | |
88 echo "<td bgcolor=#fb7922 valign=top><img src=img/blank.gif width=10 height=0></td>"; | |
89 echo "<td bgcolor=#fb7922 class=tabhead><img src=img/blank.gif width=250 height=6><br>".$TEXT['status-tab1']."</td>"; | |
90 echo "<td bgcolor=#fb7922 class=tabhead><img src=img/blank.gif width=100 height=6><br>".$TEXT['status-tab2']."</td>"; | |
91 echo "<td bgcolor=#fb7922 class=tabhead><img src=img/blank.gif width=100 height=6><br>".$TEXT['status-tab3']."</td>"; | |
92 echo "<td bgcolor=#fb7922 valign=top><br><img src=img/blank.gif width=1 height=10></td>"; | |
93 echo "</tr>"; | |
94 line($TEXT['status-mysql'],$mysql); | |
95 line($TEXT['status-php'],$php); | |
96 line($TEXT['status-perl'],$perl); | |
97 line($TEXT['status-cgi'],$cgi); | |
98 line($TEXT['status-ssi'],$ssi); | |
99 line($TEXT['status-mmcache'],$eaccelerator,$TEXT['status-mmcache-url']); | |
100 line($TEXT['status-oci8'],$oci8,$TEXT['status-oci8-url']); | |
101 | |
102 echo "<tr valign=bottom>"; | |
103 echo "<td bgcolor=#fb7922></td>"; | |
104 echo "<td bgcolor=#fb7922 colspan=3><img src=img/blank.gif width=1 height=8></td>"; | |
105 echo "<td bgcolor=#fb7922></td>"; | |
106 echo "</tr>"; | |
107 echo "</table>"; | |
108 | |
109 echo "<p>"; | |
110 | |
111 | |
112 ?> | |
113 <?=$TEXT['status-text2']?><p> | |
114 </body> | |
115 </html> |