( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?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: ./index.php?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: ./index.php?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: index.php?msg=content+edited+Successfully!");
}
if (!empty($editnewsr2)) {
$_POST = filter($_POST);
$description = mysqli_real_escape_string($link,$description);
$id = mysqli_real_escape_string($link,$id);
$db->editDistribution($description,$id,$creativity,$sound,$quality,$thematic,$original);
header("Location: index.php?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: index.php?msg=Content+Edited+Successfully!");
}
if (!empty($DP1)) {
$db->del_Video($newsid,$VideoPath);
}
$result = $db->getallReports($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->getallReports($pagenext,$record,$catid);
if (!isset($_GET['page']) )
{ $start=0; } else
{ $start = ($_GET['page'] - 1) * $page_limit; }
$rs_all = mysqli_query("select count(*) as total_all from reporta where catalogid=$videouser") or die(mysql_error());
list($allvids) = mysql_fetch_row($rs_all);?>
<form action="" method="post">
<table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0" style=" background-position:bottom; background-repeat:no-repeat; " >
<tr>
<td>
<table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" style="font-size:23px; color:#FFF; padding-left:15px;">
Submissions Votes</td>
<td width="678" height="54" align="center" background="images/mycontent_07.png"> </td>
<td width="50" height="54" >
<?php
if ($page!=0)
{
$pagepre = $page-1;
?>
<a href="?mode=reviews&page=<?php echo $pagepre ?>&catid=<?php echo $catid ?>"><img src="images/mycontent_03.png" width="50" height="54" alt=""></a>
<?php }else
{?>
<img src="images/mycontent_03b.png" width="50" height="54" alt="">
<?php } ?>
</td>
<td width="51" height="54" >
<?php
if (!empty($result1))
{?>
<a href="?mode=reviews&page=<?php echo $pagenext ?>&catid=<?php echo $catid ?>"><img src="images/mycontent_04.png" width="51" height="54" alt=""></a>
<?php }
else
{?>
<img src="images/mycontent_04b.png" width="51" height="54" alt="">
<?php }
?>
</td>
</tr>
<tr>
<td valign="top" width="82">
<?php
if (!empty($result)) {?>
<?php } ?>
</td>
<td valign="top">
<img src="images/mycontent_06.png" width="13" height="482" alt=""></td>
<td colspan="4" width="919" height="482" valign="top" align="center" >
<?php foreach ($result as $key => $val) {
$newsidS = stripslashes($val["newsid"]);
$idS = stripslashes($val["id"]);
$idS = $db->base64url_encode($idS);
$yanani = stripslashes($val["yanani"]);
$cat = stripslashes($val["catalogid"]);
$distribution = stripslashes($val["distribution"]);
$creativity = stripslashes($val["creativity"]);
$thematic = stripslashes($val["thematic"]);
$quality = stripslashes($val["quality"]);
$sound = stripslashes($val["sound"]);
$original = stripslashes($val["original"]);
if (empty($creativity)) { $creativity = 0; }
if (empty($quality)) { $quality = 0; }
if (empty($thematic)) {$thematic = 0; }
if (empty($sound)) {$sound = 0; }
if (empty($original)) { $original = 0; }
$overall =($original + $quality + $thematic + $sound + $creativity)/5 ;
?>
<table id="Table_01" width="896" height="76" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/base.png); background-repeat:no-repeat; margin-bottom:5px; margin-top:5px">
<tr>
<td width="896" height="76" style="padding:5px">
<table width="870" cellspacing="0" cellpadding="0">
<tr >
<td width="100" valign="middle">
<?php
$nameinfo9 = $db->getallprofilepic();
while (list($key,$val)=each($nameinfo9)) {
$tempcatalogid9 = stripslashes($val["catalogid"]);
$picture = stripslashes($val["picture"]);
if ($cat ==$tempcatalogid9){?>
<img src="taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/photo/<?php echo $picture ?>" alt="edit thumb" original-title="vgg" style=" margin-left:2px; margin-right:10px;-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>
<td width="100" valign="middle">
<?php
$nameinfo9 = $db->getallprofilepic();
while (list($key,$val)=each($nameinfo9)) {
$tempcatalogid9 = stripslashes($val["catalogid"]);
$picture = stripslashes($val["picture"]);
if ($yanani ==$tempcatalogid9){?>
<img src="taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/photo/<?php echo $picture ?>" alt="edit thumb" original-title="vgg" style=" margin-left:2px; margin-right:10px;-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>
<td width="100%" valign="middle" style="color:#FFF">
<?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 ($cat==$tempcatalogid2){?>
<span style="color:#F39;"><?php print " $catalogname"; ?> Votes for </span>
<?php }
else
{?>
<?php }
}
}
?>
<?php
$submitted = $db->getallsubmitted();
while (list($key,$val)=each($submitted)) {
$temp = stripslashes($val["newsid"]);
$title = stripslashes($val["title"]);
$content = stripslashes($val["content"]);
if ($distribution ==$temp){?>
<?php print text_limit($title,10); ?>
<?php }}
?>
<?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 ($yanani==$tempcatalogid2){?>
<span style="color:#F39;"> from </span><?php print " $catalogname"; ?>
<?php }
else
{?>
<?php }
}
}
?>
<br><br />
Creativity: <span style="color:#F39;"> <?php print " $creativity"; ?></span> Originality: <span style="color:#F39;"> <?php print " $original"; ?></span> Thematic: <span style="color:#F39;"> <?php print " $thematic"; ?></span> Quality: <span style="color:#F39;"> <?php print " $quality"; ?></span> Sound: <span style="color:#F39;"> <?php print " $sound"; ?></span> Overall: <span style="color:#F39;"> <?php print " $overall"; ?></span>
</td>
<td width="40">
<?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){?>
<?php
switch($type){
case "jpg":
?>
<a href="v/uploads/raw/<?php print "$original"; ?>"> <img src="images/dl.png" width="30" /></a>
<?php
break;
case "gif":
?>
<a href="v/uploads/raw/<?php print "$original"; ?>" > <img src="images/dl.png" width="30" /></a>
<?php
break;
case "png":
?>
<a href="v/uploads/raw/<?php print "$original"; ?>" > <img src="images/dl.png" width="30" /></a>
<?php
break;
case "mp3":
?>
<img src="images/mp3.png" width="40" />
<?php
break;
case "pdf":
?>
<a href="<?php echo $siteaddress ?>v/uploads/raw/<?php print "$original"; ?>" ><img src="images/dl.png" width="30" /></a>
<?php
break;
case "flv":
?>
<a href="<?php echo $siteaddress ?>v/uploads/raw/<?php print "$original"; ?>" ><img src="images/dl.png" width="30" /></a>
<?php
break;
case "avi":
?>
<a href="<?php echo $siteaddress ?>v/uploads/raw/<?php print "$original"; ?>" ><img src="images/dl.png" width="30" /></a>
<?php
break;
case "wma":
?>
<a href="<?php echo $siteaddress ?>v/uploads/raw/<?php print "$original"; ?>" >
<img src="images/dl.png" width="30" /></a>
<?php
break;
case "mp4":
?>
<a href="<?php echo $siteaddress ?>v/uploads/raw/<?php print "$original"; ?>">
<img src="images/dl.png" width="30" /></a>
<?php
break;
}
?>
<?php }}
?>
</td>
<!-- <td width="54" valign="middle" >
<?php
switch($isdisplay){
case "3":
?>
<img src="images/distributed.png" width="40" alt="Pending Distribution" />
<?php
break;
case "2":
?>
<img src="images/distributionpending.png" width="40" alt="New Distribution Added But Pending" />
<?php
break;
case "1":
?>
<img src="images/distribute.png" width="40" alt="Distributed"/>
<?php
break;
case "0":
?>
<img src="no.png" alt="not featured" />
<?php
break;
}
?>
</td> -->
<td width="104" style="padding-left:2px">
</td>
</tr></table>
</td>
</tr>
</table>
<?php
}
if (empty($result)) {?>
<span class="ezbutton" style="margin-top:150px">No Submissions yet</span> <?php }
?>
</td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="82" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="140" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="678" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="50" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="51" height="1" alt=""></td>
</tr>
</table></form> </td></tr></table>