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.
52 lines
2.1 KiB
52 lines
2.1 KiB
<?php
|
|
require_once('../ajax_asm.php');
|
|
|
|
if( $CUser->Data['id'] > 1 ){
|
|
$Data['status'] = 'error';
|
|
if( $CUser->Data['access'] > 5 ){
|
|
if( $MID = intval( $_POST['MID'] ) ){
|
|
|
|
|
|
$SKEL=<<<DATABOUNDARY
|
|
{
|
|
xtype: 'panel',
|
|
border: false,
|
|
frame: false,
|
|
items:[{
|
|
xtype:'panel',
|
|
border: false,
|
|
frame: false,
|
|
html: '<table width="100%" border=0 class="setEd_infoPanel" id="LIBAV_LOGO"><tr><td align="center"><svg class="donut" width="200" height="100%" viewBox="0 0 42 42"><circle id="status_34_donut0_segment2" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#b1c94e" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><circle id="status_34_donut0_segment3" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#aaddff" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><circle id="status_34_donut0_segment1" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#ce4b99" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><g class="chart-text"><text x="50%" y="50%" class="chart-number" id="status_34_totalValue0">0</text><text x="50%" y="50%" class="chart-label">PROCESS</text></g></svg></td><td valign="middle">Media Status</td></tr><tr><td colspan=2>INFO</td></tr></table><br/>'
|
|
},{ xtype:'spacer', height: 10
|
|
},{
|
|
html:'<video id="my-video" class="video-js" controls preload="auto" width="100%" data-setup="{}" poster="/style/assets/no-signal_d.png" sdsdarc="/lib/controller/data/8a171d17-978c-eda4-03f1-c1c4123a07a7.mp4"></video>'
|
|
|
|
}],
|
|
listeners:{
|
|
afterrender: function( t ){
|
|
UpdateMediaItemStatus();
|
|
|
|
}
|
|
}
|
|
}
|
|
DATABOUNDARY;
|
|
$QS = "SELECT * FROM `media_queue` WHERE `id`={$MID}";
|
|
$Result = $DATABASE->Query( $QS );
|
|
if( count( $Result ) ){
|
|
$CM = $Result[0];
|
|
$Data['status']= 'ok';
|
|
$Data['content']=$SKEL;
|
|
} else {
|
|
$Data['msg']="No Media Item[{$MID}] Found!";
|
|
};
|
|
} else {
|
|
$Data['msg']='Wrong Parameter!';
|
|
};
|
|
} else {
|
|
$Data['msg']='Access Denied!';
|
|
};
|
|
echo json_encode( $Data );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
?>
|