Login
'; } if (!empty($ci['ac']) && $ci['ac'] === 'newDir') { echo '
New directory
'; } if (!empty($ci['ac']) && $ci['ac'] === 'renDir') { if (empty($ci['op'])) { $currentDir = getCurrentDir($ci['bc']); echo '
', $fullListDir[$currentDir], '
'; } } if (!empty($ci['ac']) && $ci['ac'] === 'addVideo') { echo '
New video
'; } if (!empty($ci['ac']) && $ci['ac'] === 'addThumbnail') { echo '
Add thumbnail
'; } if (!empty($ci['ac']) && $ci['ac'] === 'view') { if (!empty($ci['op']) && (int)$ci['op'] === 1) { verifToken($ci['token']); } else { $videoInfo = getVideoInfo($ci['file'], $ci['bc'], $fullListFile); } } if (empty($ci['bc'])) { $path = $GLOBALS['config']['VIDEODIR'].'/'; } else { $splitBc = chunk_split($ci['bc'], 8, '/'); $path = $GLOBALS['config']['VIDEODIR'].'/'.$splitBc; $breadcrumb = makeBreadcrumb($ci['bc'], $fullListDir); $nbBread = count($breadcrumb); } $listCurrentDir = listCurrentDir($path); $listCurrentFile = listVideo($path); if(!empty($listCurrentFile) && count($listCurrentFile) > 1 && $ci['ac'] !== 'view'){ echo '
'; } echo ''; echo '
'; if (!empty($listCurrentDir) && $ci['ac'] !== 'view') { $listCurrentDir = sortDir($listCurrentDir,$fullListDir); foreach ($listCurrentDir as $key => $value) { $thumbnail = getThumbnail($path, $key); if (empty($thumbnail)) { echo '', $value, ' '; } else { echo 'Thumbnail of video', $value, ' '; } } } if (!empty($listCurrentFile) && $ci['ac'] !== 'view') { $listCurrentFile = sortFile($listCurrentFile, $fullListFile,$ci['sort']); foreach ($listCurrentFile as $key => $value) { if ($key == 'thumb') { continue; } echo '', $path.$key, '', $value['title'], ''; } } echo '
'; if (!empty($ci['ac']) && $ci['ac'] === 'view' && !empty($listCurrentFile)) { $_SESSION['video'] = $videoInfo['hash']; if (!empty($videoInfo)) { if (empty($videoInfo['title']) || empty($videoInfo['uploadDateSort'])) { $fullTitle = $videoInfo['originalTitle']; $uploadDate = $videoInfo['uploadDate']; updateFileInfo($videoInfo['hash'], $fullTitle, $uploadDate); } else { $fullTitle = $videoInfo['title'].' ('.$videoInfo['originalTitle'].')'; } echo '
'; echo '

', $fullTitle, '

'; echo ''; } if ($_SESSION['log'] === true) { echo '
Use this thumbnail for folder thumbnail Delete this video
'; } if ($GLOBALS['config']['DOWNLOAD_METHOD'] === 'xsendfile' || $GLOBALS['config']['DOWNLOAD_METHOD'] === 'php') { $downloadLink = '?bc='.$ci['bc'].'&dl='.$videoInfo['hash']; } else { $downloadLink = $path.$videoInfo['hash'].'.webm'; } echo '
Title ', $videoInfo['title'], '
Original title ', $videoInfo['originalTitle'], '
Description ', $videoInfo['desc'], '
Original description ', $videoInfo['originalDesc'], '
Url ', $videoInfo['url'], '
Duration ', $videoInfo['duration'], '
Publish date ', date("d m Y", strtotime($videoInfo['uploadDate'])), '
Via '; if (!empty($videoInfo['via'])) { echo '', $videoInfo['via'], ''; } else { echo ''; } echo '
Licence ', $videoInfo['licence'], '
Download Download
View image preview Image preview
'; } ?>