You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very basic PHP application in which I've embedded TinyFileManger. My application uses a $_SESSION variable which contains one of 5 user authority levels within the application. I want to pass the authority level into TinyFileManager as a UserName so that low authority level User (1, 2, or 3) has ReadOnly access and those with a high authority level (4 and 5).
I have set up 5 users in the tinyfilemanager.php and set 1, 2, and 3 as ReadOnly Users and altered these lines -
// always use ?p=
if (!isset($_GET['p']) && empty($_FILES)) {
// fm_redirect(FM_SELF_URL . '?p=');
fm_redirect(FM_SELF_URL . '?p=&username='. $_SESSION['auth_lvl']);
}
But that does not seem to have the desired effect.
The text was updated successfully, but these errors were encountered:
I have a very basic PHP application in which I've embedded TinyFileManger. My application uses a $_SESSION variable which contains one of 5 user authority levels within the application. I want to pass the authority level into TinyFileManager as a UserName so that low authority level User (1, 2, or 3) has ReadOnly access and those with a high authority level (4 and 5).
I have set up 5 users in the tinyfilemanager.php and set 1, 2, and 3 as ReadOnly Users and altered these lines -
But that does not seem to have the desired effect.
The text was updated successfully, but these errors were encountered: