( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$widget = $catalogid5;
if($_GET["recsnorep"]) {
$recsnorep=$_GET["recsnorep"];
$data=trim($recsnorep);
$videouser = $_SESSION['euserid'];
$ex=explode(" ",$data);
$size=sizeof($ex);
for($i=0;$i<$size;$i++) {
$id=trim($ex[$i]);
$db->delnewsrep($id,$VideoPath);
}
}
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$videouser = $_SESSION['euserid'];
if($_GET["recsno"]) {
$recsno=$_GET["recsno"];
$data=trim($recsno);
$videouser = $_SESSION['euserid'];
$ex=explode(" ",$data);
$size=sizeof($ex);
for($i=0;$i<$size;$i++) {
$id=trim($ex[$i]);
$db->delAllReport($id,$VideoPath);
}
header("Location: ./indexAlone.php?mode=submitted&min=yes&msg=Successfully+deleted");
}
function sizeinput($input, $len){
(int)$len;
(string)$input;
$n = substr($input, 0,$len);
$ret = trim($n);
$out = htmlentities($ret, ENT_QUOTES);
return $out;
}
function checkfile($input){
$ext = array('mpg', 'wma', 'mov', 'flv', 'mp4', 'm4v', 'avi', 'qt', 'wmv', 'rm', '3gp', 'mpeg', 'divx', 'moov', 'asf', 'swf', 'vob');
$extfile = substr($input['name'],-4);
$extfile = explode('.',$extfile);
$good = array();
$extfile = $extfile[1];
if(in_array($extfile, $ext)){
$good['safe'] = true;
$good['ext'] = $extfile;
}else{
$good['safe'] = false;
}
return $good;
}
//no error reporting
//@error_reporting(0);
if (empty($page)){
$page = 0;
}
$record =6;
// generate paging here
$delnews3 = $_GET["delnews3"];
$newsid3 = $_GET["newsid3"];
if ($delnews3=="yes") {
$newsid3 = $db->base64url_decode($newsid3);
$db->delnews3($newsid3,$VideoPath);
header("Location: ./indexAlone.php?mode=submitted&min=yes&msg=Successfully+removed+distribution");
}
if (!empty($editthumb)) {
$tempuserfile = $_FILES['userfile']['tmp_name'];
$tempuserfile_name = $_FILES['userfile']['name'];
if ((!empty($tempuserfile)) && (!empty($tempuserfile_name))) {
$userfile = $tempuserfile;
$userfile_name = $tempuserfile_name;
}
if ((!empty($userfile)) && (!empty($userfile_name))) {
$videouser = $_SESSION['euserid'];
$userfile_name = preg_replace('/[\ ]/', '-', $userfile_name);
$userfile_name = $videouser.rand(455,78787).$userfile_name;
$dest1 = $live_img.$userfile_name;
copy($userfile, $dest1);
$starting_image = imagecreatefromjpeg("$live_img$userfile_name");
$width = imagesx($starting_image);
$height = imagesy($starting_image);
$thumb_width = 130;
$thumb_height = 80;
$thumb_image = imagecreatetruecolor($thumb_width, $thumb_height);
imagecopyresampled($thumb_image, $starting_image, 0, 0, 0, 0, $thumb_width, $thumb_height, $width, $height);
imagejpeg($thumb_image, "$live_img$userfile_name");
$db->addThumb($newsid,$userfile_name,$live_img);
}}
if (!empty($addnews)) {
$_POST = filter($_POST);
$title = mysqli_real_escape_string($link,$title);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$newsid = $db->updateContent($title,$content,$keywords,$isdisplay,$description,$vcat,$slug,$episodeid);
}
if (!empty($editnewsr)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$db->editnewsr($catalogid,$mytitle,$content,$keywords,$isdisplay,$description,$vcat,$summary,$thumb,$newsid,$slug,$episodeid);
$db->editslugr($newsid,$slug,$mytitle,$str);
header("Location: indexAlone.php?mode=submitted&min=yes&msg=content+edited+Successfully!");
}
if (!empty($editnewsr2)) {
$_POST = filter($_POST);
$comments = mysqli_real_escape_string($link,$comments);
$id = mysqli_real_escape_string($link,$id);
$db->editDistribution2($comments,$id,$creativity,$sound,$quality,$thematic,$original);
header("Location: indexAlone.php?mode=submitted&min=yes&msg=Distribution+Edited+Successfully!");
}
if (!empty($editmyreport)) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$content = mysqli_real_escape_string($link,$content);
$description = mysqli_real_escape_string($link,$description);
$keywords = mysqli_real_escape_string($link,$keywords);
$db->editmyreport($catalogid,$mytitle,$content,$keywords,$newsid);
$db->editslugr($newsid,$slug,$mytitle,$str);
header("Location: indexAlone.php?mode=submitted&min=yes&msg=Content+Edited+Successfully!");
}
if (!empty($DP1)) {
$db->del_Video($newsid,$VideoPath);
}
$result = $db->getsentReport($page,$record,$catid);
?>
<?php
if (!empty($result)) {?>
<script type="text/javascript">
$(function() {
$(".delbutton").click(function(){
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Sure you want to delete this update? There is NO undo!"))
{
$.ajax({
type: "POST",
url: "ezikiframework.php",
data: info,
success: function(){
}
});
$(this).parents(".record").animate({ backgroundColor: "#fbc7c7" }, "fast")
.animate({ opacity: "hide" }, "slow");
}
return false;
});
});
</script>
<script type="text/javascript" src="v/scripts/multiplereporta.js"> </script>
<div id="insert_response5" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div> <div id="insert_response66" style=" color:#4d90b4;font:Arial, Helvetica, sans-serif; font-size:11px;"></div>
<?php } ?>
<?php
$page_limit = $record ;
$pagenext = $page+1;
$result1 = $db->getsentReport($pagenext,$record,$catid);
if (!isset($_GET['page']) )
{ $start=0; } else
{ $start = ($_GET['page'] - 1) * $page_limit; }
$rs_all = mysqli_query($link,"select count(*) as total_all from distribute where catalogid=$videouser") or die(mysql_error());
list($allvids) = mysqli_fetch_row($rs_all);?>
<h2 style="margin-top:0px" class="post-title"><i class="icon-sitemap"></i>Submitted Content </h2>
<table width="100%" border="0">
<tr>
<td style="padding:0px">
<p class="h4 text-muted">See who has shared content with you. We kindly recommend you review these content as they come </p>
</td>
<td width="100" align="right" valign="top">
<ul class="pagination pagination pull-right ">
<?php
if ($page!=0)
{
$pagepre = $page-1;
?>
<li><a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagepre ?>&catid=<?php echo $catid ?>"><i class="icon-chevron-left"></i></a> </li>
<?php }else
{?>
<li><i class="icon-chevron-left"></i></li>
<?php } ?>
<?php
if (!empty($result1))
{?>
<li><a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagenext ?>&catid=<?php echo $catid ?>"><i class="icon-chevron-right"></i></a></li>
<?php }
else
{?>
<li><i class="icon-chevron-right"></i></li>
<?php }
?>
</ul>
</td>
</tr>
</table>
<form action="" method="post">
<?php foreach ($result as $key => $val) {
$newsidS = stripslashes($val["newsid"]);
$idS = stripslashes($val["id"]);
$idS = $db->base64url_encode($idS);
$yanani = stripslashes($val["yanani"]);
$distribution = stripslashes($val["distribution"]);
?>
<li class="list-group-item">
<table cellspacing="0" cellpadding="0" style="font-size:20px">
<tr >
<td width="64" valign="middle">
<?php
$picture=$db->Profile_Pic($yanani);
?>
<img src="<?php echo $siteaddress;?>taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/gthumbs/<?php echo $picture ?>" alt="edit thumb" original-title="vgg" 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"> <?php
?>
</td>
<?php /*?> <td width="64" valign="middle" style=" padding-left:10px" >
<?php
$picture=$db->Profile_Pic($distribution);?>
<img src="<?php echo $siteaddress;?>taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/distribution/<?php echo $picture ?>" 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><?php */?>
<?php /*?> <td width="64" valign="middle" style=" padding-left:10px" >
<?php
$nameinfo9 = $db->getallshows();
while (list($key,$val)=each($nameinfo9)) {
$tempcatalogid9 = stripslashes($val["catalogid"]);
$picture = stripslashes($val["picture"]);
$title = stripslashes($val["title"]);
if ($newsidS ==$tempcatalogid9){?>
<img src="<?php echo $siteaddress;?>taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/gthumbs/<?php echo $picture ?>" alt="edit thumb" title="<?php echo $title ?>" 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"> <?php }
}
?>
</td><?php */?>
<td width="100%" valign="middle" style=" padding-left:5px; font-size:14px" >
<?php
$nameinfo2 = $db->getallugccatalogname();
if (!empty($nameinfo2)){
while (list($key,$val)=each($nameinfo2)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
$original = stripslashes($val["original"]);
$slug = stripslashes($val["slug"]);
if ($yanani==$tempcatalogid2){?>
<?php print " $catalogname"; ?> sent
<?php }
}} ?>
<?php
$submitted = $db->getallsubmitted();
while (list($key,$val)=each($submitted)) {
$temp = stripslashes($val["newsid"]);
$original = stripslashes($val["original"]);
$title = stripslashes($val["title"]);
$type = stripslashes($val["type"]);
if ($distribution ==$temp){?>
<?php echo $title ?>
</td>
<td width="40" >
<?php
switch($type){
case "jpg":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "gif":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "png":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "mp3":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "pdf":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "flv":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "avi":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "wma":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
case "mp4":
?>
<a class="btn btn-white pull-right m-r" > <span class="text-muted"> <i class="icon-picture text-muted"></i> </span> </a>
<?php
break;
}
?>
<?php }}
?>
</td>
<td width="30" valign="middle" >
<?php
$submitted = $db->getallsubmitted();
while (list($key,$val)=each($submitted)) {
$temp = stripslashes($val["newsid"]);
$original = stripslashes($val["original"]);
$type = stripslashes($val["type"]);
if ($distribution ==$temp){
$newsid = $db->base64url_encode($temp);
?>
<a class="btn btn-info pull-right m-r" title="Download" href="?mode=viewReport&min=yes&newsid=<?php print "$newsid"; ?>&newsid3=<?php print "$idS"; ?>"> <span class="text-white"> <i class="icon-eye-open text-white"></i> View </span> </a>
<?php }}
?>
</td>
<td width="30">
<a href="indexAlone.php?mode=submitted&newsid3=<?php print "$idS"; ?>&catid=<?php print "$catid"; ?>&delnews3=yes" class="btn btn-success m-lr "><i class="icon-trash icon-lg text-white"></i> decline </a>
</td>
</tr></table>
</li>
<?php
}
if (empty($result)) {?>
<span >No Submissions yet</span> <?php }
?>
</form>
<?php $piciko = $db->getallprofilepictures($page,$record);
if (empty($piciko))
{?>
Step 1/4: You need to upload your Profile Picture or Logo to Continue <a href="?mode=profilepicture"> Click here </a><?php }
?>
<?php if (!empty($piciko))
{?>
<?php if (empty($row_settings['tel']) )
{ ?>
Step 2/4: Update your bio and social media details to maximise on your content and distribution <a href="?mode=details"> Click here </a>
<?php }
?>
<?php }
?>
<?php if (!empty($row_settings['tel']) || !empty($row_settings['description']))
{ ?>
<?php $resultc = $db->getallepisodes($page,$record);
if (empty($resultc)) {?>
Step 3/4: You need to create categories to allow contributors to upload content to them <a href="indexAlone.php?mode=cateme"> Click here </a>
<?php }
?>
<?php
if (!empty($resultc)) {?>
<?php if ($row_settings['admin'] == 20 )
{
?>
Step 4/4:Your Profile is Private. Only those with your valid email address can send you content. Make your profile public to receive content from more providers <a href="?mode=details"> Click here </a>
<?php }
?>
<?php }
?>
<?php }
?>