mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
Remove phpinfo()
This commit is contained in:
parent
3d9b3334ee
commit
7b03ae5ed8
6 changed files with 1 additions and 44 deletions
|
|
@ -225,13 +225,6 @@ export function userBackground(hash) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
|
||||||
export function phpInfo() {
|
|
||||||
return SERVER_PREFIX + '/Info';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} lang
|
* @param {string} lang
|
||||||
* @param {boolean} isAdmin
|
* @param {boolean} isAdmin
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import {
|
||||||
|
|
||||||
import { SaveSettingsStep, Magics } from 'Common/Enums';
|
import { SaveSettingsStep, Magics } from 'Common/Enums';
|
||||||
import { reload as translatorReload } from 'Common/Translator';
|
import { reload as translatorReload } from 'Common/Translator';
|
||||||
import { phpInfo } from 'Common/Links';
|
|
||||||
|
|
||||||
import { settingsGet } from 'Storage/Settings';
|
import { settingsGet } from 'Storage/Settings';
|
||||||
import { showScreenPopup } from 'Knoin/Knoin';
|
import { showScreenPopup } from 'Knoin/Knoin';
|
||||||
|
|
@ -177,13 +176,6 @@ class GeneralAdminSettings {
|
||||||
LanguageStore.userLanguageAdmin()
|
LanguageStore.userLanguageAdmin()
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
|
||||||
phpInfoLink() {
|
|
||||||
return phpInfo();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { GeneralAdminSettings, GeneralAdminSettings as default };
|
export { GeneralAdminSettings, GeneralAdminSettings as default };
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import _ from '_';
|
||||||
import ko from 'ko';
|
import ko from 'ko';
|
||||||
|
|
||||||
import { trim, boolToAjax } from 'Common/Utils';
|
import { trim, boolToAjax } from 'Common/Utils';
|
||||||
import { phpInfo } from 'Common/Links';
|
|
||||||
import { StorageResultType, Magics } from 'Common/Enums';
|
import { StorageResultType, Magics } from 'Common/Enums';
|
||||||
|
|
||||||
import { settingsGet } from 'Storage/Settings';
|
import { settingsGet } from 'Storage/Settings';
|
||||||
|
|
@ -172,13 +171,6 @@ class SecurityAdminSettings {
|
||||||
this.twoFactorDropperUser('');
|
this.twoFactorDropperUser('');
|
||||||
this.twoFactorDropperUser.focused(false);
|
this.twoFactorDropperUser.focused(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
|
||||||
phpInfoLink() {
|
|
||||||
return phpInfo();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { SecurityAdminSettings, SecurityAdminSettings as default };
|
export { SecurityAdminSettings, SecurityAdminSettings as default };
|
||||||
|
|
|
||||||
|
|
@ -753,17 +753,6 @@ class ServiceActions
|
||||||
return 'Pong';
|
return 'Pong';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ServiceInfo() : string
|
|
||||||
{
|
|
||||||
$this->oHttp->ServerNoCache();
|
|
||||||
|
|
||||||
if ($this->oActions->IsAdminLoggined(false))
|
|
||||||
{
|
|
||||||
\header('Content-Type: text/html; charset=utf-8');
|
|
||||||
\phpinfo();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function ServiceSso() : string
|
public function ServiceSso() : string
|
||||||
{
|
{
|
||||||
$this->oHttp->ServerNoCache();
|
$this->oHttp->ServerNoCache();
|
||||||
|
|
|
||||||
|
|
@ -130,10 +130,6 @@
|
||||||
|
|
||||||
<span data-bind="text: uploadDataDesc"></span>
|
<span data-bind="text: uploadDataDesc"></span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<a href="#" target="_blank" class="btn btn-thin" data-bind="link: phpInfoLink()">
|
|
||||||
<i class="icon-info"></i>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|
|
||||||
|
|
@ -66,11 +66,6 @@
|
||||||
}"></div>
|
}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
|
||||||
<div class="controls">
|
|
||||||
<a href="#" target="_blank" class="g-ui-link" data-bind="link: phpInfoLink()" data-i18n="TAB_SECURITY/LABEL_SHOW_PHP_INFO"></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
|
|
@ -140,4 +135,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue