Existing bugs commits squashed
validation-bugsnag-email auto-update datatables adding-engine backup fixes Apply fixes from StyleCI duedate fixes Apply fixes from StyleCI style-changes changes Apply fixes from StyleCI changes-n Apply fixes from StyleCI manual-update database:sync issues bugfixes mail Apply fixes from StyleCI Apply fixes from StyleCI
This commit is contained in:
committed by
RafficMohammed
parent
2ae90d7fcb
commit
0654723809
@@ -66,26 +66,26 @@ $bootstrapPermission = substr(sprintf('%o', fileperms($basePath.DIRECTORY_SEPARA
|
||||
<tr>
|
||||
<td>storage</td>
|
||||
<?php if ($storagePermission >= 755) {
|
||||
?>
|
||||
?>
|
||||
<td style='color:green'><?= $storagePermission; ?></td>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
} else {
|
||||
?>
|
||||
<td style='color:red'><?= $storagePermission; ?> (Directory should be writable by your web server or Faveo will not run. Give preferred permissions as 755 for directory and 644 for files.)</td>
|
||||
<?php
|
||||
} ?>
|
||||
} ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>bootstrap/cache</td>
|
||||
<?php if ($bootstrapPermission >= 755) {
|
||||
?>
|
||||
?>
|
||||
<td style='color:green'><?= $bootstrapPermission; ?></td>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
} else {
|
||||
?>
|
||||
<td style='color:red'><?= $bootstrapPermission; ?> (Directory should be writable by your web server or Faveo will not run. Give preferred permissions as 755 for directory and 644 for files.)</td>
|
||||
<?php
|
||||
} ?>
|
||||
} ?>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
@@ -95,18 +95,18 @@ $bootstrapPermission = substr(sprintf('%o', fileperms($basePath.DIRECTORY_SEPARA
|
||||
<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>';
|
||||
}
|
||||
?>
|
||||
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>
|
||||
<br/>
|
||||
<table class="t01">
|
||||
@@ -115,30 +115,30 @@ $bootstrapPermission = substr(sprintf('%o', fileperms($basePath.DIRECTORY_SEPARA
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
<?php
|
||||
echo '<tr>';
|
||||
if (version_compare(phpversion(), '7.1') == -1 || version_compare('7.1.50', phpversion()) == -1) {
|
||||
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Recommended PHP version 7.1</p></td>';
|
||||
} else {
|
||||
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</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>';
|
||||
?>
|
||||
echo '<tr>';
|
||||
if (version_compare(phpversion(), '7.1') == -1 || version_compare('7.1.50', phpversion()) == -1) {
|
||||
echo "<td>PHP Version</td> <td style='color:red'>".phpversion().'<p>Recommended PHP version 7.1</p></td>';
|
||||
} else {
|
||||
echo "<td>PHP Version</td> <td style='color:green'>".phpversion().'</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>
|
||||
<p style='color:red;'>NOTE: Please delete the file 'probe.php' once you have fixed all the issues.</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user