aggiunta funzione livello_modulo

This commit is contained in:
2017-09-24 10:49:57 +02:00
parent a28bd004d6
commit c9bc1aa71f

View File

@@ -128,6 +128,14 @@ function isadmin () {
}
}
function livello_modulo ($level) {
global $DB_ID;
$query = "SELECT nome FROM livelli WHERE livello = $level";
$res = mysql_query( $query, $DB_ID );
$dato = mysql_fetch_array ( $res );
return $dato[nome];
}
function carica_utente () {
global $_SESSION, $CONF, $DB_ID;
$query = "SELECT * FROM utenti where utente = '".$_SESSION['username']."'";