Matt777 Member Jan 14, 2013 #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 ?
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 ?
Matt777 Member Jan 14, 2013 #2 I found an alternative solution... BUT it would still be cool if I can do the above to add an extra layer of security
I found an alternative solution... BUT it would still be cool if I can do the above to add an extra layer of security
J James Well-known member Jan 14, 2013 #3 Well, you'd have to integrate the core XenForo framework by loading the autoloader and dependency classes etc, then perform a user check. http://xenforo.com/community/threads/get-user-information-custom-field-in-kotomi-script.35003/
Well, you'd have to integrate the core XenForo framework by loading the autoloader and dependency classes etc, then perform a user check. http://xenforo.com/community/threads/get-user-information-custom-field-in-kotomi-script.35003/