n1h Posted October 22, 2007 Share Posted October 22, 2007 Hello coders I have recently themed this script for my site but i have run into some difficulty - When users login they see the text Viewing overview of StarCP - When admins login it shows them the latest statistics about invoices ect - Both texts are displayed on the same page The following piece of code is a server markup on the page if ($_SESSION["my_type"]=="admin") {Is it possible for me to copy and change this to if ($_SESSION["my_type"]=="user") {Please forgive me if i have made any mistakes as i dnt really venture into php coding and this is my first time Link to comment Share on other sites More sharing options...
Synook Posted October 22, 2007 Share Posted October 22, 2007 Yes, why not? Just make sure that "user" is actually a type (e.g. it is not "client" etc.) Link to comment Share on other sites More sharing options...
n1h Posted October 22, 2007 Author Share Posted October 22, 2007 Yes, why not? Just make sure that "user" is actually a type (e.g. it is not "client" etc.)Thanks for you suggestion Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.