Mercurial > hg > extraction-interface
comparison _xampp/security.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 <h1><?=$TEXT['security-head']?></h1> | |
| 11 | |
| 12 <?=$TEXT['security-text1']?><p> | |
| 13 | |
| 14 <? | |
| 15 | |
| 16 $i=0; | |
| 17 | |
| 18 function line($head,$textok,$info,$command) | |
| 19 { | |
| 20 global $i,$TEXT; | |
| 21 | |
| 22 system("/opt/lampp/share/lampp/$command check",$status); | |
| 23 if($i>0) | |
| 24 { | |
| 25 echo "<tr valign=bottom>"; | |
| 26 echo "<td bgcolor=#ffffff background='img/strichel.gif' colspan=4><img src=img/blank.gif width=1 height=1></td>"; | |
| 27 echo "</tr>"; | |
| 28 } | |
| 29 | |
| 30 echo "<tr bgcolor=#ffffff valign=middle><td><img src=img/blank.gif width=1 height=20></td><td class=tabval>"; | |
| 31 if($status==0) | |
| 32 echo $textok; | |
| 33 else | |
| 34 echo $head; | |
| 35 echo "</td>"; | |
| 36 if($status==0){ echo "<td><span class=green> ".$TEXT['security-ok']." </span></td>"; } | |
| 37 else if($status==1) { echo "<td><span class=red> ".$TEXT['security-nok']." </span></td>"; } | |
| 38 else { echo "<td><span class=yellow> ".$TEXT['security-noidea']." </span></td>"; } | |
| 39 echo "<td> </td></tr>"; | |
| 40 if($status) | |
| 41 echo "<tr bgcolor=#ffffff><td></td><td colspan=1 class=small>$info<br><img src=img/blank.gif width=1 height=10></td><td></td><td></td></tr>"; | |
| 42 $i++; | |
| 43 } | |
| 44 | |
| 45 echo '<table border=0 cellpadding=0 cellspacing=0>'; | |
| 46 echo "<tr valign=top>"; | |
| 47 echo "<td bgcolor=#fb7922 valign=top><img src=img/blank.gif width=10 height=0></td>"; | |
| 48 echo "<td bgcolor=#fb7922 class=tabhead><img src=img/blank.gif width=250 height=6><br>".$TEXT['security-tab1']."</td>"; | |
| 49 echo "<td bgcolor=#fb7922 class=tabhead><img src=img/blank.gif width=100 height=6><br>".$TEXT['security-tab2']."</td>"; | |
| 50 echo "<td bgcolor=#fb7922 valign=top><br><img src=img/blank.gif width=1 height=10></td>"; | |
| 51 echo "</tr>"; | |
| 52 | |
| 53 line($TEXT['security-checkapache-nok'],$TEXT['security-checkapache-ok'],$TEXT['security-checkapache-text'],"checkapache"); | |
| 54 //line($TEXT['security-checkmysqlport-nok'],$TEXT['security-checkmysqlport-ok'],$TEXT['security-checkmysqlport-text'],"checkmysqlport"); | |
| 55 line($TEXT['security-checkpmamysqluser-nok'],$TEXT['security-checkpmamysqluser-ok'],$TEXT['security-checkpmamysqluser-text'],"checkpmamysqluser"); | |
| 56 line($TEXT['security-checkmysql-nok'],$TEXT['security-checkmysql-ok'],$TEXT['security-checkmysql-text'],"checkmysql"); | |
| 57 line($TEXT['security-checkftppassword-nok'],$TEXT['security-checkftppassword-ok'],$TEXT['security-checkftppassword-text'],"checkftppassword"); | |
| 58 | |
| 59 echo "<tr valign=bottom>"; | |
| 60 echo "<td bgcolor=#fb7922></td>"; | |
| 61 echo "<td bgcolor=#fb7922 colspan=3><img src=img/blank.gif width=1 height=8></td>"; | |
| 62 echo "<td bgcolor=#fb7922></td>"; | |
| 63 echo "</tr>"; | |
| 64 | |
| 65 | |
| 66 echo "</table>"; | |
| 67 echo "<p>"; | |
| 68 | |
| 69 ?> | |
| 70 <?=$TEXT['security-text2']?><p> | |
| 71 | |
| 72 <p> <p> <p> | |
| 73 <p> <p> <p> | |
| 74 </body> | |
| 75 </html> |
