Location: PHPKode > projects > OpenBizMap > obm2007.1/odb_test.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="SHORTCUT ICON" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="odb_style.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<link rel="stylesheet" type="text/css" href="odb_print.css" media="print" />

<link rel="alternate" type="application/rss+xml" title="Changes" href="odb_index.php?odb_sys=rss&odb_channel=changes" />

<link rel="stylesheet" type="text/css" href="autosuggest.css" />
<title>OpenDataBag Check</title>
</head>
<body style="padding:10px;">
<div class="title">
  <table>
    <tr style="margin:0; padding:0;"><td style="margin:0; padding:0;">
      
      <h1><a href="./"><?php echo cfg_skin_name; ?></a></h1>
    </td><td width="100%" style="text-align:right;"></td></tr>
  </table>
  </div>
<hr />
<?php
//phpinfo();

$test_array['Server time']=date('Y.m.d H:i:s');

//---------------------------------------------------------------------
$test_array['grep']='No fast searching';
exec('grep -V 2>&1',$out,$err); //echo implode('<br>',$out); echo $err;
if($err==0)
  $test_array['grep']='OK';

//---------------------------------------------------------------------
$test_array['gd2']='No barcodes, no static charts, no thumbnails';
if(function_exists('imagecreate'))
  $test_array['gd2']='OK';

//---------------------------------------------------------------------
$test_array['diff']='No incremental import';
exec('diff -version 2>&1',$out,$err); //echo implode('<br>',$out); echo $err;
if($err==0)
  $test_array['diff']='OK';

//---------------------------------------------------------------------
$test_array['php']='No cli import';
exec('php -version 2>&1',$out,$err); //echo implode('<br>',$out); echo $err;
if($err==0)
  $test_array['php']='OK';

//---------------------------------------------------------------------
echo '<h1>OpenDataBag</h1>';
echo '<h2>Feature Check</h2>';
echo '<div><table style="margin:10px; border:#555 solid 1px; width: 200px;">';
echo '<tr><th>Feature</th><th>Status</th></tr>';
foreach($test_array as $feature => $status)
{
  echo '<tr><td style="text-align:center">'.$feature.'</td><td style="text-align:center">'.$status.'</td></tr>';
}
echo '</table></div>';

?>
</body>
</html>
Return current item: OpenBizMap