I have an index.php file which has 2 included files
require("stats.php");
require("stats_encry.php");
- stats.php which has some variable declarations.
- stats_encry.php which has another set of variable declarations.
Now if a user just goes to index.php (by going to mysite.com/root/index.php) via search or directly I want the index to load stats_encry.php
But if the user goes to the index.php?auth=jHh87fBinJ0Nj1EcDPOPxeXQe I want the stats.php loaded instead of stats_encry.php
The idea is to prevent someone from seeing certain contents if they endup in the index.php page by accident. So if I give someone the specific url of the index file with a value added at the end he should be able to see the content (Which will be loaded via stats.php)
How do I do the index.php ? Thanks a lot for any help..
You can just check for
$_GET: