mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Show warning in Admin -> About when PHP runs in 32bit
This commit is contained in:
parent
3306fadc47
commit
9e3d6c6e23
|
@ -16,6 +16,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
|
||||||
coreWarning: false,
|
coreWarning: false,
|
||||||
coreVersion: '',
|
coreVersion: '',
|
||||||
coreVersionCompare: -2,
|
coreVersionCompare: -2,
|
||||||
|
php64: true,
|
||||||
load1: 0,
|
load1: 0,
|
||||||
load5: 0,
|
load5: 0,
|
||||||
load15: 0,
|
load15: 0,
|
||||||
|
@ -69,6 +70,7 @@ export class AdminSettingsAbout /*extends AbstractViewSettings*/ {
|
||||||
this.coreWarning(!!data.core.warning);
|
this.coreWarning(!!data.core.warning);
|
||||||
this.coreVersion(data.core.version || '');
|
this.coreVersion(data.core.version || '');
|
||||||
this.coreVersionCompare(data.core.versionCompare);
|
this.coreVersionCompare(data.core.versionCompare);
|
||||||
|
this.php64(data.php[1].loaded);
|
||||||
} else {
|
} else {
|
||||||
this.coreReal(false);
|
this.coreReal(false);
|
||||||
this.coreWarning(false);
|
this.coreWarning(false);
|
||||||
|
|
|
@ -75,7 +75,12 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>PHP optional extensions</h3>
|
<h3>PHP</h3>
|
||||||
|
<div data-bind="hidden: php64" class="alert">
|
||||||
|
<i class="fontastic" style="color:red">⚠</i>
|
||||||
|
PHP is running in 32bit mode. <a href="https://github.com/the-djmaze/snappymail/issues/830#issuecomment-1372112793">read here</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table class="table table-hover table-bordered"><thead><tr>
|
<table class="table table-hover table-bordered"><thead><tr>
|
||||||
<th>Extension</th>
|
<th>Extension</th>
|
||||||
<th>Loaded</th>
|
<th>Loaded</th>
|
||||||
|
|
Loading…
Reference in a new issue