aggiunta funzione livello_modulo
This commit is contained in:
@@ -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']."'";
|
||||
|
||||
Reference in New Issue
Block a user