????
Current Path : /home2/morganrand/backup.morganrand.com/design/ |
Current File : /home2/morganrand/backup.morganrand.com/design/switcheroo.php |
<?php header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); $designrooms = array( 'pompoms' => 'http://www.wanderfuls.com/pompoms.html', 'express' => 'https://wedding-favors-express.com/ecommerce/os/catalog/index.php', 'design' => 'http://www.wanderfuls.com/color-design.html', 'beauti' => 'http://www.beautifulcenterpieces.com/', 'bestcandy' => 'http://www.bestcandycenterpiece.com/', 'event' => 'http://www.eventcenterpiecedesigner.com/', 'party' => 'http://www.partycenterpiecedesignwizard.com/' ); if (isset($_GET['do'])) { $do = $_GET['do']; $myfile = fopen("switcheroo.txt", "w") or die("Unable to open file!"); $txt = $designrooms[$do]; fwrite($myfile, $txt); fclose($myfile); echo "The link to $txt has been activated."; } else { $myfile = fopen("switcheroo.txt", "r") or die("Unable to open file!"); $i = fread($myfile,filesize("switcheroo.txt")); fclose($myfile); header("Location: $i"); die(); } ?>