Welcome Guest, Not a member yet? Register   Sign In
Community Auth
#13

[eluser]kacyblack[/eluser]
Sorry Skunkbad, I made a mistake, this is the simple approach i finally implementate, but I don't know if its safe and okay: I implemented it on user_index.php


Code:
<?php




           // If a customer is logged in
      if( isset( $auth_level ) && $auth_level == 1 )
      {
       echo '<h1>User Index</h1>
<p>This is special content only seen when logged in.
This page could hold any number of things that logged in
users should see or do. Special downloads, videos, information, and top secret stuff...
THIS IS FOR CUSTOMERS ROLE</p>';

      }
      
      // If an admin is logged in
      if( isset( $auth_level ) && $auth_level == 9 )
      {
       echo '<h1>User Index</h1>
<p>This is special content only seen when logged in.
This page could hold any number of things that logged in users should see or do.
Special downloads, videos, information, and top secret stuff...
THIS IS FOR ADMINISTRATORS ROLE</p>';
      }



?&gt;



Please Respond, Thanks


Messages In This Thread
Community Auth - by El Forum - 08-23-2009, 09:45 PM
Community Auth - by El Forum - 01-30-2012, 05:03 PM
Community Auth - by El Forum - 02-21-2014, 01:13 AM
Community Auth - by El Forum - 02-21-2014, 02:02 PM
Community Auth - by El Forum - 02-24-2014, 09:05 AM
Community Auth - by El Forum - 02-24-2014, 10:13 AM
Community Auth - by El Forum - 02-24-2014, 10:51 AM
Community Auth - by El Forum - 02-24-2014, 03:29 PM
Community Auth - by El Forum - 02-24-2014, 04:51 PM
Community Auth - by El Forum - 02-25-2014, 06:36 AM
Community Auth - by El Forum - 02-25-2014, 08:44 AM
Community Auth - by El Forum - 02-26-2014, 12:23 PM
Community Auth - by El Forum - 02-27-2014, 01:28 AM
Community Auth - by El Forum - 02-27-2014, 01:30 AM
Community Auth - by El Forum - 02-27-2014, 07:10 AM
Community Auth - by El Forum - 02-27-2014, 07:34 AM
Community Auth - by El Forum - 02-27-2014, 07:46 AM
Community Auth - by El Forum - 02-28-2014, 09:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB