• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How do I add user group permissions to an independent PHP file?

#1
I created a new, run-of-the-mill PHP file in my Xenforo directory called ShowVideo.php.

I don't want unregistered users to be able to view this PHP file however. How would I prevent unregistered users from viewing it, using PHP if possible ? (n)