Copyright (C) 2005 James Grant This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ echo "\n"; ?> SFIAB Installation

SFIAB Installation - Step 1

SFIAB Installation Step 1 is already complete."; echo "Proceed to installation step 2
"; echo ""; exit; } ?> Warning: Function 'system' is not available in this server! Installation may not work!

"; } if(!function_exists("exec")) { echo "Warning: Function 'exec' is not available in this server! Installation may not work!

"; } 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
Install on this server may not have full funtionality!

"; } $status = 99; exec("php -v",$output,$status); if ($status == 0){ //echo "Good: php is callable from exec and system!
"; } else{ echo "Warning: Functions 'system' and 'exec' are available but 'php.exe' is not setup for use in system() calls
Install on this server may not have full funtionality!

"; } } // 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!

"; } ?> Database connection successful!"; echo "
"; echo "Storing database connection information... "; //create the config.inc.php if($fp=fopen("data/config.inc.php","w")) { fputs($fp,"\n"); fclose($fp); echo "Done!
"; echo "Proceed to installation step 2
"; } else { echo "
Cannot write to data/config.inc.php. Make sure the web server has write access to the data/ subdirectory
"; } } else { echo "
Connected, but cannot select database. Make sure Database Name is correct, and that the user '".$_POST['dbuser']."' has access to it
"; } } else { echo "
Cannot connect to database. Make sure Host, User and Pass are correct
"; } echo "
"; } if($showform) { ?> SFIAB requires a MySQL database to store all of its information. Please enter your MySQL database connection info for your database to continue. The database must already exist and the user/password you specify must have access to the database.

Database Host
Database User
Database Pass
Database Name