You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
611 B

<?php
require_once('../../scripts/sys_utils.php');
require_once('../../scripts/distro_web_utils.php');
foreach( $SYS_CONFIG['MODEM_CONFIG']['DEVICES'] as $ID=>$CD ){
$MANU = json_decode( `mmcli -m $ID --output-json`, true );
$LOLO = json_decode( `mmcli -m $ID --location-status --output-json`, true );
$MANU['modem']['location'] = $LOLO['modem']['location'];
$SYS_CONFIG['MODEM_CONFIG']['DEVICES'][$ID]=$MANU['modem'];
};
print_PAGE_HEADER();
if( $SYS_CONFIG['NGINX_AUTH_IS_SET'] == false ) {
print_AUTH_WARNING();
};
print_MODEM_INFO();
print_PAGE_BOTTOM();
?>