<?
	if(!defined('CONFIG.INC')) require_once($_SERVER['DOCUMENT_ROOT'] . '/../lib/lib/config.inc');
	require_once($libdir . '/user.inc');
	$db = DB::connect();
	if(!isset($userObj) || !$userObj->isSuper()) $res = $db->submitQueryClose("insert into log_site set remote='" . md5($_SERVER['REMOTE_ADDR']) . "'");

	$bodyid='home';
	$headinclude = <<<HEAD
<link rel="stylesheet" type="text/css" href="/_src/style/homepage.css?r=rita" />

HEAD;
/*
	if((preg_match('|MSIE 6|', $_SERVER['HTTP_USER_AGENT']) || preg_match('|MSIE 5|', $_SERVER['HTTP_USER_AGENT'])) && preg_match('|Windows|', $_SERVER['HTTP_USER_AGENT'])){
		$headinclude .= "<style type=\"text/css\">#buzzworthy #items{background: none; width: 223px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='/_images/gui/buzzworthy-top.png');}</style>\n";
	} 
*/
	include($incdir . '/site-top.inc');
?>
<p class="standardsAlert"><a href="/standards.ph7"><img src="/_images/gui/ahem.gif" width="302" height="130" alt="" /></a></p>
<div id="content-intro">
<div id="homebee"><a href="https://www.onebee.com/" title=""><img src="/_images/gui/home-onebee.gif" alt="one bee" width="167" height="76" /></a></div>

<p class="intro">
<span class="once">There used to be a blog here, but now&#8230;who has the time?</span>
Here are the last five great movies I&rsquo;ve watched:
</p>
<? include($incdir . '/reviews.inc'); ?>
</div>

<? 
	include($incdir . '/site-dashboard.inc'); 
	/*** -- no need to check age; Rita is evergreen
	$res = $db->submitQuery("select p.id as 'post_id', datediff(curdate(), if(p.type='ent',date(p.created),p.date)) as 'date_diff' from posts p where p.status='publish' and if(p.type='ent',date(date_sub(p.created, interval 3 hour)),p.date) <= curdate() group by p.id order by date desc, type, created desc limit 0, 1");
	if($res && $db->hasRows()){
		extract($db->getRow());
		if($date_diff > 21) $quite_old = true;
	}	
	$db->close();
	***/
?>

<div id="content">
<? include('index-list.ph7'); ?>
<div id="leftcolumn">
<form method="post" action="/search/">
<div id="search">
<input type="text" name="query" size="21" maxlength="60" value="Site Search"  onfocus="focusForm(this)" onblur="blurForm(this)" /><input class="img" type="image" src="/_images/gui/search-arrow.gif" title="Search" alt="Search" />
</div>
</form>
<p class="intro">
This is the most recent thing I posted here. 
<?
	if(!empty($quite_old)){
		print 'It may be so outdated that it&rsquo;s completely irrelevant.';
	}
?>
</p>
<p class="intro">
Browse the <a href="/writing/">blog archive</a>.
</p>
<p id="copyright">&copy; onebee &middot; all rights reserved</p>
</div>
</div>
<?
		include($incdir . '/site-base.inc');
?>