$i) { $cat = mysql_result($result,$i,"main_cat"); $curcat = get_one_row("SELECT cat_id, cache_url, cat_name, parent FROM categories WHERE cat_id = '$cat'"); $curcatname = $curcat['cat_name']; $curcatid = $curcat['cat_id']; $curcache = $curcat['cache_url']; $parent_category = $curcat['parent']; $parcat = get_one_row("SELECT cat_name, cache_url, cat_id FROM categories WHERE cat_id='$parent_category'"); $parcatname = $parcat['cat_name']; $parcache = $parcat['cache_url']; $product_id = mysql_result($result,$i,"product_id"); $product_name = mysql_result($result,$i,"name"); $product_version = mysql_result($result,$i,"version"); $f_name = ereg_replace(" ","_",$name); $approved = mysql_result($result,$i,"approved"); $disabled = mysql_result($result,$i,"disabled"); $short_description = mysql_result($result,$i,"short_description"); $short_description = stripslashes($short_description); $download_url = mysql_result($result,$i,"download_url"); $file_name = basename($download_url); $staff_rating = mysql_result($result,$i,"staff_rating"); $owner = mysql_result($result,$i,"owner"); $downloads_raw = mysql_result($result,$i,"downloads"); $downloads = number_format($downloads_raw); $downloads_week = mysql_result($result,$i,"downloads_week"); $downloads_week = number_format($downloads_week); $downloads_month = mysql_result($result,$i,"downloads_month"); $downloads_month = number_format($downloads_month); $views = mysql_result($result,$i,"listing_views"); $views = number_format($views); $featured = mysql_result($result,$i,"featured"); $staff_review = mysql_result($result,$i,"staff_review"); $slug = mysql_result($result,$i,"subd"); $remove_ads = mysql_result($result,$i,"remove_ads"); $reviews = mysql_result($result,$i,"reviews"); $staff_review_status = mysql_result($result, $i, "staff_review_status"); $license = mysql_result($result,$i,"license"); $raw_file_size = mysql_result($result,$i,"file_size"); $raw_file_size_snippet = $raw_file_size * 1024; if ($raw_file_size > 0) { $file_size_mb = number_format(($raw_file_size / 1024),2); $file_size = number_format($raw_file_size) . " KB"; } $homepage = mysql_result($result,$i,"homepage_url"); if ($homepage) { if(strstr($homepage, "http") === FALSE) { $fhomepage = "http:\/\/" . "$homepage"; $homepage = "http://" . "$homepage"; } else { $fhomepage = $homepage; } } $pad_url = mysql_result($result,$i,"pad_url"); $has_screenshot = mysql_result($result,$i,"has_screenshot"); $has_icon = mysql_result($result,$i,"has_icon"); $icon_url = mysql_result($result,$i,"icon_url"); $alt_download = mysql_result($result,$i,"download_url_alt"); $long_desc = mysql_result($result,$i,"long_description"); $pulled_platform = mysql_result($result,$i,"platform"); $long_desc = utf8_encode($long_desc); $long_desc = nl2br($long_desc); $order_url = mysql_result($result,$i,"purchase_url"); $expires = mysql_result($result,$i,"expire_date"); $os_support = mysql_result($result,$i,"os_support"); $os_support = trim($os_support); $os_support = ereg_replace(",",", ",$os_support); $min_req = mysql_result($result,$i,"system_requirements"); $install_support = mysql_result($result,$i,"install_support"); $languages = mysql_result($result,$i,"languages"); $release_date = mysql_result($result,$i,"release_date"); $release_status = mysql_result($result,$i,"release_status"); $release_notes = mysql_result($result,$i,"release_notes"); $release_notes = utf8_encode($release_notes); $aff_custom = mysql_result($result,$i,"affiliate"); $aff_id = mysql_result($result,$i,"affiliate_id"); $price = mysql_result($result,$i,"price"); if ($price > 0) $fprice = "$" . number_format($price,2); $affiliate_price = mysql_result($result,$i,"affiliate_price"); if (($affiliate_price < $price) && $affiliate_price) { $faffiliate_price = "$" . number_format($affiliate_price,2); $percent = ($affiliate_price / $price) * 100; $percent = number_format((100 - $percent),0)."%"; $offer = true; } else { $offer = false; } $keywords = mysql_result($result,$i,"keywords"); $icon_url = mysql_result($result,$i,"icon_url"); $screenshot_url = mysql_result($result,$i,"screenshot_url"); $added = mysql_result($result,$i,"added"); if ($added != 0) { $ld_day = date("d","$added"); $ld_month = date("M","$added"); $ld_year = date("Y","$added"); $date_added = "$ld_month $ld_day, $ld_year"; } $link_modified = mysql_result($result,$i,"user_updated"); if ($link_modified != 0) { $lm_day = date("d","$link_modified"); $lm_month = date("M","$link_modified"); $lm_nmonth = date("m","$link_modified"); $lm_year = date("Y","$link_modified"); $rich_modified = "$lm_year-$lm_nmonth-$lm_day"; $d_modified = "$lm_month $lm_day, $lm_year"; } $meta_data .= "\n"; $meta_data .= "\n"; $meta_data .= ""; $page_title = "$product_name $product_version Download"; $pad_checked = mysql_result($result,$i,"pad_checked_time"); include 'header.php'; if ($pad_url) { $nowtime = time() - $pad_checked; if ($nowtime > 86400) #86400 { include 'auto-pad-update.php'; } } ?>


Product Summary

Download Disabled
Likes