- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
// если нужно вернуть json
if (request('json', false)) {
echo "<html><head><script>
document.domain = \"" . substr(\system\config\auth::SESSION_COOKIES_DOMAIN, 1) . "\";
</script></head><body>";
echo json_encode(array('status' => 'ok',
'data' => array('hash' => $file_id,
'duration' => $mediaFile->getDuration(),
'width' => $mediaFile->getVideoWidth(),
'height' => $mediaFile->getVideoHeight())));
echo "</body></html>";
}
guest 08.06.2012 12:07 # +3
WinnerWolf 08.06.2012 12:10 # +7
oooZinka 08.06.2012 16:40 # +2