Ejemplo n.º 1
0
/**
 * Main phrases.
 *
 * Some phrases contain suffixes, some do not.
 *
 * @var array
 */
$phrasing = array("Today's #planet#-#planet2# opposition could force you to #suffix#", "Today's #planet#-#planet2# match-up may remind you to #suffix#", "Today's #planet#-#planet2# conjunction points you to #suffix#", "Today's #adjOrb# #planet# in #zodiac# suggests you should #suffix#", "Today's #adjOrb# #planet# on the dark side of #zodiac# suggests you should #suffix#", "Today's #adjOrb# #planet# in #zodiac# suggests you should avoid the #team# match, there is a wanker with a drum", "Today's #planet# in #zodiac# aligns so you may #suffix#", "Today's #adjOrb# #planet# in #zodiac#. don't forget to #suffix#", "Today's #adjOrb# #planet# in #zodiac# is the clearest indication that red trousers are not for you", "Today you will find yourself under the cosh as #team# dominates your box", "Today you will find yourself waving your imaginary card at #team#", "Today there is a strong indication #team# will be linked to a big money signing. War chest", "Today there is a strong indication #team# will be sending someone out on loan. when will it end?", "The #adjOrb# #planet# in your #house# house of full backs means you should #suffix#", "The #planet#-#planet2# opposition could give rise to a bad moment. You must #suffix#", "#planet# in your #house# house and #planet2# in the #house2# house brings you to #suffix#", "#planet#-#planet2# opposition will probably means you #suffix#", "#planet# in #zodiac# and your #house# house urges for real pace but #suffix#", "#planet#-#planet2# alignment. You may #suffix#", "#planet# in #zodiac#. #suffix#", "#planet# in #zodiac# prompts you to ignore Niall Quinn's unsure and ever changing opinion on #team#'s performance. TV replays notwithstanding", "#planet#-#planet2# alignment focuses you to #suffix#", "#planet#-#planet2# alignment gives you motivation to #suffix#", "#planet# in #zodiac# and your #house# house gives motivation to #suffix#", "#planet# in #zodiac# makes you come to terms with the excessive cost of televised football", "#adjOrb# #planet# and #zodiac# in your #house# house. #suffix#", "#adjOrb# #planet# in #house# house means you must #suffix#", "#adjOrb# #planet# in #zodiac# and your #house# house. You may #suffix#", "#gerund# #planet# and your #house# house. You may #suffix#", "#adjOrb# #planet# in your #house# house #suffix#", "#adjOrb# #planet# and your #house# house. You may #suffix#", "#gerund# #planet# in your #house# house #suffix#", "#adjOrb# #planet# in #zodiac#. #suffix#", "#adjOrb# #planet# puts you on high alert, consider an appeal to the FA", "#adjOrb# #planet# as your team heads north, danger comes in the form of a Stanley-knife-wielding trackie-wearing probationer", "#adjOrb# #planet# puts you in a touchy mood, try to avoid #team#'s medical staff", "#adjOrb# #planet# in your descendant #house# house. You should #suffix#", "#adjOrb# #planet# in #zodiac#. You should #suffix#", "#adjOrb# #planet# puts you in a position of conflict, family or football. Only you can decide", "#adjOrb# #planet# puts #team# in crisis, there are clear-the-air talks, it's a complete meltdown", "#adjOrb# #planet# in your #house# house has Martin Keown in your neighbourhood, it's ok to phone the police/zoo", "your #gerund# #planet# in your #house# house has Martin Keown in your neighbourhood, it's ok to phone the police/zoo", "#adjOrb# #planet# in #zodiac# is a gentle reminder keep your Thursdays and Sundays free", "With the #adjOrb# #planet# in your sleep sector, insomniacs should try watching #team#", "With the #adjOrb# #planet# in your fitness sector, enjoy two pies at your next game", "With the #adjOrb# #planet# in your giant hands talking nonsense sector, try to avoid Niall Quinn", "With the #adjOrb# #planet# in your faith sector, a chance encounter with Glenn Hoddle reminds you how to behave in this life", "With the #adjOrb# #planet# sparks a lucky streak, Peter Reid is at the bar and he'll get a round in", "With the #adjOrb# #planet# in your education sector, remember laminated signs of discontent or banter are to be destroyed", "Don't bother going to see #team#'s next game the bloke next to you will smell like he's shat himself, twice.", "A defensive minded #planet# in #zodiac# means it's time to #suffix#", "An attacking focus on this #adjOrb# #planet# in #zodiac# means you could #suffix#", "A counter-attacking focus on this #adjOrb# #planet# in #zodiac# means you should #suffix#", "Parked bus on #planet# in #zodiac#. means you should #suffix#", "Jamie Redknapp and #zodiac# in your #house# house, try to avoid conflict intellectually. Silence", "your outer #planet# and #zodiac# in your #house# house means any mention of gegenpressing will make you poop a little", "Misaligned #planet# makes rising star put in a transfer request at the 11th hour. Rat.", "It's a difficult day if you support #team#, try not to burn your own town", "Opposition between #planet# and #planet2# could result in the need to #suffix#", "Alignment between #planet# and #planet2# could bring about the need to #suffix#", "Misplaced passing between #planet# and #planet2# could breed thoughts that forces you to #suffix#", "Windfall! there is a strong indication #team#'s star player will fall over at the slightest gust of wind", "You are not alone, there are support charities if you are a fan of #team# and they are getting you down", "Looks like #planet# in #zodiac# means #team# are on the up.", "You long serving captain is leaving the club. You can cry if you want to", "With today's #planet# in #zodiac# Robbie Keane's boyhood club is #team#", "With today's #planet# in #zodiac# rival fans of #team# are smashing up bathroom sinks in the away end.", "Retrogade #planet# in #zodiac# reminds you that your star player is racist but it's ok he scores goals");
$counter = 0;
// iterate through zodiac signs
foreach ($zodiac as $sign) {
    $key = array_rand($phrasing, 1);
    $string = $phrasing[$key];
    $randHouses = $go->getValuesFromArray($house, 2);
    $randPlanets = $go->getValuesFromArray($planet, 2);
    $string = str_replace('#zodiac#', $go->getValueFromKey($zodiac), $string);
    $string = str_replace('#team#', $go->getValueFromKey($team), $string);
    $string = str_replace('#adjOrb#', $go->getValueFromKey($adjOrb), $string);
    $string = str_replace('#suffix#', $go->getValueFromKey($suffix), $string);
    $string = str_replace('#team#', $go->getValueFromKey($team), $string);
    $string = str_replace('#gerund#', $go->getValueFromKey($gerund), $string);
    if (preg_match('/#team#/', $string)) {
        $string = str_replace('#team#', $go->getValueFromKey($team), $string);
    }
    $string = str_replace('#house#', $randHouses[0], $string);
    $string = str_replace('#house2#', $randHouses[1], $string);
    $string = str_replace('#planet#', $randPlanets[0], $string);
    $string = str_replace('#planet2#', $randPlanets[1], $string);
    $melinda->goTweet($sign . " - " . ucfirst($string), 'horo');
    $counter += 1;
    sleep(60);