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.

19 lines
611 B

4 years ago
​
​
​
​
2 years ago
​
​
​
​
​
​
4 years ago
​
​
​
2 years ago
4 years ago
​
​
  1. <?php
  2. require_once('../../scripts/sys_utils.php');
  3. require_once('../../scripts/distro_web_utils.php');
  4. foreach( $SYS_CONFIG['MODEM_CONFIG']['DEVICES'] as $ID=>$CD ){
  5. $MANU = json_decode( `mmcli -m $ID --output-json`, true );
  6. $LOLO = json_decode( `mmcli -m $ID --location-status --output-json`, true );
  7. $MANU['modem']['location'] = $LOLO['modem']['location'];
  8. $SYS_CONFIG['MODEM_CONFIG']['DEVICES'][$ID]=$MANU['modem'];
  9. };
  10. print_PAGE_HEADER();
  11. if( $SYS_CONFIG['NGINX_AUTH_IS_SET'] == false ) {
  12. print_AUTH_WARNING();
  13. };
  14. print_MODEM_INFO();
  15. print_PAGE_BOTTOM();
  16. ?>