Dirty-Rockstar Posted August 26, 2007 Share Posted August 26, 2007 I have a site with a sidebar with links and then whatever i want to display on the right (sidebar is an include) on index.php it looks for a session and if theres no session theres a standard die message of "login to view". but i had this really crazy idea where to make my die message an actual "page" where users that are not logged in viewing the index page would see a statistics page (multiple queries to db displaying stuff). is this proper php formatting? can it be done without any security holes? can it be done period? Quote Link to comment https://forums.phpfreaks.com/topic/66739-solved-die-question/ Share on other sites More sharing options...
Ken2k7 Posted August 26, 2007 Share Posted August 26, 2007 It CAN be done. I'm not sure what you mean by "proper" php formatting and as for security holes, it depends on your code. Quote Link to comment https://forums.phpfreaks.com/topic/66739-solved-die-question/#findComment-334435 Share on other sites More sharing options...
Dirty-Rockstar Posted August 26, 2007 Author Share Posted August 26, 2007 It CAN be done. I'm not sure what you mean by "proper" php formatting and as for security holes, it depends on your code. im new at php, and im always scared im going to leave something open for someone to break my tables. By formatting i ment is it a standard practice to use a die message to display a lot of information. I guess it shouldnt hurt anything. ill try it...thanks Quote Link to comment https://forums.phpfreaks.com/topic/66739-solved-die-question/#findComment-334438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.