1) $result=array_merge($result,all_files($full,$maxdepth-1)); else $result[]=$full; } closedir($dh); } } natcasesort($result); return $result; } // uppercase title function function upIT($string) { $no_big_letters = array("and","but","or","for","nor","etc","a","an","the","on","at","to","from","by","s","ve","m"); $kousky = explode(" ", $string); foreach($kousky as &$value) { foreach($no_big_letters as $prc) { if(stripos($prc, $value) !== FALSE) { break; } else { $value = ucfirst($value); }; } } $nakonec = Implode(" ", $kousky); return $nakonec; } // one line functions function thumb2img($file,$thumbs_dir) { return str_replace($thumbs_dir."/","",$file); } function img2thumb($file,$thumbs_dir) { return dirname($file)."/".$thumbs_dir."/".basename($file); } function is_image($path) { return preg_match("/.jpe?g$/i", $path); } function is_thumb($path,$thumbs_dir) { return preg_match("|/".$thumbs_dir."/|i", $path) && is_image($path); } // END of FUNCTIONS // find ID number in URL $piece = explode("/", $_SERVER['REQUEST_URI']); if(is_numeric($piece[2]) AND $piece[2] > 0) { // echo ""; $load_attemp = file_get_contents("data/".$piece[2].".json"); if($load_attemp) { // if JSON exist grab it $gallery_content = json_decode($load_attemp, true); $end_info = ""; } else { $end_info .= ""; // if JSON doesn't exist, read info from SQL and create JSON include "$database_connect"; // check the source first to select from right table // $which_table = mysql_result(mysql_query("SELECT source FROM $table WHERE id = $piece[2]"), 0); $which_table = "youngheaven.com"; $completeSQL = "SELECT $table.id as id, $table.title as title, $table.popis_short as popis, $databaseTABLE[$which_table].directory as directory, $databaseTABLE[$which_table].providerID as providerID, ".($PROVIDERSchange ? "$paysitesTABLE[$which_table].name as pay_name, $paysitesTABLE[$which_table].rate as newrating" : "$paysitesTABLE[$which_table].name as pay_name, $paysitesTABLE[$which_table].price as price, $paysitesTABLE[$which_table].pricelenght as pricelenght, $paysitesTABLE[$which_table].newrating as newrating")." FROM `$table`,`$paysitesTABLE[$which_table]` WHERE $table.id = $piece[2] AND $paysitesTABLE[$which_table].id = $databaseTABLE[$which_table].providerID AND title != ''"; $vypis = mysql_query($completeSQL); if(mysql_num_rows($vypis) > 0) { $sql_item = mysql_fetch_assoc($vypis); if($sql_item['source'] == "") $sql_item['source'] = "youngheaven.com"; $gallery = $content_dir[$sql_item['source']]."/".$sql_item['directory']; $filesALL=all_files($gallery); // reselect only images and NOT thumbs foreach($filesALL as $key=>$file) if (is_image($file) && !is_thumb($file,$thumbs_dir[$sql_item['source']])) $files[]=$file; foreach($files as $key=>$file) { $new_thumbs[] =basename($file); } $sql_item['title'] = upIT($sql_item['title']); $gallery_content = array( "id" => $sql_item[id], "directory" => $sql_item[directory], "source" => $sql_item[source], "title" => $sql_item[title], "popis" => $sql_item[popis], "pay_name" => $sql_item[pay_name], "pay_price" => $sql_item[price], "pay_lenght" => $sql_item[pricelenght], "pay_rate" => $sql_item[newrating], "thumbs" => $new_thumbs ); // create NEW jSON if(file_put_contents("data/".$sql_item['id'].".json",json_encode($gallery_content))) if(chmod("data/".$sql_item['id'].".json", 0777)) $end_info .= ""; } else { Header("Location: https://".$_SERVER['HTTP_HOST']."/"); } // end of mysql_num_rows > 0 } // end of IF IS loaded json } else { Header("Location: https://".$_SERVER['HTTP_HOST']."/"); } // end if is numeric $kund = 1; foreach($gallery_content[thumbs] as $th) { $ALLthumbs .= " 4) ? "src=\"https://images.$_SERVER[HTTP_HOST]/$img_folder/$loading\" data-" : "")."src=\"https://images.$_SERVER[HTTP_HOST]/".$content_dir[$gallery_content['source']]."/$gallery_content[directory]/".$thumbs_dir[$gallery_content['source']]."/$th\">"; $kund++; } include "/home/miguel7/google_counter.php"; ?>

menu




partners




thanks to
$gallery_content[pay_name]
"; if($gallery_content[pay_rate] == 6) { $site_quality = "quality"; } elseif($gallery_content[pay_rate] == 7) { $site_quality = "high quality"; } elseif($gallery_content[pay_rate] == 8) { $site_quality = "excellent"; } elseif($gallery_content[pay_rate] == 9) { $site_quality = "top recommended"; } // $MARKET .= "rated as $site_quality premium site
"; for ($i = 0; $i < 9; $i++) { $MARKET .= " $i) ? ">":" class=o>")."★

"; } $MARKET .= " $gallery_content[pay_rate]/9"; echo "

".$MARKET."
"; ?>

Premium Sites 4 You



super friends





HOME
nudeteenladies.com



TOPlist TOPlist