Mailinglisten-Archive |
> hallöle, > vielleicht freut sich ja der ein oder andere in der liste über eine kleine > abwechslung wie diese? heute: der typische arbeitstag <? require_once("coffee.php"); require("cigarettes.php"); class day function start() make_coffe(); get_clothes(); drive_to_work(); start_computers(); } function end($sleep) turn_off_computers(); drive_to_home(); if($sleep!="nosleep") sleep(); } else $this->start(); } } function free() require("girls.php"); require("alcohol.php"); $delight = 10; for($x=1;$x<=$delight;$x++) workflow('private'); drink_alcohol(); chat_with_friends(); get_pizza(); } if($tired) $day->end(); } else go_to_party(); $day_end('nosleep'); } } } function workflow($state) switch($state) case "work": $get_money = array("on_hour" => "180"); break; case "private": $get_money = array("on_hour" => "0"); break; } $i=1; while($work) foreach($work as $time => $money) put($time); get($money); } $i++; if($i>=$time) $work = false; } } } $day = new day; $day->start(); if(!$work) $day->free(); } else workflow('work'); } ?>
php::bar PHP Wiki - Listenarchive