// Désactiver le rapport d'erreurs error_reporting(0); //$compteur = ""; $link = $_GET[link]; $cat = $_GET[cat]; $obiz=$_SERVER['REQUEST_URI']; //$obiz = @eregi_replace("\/annuaire\/", "", $obiz); $cat = @eregi_replace("org--", "", $cat); $cat = @eregi_replace("fr--", "", $cat); $cat = @eregi_replace("com--", "", $cat); $cat = @eregi_replace("net--", "", $cat); $cat = @eregi_replace("edu--", "", $cat); $cat = @eregi_replace("biz--", "", $cat); $cat = @eregi_replace("de--", "", $cat); $cat = @eregi_replace("ca--", "", $cat); $cat = @eregi_replace("ch--", "", $cat); $cat = @eregi_replace("name--", "", $cat); $cat = @eregi_replace("uk--", "", $cat); $cat = @eregi_replace("wf--", "", $cat); $cat = @eregi_replace("(eu|ACADEMY|ACCOUNTANTS|ACTOR|AGENCY|AIRFORCE|ARMY|ASSOCIATES|AUCTION|AUDIO|BAR|BARGAINS|BIKE|BLACKFRIDAY|BLUE|BOUTIQUE |BUILDERS |BUSINESS |BZH |CAB |CAMERA |CAMP |CAPITAL |CARDS |CARE |CAREERS |CASH |CATERING |CENTER |CHEAP |CHRISTMAS |CHURCH |CITY |CLAIMS |CLEANING |CLICK |CLINIC |CLOTHING |CLUB |CODES |COFFEE |COMMUNITY |COMPANY |COMPUTER |CONDOS |CONSTRUCTION |CONSULTING |CONTRACTORS |COOL |CREDIT |CREDITCARD |CRUISES |DANCE |DATING |DEALS |DEMOCRAT |DENTAL |DIAMONDS |DIET |DIGITAL |DIRECT |DIRECTORY |DISCOUNT |DOMAINS |EDUCATION |EMAIL |ENGINEER |ENGINEERING |ENTERPRISES |EQUIPMENT |ESTATE |EVENTS |EXCHANGE |EXPERT |EXPOSED |FAIL |FARM |FINANCE |FINANCIAL |FISH |FITNESS |FLIGHTS |FLORIST |FOUNDATION |FUND |FURNITURE |FUTBOL |GALLERY |GIFT |GIFTS |GLASS |GRAPHICS |GRATIS |GRIPE |GUIDE |GUITARS |GURU |HAUS |HEALTHCARE |HELP |HIPHOP |HOLDINGS |HOLIDAY |HOST |HOSTING |HOUSE |IMMO |IMMOBILIEN |INDUSTRIES |INK |INSTITUTE |INSURE |INTERNATIONAL |INVESTMENTS |JUEGOS |KAUFEN |KITCHEN |LAND |LAWYER |LEASE |LIFE |LIGHTING |LIMITED |LIMO |LINK |LOANS |MAISON |MANAGEMENT |MARKET |MARKETING |MEDIA |MODA |MORTGAGE |NAVY |NETWORK |NINJA |PARIS |PARTNERS |PARTS |PHOTO |PHOTOGRAPHY |PHOTOS |PICS |PICTURES |PINK |PIZZA |PLACE |PLUMBING |PRESS |PRODUCTIONS |PROPERTIES |PROPERTY |PUB |RECIPES |RED |REISEN |RENTALS |REPAIR |REPORT |REPUBLICAN |REST |RESTAURANT |REVIEWS |ROCKS |SARL |SCHULE |SERVICES |SEXY |SHOES |SINGLES |SOCIAL |SOFTWARE |SOLAR |SOLUTIONS |SUPPLIES |SUPPLY |SUPPORT |SURGERY |SYSTEMS |TATTOO |TAX |TECHNOLOGY |TIENDA |TIPS |TODAY |TOOLS |TOWN |TOYS |TRAINING |UNIVERSITY |VACATIONS |VENTURES |VET |VIAJES |VILLAS |VISION |VOYAGE |WATCH |WEBSITE |WIKI |WORKS |WORLD |WTF |XYZ |ZONE)--", "", $cat); $catok = $cat; $cat = @eregi_replace("([a-zA-Z0-9_-]+)--re2gional--(.*)", "Re2gional--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--boutiques_en_ligne--(.*)", "Boutiques_en_ligne--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--commerce_et_e2conomie--(.*)", "Commerce_et_e2conomie--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--actualite2--(.*)", "Actualite2--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--formation--(.*)", "Formation--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--informatique--(.*)", "Informatique--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--jeux--(.*)", "Jeux--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--loisirs--(.*)", "Loisirs--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--maison--(.*)", "Maison--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--re2fe2rences--(.*)", "Re2fe2rences--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--sante2--(.*)", "Sante2--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--sciences--(.*)", "Sciences--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--socie2te2--(.*)", "Socie2te2--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--sports--(.*)", "Sportsl--\\2", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--Maison", "Maison", $cat); $cat = @eregi_replace("([a-zA-Z0-9_-]+)--Jeux", "Jeux", $cat); //$cat = @eregi_replace("([a-zA-Z0-9_-]+)--([a-zA-Z0-9_-]+)", "\\2", $cat); //$cat = @eregi_replace("inter([a-z]+)", "internet--\\1", $cat); //jan2012 //$cat = @eregi_replace("--", "-", $cat); //$cat dernier mot cles $rub = "$link"; $rub = @eregi_replace("--([a-zA-Z0-9_-]+)$", "\\1--\\2", $rub); //$link = @eregi_replace("([a-zA-Z0-9_-]+)--", "", $link); $link = @eregi_replace("--(.*)$", "", $link); $link = @eregi_replace(".com-0-", ".com/", $link); $link = @eregi_replace(".com/", ".com/", $link); $link = @eregi_replace("-0-com.", ".com/", $link); //$link = @eregi_replace(".fr-0-", ".fr/", $link); $link = @eregi_replace("-0-fr.", ".fr/", $link); $link = @eregi_replace("-0-net.", ".net/", $link); $link = @eregi_replace("cgi-bin(.*)", "", $link); $link = @eregi_replace(".info-0-", ".info/", $link); $link = @eregi_replace(".com-0-", ".com/", $link); $link = @eregi_replace(".org-0-", ".org/", $link); $link = @eregi_replace(".eu-0-", ".eu/", $link); $link = @eregi_replace(".net-0-", ".net/", $link); $link = @eregi_replace(".biz-0-", ".biz/", $link); $link = @eregi_replace(".fr-0-", ".fr/", $link); $link = @eregi_replace(".de-0-", ".de/", $link); $link = @eregi_replace(".ca-0-", ".ca/", $link); $link = @eregi_replace(".it-0-", ".it/", $link); $link = @eregi_replace(".be-0-", ".be/", $link); $link = @eregi_replace(".es-0-", ".es/", $link); $link = @eregi_replace("en.provence", "en-provence/", $link); //$link = @eregi_replace("www.0-", "www.", $link); $link = @eregi_replace("www.([a-zA-Z0-9_-]+)-0-", "\\1.", $link); //$link = @eregi_replace("([a-zA-Z0-9_-]+).com.", "www.\\1.com/", $link); $link = @eregi_replace("www.pages\.", "pages.", $link); $link = @eregi_replace("www.([a-zA-Z0-9._-]+).chez.tiscali.fr", "\\1.chez.tiscali.fr", $link); $link = @eregi_replace("www.([a-zA-Z0-9._-]+).free.fr", "\\1.free.fr", $link); $link = @eregi_replace("free.fr\.", "free.fr/", $link); $link = @eregi_replace("perso.wanadoo.fr\.", "perso.wanadoo.fr/", $link); $link = @eregi_replace("www.users", "users", $link); $link = @eregi_replace(".ch-0-", ".ch/", $link); $link = @eregi_replace("www.([a-zA-Z0-9_-]+).fr\/e.fr", "\\1.free.fr", $link); $link = @eregi_replace("www.([a-zA-Z0-9_-]+).([a-zA-Z0-9_-]+).fr\/e.fr", "\\1.\\2.free.fr", $link); $link = @eregi_replace("www.perso.", "perso.", $link); $link = @eregi_replace("www.([a-zA-Z0-9_-]+).([a-zA-Z0-9_-]+)-0-([a-zA-Z0-9_-]+).([a-z]+)", "\\1.\\2.\\3.\\4", $link); $link = @eregi_replace("fr-0-wikipedia-0-org-1-wiki-1-olympique.de.marseille", "fr.wikipedia.org/wiki/olympique_de_marseille", $link); $link = @eregi_replace("-0-", "/", $link); $link = @eregi_replace("-org-", ".org/", $link); $link = @eregi_replace("-net-", ".net/", $link); $link = @eregi_replace("-com-", ".com/", $link); $link = @eregi_replace("-biz-", ".biz/", $link); $link = @eregi_replace("-eu-", ".eu/", $link); $link = @eregi_replace("-ca-", ".ca/", $link); $link = @eregi_replace("-info-", ".info/", $link); $link = @eregi_replace(".c.m.fr", ".com/fr", $link); $link = @eregi_replace(".org.", ".org/", $link); $link = @eregi_replace(".com.", ".com/", $link); //2012 $link = @eregi_replace("www.pagesperso-orange", "pagesperso-orange", $link); $link = @eregi_replace("([a-z]+).([a-z]+).html", "\\1/\\2.html", $link); $link = @eregi_replace("([a-z]+).([a-z]+).htm", "\\1/\\2.htm", $link); $link = @eregi_replace("fr/wikipedia/org-1-wiki.", "fr.wikipedia.org/wiki/", $link); $link = @eregi_replace("www.fr.wikipedia.org\/wiki.([a-zA-Z0-9_-]+)", "fr.wikipedia.org/wiki/\\1", $link); $link = @eregi_replace("fr.wikipedia.org/wiki/([a-zA-Z0-9_-]+).([a-zA-Z0-9_-]+)", "fr.wikipedia.org/wiki/\\1_\\2", $link); $link = @eregi_replace("-slash-", "/", $link); $catclean = "$cat" ; $catclean = @eregi_replace("_", " ", $catclean); $catclean = @eregi_replace("--", " | ", $catclean); $catclean = @eregi_replace("e2", "e", $catclean); $catclean = @eregi_replace("e5", "e", $catclean); $catclean = @eregi_replace("a4", "'", $catclean); //$catclean = @eregi_replace("| (.*)", "\\1", $catclean); $catrub = "$catclean" ; $catrub = @eregi_replace("(.*) | (.*)", "\\2", $catrub); function link_creator($link){ error_reporting(1); if(file_exists($link)) { $fp = fopen($link,"r"); if (!$fp) die("impossible d'ouvrir $link"); $linktext=""; while (!feof($fp)) { $linktext .= fgets($fp, 4096); //fclose($fp); } fclose($fp); } else {} //$linktext=utf8_encode($linktext); $linktext = @eregi_replace("", "", $content); $content = @eregi_replace("
link_creator("http://$link");
echo "Visitez le site: $link
Categorie: $catclean
";
$obiz=$_GET[cat];
?>