mgd_update_public

Name

mgd_update_public -- Declare personal information public/hidden

Synopsis

bool mgd_update_public(int id, bool address, bool phone, bool homepage, bool email, bool extra);

Description

Declares parts of the person record as public or hidden by setting the bits of the info field. If a bit is set, then the corresponding fields of the record are publicly readable. Only administrators and the user himself may change the publicity information.

Returns true if successfull. Returns false on failure.

Example

<?php
 $id       = 13;
 $address  = -1;
 $phone    = -1;
 $homepage = 1;
 $email    = -1;
 $extra    = -1;

 mgd_update_public( $id, $address, $phone, $homepage, $email, $extra );
?>