91edba56d6
Course cards go back to the colour-block art that previously sat under the captured frame, so the UI is unchanged apart from losing the photo. - Drop thumb.php, generateThumbnails(), captureThumbnail() and ensureThumbnailColumns(), plus the first-video tracking the scanner only kept to pick a frame source. - Drop the ffprobe fallback in probeDuration(); the pure-PHP mvhd parse is now the only scan-time probe, with the player's report on first play as the remaining fallback. - Drop THUMBNAILS_DIR/THUMBNAIL_SEEK_PERCENT from config, the thumbnail_* columns from schema.sql, the thumbnail counters from scan output, .thumb img from the stylesheet, and the matching README parts. Existing databases keep two now-unused folders.thumbnail_* columns; they are inert and can be dropped by hand if wanted. Claude-Session: https://claude.ai/code/session_014oyi9DMdhALrGz989MNNZJ
21 lines
625 B
PHP
21 lines
625 B
PHP
<?php
|
|
// ---- CourseHub configuration ----
|
|
|
|
// Absolute path to the directory that contains your course folders, e.g.
|
|
// /srv/media/courses/
|
|
// Course 1/Intro/Video1.mp4
|
|
// Course 2/Module 3/Advanced/lesson.mp4
|
|
define('VIDEOS_ROOT', '/srv/courses');
|
|
|
|
define('DB_HOST', '127.0.0.1');
|
|
define('DB_PORT', 3306);
|
|
define('DB_NAME', 'coursehub');
|
|
define('DB_USER', 'coursehub');
|
|
define('DB_PASS', 'change-me');
|
|
|
|
// A video counts as "completed" once the user has watched this fraction of it.
|
|
define('COMPLETE_THRESHOLD', 0.95);
|
|
|
|
// Allow new users to self-register from the login page.
|
|
define('ALLOW_REGISTRATION', true);
|