3 function Check($function,$text,$description="") {
5 if (!function_exists($function) )
6 echo "<font color=red>NO</font></td> <td> ".$text." disabled</td><td> ".$description;
8 echo "<font color=green>YES</font></td> <td> ".$text." enabled<td> ";
15 <title>Testing page</title>
19 Checking system for dependencies...<br><br><br>
20 <table width=100% border=0>
24 <? Check("gettext","Language support", "If you want view Bacula-web in your language, please compile PHP with Gettext");?>
31 if (@include_once("DB.php") )
32 echo "<font color=green>YES</font></td> <td> Pear DB enabled</td><td> ";
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> .";
41 <?Check("gd_info","GD support", "This is required. Please, compile php with GD support");?>
47 Please, click the link below to test your graph system capabilities (Bacula-web only use PNG): <br>
49 <a href="external_packages/phplot/examples/test_setup.php" target="_blank">Test</a>