diff --git a/.gitignore b/.gitignore index 3b19991..8a22d15 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ Temporary Items # Don't commit the code-workspace files *.code-workspace + +# Database credentials — keep out of version control +config/db_credentials.php diff --git a/config/db_credentials.example.php b/config/db_credentials.example.php new file mode 100644 index 0000000..b109b7d --- /dev/null +++ b/config/db_credentials.example.php @@ -0,0 +1,18 @@ + 'localhost', + 'port' => 3306, + 'database' => '', + 'username' => '', + 'password' => '', + 'charset' => 'utf8mb4', +]; diff --git a/includes/db.php b/includes/db.php new file mode 100644 index 0000000..918ccd3 --- /dev/null +++ b/includes/db.php @@ -0,0 +1,30 @@ + PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, + PDO::ATTR_EMULATE_PREPARES => false, + ]); + return $pdo; +} diff --git a/live.php b/live.php new file mode 100644 index 0000000..22f137b --- /dev/null +++ b/live.php @@ -0,0 +1,161 @@ + + + + + Live Now | Radio Free Elsewhere + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+

Recently Played

+
+
+ + + + + + + + + + + + + + + +
TimeTitleArtistAlbum
Track history coming soon.
+
+
+ +
+ + + + + + + + + + + + + + + \ No newline at end of file