1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2023-10-09 10:36:03 -03:00
parent b39e5f4da6
commit 5d2aa61c4f
4 changed files with 11 additions and 8 deletions

View file

@ -32,6 +32,10 @@ foreach ($row as $value) {
} }
} }
if(empty($mysqlPort)){
$mysqlPort = 3306;
}
// Use the mysqldump command to get the database dump // Use the mysqldump command to get the database dump
$dumpCommand = "mysqldump --host=$mysqlHost --port=$mysqlPort --user=$mysqlUser --password=$mysqlPass " $dumpCommand = "mysqldump --host=$mysqlHost --port=$mysqlPort --user=$mysqlUser --password=$mysqlPass "
. "--default-character-set=utf8mb4 $mysqlDatabase $tableList > {$file}"; . "--default-character-set=utf8mb4 $mysqlDatabase $tableList > {$file}";

View file

@ -1172,7 +1172,6 @@ class UserCacheHandler extends CacheHandler {
} }
class PlayListCacheHandler extends CacheHandler { class PlayListCacheHandler extends CacheHandler {
private $id; private $id;

View file

@ -4028,4 +4028,11 @@ function playChapter(seconds){
newURL = addQueryStringParameter(currentURL, 't', seconds); newURL = addQueryStringParameter(currentURL, 't', seconds);
history.replaceState({}, "", newURL); history.replaceState({}, "", newURL);
} }
}
function randomColor() {
var r = Math.floor(Math.random() * 255);
var g = Math.floor(Math.random() * 255);
var b = Math.floor(Math.random() * 255);
return r + "," + g + "," + b;
} }

View file

@ -237,13 +237,6 @@
</div> </div>
<script> <script>
function randomColor() {
var r = Math.floor(Math.random() * 255);
var g = Math.floor(Math.random() * 255);
var b = Math.floor(Math.random() * 255);
return r + "," + g + "," + b;
}
function createGraph(labels, data, selector) { function createGraph(labels, data, selector) {
var ctx = $(selector); var ctx = $(selector);
var backgroundColor = []; var backgroundColor = [];