koan village 2: the end

[php]if ($_COOKIE[‘protracker’] > 11) { [/php]
the guru had not yet reached the end of the koan village 2.
[php]} else {
setcookie(“protracker”, 0, $cooltime, “/”, “.koanoftheday.com”);[/php]
the guru picked up mr tortoise and he set him on the couch. he set mrs tortoise next to him, too. the two of them snuggled up next to each other.

the tortoise yawned and said, “so sleepy.”

mrs tortoise rubbed the back of his shell.

the tortoise closed his eyes.

the world began to fade to black.

and then–

[php]$_SESSION[‘newitem’] = “victory?”;
$_SESSION[‘zencolor’] = “blue”;
[/php]

[php function=13]

[php]require_once(‘./tweet/OAuth.php’);
require_once(‘./tweet/twitter.class.php’);

$consumerKey = ‘uH6TKdlZx3xEqO3TYJVSw’;
$consumerSecret = ‘yuMGi08Ww6vzM8AeP8wp6kZbL9ljWQo5sS49TYST0’;
$accessToken = ‘1075499472-qPeAR953AzhYJAcMMbngld6FrfiIImAtS0cx95I’;
$accessTokenSecret = ‘YCkmvsGyrIteYoZURr1bAvnUPysNhntgQ962PJlHXSM3O’;

if (!isset($_COOKIE[‘studentname’])) $thetweet = “a student has beaten the koan village 2 at koanoftheday.com/village2″;
else $thetweet = $_COOKIE[‘studentname’].” has beaten the koan village 2 at koanoftheday.com/village2″;

$twitter = new Twitter($consumerKey, $consumerSecret,
$accessToken, $accessTokenSecret);

try {
$twitter->send($thetweet);
echo ‘@koanoftheday has announced your victory, ‘;

} catch (TwitterException $e) {
}[/php]would you like to tweet it?
[php]} // the end [/php]

bodhi: 1 ·  main  ·  archives  ·  read "love stories"  ·  #zen