4 function Checkold($function,$text,$description="")
6 if (!function_exists($function) )
7 echo "<td> ".$text." disabled</td><td> " . $description;
9 echo "<td> " . $text . " enabled<td> ";
12 function Check( $support, $description, $error_message )
14 $result = "Checking " . $description . " </td>";
20 if( function_exists( 'gettext') )
24 if( function_exists( 'gd_info') )
28 if ( class_exists('DB') )
32 if ( is_writable( "./templates_c" ) )
37 $result .= "<td width='300'> </td> <td> <img width='30' src='style/images/s_ok.gif' />";
39 $result .= "<td width='300'>$error_message</td> <td width='35'> <img width='30' src='style/images/s_error.gif' />";
45 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
46 "http://www.w3.org/TR/html4/loose.dtd">
49 <title>Bacula-web - Test page</title>
51 <style type="text/css">
53 font-family: arial, verdana, helvetica;
59 margin: 20px 0px 0px 100px;
60 border: thin solid black;
61 border-collapse: collapse;
66 border-top: thin solid black;
80 Check( "php-gettext", "PHP Gettext support", "If you want Bacula-web in your language, please compile PHP with Gettext support" );
87 Check("pear-db", "PEAR DB support", "PEAR DB support not found, please read the Bacula-web installation document");
94 Check( "php-gd", "PHP GD support", "This is required by phplot, please compile php with GD support" );
101 Check( "smarty-cache", "Smarty cache folder write permission", "Smarty template engine need write permissions to templates_c folder" );
109 Testing your graph system capabilities (Bacula-web only use PNG) <br />
110 <img src="simplegraph.php" />