// Dennis 2011-02-21 Added all these checks prior to install
if(!function_exists("system")){
echo"<br />Warning: Function 'system' is not available in this server! Installation may not work!<br /><br />";
}
if(!function_exists("exec")){
echo"Warning: Function 'exec' is not available in this server! Installation may not work!<br /><br />";
}
else{
$status=99;
exec("mysql -q --help",$output,$status);
if(!$status==0){
echo"Warning: Functions 'system' and 'exec' are available but 'mysql.exe' is not setup for use in system() calls<br />Install on this server may not have full funtionality!<br /><br />";
}
$status=99;
exec("php -v",$output,$status);
if($status==0){
//echo "Good: php is callable from exec and system!<br />";
}
else{
echo"Warning: Functions 'system' and 'exec' are available but 'php.exe' is not setup for use in system() calls<br />Install on this server may not have full funtionality!<br /><br />";
}
}
// This check can be eliminated after all pdf reports are converted to tcpdf
if(!function_exists("pdf_new")){
echo"Warning: pdflib is not installed on this server! Most pdf reports will fail!<br /><br />";
echo"<div class=\"error\">Cannot write to data/config.inc.php. Make sure the web server has write access to the data/ subdirectory</div>";
}
}
else
{
echo"<div class=\"error\">Connected, but cannot select database. Make sure Database Name is correct, and that the user '".$_POST['dbuser']."' has access to it</div>";
}
}
else
{
echo"<div class=\"error\">Cannot connect to database. Make sure Host, User and Pass are correct</div>";