|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
|
someone on anotner board wrote this php script to check if someone cheat galleries by language of browser
so how to modify that to check multiple (100) galleries same time ? PHP:-------------------------------------------------------------------------------- <?php if ($_GET["url"]) { $lang = array("da","nl","es","de","en","fr","ko","zh"); echo "<font size=4><b>Testing $_GET[url] ..........</b></font><br><br>\n\n"; foreach ($lang as $l) { echo "<b>Testing url with Accept-Language \"$l\":</b><br>\n"; echo hit_it($_GET["url"],$l); } } function hit_it($url, $lang) { $parsed = parse_url($url); $fp = fsockopen ($parsed["host"], 80, $errno, $errstr, 5); if (!$fp) { $return = "$errstr ($errno)"; } else { fputs ($fp, "HEAD $parsed[path] HTTP/1.0\r\nHost: $parsed[host]\r\nAccept-Language: $lang\r\nUser-Agent: Mozilla/4.0\r\n\r\n"); while(!feof($fp)) { $return .= fgets ($fp,128) . "<br>\n"; } return $return; fclose ($fp); } } ?>
__________________
This place is for RENT |
|
|
|
|
|
#2 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
I could do that in a few secs, but since you only want Guru's helping out, I guess you're screwed.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
|
__________________
This place is for RENT |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Aug 2001
Posts: 7,817
|
Just put a foreach that goes through an array of URLs, around the other foreach.
Cheers, Matt |
|
|
|
|
|
#5 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
![]()
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Location: Spain
Posts: 864
|
Put the url's on a mysql database or an array and set a bucle to go throught the whole amount of url's. Asign each result to the url variable and check it for each language. Easy to code but it will take some time to you to add the 100 url's to te database or array unless you already have them added.
I only see the utility of this into an already codded tgp software, to check each galery when submitted as it checks for banned words etc, but not as standalone script. |
|
|
|
|
|
#7 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#8 | |
|
Confirmed User
Industry Role:
Join Date: Mar 2002
Location: Spain
Posts: 864
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
|
|
|