Hi,

Matthias Gelbhardt <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> Besides all that compiling problems and segmentation faults I have also a 
> 1.4. installation running with PHP3, with my homepage on it. There I would 
> like to do an album of my photos. I would like to do that with 
> blob-serving. Unfortunatly the manual seems to leave that topic a little 
> bit behind.. How can I make a list of attachments from a cetain article, 
> like mgd_list_topic_articles ...

$article = mgd_get_article($id);
if($att = $article->listattachments()) while($att->fetch()) {
 ... display a href or an img ...
}

> Another thing is, that I have another page on my server, with a secret area 
> in it, which only should be available to people logging in. Is there a 
> possibility to make this area available to only ONE login, read only?

you can do this in PHP:

if($midgard->user != $authorized_user)
  head("Location: /"); // back to the home page

or if you compile the lib with pagelinks (you also have to re-compile mod_midgard and 
php) but there is no pagelink support in any admin interface yet, so you'll have to 
create the pagelinks with some php functions.

Hint: create two pagelinks, one with the grp field set to 0 that wil point to a 
default page, and another one (same name and up) with the grp field set to the group 
the user belong to (create a group especially for this user) that will point to the 
protected page.

The pagelink method allows you to display the link on a public page, but if a 
non-authorized user follows the link, it will be on a different page than the 
authorized user.

> Matthias
> 
> -- 
> Matthias Gelbhardt   |   brought to you by CommY-Entertainment
> [EMAIL PROTECTED]        |   with the power of Debian-Linux
> http://www.commy.de  |
> +49 (0)170 547 10 11 |   Abi 2000 im Netz http://abi2000.rats-ms.de
> 
> PGP-Fingerprint: 97DF 5DB4 2A29 247B 0A68  99CA 453D 9ABA 8BF3 42EA

-- 
Best regards,                                 David Guerizec
http://www.guerizec.net/david/       http://www.imuable.org/
http://www.midgard-project.org/ http://www.aurora-linux.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to