Files
faveo/public/probe.php
Manish Verma 22d3bb4036 Installer updates
Added probe.php
Added new installer views and controllers
Updated AuthController
Updated Middlewares
Updated Commands for installation process
2018-08-07 13:45:46 +05:30

109 lines
3.5 KiB
PHP

<?php
error_reporting();
$extensions = [
'curl',
'ctype',
'imap',
'mbstring',
// 'mcrypt',
'openssl',
'tokenizer',
'zip',
'pdo',
'mysqli',
'bcmath',
'iconv',
'XML', //for HTML email processing
'json',
'fileinfo',
//'ioncube_loader_dar_5.6',
];
?>
<html>
<head>
<style>
body {
background: #F9F9F9;
}
table {
width:100%;
}
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
table.t01 tr:nth-child(even) {
background-color: #eee;
}
table.t01 tr:nth-child(odd) {
background-color:#fff;
}
table.t01 th {
background-color: #9DD1DE;
color: white;
}
</style>
</head>
<body>
<div style="height: auto; width: 500; margin: auto;">
<h1 style="text-align: center; color: #9DD1DE">FAVEO PROBE</h1>
<table class="t01">
<tr>
<th>Requirements</th>
<th>Status</th>
</tr>
<?php
echo '<tr>';
if (version_compare(phpversion(), '7.1.9', '>=') == 1) {
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</td>';
} else {
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Please upgrade PHP Version to 7.1.3 or greater version </p></td>';
}
echo '</tr>';
echo '<tr>';
$env = '../.env';
if (!is_file($env)) {
echo "<td>.env file</td> <td style='color:green'>Not found</td>";
} else {
echo "<td>.env file</td> <td style='color:red'>Yes Found<p>Please delete '$env' </p></td>";
}
echo '</tr>';
echo '<tr>';
$redirect = in_array('mod_rewrite', apache_get_modules());
if ($redirect) {
echo "<td>Rewrite Engine (User friendly URL)</td> <td style='color:green'>ON</td>";
} else {
echo "<td>Rewrite Engine (User friendly URL)</td> <td style='color:red'>OFF</td>";
}
echo '</tr>';
?>
</table>
<br/>
<table class="t01">
<tr>
<th>PHP Extensions</th>
<th>Status</th>
</tr>
<?php
foreach ($extensions as $extension) {
echo '<tr>';
if (!extension_loaded($extension)) {
echo '<td>'.$extension."</td> <td style='color:red'>Not Enabled"
."<p>To enable this, please open '".php_ini_loaded_file()."' and add 'extension = ".$extension."'</p>"
.'</td>';
} else {
echo '<td>'.$extension."</td> <td style='color:green'>Enabled</td>";
}
echo '</tr>';
}
?>
</table>
<p style='color:red;'>NOTE: Please delete the file 'probe.php' once you have fixed all the issues.</p>
</div>
</body>
</html>