Ah ok u would like to hide hyperlinks for users that are not logged in (if i understood that right lol)
Yes it will be session based then. Then you can simply define a function to check if the user is logged to return a true or false statement and use something like the following to print different links for the logged user and the guest.
This will direct all logged users to the correct path and direct all unlogged users to the set page (i put register page)
Hope that helps lol hiding the true path to downloads is complicated, but obscuring path for unregistered users is that easy
Yes it will be session based then. Then you can simply define a function to check if the user is logged to return a true or false statement and use something like the following to print different links for the logged user and the guest.
Code:
if (islogged($session))
{
print"
<a href=\"/path1/index.php\">path1</a>
<a href=\"/path2/index.php\">path2</a>
<a href=\"/path3/index.php\">path3</a>
";
}else{
print"
<a href=\"register.php\">path1</a>
<a href=\"register.php\">path2</a>
<a href=\"register.php\">path3</a>
";
}
Hope that helps lol hiding the true path to downloads is complicated, but obscuring path for unregistered users is that easy
Comment