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.
22 lines
849 B
22 lines
849 B
<?php
|
|
if( isset( $_GET['MID'] ) ){
|
|
$MID = intval( $_GET['MID'] );
|
|
require_once('../../scripts/sys_utils.php');
|
|
require_once('../../scripts/distro_web_utils.php');
|
|
|
|
$MANU = json_decode( `mmcli -m $MID --output-json`, true );
|
|
$LOLO = json_decode( `mmcli -m $MID --location-status --output-json`, true );
|
|
$MANU['modem']['location'] = $LOLO['modem']['location'];
|
|
$SYS_CONFIG['MODEM_CONFIG']['DEVICES'][$MID]=$MANU['modem'];
|
|
print_PAGE_HEADER();
|
|
if( !isset( $SYS_CONFIG['NGINX_AUTH_IS_SET'] ) ){
|
|
print_AUTH_WARNING();
|
|
} elseif( $SYS_CONFIG['NGINX_AUTH_IS_SET'] == false ) {
|
|
print_AUTH_WARNING();
|
|
};
|
|
print_MODEM_LOCATION_INFO( $MID );
|
|
print_PAGE_BOTTOM();
|
|
} else {
|
|
header( 'location: /wan_cp.php' );//mmcli -m 0 --messaging-create-sms=“text=‘Hello world’,number=’+1234567890’”
|
|
};
|
|
?>
|