Direct Access Help
I need to find out how to define, if the browser is on login.php so (http://domain.com/login.php) If so then render and error ('no direct acess -> redirect(/); , but if login.php was fetched by jquery "lightbox" or a include('login.php'); I want it to show the login form.
Note: its complicated for me because I need it to figure out if its beeing fetched by the website cause anyone can do a include('http://domain.com/login.php'); and get it.
You can define a variable on every page. Then check within the login.php file if the variable is defined before.
So on every page:
|All times are GMT. The time now is 12:07 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0