- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD) - Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions - docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks - docker-entrypoint.sh: auto-generates config.inc.php from env vars, waits for MySQL, initializes DB schema idempotently - init-db.php: CLI schema installer using app's own prefix_query() logic - Persistent volumes for DB, cache, and cover images Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
612 B
PHP
32 lines
612 B
PHP
<?php
|
|
/**
|
|
* Movie Trailers View
|
|
*
|
|
* Shows available youtube trailers
|
|
*
|
|
* @package videoDB
|
|
* @author Andreas Goetz <cpuidle@gmx.de>
|
|
* @version $Id: trailer.php,v 1.4 2009/04/04 16:25:58 andig2 Exp $
|
|
*/
|
|
|
|
require_once './core/functions.php';
|
|
require_once './engines/youtube.php';
|
|
|
|
/**
|
|
* input
|
|
*/
|
|
$title = req_string('title');
|
|
|
|
// decode entities to care for numeric html escapes of JS single quotes
|
|
$trailer = youtubeSearch(html_entity_decode_all($title));
|
|
|
|
// prepare templates
|
|
tpl_language();
|
|
tpl_header();
|
|
|
|
$smarty->assign('trailer', $trailer);
|
|
|
|
// display templates
|
|
smarty_display('trailer.tpl');
|
|
|