( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$newsid = $db->base64url_decode($newsid);
$result = $db->getdistributionbyany($newsid);
$catalogid = $result[0]["catalogid"];
$title = $result[0]["title"];
$original = $result[0]["original"];
$type = $result[0]["type"];
$content = $result[0]["content"];
$viewnum = $result[0]["viewnum"];
$rating = $result[0]["rating"];
$picture = $result[0]["picture"];
$ratenum = $result[0]["ratenum"];
$episodeid = $result[0]["episodeid"];
$slug = $result[0]["slug"];
$keywords = $result[0]["keywords"];
$isdisplay = $result[0]["isdisplay"];
$description = $result[0]["description"];
$picture = $result[0]["picture"];
$summary = $result[0]["summary"];
$video = $result[0]["video"];
$thumb= $result[0]["thumb"];
$original = $result[0]["original"];
$newsid= $result[0]["newsid"];
$pictureme=$db->Profile_Pic($catalogid);
$picturemeY=$db->Profile_Pic($catalogid);
?>
<form action="indexAlone.php?mode=submitted&min=yes" name="myform" id="myform" method="POST" >
<table width="100%" border="0">
<tr>
<td width="62%" valign="top"> <h2 style="margin-top:0px" class="post-title"><?php echo $title ?></h2>
</td>
<td width="38%" align="right" valign="top">
<a href="indexAlone.php?mode=submitted&min=yes" class="btn btn-white "><i class="icon-chevron-left"></i>Back</a>
<?php /*?> <a href="indexAlone.php?mode=submitted&newsid3=<?php print "$newsid3"; ?>&catid=<?php print "$catid"; ?>&delnews3=yes" class="btn btn-danger "><i class="icon-remove icon-lg text-white"></i> decline </a> <?php */?> </td>
</td>
</tr>
</table>
<link rel="stylesheet" type="text/css" media="all" href="pages/ziqi/initaudioplayer.css" />
<?php if($type=="jpg" || $type=="png" || $type=="gif" ) {?><img src="<?php echo $siteaddress;?>taswira.php?width=600&cropratio=1.666666666666667:1&image=/v/uploads/distribution/<?php echo $picture ?>" alt="edit thumb" title="Published: 2014-03-24" style=" width:100%"><?php } ?>
<?php if($type=="mp3" || $type=="avi" || $type=="ogg") {?>
<script type='text/javascript' src='pages/ziqi/OnaTVaudioplayer.js'></script>
<div id="OnaAudioPlayer" style="display:block;position:relative;width:100%;height:300px;margin:0px auto 0px;">
<ul class="OnaTVaudioplayer-audios" style="display:none;">
<li data-artist="<?php
$nameinfo2 = $db->getallugccatalogname();
if (!empty($nameinfo2)){
while (list($key,$val)=each($nameinfo2)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
$slug = stripslashes($val["slug"]);
if ($catalogid==$tempcatalogid2){ print " $catalogname"; }
}
}
?>" data-title="<?php echo $title ?>" data-album="<?php
$nameinfo2 = $db->getallugccatalogname();
if (!empty($nameinfo2)){
while (list($key,$val)=each($nameinfo2)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$user_name = stripslashes($val["user_name"]);
$slug = stripslashes($val["slug"]);
if ($catalogid==$tempcatalogid2){ print " $user_name"; }
}
}
?>" data-info="ggggggg" data-image="<?php if(!empty($pichaC)) { ?><?php echo $siteaddress3 ?>taswira.php?quality=70<?php /*?>&nocache=1<?php */?>&width=100&height=100&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $pichaC;?><?php } else {?><?php echo $siteaddress3 ?>taswira.php?quality=70<?php /*?>&nocache=1<?php */?>&width=100&height=100&cropratio=1:1&image=/images/user.png<?php } ?>" data-duration="137">
<div class="OnaTVaudioplayer-source" data-src="v/uploads/distribution/<?php echo $original ?>" data-type="audio/mpeg" />
<?php /*?><div class="OnaTVaudioplayer-source" data-src="Inspiring Ideas into Motion.ogg" data-type="audio/ogg" /><?php */?>
</li>
</ul>
</div>
<script src="pages/ziqi/initaudioplayer.js"></script>
<!-- #content -->
<!-- #primary -->
<?php } ?>
<?php if($type=="mp4" || $type=="mov") {?>
<style type="text/css">
/* Reset CSS */
.mejs-inner,
.mejs-inner div,
.mejs-inner a,
.mejs-inner span,
.mejs-inner button {
margin: 0;
padding: 0;
border: none;
outline: none;
}
/* Video Container / General Styles */
.mejs-container {
position: relative;
background: #000000;
}
.mejs-inner {
position: relative;
width: inherit;
height: inherit;
}
.me-plugin { position: absolute; }
.mejs-container-fullscreen .mejs-mediaelement,
.mejs-container-fullscreen video,
.mejs-embed,
.mejs-embed body,
.mejs-mediaelement {
width: 100%;
height: 100%;
}
.mejs-embed,
.mejs-embed body {
margin: 0;
padding: 0;
overflow: hidden;
}
.mejs-container-fullscreen {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 1000;
}
.mejs-poster img { display: block; }
.mejs-background,
.mejs-mediaelement,
.mejs-poster,
.mejs-overlay {
position: absolute;
top: 0;
left: 0;
}
.mejs-overlay-play { cursor: pointer; }
.mejs-inner .mejs-overlay-button {
position: absolute;
top: 50%;
left: 50%;
width: 63px;
height: 56px;
margin: -25px 0 0 -25px;
background: url(images/play.png) no-repeat;
}
/* Controls Container */
.mejs-container .mejs-controls {
position: absolute;
width: 100%;
height: 34px;
left: 0;
bottom: 0;
/*background: rgb(0,0,0); *//* IE8- */
/* background: rgba(0,0,0, .7);*/
}
/* Controls Buttons */
.mejs-controls .mejs-button button {
display: block;
cursor: pointer;
width: 16px;
height: 16px;
background: transparent url(images/controls.png);
}
/* Play & Pause Button */
.mejs-controls div.mejs-playpause-button {
position: absolute;
top: 12px;
left: 15px;
}
.mejs-controls .mejs-play button,
.mejs-controls .mejs-pause button {
width: 12px;
height: 12px;
background-position: 0 0;
}
.mejs-controls .mejs-pause button { background-position: 0 -12px; }
/* Mute & Unmute */
.mejs-controls div.mejs-volume-button {
position: absolute;
top: 12px;
left: 45px;
}
.mejs-controls .mejs-mute button,
.mejs-controls .mejs-unmute button {
width: 14px;
height: 12px;
background-position: -12px 0;
}
.mejs-controls .mejs-unmute button { background-position: -12px -12px; }
/* Full-Screen Button */
.mejs-controls div.mejs-fullscreen-button {
position: absolute;
top: 7px;
right: 7px;
display:none
}
.mejs-controls .mejs-fullscreen-button button,
.mejs-controls .mejs-unfullscreen button {
width: 27px;
height: 22px;
background-position: -26px 0;
}
.mejs-controls .mejs-unfullscreen button { background-position: -26px -22px; }
/* Volume Slider */
.mejs-controls div.mejs-horizontal-volume-slider {
position: absolute;
cursor: pointer;
top: 15px;
left: 65px;
}
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
width: 60px;
background: #d6d6d6;
}
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
position: absolute;
width: 0;
top: 0;
left: 0;
}
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
height: 4px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
/* Progress Bar */
.mejs-controls div.mejs-time-rail {
position: absolute;
width: 100%;
left: 0;
top: -10px;
}
.mejs-controls .mejs-time-rail span {
position: absolute;
display: block;
cursor: pointer;
width: 100%;
height: 10px;
top: 0;
left: 0;
}
.mejs-controls .mejs-time-rail .mejs-time-total {
background: transparent url(images/buffertunnel.png);
background-repeat:repeat-x;
}
.mejs-controls .mejs-time-rail .mejs-time-loaded {
}
.mejs-controls .mejs-time-rail .mejs-time-current { width: 0; }
/* Progress Bar Handle */
.mejs-controls .mejs-time-rail .mejs-time-handle {
position: absolute;
cursor: pointer;
width: 16px;
height: 18px;
top: -3px;
background: url(images/handle.png);
}
/* Progress Bar Time Tooltip */
.mejs-controls .mejs-time-rail .mejs-time-float {
position: absolute;
display: none;
width: 33px;
height: 23px;
top: -26px;
margin-left: -17px;
background: url(images/tooltip.png);
}
.mejs-controls .mejs-time-rail .mejs-time-float-current {
position: absolute;
display: block;
left: 0;
top: 4px;
font-family: Helvetica, Arial, sans-serif;
font-size: 10px;
font-weight: bold;
color: #666666;
text-align: center;
}
.mejs-controls .mejs-time-rail .mejs-time-float-corner { display: none; }
/* Green Gradient (for progress and volume bar) */
.mejs-controls .mejs-time-rail .mejs-time-current,
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
background: transparent url(images/buffer.png);
background-repeat:repeat-x;/*background: #82d344;*/
/*
background: -webkit-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -moz-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -o-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -ms-linear-gradient(top, #82d344 0%, #51af34 100%);
background: linear-gradient(top, #82d344 0%, #51af34 100%);*/
}
/* Green Gradient (for progress and volume bar) */
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
background: #82d344;
background: -webkit-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -moz-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -o-linear-gradient(top, #82d344 0%, #51af34 100%);
background: -ms-linear-gradient(top, #82d344 0%, #51af34 100%);
background: linear-gradient(top, #82d344 0%, #51af34 100%);
}
</style>
<script src="<?php echo $siteaddress;?>js/mediaelement-and-player.min.js"></script>
<div id="OnaAudioPlayer" style="display:block;position:relative;width:100%;height:100%;margin:0px auto 0px;">
<video width="100%" height="500" poster="<?php echo $siteaddress ?>taswira.php?width=100&height=100&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $picturemeY ?>">
<source src="<?php echo $siteaddress ?>v/uploads/distribution/<?php echo $original ?>" type="video/mp4">
</video>
</div>
<script>
$(document).ready(function() {
$('video').mediaelementplayer({
alwaysShowControls: false,
videoVolume: 'horizontal',
features: ['playpause','progress','volume','fullscreen']
});
});
</script>
<?php } ?>
<br />
<li class="list-group-item<?php if ($isdisplay ==3 ){ ?> bg-light dker <?php } ?><?php if ($isdisplay ==5 ){ ?> bg-light lter <?php } ?><?php if ($isdisplay ==4 ){ ?> <?php } ?>">
<table cellspacing="0" cellpadding="0" style="font-size:20px">
<tr >
<?php if($type=="mp3" || $type=="avi" || $type=="ogg") {} else { ?> <td width="64" valign="middle">
<img src="<?php echo $siteaddress;?>taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/gthumbs/<?php echo $pictureme ?>" alt="edit thumb" title="Published: 2014-03-24" style=" margin-left:2px;-moz-border-radius : 3px 3px 3px 3px:-webkit-border-radius : 3px 3px 3px 3px;border-radius : 3px 3px 3px 3px;" height="60" width="100">
</td>
<td width="100%" valign="middle" >
<a class="btn btn-default m-l-lg"> <span class="text"><?php print text_limit($title,8); ?>
<?php
$nameinfoC = $db->getallcategoriesC($newsidC);
if (!empty($nameinfoC)){
while (list($key,$val)=each($nameinfoC)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
$slug = stripslashes($val["slug"]);
?>
<span style="color:#fff;"> ( <?php print "$catalogname"; ?> )</span>
<?php
}
}
?> </span> </a>
</td>
<?php } ?>
<td width="18">
<a href="v/uploads/distribution/<?php echo $original ?>" target="_blank" class="btn btn-white pull-right " > <span class="text-muted"> <i class="icon-download text-muted"></i> </span> Download</a>
</td>
</tr></table>
<br />
<div class="feed_title2"><strong>Description: </strong><?php echo $content ?> </div>
</li>
<?php
$post_id = $db->base64url_decode($newsid3);
$queryX = mysqli_query($link,"select * FROM distributions where id=$post_id");
while($dataX = mysql_fetch_assoc($queryX)){?>
<?php if($_SESSION['euserid']!=$result[0]["catalogid"] ) {?>
<?php include("rate.php");?>
<input type="hidden" name="id" value="<?php print $dataX['id']; ?>">
<article style=" padding:9px; margin-bottom:0px;" class="chat-item" id="chat-form">
<?php if(!empty($pichaC)) { ?>
<a href="#" class="pull-left thumb-sm avatar"><img class="img-circle" src="<?php echo $siteaddress3 ?>taswira.php?quality=70<?php /*?>&nocache=1<?php */?>&width=100&height=100&cropratio=1:1&image=/v/uploads/gthumbs/<?php echo $pichaC;?>" /> </a> <?php } else {?>
<a href="#" class="pull-left thumb-sm avatar"><img class="img-circle" src="<?php echo $siteaddress3 ?>taswira.php?quality=70<?php /*?>&nocache=1<?php */?>&width=100&height=100&cropratio=1:1&image=/images/user.png" /> </a>
<?php } ?>
<section class="chat-body" style=" text-align:left">
<div class="input-group">
<input class="form-control" name="comments" id="comments" style="width:100%; min-width:380px" placeholder="Your comments" <?php if (!empty($dataX['comments'])){?>value="<?php echo $dataX['comments'] ?>"<?php }?> type="text">
<span class="input-group-btn">
<input name="editnewsr2" value="Share " type="submit" class="btn btn-warning" style=" " >
</span> </div>
</section>
</article>
<?php } ?>
<?php } ?>
</form>