mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Try to fix UTF8 Characteres
This commit is contained in:
parent
3759091a56
commit
e25ed809ce
7 changed files with 53597 additions and 3 deletions
|
@ -685,6 +685,8 @@ if (!class_exists('Video')) {
|
||||||
}
|
}
|
||||||
$row['groups'] = UserGroups::getVideoGroups($row['id']);
|
$row['groups'] = UserGroups::getVideoGroups($row['id']);
|
||||||
$row['tags'] = self::getTags($row['id']);
|
$row['tags'] = self::getTags($row['id']);
|
||||||
|
$row['title'] = utf8_encode($row['title']);
|
||||||
|
$row['description'] = utf8_encode($row['description']);
|
||||||
$videos[] = $row;
|
$videos[] = $row;
|
||||||
}
|
}
|
||||||
//$videos = $res->fetch_all(MYSQLI_ASSOC);
|
//$videos = $res->fetch_all(MYSQLI_ASSOC);
|
||||||
|
|
|
@ -17,8 +17,8 @@ foreach ($videos as $key => $value) {
|
||||||
//$categories[$key]['comment'] = " <div class=\"commenterName\"><strong>{$name}</strong><div class=\"date sub-text\">{$value['created']}</div></div><div class=\"commentText\">". nl2br($value['comment'])."</div>";
|
//$categories[$key]['comment'] = " <div class=\"commenterName\"><strong>{$name}</strong><div class=\"date sub-text\">{$value['created']}</div></div><div class=\"commentText\">". nl2br($value['comment'])."</div>";
|
||||||
$videos[$key]['creator'] = '<div class="pull-left"><img src="'.User::getPhoto($value['users_id']).'" alt="" class="img img-responsive img-circle" style="max-width: 50px;"/></div><div class="commentDetails"><div class="commenterName"><strong>'.$name.'</strong> <small>'.humanTiming(strtotime($value['videoCreation'])).'</small></div></div>';
|
$videos[$key]['creator'] = '<div class="pull-left"><img src="'.User::getPhoto($value['users_id']).'" alt="" class="img img-responsive img-circle" style="max-width: 50px;"/></div><div class="commentDetails"><div class="commenterName"><strong>'.$name.'</strong> <small>'.humanTiming(strtotime($value['videoCreation'])).'</small></div></div>';
|
||||||
$videos[$key]['next_video'] = array();
|
$videos[$key]['next_video'] = array();
|
||||||
$videos[$key]['description'] = utf8_encode($videos[$key]['description']);
|
$videos[$key]['description'] = ($videos[$key]['description']);
|
||||||
$videos[$key]['title'] = utf8_encode($videos[$key]['title']);
|
$videos[$key]['title'] = ($videos[$key]['title']);
|
||||||
if(!empty($videos[$key]['next_videos_id'])){
|
if(!empty($videos[$key]['next_videos_id'])){
|
||||||
unset($_POST['searchPhrase']);
|
unset($_POST['searchPhrase']);
|
||||||
$videos[$key]['next_video'] = Video::getVideo($videos[$key]['next_videos_id']);
|
$videos[$key]['next_video'] = Video::getVideo($videos[$key]['next_videos_id']);
|
||||||
|
|
16400
plugin/Live/view/http-streaming/videojs-http-streaming.cjs.js
Normal file
16400
plugin/Live/view/http-streaming/videojs-http-streaming.cjs.js
Normal file
File diff suppressed because it is too large
Load diff
15938
plugin/Live/view/http-streaming/videojs-http-streaming.es.js
Normal file
15938
plugin/Live/view/http-streaming/videojs-http-streaming.es.js
Normal file
File diff suppressed because it is too large
Load diff
21240
plugin/Live/view/http-streaming/videojs-http-streaming.js
Normal file
21240
plugin/Live/view/http-streaming/videojs-http-streaming.js
Normal file
File diff suppressed because it is too large
Load diff
14
plugin/Live/view/http-streaming/videojs-http-streaming.min.js
vendored
Normal file
14
plugin/Live/view/http-streaming/videojs-http-streaming.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -55,7 +55,7 @@ $statistc_last90Days = VideoStatistic::getTotalLastDays("", 90);
|
||||||
|
|
||||||
$bg = $bc = $labels = $labelsFull = $datas = $datas7 = $datas30 = $datasToday = $datasUnique = array();
|
$bg = $bc = $labels = $labelsFull = $datas = $datas7 = $datas30 = $datasToday = $datasUnique = array();
|
||||||
foreach ($videos as $value) {
|
foreach ($videos as $value) {
|
||||||
$labelsFull[] = utf8_encode($value["title"]);
|
$labelsFull[] = ($value["title"]);
|
||||||
$labels[] = substr($value["title"], 0, 20);
|
$labels[] = substr($value["title"], 0, 20);
|
||||||
$datas[] = $value["statistc_all"];
|
$datas[] = $value["statistc_all"];
|
||||||
$datasToday[] = $value["statistc_today"];
|
$datasToday[] = $value["statistc_today"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue