<?php
/**
* PHPoem
* Work Efficiency Agent
*
* @author Kasper Skårhøj <kasper@typo3.com>
*/
// Set environment:
$wifeStatus="Not home this week";
$workMode="extended";
initWeekAtWork($wifeStatus,$workMode);
// Initialize settings
ignore_friends_calling(1);
tapeAllEpisodesOfFriends(1);
enablePlaylistWithChristianMusic(1);
// Check conditions
checkCoffeeInKitchen();
checkSupplyOfNonsmellySocks();
$weekdays = explode(",", "monday,tuesday,wednesday,thursday,friday");
foreach ($weekdays as $day) {
// New morning:
echo "Talk to God first, Kasper.";
if ($HTTP_GET_VARS["statement"]=="I'll do that later") {
echo "OK, that's your choise,
but you know how important that is.";
}
doProgramming();
[...]
La suite de celui là et 2 autres PHPoem
ici.