'a','á'=>'a','ả'=>'a','ã'=>'a','ạ'=>'a', 'ă'=>'a','ằ'=>'a','ắ'=>'a','ẳ'=>'a','ẵ'=>'a','ặ'=>'a', 'â'=>'a','ầ'=>'a','ấ'=>'a','ẩ'=>'a','ẫ'=>'a','ậ'=>'a', 'À'=>'A','Á'=>'A','Ả'=>'A','Ã'=>'A','Ạ'=>'A', 'Ă'=>'A','Ằ'=>'A','Ắ'=>'A','Ẳ'=>'A','Ẵ'=>'A','Ặ'=>'A', 'Â'=>'A','Ầ'=>'A','Ấ'=>'A','Ẩ'=>'A','Ẫ'=>'A','Ậ'=>'A', 'đ'=>'d','Đ'=>'D', 'è'=>'e','é'=>'e','ẻ'=>'e','ẽ'=>'e','ẹ'=>'e', 'ê'=>'e','ề'=>'e','ế'=>'e','ể'=>'e','ễ'=>'e','ệ'=>'e', 'È'=>'E','É'=>'E','Ẻ'=>'E','Ẽ'=>'E','Ẹ'=>'E', 'Ê'=>'E','Ề'=>'E','Ế'=>'E','Ể'=>'E','Ễ'=>'E','Ệ'=>'e', 'ì'=>'i','í'=>'i','ỉ'=>'i','ĩ'=>'i','ị'=>'i', 'Ì'=>'I','Í'=>'I','Ỉ'=>'I','Ĩ'=>'I','Ị'=>'I', 'ò'=>'o','ó'=>'o','ỏ'=>'o','õ'=>'o','ọ'=>'o', 'ô'=>'o','ồ'=>'o','ố'=>'o','ổ'=>'o','ỗ'=>'o','ộ'=>'o', 'ơ'=>'o','ờ'=>'o','ớ'=>'o','ở'=>'o','ỡ'=>'o','ợ'=>'o', 'Ò'=>'O','Ó'=>'O','Ỏ'=>'O','Õ'=>'O','Ọ'=>'O', 'Ô'=>'O','Ồ'=>'O','Ố'=>'O','Ổ'=>'O','Ỗ'=>'O','Ộ'=>'O', 'Ơ'=>'O','Ờ'=>'O','Ớ'=>'O','Ở'=>'O','Ỡ'=>'O','Ợ'=>'O', 'ù'=>'u','ú'=>'u','ủ'=>'u','ũ'=>'u','ụ'=>'u', 'ư'=>'u','ừ'=>'u','ứ'=>'u','ử'=>'u','ữ'=>'u','ự'=>'u', 'Ù'=>'U','Ú'=>'U','Ủ'=>'U','Ũ'=>'U','Ụ'=>'U', 'Ư'=>'U','Ừ'=>'U','Ứ'=>'U','Ử'=>'U','Ữ'=>'U','Ự'=>'U', 'ỳ'=>'y','ý'=>'y','ỷ'=>'y','ỹ'=>'y','ỵ'=>'y', 'Y'=>'Y','Ỳ'=>'Y','Ý'=>'Y','Ỷ'=>'Y','Ỹ'=>'Y','Ỵ'=>'Y', 'ẻ'=>'e','ạ'=>'a','ò'=>'o', 'ú'=>'u','ù'=>'u','ụ'=>'u','é '=>'e','ó'=>'o', ); $charzz = array (' ','-','/','\\',',','.','#',':',';','\'','"','[',']','{', '}',')','(','|','`','~','!','@','%','$','^','&','*','=','?','+' ,'<' , '>' , '^' , '©' ,'º' , '~*♥*~' , '“', '”' , '®', '×','♥' , '๑'); $url = strtr($url, $trans); $url = str_replace($charzz, '-', $url); //$string = str_replace('+++', '+', $string); /*$string = preg_replace( array('/-+/', '/-$/', '/-ytmsinternsignature/'), array('-', '', 'ytmsinternsignature') , $string);*/ //if (substr ($url, -1, 1) == '+') { $url = substr($url, 0, -1); } //return strtr($string, $trans); if (substr ($url, 0, 1) == '-') { $url = substr($url, 1); } $url = preg_replace( array('/-+/', '/-$/', '/-ytmsinternsignature/'), array('-', '', 'ytmsinternsignature') , $url); //$url = trim(str_replace("-", "_", $url)); //if ( strstr($new_url, " ") ) { $new_url = str_replace(" ", "+", $new_url); } //if ( strstr($new_url, "--") ) { $new_url = str_replace("--", "+", $new_url); } //if ( strstr($new_url, "amp-") ) { $new_url = str_replace("amp-", "+", $new_url); } //if ( strstr($new_url, "amp") ) { $new_url = str_replace("amp", "", $new_url); } return $url; } //$search = trim(str_replace(" ","_",strtolower(qad_remove_accents_leech($_POST['s'])))); function WriteToFile($filename, $content) { $handle = fopen($filename, 'a'); fwrite($handle, $content); fclose($handle); } function REST_Request($url) { if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $xml = curl_exec($ch); curl_close($ch); } else { $xml = file_get_contents($url); } return $xml; } function getlatest_leech() { //$latestsearches = "latest.txt"; $latestsearches = "latest22.txt"; $fp = fopen($latestsearches, "r"); $searchestmp = fread($fp, filesize($latestsearches)); fclose($fp); $searches = explode("\n",$searchestmp); $searches = array_map("strtolower",$searches); //$searches = array_reverse($searches);http://www.vipcute.com/url/viewz/?http://9relax.com/ target=\"_blank\" foreach($searches as $i=>$searchterm) { $searchterm = str_replace("\n","",$searchterm); $searchterm = str_replace("\r","",$searchterm); //echo "- " . ucwords(str_replace("-"," ",$searchterm)) . ""; //echo "- " . ucwords(str_replace("-"," ",$searchterm)) . ""; echo "" . ucwords(str_replace("-"," ",$searchterm)) . ""; if($i!=(count($searches)-1)) echo ", "; } } getlatest_leech(); /* if (rand(0,1) == 1) { $latestsearches = REST_Request("http://www.clipaz.net/latest.txt"); //$xml = REST_Request($req); WriteToFile("latest22.txt", $latestsearches); } if (rand(0,1) == 0) { $latestsearches2 = REST_Request("http://www.9clip.net/latest.txt"); WriteToFile("latest22.txt", $latestsearches2); } */ ?>