1) { $pbit = " | Page $page"; } if ($show=="latest") { $qby="feature"; $qorder="desc"; $h2title="Latest Videos"; $title="Latest Funny Videos and Funny Animal Videos"; $qex=""; $pagequery = "SELECT id,filename,name,dateadded,description,tags FROM `files` where `showon` = 'yes'"; $pagename="videos/"; } elseif ($show=="popular") { $qby="stat_score"; $qorder="desc"; $h2title="Popular Videos"; $title="Popular Funny Videos and Funny Animal Videos"; $qex=" and `filename` != 'guy-splits-face-open-in-diving-accident' and `filename` != 'big-boobs-in-bikini-on-rollerc-78975' and `filename` != 'sexy-webcam-girl-chair-fail-12154' and `filename` != 'stripping-webcam-hottie-has-pr-83720' and `filename` != 'stairway-to-heaven-78198'"; $pagequery = "SELECT id,filename,name,dateadded,description,tags FROM `files` where `status` = 'live' and `showwhere` != 'nowhere' and `filename` != 'todays-popular-video-clip' and `filename` != 'todays-hot-video-clip'$qex"; $pagename="videos/popular/"; } elseif ($show=="user") { $qby="id"; $qorder="desc"; $h2title="Just Submitted Videos"; $title="Just Submitted Videos"; $qex=""; $pagename="videos/user/"; $pagequery = "SELECT id,filename,name,dateadded,description,tags FROM `files` where `uploadtype` = 'user' and `status` = 'live' and `showwhere` = 'everywhere'"; } else { $query = "SELECT * FROM `cats` where `catref` = '$show'"; $result = mysql_query($query) or die(mysql_error()); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach ($line as $col_value) { $x++; if ($x == 2) { $catref = $col_value; } if ($x == 3) { $catname = $col_value; } } $x = 0; } if (!$catref) { header("location:/"); } $qby="id"; $qorder="desc"; $altcatname = str_replace(" Videos","",$catname); $h2title="$catname"; $title="$catname and $altcatname Video Clips"; $qex=""; $pagename="videos/$catref/"; $pagequery = "SELECT id,filename,name,dateadded,description,tags FROM `files` where `category1` = '$catref' and `showwhere` = 'everywhere' and `status` = 'live' or `category2` = '$catref' and `showwhere` = 'everywhere' and `status` = 'live'"; $checkstring .= "$catname "; } if (!$pagequery) { $pagequery = "SELECT id,filename,name,dateadded,description,tags FROM `files` where `showwhere` = 'everywhere' and `status` = 'live'$qex"; } $st = 0; $selectresult = mysql_query("$pagequery"); $filecount = mysql_num_rows($selectresult); $listshow2 = $listshow - 1; if ($page == 1) { $st = 0; } else { $st = ($page * $listshow) - $listshow; } $first = ($page * $listshow) - $listshow2; $last = ($page * $listshow); if ($last > $filecount) { $last = $filecount; } $pages = ceil($filecount/$listshow); // nsfw check $query = "$pagequery order by `$qby` $qorder limit $st,$listshow"; $result = mysql_query($query) or die(mysql_error()); while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach ($line as $col_value) { $x++; if ($x == 3) { $filename = $col_value; } if ($x == 4) { $name = $col_value; } if ($x == 6) { $category1 = $col_value; } if ($x == 7) { $category2 = $col_value; } if ($x == 9) { $description = $col_value; } if ($x == 10) { $tags = $col_value; } } $checkstring .= "$name $category1 $category2 $description $tags "; $x = 0; } include ('/home/viduu/public_html/inc/nsfw_check.php'); $ogtitle = "$title"; $desc = "Watch " . strtolower($title) . ", updated daily with all the latest " . strtolower($title) . " and best " . strtolower($title) . "."; if ($page > 1) { $desc .= " Page $page of $pages " . strtolower($title) . "."; } $keyw = strtolower(str_replace(" and ",", ",$title)) . ", videos, video clip, video clips"; $title = $title . $pbit; $ogurl = "http://www.viduu.com/$pagename"; include ('/home/viduu/public_html/inc/head.php'); ?>

Subscribe to our Latest Videos RSS Feed RSS FEED