Execute($sql))) { $fail = true; print "

Could not connect to database. Make sure the database: " . DB_NAME . " exists on " . DB_HOST . " and that " . DB_USER . " has privileges to it, otherwise modify config.inc.php to point to the correct database. Also make sure you have loaded the database structure from quexf.sql

"; }else { print "

Database connection succeeded

"; } if (file_exists(GS_BIN)) { $ver = exec(GS_BIN . " --version"); if ($ver) { print "

Found GhostScript version $ver

"; } } else { echo "

Could not find GhostScript in path: " . GS_BIN . "

Please modify config.inc.php, GS_BIN to point to the gs executable

"; $fail = true; } if (OCR_ENABLED) { if (file_exists(TESSERACT_BIN)) { print "

Found Tesseract

"; } else { echo "

Could not find Tesseract in path: " . TESSERACT_BIN . "

Please modify config.inc.php, TESSERACT_BIN to point to the tesseract executable or disable OCR by changing OCR_ENABLED to false

"; $fail = true; } if (file_exists(CONVERT_BIN)) { print "

Found ImageMagick

"; } else { echo "

Could not find ImageMagick in path: " . CONVERT_BIN . "

Please modify config.inc.php, CONVERT_BIN to point to the convert executable or disable OCR by changing OCR_ENABLED to false

"; $fail = true; } } if ($fail) { print "

FAILED

"; } else { print "

Passed Configuration Test

"; } ?>