|
|
|
||||
|
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 |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Ok using gallery spots I have run into a snag
they use PHP for thier gallery links with 2 variables. My TGP scripts also use multiple PHP variables. Using links like this outscript.php?varA=80&varB=10&url=http://babes.spotbrokers.com/gallery.php?snid=58&linkid=pop-14 does not work becasue it only appears to be sending the first variable to the gallery script and the second seems to only go the tgp out script. is there a way I can nest 2 PHP urls that use multiple variables? (outscript.php?var=80&var=1&url=)(gallery.php?snid =58&linkid=pop-14) Many thanks if somone could enlighten me. ![]() |
|
|
|
|
|
#2 |
|
♥ ♦ ♣ ♠
Industry Role:
Join Date: Sep 2002
Posts: 10,592
|
What are the two variable names?
__________________
![]() "I'm selflessly supporting the common good, but only coincidentally looking out for No.1." |
|
|
|
|
|
#3 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
var= snid= linkid= |
|
|
|
|
|
|
#4 |
|
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
outscript.php?var=80&var=1&url=http://babes.spotbrokers.com/gallery.php?snid=58&linkid=pop-14
var=80 var=1 You have two vars with the same name, tray to put the url in ' ' it has a questionmark in it
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
|
|
|
|
|
#5 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
outscript.php?var=80&url='http://babes.spotbrokers.com/gallery.php?snid=58&linkid=pop-14' doesnt work |
|
|
|
|
|
|
#6 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
you can do it like this:
firsturl.php?avar=2&bvar=3&url=http://www.blegh.com/script.php?ohio:kansas then just explode() the querystring on : on the second url. make sure you check the variables for validity/security though.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#7 |
|
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
try this
outscript.php?var=80&var=1&url='gallery.php?snid=5 8&linkid=pop-14'
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
|
|
|
|
|
#8 | ||
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
Quote:
The surfer is going through my out link then to Galleyspots scipt on thier server. Its not my PHP script outscript.php is in my root but the other is not. |
||
|
|
|
|
|
#9 | |
|
♥ ♦ ♣ ♠
Industry Role:
Join Date: Sep 2002
Posts: 10,592
|
Quote:
![]()
__________________
![]() "I'm selflessly supporting the common good, but only coincidentally looking out for No.1." |
|
|
|
|
|
|
#10 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
|
|
|
|
|
|
|
#11 | |
|
♥ ♦ ♣ ♠
Industry Role:
Join Date: Sep 2002
Posts: 10,592
|
Quote:
What does the following code do? What is the purpose of the first var declaration? var=80&var=1
__________________
![]() "I'm selflessly supporting the common good, but only coincidentally looking out for No.1." |
|
|
|
|
|
|
#12 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
Is the variables in the SECOND url athat are not goign through. |
|
|
|
|
|
|
#13 | |
|
♥ ♦ ♣ ♠
Industry Role:
Join Date: Sep 2002
Posts: 10,592
|
Quote:
Ok dude. It seems like the URL string that you posted has a few problems... but, I'll let you work it out for yourself then.![]()
__________________
![]() "I'm selflessly supporting the common good, but only coincidentally looking out for No.1." |
|
|
|
|
|
|
#14 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
blah.php?varA=1&varB=2&url=bling.php?varA=1&varB=2 would STILL explain my qestion varB is not getting parsed by bling.php its abstract, it doesnt matter if my urls are correct or even real; its the concept of the code. |
|
|
|
|
|
|
#15 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
$testvar = $_SERVER['QUERY_STRING']; $quervar = explode(":", "$testvar"); $varcount = count($quervar); for($i=0;$i<$varcount;$i++){ echo($quervar[$i] . "\n"); }
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#16 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
The code I just gave you gets the querystring, chops it up into an array, and displays each piece on a new line. That should help you on your way.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#17 |
|
Registered User
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
|
Simple solution:
replace the ampersands in the 2nd url with % 2 6 (no spaces in the symbol. This turns the url into 1 long string. Then call your outscript as normal. Most tradescripts will then not choke on the extra symbols. If you have a custom script you must call the urldecode() php function in your internal code on the url before sending out the hit. This puts the url back together for the browser. example outscript.php var=80&var=1&url=http://babes.spotbrokers.com/gallery.php?snid=58%26linkid=pop-14 hope this helps |
|
|
|
|
|
#18 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
so If i replace this $url = header_check($url); with $url = urldecode(header_check($url)); in my outscript.php that should do it??? |
|
|
|
|
|
|
#19 |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Blah, it doesnt work becasue thers is a hahahahahahahahahaha involved that is converting the %26 when it generates the page.
can somone tell me how to do a simple character replacment? like take a string and convert all the "|"'s in the string to "&"s using PHP I think that would be the simplest way, but I dont know how to do it. |
|
|
|
|
|
#20 | |
|
Registered User
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
|
Quote:
Php automaticly passes the variables from a querystring or a HTTP POST into your script as is you should not need to call header_check(). Unless you redefine it. Just make sure the url in your html pages you change out the ampersands in the 2nd url. This will ensure that $url is passed as 1 long string. |
|
|
|
|
|
|
#21 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
Doh! Shoulda looked better (oh, and what you should do now depends on what that header_check function does)
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#22 | ||
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
hahah it jsut keeps getting deeper and deeper but I think jsut using some kinda simple char replacment code would be my best bet. Quote:
but not the gallery.php (its on a different server) |
||
|
|
|
|
|
#23 | |
|
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
Quote:
use urlencode to translate special characters to ascii codes and ulrdecode to translate it back....allthough your browser also understand the ascii codes for the special characters. DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
|
|
|
|
|
|
#24 | |
|
Confirmed User
Join Date: Jun 2002
Posts: 3,739
|
Wasn't it you that laughed at some poor guy who needed help yesterday?
Quote:
DICK HEAD |
|
|
|
|
|
|
#25 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#26 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
![]() |
|
|
|
|
|
|
#27 | |
|
Registered User
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
|
Quote:
If you are generating pages using php use the urlencode() function on the url as you generating the page. If you have them hard coded use str_replace: mixed str_replace ( mixed search, mixed replace, mixed subject) Without disecting yourscript thats 1 way to approach it. |
|
|
|
|
|
|
#28 |
|
Confirmed User
Join Date: Jun 2002
Posts: 3,739
|
If your going to Quote me MonkeyBoy get it right
|
|
|
|
|
|
#29 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
I wonder why the hell thats censored. |
|
|
|
|
|
|
#30 |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
str_replace("|", "&", $url);
^ that would do it?? ![]() |
|
|
|
|
|
#31 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Just use the special characters for the querystring (not for other stuff), and you don't need to do anything special at all, you can just leave it that way.
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
#32 | |
|
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
Quote:
part DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
|
|
|
|
|
|
#33 | |
|
Confirmed User
Join Date: Jun 2002
Posts: 3,739
|
Stop helping this Fucking Jerk!
Quote:
|
|
|
|
|
|
|
#34 | |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Quote:
|
|
|
|
|
|
|
#35 |
|
Confirmed User
Join Date: Jun 2002
Posts: 3,739
|
If you want it find it yourself
|
|
|
|
|
|
#36 | |
|
Registered User
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
|
Quote:
just do a search/replace using your html editor then , just single step each replacement or cut out the urls into a blank page the s/r then paste back in. Pain but it is the only way. |
|
|
|
|
|
|
#37 |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
hmmm
$url = header_check($url); str_replace("|", "&", $url); header("Location: $url"); Shouldnt that work?? Im not seeing whats wrong with my code but its not replacing the |'s |
|
|
|
|
|
#38 | |
|
Registered User
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
|
Quote:
Your outscript code $url = "Location:" . urldecode($url); header ($url); That's it! The header_check() is not needed unless it serves to verify the url passed for some reason. your html source ttt-out.php?url=http://www.dollars4babes.com/mpa2/gallhit.php?w=100349%26p=2%26gall=1040389346&link= roxycarter I took this url from my site to show you since the second url has multiple variables. The focus of your changes is in your html source not the script code. Try that out |
|
|
|
|
|
|
#39 | |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
|
|
|
|
|
#40 |
|
So Fucking Banned
Join Date: Dec 2002
Location: New York.... Not the city... Up north further. Its about a six hour drive to the city from here. I don't like the city much. The air is not as clean, but they do have better strip clubs.
Posts: 1,026
|
Thanks for the help I ended up using.
$url = header_check($url); $url = str_replace("|", "&", $url); header("Location: $url"); And everthings wokring great. |
|
|
|
|
|
#41 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
AMP must be asleep.
Dancing Pig needed STAT!
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
|
|