entries->load ($id); if (!$entry[0] || $entry[hidden]) die ('Access denied'); else $_GET[userid] = $userid = $entry[user]; } else $page = 'index.php?userid='.$userid; if ($_SERVER['REMOTE_ADDR'] == '64.246.26.126' && $_SERVER['HTTP_USER_AGENT'] == 'ApacheBench/1.3d') die('Thanks for playing!'); $stats->hits->store ( array( 'page' => $page, 'ip' => $_SERVER['REMOTE_ADDR'], 'referrer' => $_SERVER['HTTP_REFERER'], 'useragent' => $_SERVER['HTTP_USER_AGENT'], 'at' => $datetime->theTime())); if ($userid) { $user = $blog->users->load ($userid); if (!$user || $user[has_blog] != 1) die ('That user has no blog here. Move along...'); } else $user = array ('fullname' => 'mibus & co'); $site_hits_a = $db->fetch_array ($db->query("SELECT COUNT(*) FROM stats_hits WHERE at > DATE_SUB(NOW(), INTERVAL 1 DAY) AND page = '$page'")); $site_hits = $site_hits_a[0]; $dir = opendir ("$_SERVER[DOCUMENT_ROOT]/styles"); while ($file = readdir($dir)) { if ($file[0] == '.') continue; $styles[] = $file; } sort($styles); function stylename ($a) { return ucwords(basename("$a", '.css')); } if (!$style) $style='Default'; ?> <?=$user[fullname]?>'s blog

's blog

This page uses CSS, but your browser doesn't support it. I recommend Mozilla Firefox.
entries->search ("WHERE $cond hidden=0 ORDER BY posted DESC LIMIT 10") as $entry) { $blog->entries->hit ($entry[0]); if (!$user[username]) { // planet-style blogs $userinfo = $blog->users->load($entry[user]); $userinfo[fullname] = "$userinfo[fullname]"; $userinfo[fullname] .= ' - '; } $comments_number = $blog->comments->get_number ("WHERE entry = $entry[0]"); if ($comments_number == 1) $comments = "(1 comment)"; else $comments = "($comments_number comments)"; // HACK HACK: TODO: FIXME! $userinfo[jid] = $entry[user]==1?'mibus@mibus.org':'tmh198@jabber.org'; ?>


comments->search ("WHERE entry = $id") as $comment) { $userinfo = $blog->users->load($comment[user]); ?>

Add your own comment: