SMFHacks.com

Modifications/Themes => General SMF Forum => Topic started by: shuban on February 10, 2017, 12:35:15 pm

Title: In a source file, how do I prompt guests that they are not allowed to enter
Post by: shuban on February 10, 2017, 12:35:15 pm
Let's say I made an action=XXX

and the source file XXX.php

In the source file, I want to do a check to see if they are logged in before continuing the code. How would I do that?
Title: Re: In a source file, how do I prompt guests that they are not allowed to enter
Post by: SMFHacks on February 10, 2017, 01:23:53 pm
Use function disables execution past that point prompts for login
is_not_guest();

Title: Re: In a source file, how do I prompt guests that they are not allowed to enter
Post by: shuban on February 10, 2017, 01:35:29 pm
Thanks