Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F13210444
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/view/channels.php b/view/channels.php
index 3cd49665c..f6d8f4888 100644
--- a/view/channels.php
+++ b/view/channels.php
@@ -1,86 +1,86 @@
<?php
require_once '../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/Channel.php';
require_once $global['systemRootPath'] . 'objects/subscribe.php';
require_once $global['systemRootPath'] . 'objects/video.php';
$channels = Channel::getChannels();
?>
<!DOCTYPE html>
<html lang="<?php echo $_SESSION['language']; ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: <?php echo __("Channels"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body>
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container">
<div class="bgWhite list-group-item" >
<?php
foreach ($channels as $value) {
?>
<div class=" bgWhite clear clearfix" style="margin: 10px 0;">
<div class="clear clearfix">
<img src="<?php echo User::getPhoto($value['id']); ?>"
class="img img-thumbnail img-responsive pull-left" style="max-height: 100px; margin: 0 10px;" />
<a href="<?php echo User::getChannelLink($value['id']); ?>" class="btn btn-default">
<i class="fab fa-youtube"></i>
<?php
echo User::getNameIdentificationById($value['id']);
?>
</a>
<span class="pull-right">
<?php echo Subscribe::getButton($value['id']); ?>
</span>
<div>
- <?php echo nl2br($value['about']); ?>
+ <?php echo nl2br(htmlentities($value['about'])); ?>
</div>
</div>
<div class="clear clearfix">
<h2><?php echo __("Preview"); ?></h2>
<?php
$_POST['current'] = 1;
$_POST['rowCount'] = 6;
$_POST['sort']['created'] = "DESC";
$uploadedVideos = Video::getAllVideos("viewable", $value['id']);
foreach ($uploadedVideos as $value2) {
$imgs = Video::getImageFromFilename($value2['filename']);
$poster = $imgs->thumbsJpg;
?>
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6 ">
<a href="<?php echo $global['webSiteRootURL']; ?>video/<?php echo $value2['clean_title']; ?>" title="<?php echo $value2['title']; ?>" >
<img src="<?php echo $poster; ?>" alt="<?php echo $value2['title']; ?>" class="img img-responsive img-thumbnail" />
</a>
<div class="text-muted" style="font-size: 0.8em;"><?php echo $value2['title']; ?></div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(function () {
});
</script>
</body>
</html>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Apr 22, 17:24 (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1863158
Default Alt Text
(3 KB)
Attached To
Mode
R58 TurboFlop
Attached
Detach File
Event Timeline
Log In to Comment