static function is_max($max = null) { $tuser = new CTableCat(); if($max === null) { $max = CTableConfiguration::get_value_by_element('USER_MAX_NUMBER'); } if($max <= 0) { return false; } return ($tuser->get_nb() >= $max); }
$error_signe['menu'] = '*'; } if ($nom=='') { $error_type = 2; $error_signe['nom'] = '*'; } if ($error_type > 0) { //erreur de type champ non valide $msginfo = 'Champ non valide'; break; } $values = array('id_cat'=>$id, 'nom_cat'=>CFunction::addslashes($nom),'secteur_cat'=>$idcat, 'actif'=>$etat); $tcat = new CTableCat($values); $tcat->update(); $msginfo = 'Catégorie bien modifiée'; $a = 0; break; case 6 : // Filtrer Menu if(isset($_GET['idsec'])) $_SESSION['idsec'] = $_GET['idsec']; break; } /*------------------------------------------------------ A FAIRE DANS TOUS LES CAS --------------------------------------------------------*/ if(($_SESSION['idsec']!=0) && ($_SESSION['idsec']!='')) $filtre = " WHERE secteur_cat =".$_SESSION['idsec'];