PHP help needed -- base64 encode link cloak + boobs

vilesyntax

New member
Jun 2, 2008
563
18
0
online
Hey guys,

I used to have a script that basically base64 encoded the affiliate link and then the redirect PHP page would decode it and send you off to the page.

I don't know what I am doing wrong and PHP is not my best skill, just looking for some help.

Link on page:
Code:
<a href="http://www.XXXXXX.com/find.php?shop=<?php echo  base64_encode("long ass afiliate link goes here");  ?>">Test</a>
find.php:
Code:
< ?php

    $request_id = $_GET ['shop'];
    $site = base64_decode($request_id);

    header( 'Location: $site' ) ;

?>
Boobs:
sexy-boobs1.jpg


sexy-boobs.jpg


Lady-showing-amazing-hooters-08.jpg

blonde-pussy-outstandings-boobs-6.jpg
 


What's up vilesyntax , Im in the same boat your in. I've found these 3 link's being the most helpful .But im still not able to fix the problem . Every time i try to decode the encryption it brakes the site. The theme im using has a base 32 Encryption in the functions.php and header.php file plus they are also linked to the footer.php page.Every time i try to change one of these scripts the whole site breaks.



Base64decode

Base 64 Decoder


Remove encrypted footer links on wordpress themes

How to remove Encrypted Footer links from Wordpress themes


How to remove encrypted links from wordpress themes

Updated : How to Remove Encrypted Links from WordPress Themes
 
Simple... you forgot to make the request URL safe...

PHP:
<a href="http://www.XXXXXX.com/find.php?shop=<?php echo urlencode(base64_encode("long ass afiliate link goes here"));  ?>">Test</a>
 
Simple... you forgot to make the request URL safe...

PHP:
<a href="http://www.XXXXXX.com/find.php?shop=<?php echo urlencode(base64_encode("long ass afiliate link goes here"));  ?>">Test</a>

is the way i am passing the parameter to find.php (xxxx.com/find.php?shop=....) correct? it's still not working properly for me.
 
Hi, reason is that PHP will not process a Variable in Single quotes. What i suggest you do for your redirect is do this.


header( 'Location: ' . $site) ;

Hope it helps.
 
Hi, reason is that PHP will not process a Variable in Single quotes. What i suggest you do for your redirect is do this.


header( 'Location: ' . $site) ;

Hope it helps.

thit fixed the redirection part of the equation, now what's happening is the affiliate link isn't getting base64encoded....

status bar:
9u7xh0.png
 
It's because you have your <?php ?> tags stuck inside a string.

It should look like this:

First part:
Code:
<a href="http://www.XXXXXX.com/find.php?shop=<?php echo  urlencode(base64_encode("long ass afiliate link goes here"));  ?>">Test</a>
Second:
Code:
< ?php

    header( 'Location: ' . base64_decode($_GET ['shop'])) ;

?>
 
is the page that the link is processed on a .html or .php? because this seems like apache is processing the php. thus maybe can be file taht is a .html and apache ain't config to process .html as php.
 
Might be but why put <?php ?> if he is in PHP brackets allready?

It's because you have your <?php ?> tags stuck inside a string.

It should look like this:
Code:
'www.XXXXXX.com/find.php?shop=' . <?php echo  urlencode(base64_encode("long ass afiliate link goes here"));  ?> . '>Test</a>'
 
is the page that the link is processed on a .html or .php? because this seems like apache is processing the php. thus maybe can be file taht is a .html and apache ain't config to process .html as php.

i think this was it...

i had it on a blank/random .html file....

put the link in my footer on one of my blogs and it worked fine.

thank you guys!