Test/Probe Prerequisites required to be installed Probe
FaveoHELPDESK 1.0 and Newer');
define('STATUS_OK', 'Ok');
define('STATUS_WARNING', 'Warning');
define('STATUS_ERROR', 'Error');
class TestResult {
var $message;
var $status;
function TestResult($message, $status = STATUS_OK) {
$this->message = $message;
$this->status = $status;
}
} // TestResult
if (DB_HOST && DB_USER && DB_NAME) {
?>
= 0) {
$results[] = new TestResult('MySQL version is ' . $mysqli_version, STATUS_OK);
// $have_inno = check_have_inno($connection);
} else {
$results[] = new TestResult('Your MySQL version is ' . $mysqli_version . '. We recommend upgrading to at least MySQL5!', STATUS_ERROR);
$mysqli_ok = false;
} // if
} else {
$results[] = new TestResult('Failed to select database. MySQL said: ' . mysqli_error(), STATUS_ERROR);
$mysqli_ok = false;
} // if
} else {
$results[] = new TestResult('Failed to connect to database. MySQL said: ' . mysqli_error(), STATUS_ERROR);
$mysqli_ok = false;
} // if
}
// elseif($default == 'pgsql') {
// if ($connection2 = pg_connect("'host='.DB_HOST.' port='.DB_PORT.' dbname='.DB_NAME.' user='.DB_USER.' password='.DB_PASS.")) {
// $results[] = new TestResult('Connected to database as ' . DB_USER . '@' . DB_HOST, STATUS_OK);
// } else {
// $results[] = new TestResult('Failed to connect to database. PgSQL said: ' . mysqli_error(), STATUS_ERROR);
// $mysqli_ok = false;
// }
// } elseif($default == 'sqlsrv') {
// }
// ---------------------------------------------------
// Validators
// ---------------------------------------------------
// dd($results);
foreach ($results as $result) {
print '' . $result->status . ' — ' . $result->message . ' ';
} // foreach
?>
Database test is turned off. To turn it On, please open probe.php in your favorite text editor and set DB_XXXX connection parameters in database section at the beginning of the file:
DB_HOST — Address of your MySQL server (usually localhost)
DB_USER — Username that is used to connect to the server
DB_PASS — User's password
DB_NAME — Name of the database you are connecting to
Once these settings are set, probe.php will check if your database meets the system requirements.
OK, this system can run FaveoHELPDESK
Database connection successful
Please wait this may take a while......
{!! Form::open( ['id'=>'form','method' => 'POST'] )!!}
{{-- --}}
This system does not meet FaveoHELPDESK system requirements
{{--
--}}
Ok — All OK Warning — Not a deal breaker, but it's recommended to have this installed for some features to work Error — FaveoHELPDESK require this feature and can't work without it