This topic contains 0 replies, has 1 voice. Last updated by Kris Erlewine 4 years, 7 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday May 24th, 2012 at 3:18 pm #14499 | |
I have a PHP/MySQL database app in the directory public_html/jobbase outside of WP which is in the directory public_html/wordpress. I am embedding the main PHP page of the app into a WP page using an iframe. The WP page is protected via S2M. Now I need to protect the PHP page from being accessible outside of S2M. Following the directions found at http://www.s2member.com/kb/protecting-non-wordpress-content-with-s2member/ I have inserted the following code at the top of my PHP page:
When I try to load the page when logged in as admin or a test user with Level 1 privileges, I get the “Permission denied!” response. Does something need to replace “// User is allowed to view, so display something here.” to make this function and protect the external (from WP) PHP file? TIA
|