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
573 B
21 lines
573 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$AID = intval($_POST['DID']);
|
|
$QS = "SELECT * FROM `lrf_uploads` WHERE `sensor_id`={$AID} AND `status` < 101";
|
|
$result = $DATABASE->Query( $QS, false );
|
|
$Data['count'] = count($result);
|
|
if( count($result) ){
|
|
foreach( $result as $R ){
|
|
if( $R['status'] > -1 && $R['status'] < 101 ){
|
|
$Data['current']=$R['file'];
|
|
$Data['progress']=$R['status']/100.0;
|
|
break;
|
|
};
|
|
};
|
|
};
|
|
echo json_encode( $Data );
|
|
exit();
|
|
};
|
|
header('location: /');
|
|
?>
|