mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
60 lines
1.9 KiB
PHP
60 lines
1.9 KiB
PHP
<?php
|
|
if (!isset($global['systemRootPath'])) {
|
|
require_once '../videos/configuration.php';
|
|
}
|
|
|
|
header('HTTP/1.0 404 Not Found', true, 404);
|
|
$img = ImagesPlaceHolders::getVideoNotFoundPoster(ImagesPlaceHolders::$RETURN_URL);
|
|
$poster = $img;
|
|
$imgw = 1280;
|
|
$imgh = 720;
|
|
unset($_SESSION['type']);
|
|
_session_write_close();
|
|
$video = [];
|
|
$video['id'] = 0;
|
|
$video['type'] = 'notfound';
|
|
$video['rotation'] = 0;
|
|
$video['videoLink'] = '';
|
|
$video['title'] = __("Video Not Available");
|
|
$video['clean_title'] = "video-not-available";
|
|
$video['description'] = '';
|
|
$video['duration'] = '';
|
|
$video['creator'] = '';
|
|
$video['likes'] = '';
|
|
$video['dislikes'] = '';
|
|
$video['category'] = "embed";
|
|
$video['views_count'] = 0;
|
|
$video['filename'] = '';
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo getLanguage(); ?>">
|
|
<head>
|
|
<title><?php echo __('Video Not Found'); ?></title>
|
|
<link href="<?php echo getURL('plugin/Gallery/style.css'); ?>" rel="stylesheet" type="text/css"/>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/head.php';
|
|
?>
|
|
</head>
|
|
<body class="<?php echo $global['bodyClass']; ?> videoNotFound">
|
|
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
|
|
<!-- view videoNotFound.php -->
|
|
<div class="container-fluid principalContainer" id="modeYoutubePrincipal" style="overflow: hidden;">
|
|
<?php
|
|
require "{$global['systemRootPath']}view/modeYoutubeBundle.php";
|
|
?>
|
|
</div>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
showCloseButton();
|
|
?>
|
|
<script>
|
|
$(function () {
|
|
<?php
|
|
if (!empty($_REQUEST['404ErrorMsg'])) {
|
|
echo "avideoAlertInfo(\"{$_REQUEST['404ErrorMsg']}\");";
|
|
}
|
|
?>
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|