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 ){ $NodeID = intval($_POST['NID']); $SiteID = intval($_POST['SITE']); $OPID = intval( $_POST['CMD'] ); $PARAM = $_POST['PARAM']; $QS = "SELECT * FROM nodes WHERE id={$NodeID}"; $Data = array(); $result = $DATABASE->Query( $QS, false ); if( count( $result ) ){ $T = $result[0]; $TYP = intval( $T['type'] ); $AID = intval( $T['aux_id'] ); switch( $TYP ){ case ARGUS_ALS_SENSOR: case ARGUS_LFS_SENSOR: case ARGUS_PLS_200_SENSOR: case ARGUS_PLS_360_SENSOR: case ARGUS_3D_SENSOR: case ARGUS_NET_PLS_200:{ //$QS = "SELECT * FROM lrf_sensors WHERE id={$AID}";
//$result = $DATABASE->Query( $QS, false );
//if( count($result)) {
//
//};
$QS = "UPDATE `lrf_sensors` SET `pushed_cmd`={$OPID} WHERE id={$AID}"; $DATABASE->Query( $QS ); }; }; }; echo json_encode( $Data ); exit(); }; header('location: /');?>
|