How can I hide some content from some users with PHP?
<p>I have created an intranet for our company using PHP. The same menu appears on every page, and includes links to sensitive pages and documents (like Word files).</p>

<p>Currently only in-office employees have access to the site, but we'd like to open it up to some out-of-office contractors. The catch is that I'd have to restrict access for certain content.</p>

<p>I know <a href="http://www.elated.com/articles/password-protecting-your-pages-with-htaccess" rel="nofollow">how to password-protect site directories with Apache</a>, but I'd rather hide the menu options themselves.</p>

<p>How would you approach this?</p>

<p><strong>Clarification</strong>: This is in an environment where everyone is logged in to our Windows network, locally or via VPN, but currently nobody has to log in to see my intranet site. The ideal solution would not require them to do anything extra, if that's possible.</p>
