From 8bbb1ccd8abc831277aad1db51fff607569b7bbb Mon Sep 17 00:00:00 2001 From: Dominik Wajda Date: Sat, 15 Jun 2024 14:13:35 +0100 Subject: [PATCH] related videos --- auth/signupsql.php | 5 +-- settings.php | 14 ++----- styles/playerblue.css | 62 ++++++++++++++++++++++++++++ styles/playerultra-dark.css | 57 ++++++++++++++++++++++++-- watch/index.php | 82 +++++++++++++++++++++++++++++++++++-- 5 files changed, 199 insertions(+), 21 deletions(-) diff --git a/auth/signupsql.php b/auth/signupsql.php index bea9f33..82ff727 100644 --- a/auth/signupsql.php +++ b/auth/signupsql.php @@ -34,10 +34,9 @@ function getName($n) { exit('

This username already exists

'); } -$stmt = $conn->prepare("INSERT INTO login (username, password, salt1, salt2, theme, customtheme_player_url, customtheme_home_url, lang, region, proxy, player, videoshadow, loadcomments) VALUES (?, ?, ?, ?, ?, 'none', 'none', ?, ?, 'off', 'html', 'on', ?)"); +$stmt = $conn->prepare("INSERT INTO login (username, password, salt1, salt2, theme, customtheme_player_url, customtheme_home_url, lang, region, proxy, videoshadow, loadcomments) VALUES (?, ?, ?, ?, ?, 'none', 'none', ?, ?, 'off', 'on', ?)"); $stmt->bind_param("ssssssss", $usr, $pw, $salt1, $salt2, $defaultTheme, $defaultLang, $defaultRegion, $defaultLoadCommentsSetting); if ($stmt->execute() === TRUE) { - echo "

Welcome $usr. Redirecting Soon...

"; $_SESSION['logged_in_user'] = $usr; $_SESSION['hashed_pass'] = $pw; } else { @@ -46,5 +45,5 @@ function getName($n) { $conn->close(); -header( "refresh:2;url=/index.php" ); +header( "refresh:0;url=/index.php" ); ?> \ No newline at end of file diff --git a/settings.php b/settings.php index 2f9e9be..ead2ee3 100644 --- a/settings.php +++ b/settings.php @@ -116,14 +116,6 @@ } else { $checked2 = ""; } - - if($playertyperow == "html") { - $checked3a = ""; - $checked3b = "checked"; - } elseif($playertyperow == "vjs") { - $checked3a = "checked"; - $checked3b = ""; - } if ($loadcommentsrow == "showall") { $checked4a = "checked"; @@ -148,7 +140,7 @@ } } echo '
-
+

'.$translations[$langrow]['visual_prefs'].'

@@ -413,7 +450,7 @@ function makeTimestamptoLinkSmaller($string) { $cdesc = str_replace('href="https://www.youtube.com/watch?v=','href="/watch/?v=',$cdesc); ?> - +


@@ -422,7 +459,44 @@ function makeTimestamptoLinkSmaller($string) { +
+

Related videos

+ + + +
+
+ +
+
+
+

+
+
+
+ +