03-09-2017, 01:13 PM
grrr this works as long as i only have one layer for redirect eg
<?php require_once 'init.php';
if (hasPerm([2], $user->data()->id)) {
Redirect::to($us_url_root.'users/adminaccount.php');
}
?>
as soon as i add in a second path on the top of the account pages it breaks
?>
<?php require_once 'init.php';
if (hasPerm([2], $user->data()->id)) {
Redirect::to($us_url_root.'users/adminaccount.php');
}
if (hasPerm([5], $user->data()->id)){
Redirect::to($us_url_root.'users/modaccount.php');
}
}?>
i eventually had intended to have more for additional perm layers
i originally went with building my own site because i though it would be more cost effective but it seems that what engin has is what i actually want
https://ravencraftnetworks.enjin.com/
its a free site
this is the user page with "permissions" they call them tags i didnt want to have to buy the ultra plan its 29 a month or more depending on if you add a ts3 server i would love to see the enjin system reverse engineered but i dont see that happening lol they have too much there donation craft etc but that could be integrated idk
<?php require_once 'init.php';
if (hasPerm([2], $user->data()->id)) {
Redirect::to($us_url_root.'users/adminaccount.php');
}
?>
as soon as i add in a second path on the top of the account pages it breaks
?>
<?php require_once 'init.php';
if (hasPerm([2], $user->data()->id)) {
Redirect::to($us_url_root.'users/adminaccount.php');
}
if (hasPerm([5], $user->data()->id)){
Redirect::to($us_url_root.'users/modaccount.php');
}
}?>
i eventually had intended to have more for additional perm layers
i originally went with building my own site because i though it would be more cost effective but it seems that what engin has is what i actually want
https://ravencraftnetworks.enjin.com/
its a free site
this is the user page with "permissions" they call them tags i didnt want to have to buy the ultra plan its 29 a month or more depending on if you add a ts3 server i would love to see the enjin system reverse engineered but i dont see that happening lol they have too much there donation craft etc but that could be integrated idk