Files
coursehub/config.example.php
T
Harwinder Sekhon 3ae6c1ae2e CourseHub: AJAX video course player (PHP + MySQL + Bootstrap + Plyr)
Scans nested course folders for mp4s, tracks per-user resume position
and per-folder progress. SPA frontend with hash routing over a JSON API;
range-request streaming via stream.php.
2026-07-11 10:25:35 -04:00

21 lines
657 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', '/home/harwinder/Development/coursehub/videos');
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);