Re: Problem with Auth

From: Date: Sun, 20 Mar 2005 06:57:46 +0000
Subject: Re: Problem with Auth
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18164@lists.php.net to get a copy of this message
Well I'm in the home stretch. The auth code lives in its own little file, 'config_auth.php' and is called into the main config file thus: require_once ('config_auth.php'); $smarty->assign('sessionid', '&'.strip_tags(SID)); The SID constant prints out as PHPSESSID[or whatever you have it set as]=12383428234xxxetc. Add this to the smarty templates: <div id="submenu"> <ul> <li><a href='{$site_name}docs/addbook.htm?id={$id}{$sessionid}'>Edit</a></li> <li>etc</li> </ul> </div> And I've finally got Auth working with DB and SMARTY.

« previous php.pear.general (#18164) next »