Skip to content

Commit 3abe485

Browse files
committed
addCoreApiCheck
1 parent 3bbb835 commit 3abe485

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/class/mobile.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ public static function getConfigForCommunity()
4747
$res = '<br>```<br>';
4848
$res .= 'OS : ' . $distrib . ' on ' . $hw;
4949
$res .= ' - PHP : ' . phpversion();
50-
$res .= '<br/>';
51-
$res .= 'Etat Clé Api : '.config::byKey('api::mobile::mode') . '<br>```';
50+
$res .= '<br/>';
51+
$res .= 'Etat Clé Api Core : ' . config::byKey('api::core::mode');
52+
$res .= '<br/>';
53+
$res .= 'Etat Clé Api Mobile : ' . config::byKey('api::mobile::mode') . '<br>```';
5254
$res .= '<br/><br/>';
5355
$res .= '[details="Equipement(s)"]<br/>';
5456
$res .= '|Id | LogicalId | Type | App | defaultIdMobile | Profil | hideMenuGeoloc | hideMenuCustom|<br>';

desktop/php/mobile.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
if($isApi == 'whiteip' || $isApi == 'disable'){
1919
message::add('mobile', 'L\'API mobile est désactivée ou en mode whitelist IP');
2020
}
21+
$isCoreApi = config::byKey('api::core::mode');
22+
if($isCoreApi == 'whiteip' || $isCoreApi == 'disable'){
23+
message::add('mobile', 'L\'API core est désactivée ou en mode whitelist IP');
24+
}
2125
?>
2226

2327
<div class="row row-overflow">

0 commit comments

Comments
 (0)