Last active
August 29, 2015 14:22
-
-
Save AliceWonderMiscreations/6442a735cc1ba920524e to your computer and use it in GitHub Desktop.
Simple php to implement the tumblr redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* make this the index page served at *.whatever.tld | |
* so it will be served with olivia.whatever.tld and fiona.whatever.tld etc. | |
* | |
* | |
* manually maintained list or you could do a database | |
* array keys (Mistress Names) must be lower case, php array keys | |
* are case sensitive. | |
* | |
* I *think* every active Mistress I follow is here. | |
* but there are probably some I don't yet follow. | |
* | |
* Shame on me | |
*/ | |
$tumblr = array( | |
'alexis' => 'http://sensualphonemistress.tumblr.com/', | |
'alyssa' => 'http://cockteaseprincess.tumblr.com/', | |
'andi' => 'http://sensualphonesexprincessandi.tumblr.com/', | |
'audrey' => 'http://femdomaudreyphonesex.tumblr.com/', | |
'britany' => 'http://brattybeautybritany.tumblr.com/', | |
'cassandra' => 'http://chastitymistresscassandra.tumblr.com/', | |
'cassidy' => 'http://californiaphonesexprincess.tumblr.com/', | |
'catherine' => 'http://phonesexfemdomcatherine.tumblr.com/', | |
'cecilia' => 'http://mistressceciliasextherapy.tumblr.com/', | |
'christine' => 'http://howtohavephonesex.tumblr.com/', | |
'cindy' => 'http://phonesexyseductivemistresscindy.tumblr.com/', | |
'constance' => 'http://phonesexmistressconstance.tumblr.com/', | |
'cooper' => 'http://mistresscooperldw.tumblr.com/', | |
'courtney' => 'http://themasturbationinterviews.tumblr.com/', | |
'delia' => 'http://phonesexmistressdelia.tumblr.com/', | |
'emmajane' => 'http://fetishphonesexmistress.tumblr.com/', | |
'faythe' => 'http://bbwphonesexcalls.com/', | |
'fiona' => 'http://fionaphonefantasypixiemistress.tumblr.com/', | |
'gia' => 'http://enchatrixgia.tumblr.com/', | |
'hannah' => 'http://guidemyfantasy.tumblr.com/', | |
'harper' => 'http://kinkyharperphonesex.tumblr.com/', | |
'heather' => 'http://princessheatherphonesex.tumblr.com/', | |
'hunter' => 'http://phonesexmistresshunter.tumblr.com/', | |
'jenna' => 'http://femdomphonemistressjenna11.tumblr.com/', | |
'kaylee' => 'http://phonesexprincesskaylee.tumblr.com/', | |
'kaymarie' => 'http://phonesexmistresskaymarie.tumblr.com/', | |
'kellie' => 'http://phonesexprincesskellie.tumblr.com/', | |
'lena' => 'http://kinkymistresslena.tumblr.com/', | |
'lilly' => 'http://cockteasemistresslilly.tumblr.com/', | |
'lisa' => 'http://femmefatalemistress.tumblr.com/', | |
'melanie' => 'http://phonesexprincess4u.tumblr.com/', | |
'meredith' => 'http://sexyphonesexmistressmeredith.tumblr.com/', | |
'molly' => 'http://brattymistressmolly.tumblr.com/', | |
'nadia' => 'http://phonebonemistress.tumblr.com/', | |
'olivia' => 'http://phonesexmistressolivia.tumblr.com/', | |
'piper' => 'http://eroticphonesexmistresspiper.tumblr.com/', | |
'rayne' => 'http://phonesexgoddessrayne.tumblr.com/', | |
'rita' => 'http://mindfuckmistressphonesex.tumblr.com/', | |
'roselyn' => 'http://msroselynldw.tumblr.com/', | |
'ryan' => 'http://alphafemdomphonesex.tumblr.com/', | |
'scarlet' => 'http://enchantrixscarlet.tumblr.com/', | |
'simone' => 'http://kinkydemonmistresssimone.tumblr.com/', | |
'sloane' => 'http://phonesexmistresssloane.tumblr.com/', | |
'sophia' => 'http://phonesexmistresssophia.tumblr.com/', | |
'stephanie' => 'http://phonesexfemdomstephanie.tumblr.com/', | |
'tabetha' => 'http://voxvixentabetha.tumblr.com/', | |
'tia' => 'http://phonesexmistresstia.tumblr.com/', | |
'violet' => 'http://missvioletfleur.tumblr.com/', | |
'vivian' => 'http://milfmistressvivian.tumblr.com/'); | |
/* The default if not in array */ | |
$redirect = 'http://phonesexaudios.tumblr.com'; | |
if(isset($_SERVER['HTTP_HOST'])) { | |
$host = explode('.', $_SERVER['HTTP_HOST'])[0]; | |
$req = trim(strtolower($host)); | |
if(array_key_exists($req, $tumblr)) { | |
$redirect = $tumblr[$req]; | |
} | |
} | |
header("Location: " . $redirect); | |
die(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know some are missing from that list - e.g. Faythe, Lena, and I think Cecilia has one too. But it should be fairly obvious how to add them (and others) to make it complete. EDIT added lena and faythe. EDIT added cecilia - that's every active LDW Mistress I personally know about with a tumblr. I think...