“Eleanor & Zsofia”,
1 => “Catalin & Chatlin”,
2 => “Dima”,
3 => “Elyse & Jelena”,
4 => “Charlotte & Claire”,
5 => “Duncan & Osman”,
6 => “Agnes & Bisera”,
7 => “Adea & Maggie”,
8 => “Pirachula”
);
$start_date = “2014-02-03”;
$current_date = date(“Y-m-d”);
$days = sizeof(GetDays($start_date, $current_date))-1;
$current_guy = $days % 9;
$name = $people[$current_guy];
$tomorrow_name = $people[($current_guy+1) % 9];
// choose the cat
$cat_number = rand(0,1000) % 93;
$cat_address = “http://blog.berlin.bard.edu/cats/”.$cat_number.”.jpg”;
// send the e-mail
$headers[] = ‘From: Kitchen of 15
$headers[] = ‘Content-type: text/html’;
$subject = “Kitchen Cleaners of the Day: “.$name;
$message =
‘
Dear 15ers,
The residents that are responsible today for cleaning me are: ‘.$name.’
The residents that are responsible tomorrow are: ‘.$tomorrow_name.’
Please make sure that:
* the sinks are empty
* the counters and stove tops are clean
* the dishwashers are dishwashing
* the garbage bins are not on fire
Yours,
The Kitchen
Here is a cat: (*)
* If you are using Gmail, in order to see the cat, you need to select “Display Images” at the top of the e-mail.
** This is an automatic message.
‘
;
if ($GLOBALS[‘double_bug’] == 0)
{
if (isset($_GET[‘curcubeu’]))
{
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]>’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
wp_mail(‘[email protected]’, $subject, $message, $headers);
}
if (isset($_GET[‘test’]))
{
wp_mail(‘[email protected]’, $subject, $message, $headers);
}
}
echo $message;
?>