[Simplog-devel] blocks.php
Brought to you by:
f-bomb
From: Jim Hu <ji...@ta...> - 2004-09-23 06:11:03
|
Here's my revised version of blocks.php to put the blocks in an array. To display them, include "blocks.php"; foreach ($blockarray as $key=>$block){ echo $block; } To display just the first 3 (for example) include "blocks.php"; foreach ($blockarray as $key=>$block){ if ($key<3) echo $block; } This is much better than what I posted before - as with the problem with isUserAuthorized, using file("blocks.php?blogid=3") doesn't pass the $_SESSION vars, so the login block doesn't act like you're ever logged in. With this approach it works as expected. Jim |