[logging system Olivier Schwander **20110505184201 Ignore-this: 9e5bd7acb9c9195bee5e548a828d516a ] hunk ./index.php 39 +log() ?> + hunk ./socialize.php 4 +require("rb.php"); +R::setup("sqlite:socialize.db"); hunk ./socialize.php 54 + public function friends() { + print "\n"; + } + + public function log() { + if ($this->owner()) { + print "\n"; + } + } + + public function addfriendbox() { + if ($this->owner()) { + print "
\n"; + print "\n"; + print "\n"; + print "\n"; + print "
\n"; + } + } + hunk ./socialize.php 150 + $visitor = R::findOne("visitor", "identity = ?", array($openid->identity)); + if (! $visitor) { + $visitor = R::dispense("visitor"); + } + + $visitor->import($this->visitor); + $dateTime = new DateTime("now"); + $visitor->lastSeen = $dateTime->format("Y-m-d H:i:s"); + + R::store($visitor); +