|
$video=$Q("SELECT `id`,`picture`,`name` FROM `video_links` WHERE `status` =1 ORDER BY `id` DESC LIMIT 0,4");
$i=0;
while( $video_fetch=$F($video))
{
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."video-link-play-".$video_fetch['id'].".html";
}
else
{
$page_name = $web_path."videolink_count.php?id=$video_fetch[id]";
}
?>
if($i>=4) { ?>
} ?>
|
![<? echo $video_fetch['name'] ?>](photo/<? echo $video_fetch['picture'] ?>) |
|
$i++; } ?>
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."hosted-videos";
}
else
{
$page_name = $web_path."video_listing.php";
}
?>
|
|
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."hosted-videos";
}
else
{
$page_name = $web_path."video_listing.php";
}
?>
| More hosted videos |
|
| $ads=$F($Q("select `index_page` from `ads` ")); ?>
echo $ads['index_page']; ?> |
|
|
|
|
include_once "$pro_path/pagelist.php";
$ratio=$generalsettings['ratio'];
//$string = "SELECT `id`,`desc`,`name`,`link`,`category`,`visited`,`date` FROM `pron_links` WHERE `status` ='1' ";
$string = "SELECT `id`,`picture`,`name`,`date`,`desc`,`link`,`category`,`visited`,`rate_points`,`percent` FROM `pron_links` WHERE `status` ='1' AND `percent` >='$ratio' ";
if($_REQUEST['key'] !='')
{
$string .= " AND (`desc` LIKE '%$_REQUEST[key]%' OR `name` LIKE '%$_REQUEST[key]%' OR `link` LIKE '%$_REQUEST[key]%') ";
}
if($_REQUEST['category'] !='')
{
$string .= " AND `category` = '$_REQUEST[category]' ";
}
if($_REQUEST['sort']=='')
{
$string .= "ORDER BY `id` DESC";
}
else if($_REQUEST['sort']=='1')
{
$string .= "ORDER BY `id` DESC";
}
else if($_REQUEST['sort']=='2')
{
$string .= "ORDER BY `visited` DESC";
}
else if($_REQUEST['sort']=='3')
{
$string .= "ORDER BY `rate_points` DESC";
}
$count_val = $Q($string);
$count = $C($count_val);
if($count>0)
{
$total_records = $count;
$records_per_page =$generalsettings['index_list'];
$current_page_no = 1;
if ($_REQUEST['page'])
{
$current_page_no = $_REQUEST['page'];
}
$pageL = new pageList($total_records, $records_per_page, $current_page_no);
$pageL->generate();
$start = $pageL->startRecord;
$string .= " LIMIT $start,$pageL->numOfRows";
}
$porn2 = $Q($string);
$a=0;
while($porns2=$F($porn2))
{
$ttooltip[] = $porns2['picture'];
}
include_once "tooltip_more.php";
$i=0;
$porn = $Q($string);
?>
|
while($porns=$F($porn))
{
//$i=1;
$cat=$Q("SELECT `id`,`name` FROM `pron_category` WHERE `id` = '$porns[category]' AND `status` ='1'");
$cat_fetch=$F($cat);
?>
 |
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."links-".$porns['id'].".html";
}
else
{
$page_name = $web_path."links.php?id=$porns[id]";
}
?>
 |
| echo $porns['name']; ?> |
$year=substr($porns['date'],0,4);
$month=substr($porns['date'],4,2)."-";
$day=substr($porns['date'],6,2)."-";
$date_val=$day.$month.$year;
?>
| Posted on
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."porn-listing-cat-".$cat_fetch['id'].".html";
}
else
{
$page_name = $web_path."porn_listing.php?category=$cat_fetch[id]";
}
?>
echo $cat_fetch['name']; ?> echo $date_val; ?> |
|
$rate_star=$Q("SELECT `points` FROM `pron_rating` WHERE `pron_id` = '$porns[id]'");
$count_entry = $C($rate_star);
$total_value = '';
$avg_rate = '';
$avg='';
while($rating=$F($rate_star))
{
$total_value = $rating['points'] + $total_value;
}
if($count_entry!='0')
{
$avg_rate = round($total_value/$count_entry);
//$avg = 5 - $avg_rate;
//$total_overall = $count_entry * 5;
//$avg_rate = round(($total_racevalue / $total_overall) * 100);
}
?>
$pla_rate =1;
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."index-points-".$pla_rate."-".$porns[id].".html";
}
else
{
$page_name = $web_path."index.php?points=$pla_rate&pron_id=$porns[id]";
}
if($avg_rate>='1')
{
?>

}
else
{
?>

}
$pla_rate =2;
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."index-points-".$pla_rate."-".$porns[id].".html";
}
else
{
$page_name = $web_path."index.php?points=$pla_rate&pron_id=$porns[id]";
}
if($avg_rate>='2')
{
?>

}
else
{
?>

}
$pla_rate =3;
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."index-points-".$pla_rate."-".$porns[id].".html";
}
else
{
$page_name = $web_path."index.php?points=$pla_rate&pron_id=$porns[id]";
}
if($avg_rate>='3')
{
?>

}
else
{
?>

}
$pla_rate =4;
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."index-points-".$pla_rate."-".$porns[id].".html";
}
else
{
$page_name = $web_path."index.php?points=$pla_rate&pron_id=$porns[id]";
}
if($avg_rate>='4')
{
?>

}
else
{
?>

}
$pla_rate =5;
if($_SESSION['mod_rewrite']==1)
{
$page_name = $web_path."index-points-".$pla_rate."-".$porns[id].".html";
}
else
{
$page_name = $web_path."index.php?points=$pla_rate&pron_id=$porns[id]";
}
if($avg_rate=='5')
{
?>

}
else
{
?>

}
?>
|
(
echo $count_entry; ?>
votes) |
|
|
|
$a++; }?>
|
if($total_records>$records_per_page)
{
?>
|
if($total_records>$records_per_page)
{
$pageL->totalRecords;
$pageL->currentPage;
$pageL->totalPages;
echo "Page ";
$pageL->displayLink("porn_listing.php?sort=$_REQUEST[sort]&category=$_REQUEST[category]&key=$_REQUEST[key]", true, true, 25);
}
?>
|
} ?>
|
|
|
|
|