setDomain(1); } //droits d'acces emprunteur/notice if ($gestion_acces_active==1 && $gestion_acces_empr_notice==1 && $dom_id==2) { $dom= $ac->setDomain(2); } if (is_object($dom)) { switch ($fname) { case 'getNbResourcesToUpdate': $nb=$dom->getNbResourcesToUpdate(); ajax_http_send_response($nb); break; case 'updateRessources' : if(!$nb_done) $nb_done=0; $nb=$dom->applyDomainRights($nb_done,$chk_sav_spe_rights); ajax_http_send_response($nb); break; case 'cleanResources' : $dom->cleanResources(); ajax_http_send_response('done'); default: break; } } ?>