'NONE', 'embed_url'=>'EMBED CODE', 'video_url'=>'VIDEO URL', 'full_screen'=>'FULLSIZE SCREEN', 'img_1'=>'THUMB 1', 'img_2'=>'THUMB 2', 'img_3'=>'THUMB 3', 'img_4'=>'THUMB 4', 'img_5'=>'THUMB 5', 'title'=>'TITLE', 'categories'=>'CATEGORIES', 'duration'=>'DURATION' ); $presettings = array( '0'=>'embed_url', '1'=>'video_url', '2'=>'full_screen', '3'=>'img_1', '4'=>'img_2', '5'=>'img_3', '6'=>'img_4', '7'=>'img_5', '8'=>'title', '9'=>'categories', '10'=>'duration' ); #WORK########################################################################### $link = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die ("Could not connect"); mysql_select_db(DB_NAME,$link); #CATEGORIES $categories = array(); $res = mysql_query("SELECT category_id,title FROM ktvs_categories ORDER BY title"); while($row=mysql_fetch_assoc($res)){ $categories[$row['category_id']] = $row['title']; } if($_POST['fields']){ $wfields = $dump = array(); $left_join = ''; $wfields[] = "v.status_id = 1"; $wfields[] = "v.post_date < " . "'".date("Y-m-d 00:00:00", strtotime("-1 day"))."'"; if($_POST['category']){ $left_join = ' LEFT JOIN ktvs_categories_videos cv ON (v.video_id=cv.video_id) '; $wfields[] = "cv.category_id = " . $_POST['category']; } $res = mysql_query("SELECT v.*,(SELECT GROUP_CONCAT(title) FROM ktvs_categories_videos LEFT JOIN ktvs_categories ON (ktvs_categories_videos.category_id=ktvs_categories.category_id) WHERE video_id = v.video_id) as categories FROM ktvs_videos v " . $left_join . " WHERE " . join(' AND ', $wfields) . " ORDER BY v.post_date DESC"); if(mysql_num_rows($res)){ if(INCLUDE_LEGEND){$dump[] = getStringLegend($fields);} while($row=mysql_fetch_assoc($res)){ $dump[] = getStringFromData($row); } } } #FUNCTIONS###################################################################### function getStringLegend($fields){ $out = array(); foreach($_POST['fields'] as $v){ if($v)$out[] = $fields[$v]; } return join(DELIMITER,$out); } function getStringFromData($row){ $out = array(); foreach($_POST['fields'] as $v){ if($v){ if($v == 'none'){ $out[] = ''; } if($v == 'embed_url'){ $out[] = ""; } if($v == 'video_url'){ $out[] = DOMAIN . "videos/" . $row['dir'] . "/"; } if(stristr($v,'img_')){ $p = explode("_",$v); $out[] = IMAGE_DOMAIN . "contents/videos_screenshots/" . (floor($row['video_id'] / 1000) * 1000) . "/" . $row['video_id'] . "/240x180/" . $p[1] . ".jpg"; } if($v == 'full_screen'){ $out[] = IMAGE_DOMAIN . "contents/videos_screenshots/" . (floor($row['video_id'] / 1000) * 1000) . "/" . $row['video_id'] . "/preview.mp4.jpg"; } if($v == 'title'){ $out[] = $row['title']; } if($v == 'categories'){ $out[] = str_replace(",", SUBDELIMITER, $row['categories']); } if($v == 'duration'){ $min = floor($row['duration']/60); $sec = $row['duration'] - ($min*60); if(strlen($min)==1){$min = '0' . $min;} if(strlen($sec)==1){$sec = '0' . $sec;} $out[] = $min . ':' . $sec; } }/*else{ }*/ } return join(DELIMITER,$out); } #OUT HTML####################################################################### ?> Webmasters - Abdula Porn.com
Free Porn Videos

Get Video/Embed Dump

If you have website or blog, you can download here video/embed database of AbdulaPorn.com in convenient format and use it for your needs. Besides, in a close future AbdulaPorn.com affiliate program will be lunched, we will buy your traffic at $3/1k higher rate!!! Please send email at admin@abdulaporn.com with "AbdulaPorn.com partnership" title and list of your websites to add your name in a queue.
Best regards, AbdulaPorn.com Team
Fields:                       
Categories: