]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/test.php
bacula-web: Removed title variable from config file
[bacula/bacula] / gui / bacula-web / test.php
1 <?
2
3 function Check($function,$text,$description="") {
4         
5         if  (!function_exists($function) )
6                 echo "<font color=red>NO</font></td> <td> ".$text." disabled</td><td>&nbsp;".$description;
7         else
8                 echo "<font color=green>YES</font></td>  <td> ".$text." enabled<td>&nbsp;";
9 }
10
11 ?>
12
13 <html>
14 <head>
15         <title>Testing page</title>
16 </head>
17 <body>
18
19 Checking system for dependencies...<br><br><br>
20 <table width=100% border=0>
21 <tr>
22         <td width=20%>
23                 Checking gettext:
24                 <? Check("gettext","Language support", "If you want view Bacula-web in your language, please compile PHP with Gettext");?>
25         </td>
26 </tr>
27 <tr>
28         <td width=20%>
29                 Checking Pear(DB):
30                 <? 
31                         if (@include_once("DB.php") )
32                                 echo "<font color=green>YES</font></td>  <td> Pear DB enabled</td><td>&nbsp;";
33                         else
34                                 echo "<font color=red>NO</font></td> <td> Pear DB NOT FOUND</td><td>This is required. Please download from <a href=\"http://pear.php.net/package/DB/download\">http://pear.php.net/package/DB/download</a> .";
35                 ?>
36         </td>
37 </tr>
38 <tr>
39         <td>
40                 Checking GD:
41                 <?Check("gd_info","GD support", "This is required. Please, compile php with GD support");?>
42         </td>
43 </tr>
44 </table>
45 <br><br>
46
47 Please, click the link below to test your graph system capabilities (Bacula-web only use PNG): <br>
48
49 <a href="external_packages/phplot/examples/test_setup.php" target="_blank">Test</a>
50 </body>
51 </html>