@php
$version = phpversion();
$float = floatval($version);
$checkphp = "7.3";
$checkphpfloat = floatval($checkphp);
$phpc="Can't Checked";
$ctype="Can't Checked";
$json="Can't Checked";
$fileinfo="Can't Checked";
$mbstring="Can't Checked";
$openssl="Can't Checked";
$pdo="Can't Checked";
$tokenizer="Can't Checked";
$xml="Can't Checked";
$set_time_limit="Can't Checked";
$install_allow = 1;
if($float >= $checkphpfloat) {
$phpc="
PHP : Version Ok
";
} else {
$install_allow = 0;
$phpc="
PHP : Error. PHP version less than 7.3
";
}
if (extension_loaded('ctype')) {
$ctype="
Ctype : Ok. Enabled.
";
} else {
$install_allow = 0;
$ctype="
Ctype : Error Ctype is not Enabled. Please enable it.
";
}
if (extension_loaded('fileinfo')) {
$fileinfo="
Fileinfo : Ok. Enabled.
";
} else {
$install_allow = 0;
$fileinfo="
Fileinfo : Error Fileinfo is not Enabled. Please enable it.
";
}
if (extension_loaded('json')) {
$json = "
JSON : Ok. Enabled.
";
} else {
$install_allow = 0;
$json = "
JSON : Error JSON is not Enabled. Please enable it.
";
}
if(function_exists("mb_detect_encoding")) {
$mbstring="
Mbstring : Ok. Enabled.
";
} else{
$install_allow = 0;
$mbstring="
Mbstring : Error.Mbstring is not Enabled. Please enable it.
";
}
if (extension_loaded('openssl')) {
$openssl="
OpenSSL : Ok. Enabled.
";
} else {
$install_allow = 0;
$openssl="
OpenSSL : Error OpenSSL is not Enabled. Please enable it.
";
}
if (class_exists('PDO')) {
$pdo="
PDO : Ok. Enabled.
";
} else {
$install_allow = 0;
$pdo="
PDO : Error pdo is not Enabled. Please enable it.
";
}
if (extension_loaded('tokenizer')) {
$tokenizer = "
Tokenizer : Ok. Enabled.
";
} else {
$install_allow = 0;
$tokenizer="
Tokenizer : Error Tokenizer is not Enabled. Please enable it.
";
}
if (extension_loaded('xml')) {
$xml = "
XML : Ok. Enabled.
";
} else {
$install_allow = 0;
$xml="
XML : Error XML is not Enabled. Please enable it.
";
}
if(function_exists('set_time_limit')) {
$set_time_limit="
set time limit: OK. Supported
";
} else{
$install_allow = 0;
$set_time_limit="
set time limit : Error. set_time_limit() is not enabled. Please enable set_time_limit() function.
";
}
@endphp
Install iDentSoft
@if(request()->get('wrong'))
Wrong credential!
@endif
@if(Session::has('mysql_error'))
@if(Session::get('mysql_error') != "")
{{ Session::get('mysql_error') }}
@php Session::forget('mysql_error'); @endphp
@endif
@endif
Server Requirements
@php
echo $phpc;
echo $ctype;
echo $fileinfo;
echo $json;
echo $mbstring;
echo $openssl;
echo $pdo;
echo $tokenizer;
echo $xml;
echo $set_time_limit;
@endphp
@if($install_allow==1)
Congratulation ! Your server is fully configured to install this application.
@else
Warning ! Please fullfill the above requirements (red colored) first.
@endif