Actually, all the data you need is in the global $_USER array (to which you have access when you include lib-common.php). $_USER['username'], $_USER['uid'], etc.
There's a nice
Beginner's Guide to Geeklog Programming in the wiki that you may want to read for details.
bye, Dirk