Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $step = $_GET["s"];
- $sku = $_GET["b"];
- $u = $_GET["u"];
- $orderid = $_GET["orderid"];
- $bottle = substr($sku,1,1);
- if ($step == "0") {
- $random = mt_rand(1, 2);
- switch(TRUE) {
- case ($random >= 1 and $random <= 1):header('Location: https://www.awebsite.com/a-page1.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);break;
- case ($random >= 2 and $random <= 2):header('Location: https://www.awebsite.com/a-page2.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);break;
- }
- }
- elseif ($step == "1") {
- if ($bottle == "1"){
- header('Location: https://www.awebsite.com/page-1.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);
- }
- elseif ($bottle == "3"){
- header('Location: https://www.awebsite.com/page-3.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);
- }
- elseif ($bottle == "5"){
- header('Location: https://www.awebsite.com/page-5.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);
- }
- elseif ($bottle == "7"){
- header('Location: http://www.awebsite.com/thanks.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);
- }
- }
- elseif ($step == "2") {
- header('Location: http://www.awebsite.com/thanks.php?b='.$sku.'&u='.$u.'&orderid='.$orderid);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement