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.
|
|
<?php require_once('../ajax_asm.php'); if( $CUser->Data['id'] > 1 ){ $Data['status'] = 'error'; if( $CUser->Data['access'] > 5 ){ if( isset( $_POST['MODE'] ) ){ $MODE = intval( $_POST['MODE'] ); switch( $MODE ){ case 0:{ $Data['msg']='Module ID not Defined!'; if( isset( $_POST['MID'] ) ){ $MID = intval( $_POST['MID'] ); if( $MID ){ unset( $Data['msg'] ); $Data['status'] = 'ok'; $QS = "SELECT `status`, `values`, `crossbar_a`,`crossbar_b`,`crossbar_c`,`crossbar_d` WHERE `id`={$MID}"; $RR = $DATABASE->Query( $QS, false ); $VV = intval( $RR[0]['values']; $VO = $VV & 0xFF; $VI = ($VV >> 8 ) & 0xFF; }; }; break; }; }; } else $Data['msg']='Mode not Defined!'; } else { $Data['msg']='Access Denied!'; }; echo json_encode( $Data ); } else { header('location: /'); };?>
|