[pmwiki-users] authuser / Setting the Author Automatically - all blank
H. Fox
haganfox at users.sourceforge.net
Wed Feb 8 11:00:07 CST 2006
On 2/8/06, H. Fox <haganfox at users.sourceforge.net> wrote:
> On 2/8/06, Dominique Faure <dominique.faure at gmail.com> wrote:
> So now we have
>
> include_once("$FarmD/scripts/author.php");
> if($AuthId && !@$_COOKIE[$CookiePrefix.$AuthorCookie]) {
> $Author = $AuthId; setcookie($CookiePrefix.$AuthorCookie,
> $Author, $AuthorCookieExpires, $AuthorCookieDir); }
The cookie prefix is handled by scripts/author.php, so it should be
include_once("$FarmD/scripts/author.php");
if($AuthId && !@$_COOKIE[$AuthorCookie]) {
$Author = $AuthId; setcookie($AuthorCookie, $Author,
$AuthorCookieExpires, $AuthorCookieDir); }
Hagan
More information about the pmwiki-users
mailing list