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.

21 lines
849 B

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. if( isset( $_GET['MID'] ) ){
  3. $MID = intval( $_GET['MID'] );
  4. require_once('../../scripts/sys_utils.php');
  5. require_once('../../scripts/distro_web_utils.php');
  6. $MANU = json_decode( `mmcli -m $MID --output-json`, true );
  7. $LOLO = json_decode( `mmcli -m $MID --location-status --output-json`, true );
  8. $MANU['modem']['location'] = $LOLO['modem']['location'];
  9. $SYS_CONFIG['MODEM_CONFIG']['DEVICES'][$MID]=$MANU['modem'];
  10. print_PAGE_HEADER();
  11. if( !isset( $SYS_CONFIG['NGINX_AUTH_IS_SET'] ) ){
  12. print_AUTH_WARNING();
  13. } elseif( $SYS_CONFIG['NGINX_AUTH_IS_SET'] == false ) {
  14. print_AUTH_WARNING();
  15. };
  16. print_MODEM_LOCATION_INFO( $MID );
  17. print_PAGE_BOTTOM();
  18. } else {
  19. header( 'location: /wan_cp.php' );//mmcli -m 0 --messaging-create-sms=“text=‘Hello world’,number=’+1234567890’”
  20. };
  21. ?>