<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: is the user logged in ?</title>
  <link>http://www.activecollab.com/forums/topic/1610/</link>
  <description>Recent posts on topic: is the user logged in ?</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 04 Dec 2008 03:35:18 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/7702/#post7702</link>
    <guid>http://www.activecollab.com/forums/post/7702/#post7702</guid>
    <title>Post #5 by chagam</title>
    <dc:creator>chagam</dc:creator>
    <description><![CDATA[<p>Thanks Ilija,<br />
<br />
Y almost have something working. I included all the fils for testing purposes. My final goal is to have just a small set of instructions to check if the user is logged on. But to achieve this, I have to understand php-object better :)<br />
<br />
Thanks for your help<br />
<br />
Chag</p>]]></description>
    <pubDate>Fri, 11 May 2007 14:09:53 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7701/#post7701</link>
    <guid>http://www.activecollab.com/forums/post/7701/#post7701</guid>
    <title>Post #4 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>You don't need an instance. Simple CompanyWebsite::init() should work. Still, I would suggest that you replicate login instead of loading all the files...</p>]]></description>
    <pubDate>Fri, 11 May 2007 12:14:19 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7700/#post7700</link>
    <guid>http://www.activecollab.com/forums/post/7700/#post7700</guid>
    <title>Post #3 by chagam</title>
    <dc:creator>chagam</dc:creator>
    <description><![CDATA[<p>Hi,<br />
<br />
In fact, I installed mediawiki and I just want that people who are logged on collab can read the wiki. I added a include in the mediawiki index.php. This include will just check if the user is logged on. If not, then he's redirected to the login page.<br />
<br />
I looked at the CompanyWebsite.class.php. From what I understand, I need to :<br />
<br />
$foo = new CompanyWebsite;<br />
$foo-&gt;init();<br />
<br />
<br />
then, I should be able to use logged_user().<br />
<br />
Am I right ?</p>]]></description>
    <pubDate>Fri, 11 May 2007 11:45:16 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7699/#post7699</link>
    <guid>http://www.activecollab.com/forums/post/7699/#post7699</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Easies way to do this is to open CompanyWebsite class (in /application/models/CompanyWebsite.class.php) and analyze initLoggedUser() method and methods called by it. There you'll see how activeCollab handles user login so you'll be able to reproduce it in your own scripts.<br />
<br />
Btw, if you are extending activeCollab it's far easier to do that from inside than with outside scripts.</p>]]></description>
    <pubDate>Fri, 11 May 2007 09:34:23 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7698/#post7698</link>
    <guid>http://www.activecollab.com/forums/post/7698/#post7698</guid>
    <title>Post #1 by chagam</title>
    <dc:creator>chagam</dc:creator>
    <description><![CDATA[<p>Hi,<br />
<br />
I installed activeCollab and I'd like to use the authentication system to disable access to some php pages I added.<br />
<br />
Is there an easy way to know if a user is logged on without loading all the activeCollab files ? I spent 5 hours yesterday trying to paste code sections from activeCollab to a 'authentication.php' file wich I could include in my php pages.<br />
<br />
All I want is if the user has logged on, he can read the page. If he didn't, he is redirected to the login page.<br />
<br />
thanks<br />
<br />
Chag</p>]]></description>
    <pubDate>Fri, 11 May 2007 08:57:06 UTC</pubDate>
  </item>
</channel>
</rss>