<?php

if(isset($_SESSION['sesUser'])) {

function mycoursesguide () {
//if(funAccess("mycoursesguide","OP")) {

global $prefix;
list($lvUser) = mysql_fetch_row(mysql_query("SELECT livello FROM ".$prefix."_user WHERE idUser='".$_SESSION['sesUser']."'"));

if ($lvUser > '3') {
echo '<div class="boxhelpclass">';
echo 'Sezione dedicata al Professore
';
//echo '$defaultLanguage';
//echo '$op';
readfile("italian/forumguide.htm");
echo '</div>
';
}
else {
echo '<div class="boxhelpclass">';
echo 'Sezione dedicata allo studente';
//@readfile($defaultLanguage.'/'.$op.'.htm');
echo '</div>
';
}
//} else echo "You can't access";
}// end function

switch($op) {
case "mycoursesguide" : {
mycoursesguide();
};break;
}
}
?>

ecco il file!!!