[Simplog-devel] Suggested modification of overall flow between index/header/etc
Brought to you by:
f-bomb
From: Jim Hu <ji...@ta...> - 2004-09-02 21:26:03
|
This may be getting beyond the simple in Simplog, but I think it wouldn't be hard to do. In edit.php, there is a snippet of code that sets which blog to show based on the user: if(!$_REQUEST['blogid']) { $sql = "SELECT blog_id from blog_acl where user_id=$uid order by blog_id"; $res = $db->Execute($sql); $blogid = $res->fields[blog_id]; } else { $blogid = $_REQUEST['blogid']; } It seems to me that this should be in header.php, so it would apply to all views. $blogid should be passed by login.php and logout.php so that if a user goes back to the blog they logged out of, instead of to a default blog. Jim |