Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($2 == LIST) {
- var %ACL.tabla = usuarios
- var %ACL.sql = SELECT U.id_usuario, U.usuario, P.id_privilegio, P.privilegio, UP.id_usuario, UP.id_privilegio FROM user_prvs AS UP INNER JOIN usuarios AS U ON UP.id_usuario = U.id_usuario INNER JOIN privilegios AS P ON UP.id_privilegio = P.id_privilegio
- if ($dbGet(%ACL.tabla,%ACL.sql)) {
- msg $nick
- while ($dbResults) {
- set %ACL.usuario $hget(db_results,usuario)
- set %ACL.privilegio $hget(db_results,privilegio)
- timer 1 1 msg $nick $theme(&primary;,$hget(db_results,usuario) $hget(db_results,privilegio))
- }
- mysql_free %res
- elseif (!$dbResults) {
- msg $nick No se han encontrado resultados.
- unset %ACL.*
- }
- }
- /*
- * Cierro if () ACL LIST
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement