View Single Post
Old Today, 01:20 PM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,795
Quote:
Originally Posted by blackmonsters View Post
Nevermind!

Affiliates just need to put this code in their header of their page (!! NOT in the Iframe !!) :

PHP Code:
<?php if ($feed == "chaturbate") { ?>
<script>window.location.reload();</script>
<?php ?>
Working for me right now.


Don't use that, I made a mistake.


I had to use this code so I didn't go into a loop :

Code:
<?php if ($page_model['sponsor'] == "chaturbate" && !isset($clean_req["reloaded"])) { ?>
    <script>window.location.href += "/reloaded";</script>
<?php } ?>

<?php 
if (isset($clean_req["reloaded"])) {
	if ($clean_req["reloaded"] !== "reloaded") {
		echo "Error not allowed parameter";
		exit();
	}
} 
?>
I put this in my modelpage.php.

I had to also change my htaccess rules to add the reloaded parameter.

blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote