<div id="main_center">
<div class="box">
<p class="title">Required components</p>
- <table>
+ <table border="0">
{foreach from=$checks item=check}
<tr>
- <td> <b>{$check.check_label}</b> </td>
- <td>{$check.check_descr}</td>
- <td> <img src='style/images/{$check.check_result}' width='20' alt=''/></td>
+ <td width="250">{$check.check_label}</td>
+ <td width="450">{$check.check_descr}</td>
+ <td style="text-align:center;"> <img src='style/images/{$check.check_result}' width='20' alt=''/></td>
</tr>
{/foreach}
</table>
<table>
<tr>
<td>
- <b>Graph system capabilities (Bacula-web only use PNG)</b>
+ Graph system capabilities (Bacula-web only use PNG image format)
</td>
<td colspan="2">
<img src="{$graph_test}" alt='' />
array( 'check_cmd' => 'php-gd',
'check_label' => 'PHP - GD support',
'check_descr' => 'This is required by phplot, please compile php with GD support'),
+ array( 'check_cmd' => 'php-mysql',
+ 'check_label' => 'PHP - MySQL support',
+ 'check_descr' => 'PHP MySQL support must be installed in order to run bacula-web with MySQL bacula catalog'),
+ array( 'check_cmd' => 'php-postgres',
+ 'check_label' => 'PHP - PostgreSQL support',
+ 'check_descr' => 'PHP PostgreSQL support must be installed in order to run bacula-web with PostgreSQL bacula catalog'),
array( 'check_cmd' => 'smarty-cache',
'check_label' => 'Smarty cache folder write permission',
'check_descr' => 'Smarty template engine need write permissions to templates_c folder')
switch( $check['check_cmd'] )
{
case 'php-gettext':
- $check['check_result'] = $check_result[ function_exists( 'gettext') ];
+ $check['check_result'] = $check_result[ function_exists( 'gettext' ) ];
break;
case 'php-gd':
$check['check_result'] = $check_result[ function_exists( 'gd_info') ];
case 'pear-db':
$check['check_result'] = $check_result[ class_exists('DB') ];
break;
+ case 'php-mysql':
+ $check['check_result'] = $check_result[ function_exists('mysql_connect') ];
+ break;
+ case 'php-postgres':
+ $check['check_result'] = $check_result[ function_exists('pg_connect') ];
+ break;
case 'smarty-cache':
$check['check_result'] = $check_result[ is_writable( "./templates_c" ) ];
break;
- }
+ }
+
}
+
// Generate test graph
$data = array( array('test', 100, 100, 200, 100), array('test1', 150, 100, 150, 100 ) );
$graph = new BGraph( "graph3.png" );