static function is_max($max = null) { $tuser = new CTableMotcle(); 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_motcle'=>$id, 'nom_motcle'=>CFunction::addslashes($nom),'cat_motcle'=>$idcat); $tcat = new CTableMotcle($values); $tcat->update(); $msginfo = 'Catégorie bien modifiée'; $a = 0; break; case 6 : // Filtrer sec if(isset($_GET['idsec'])) $idsec = $_GET['idsec']; $_SESSION['secteur'] = $idsec; break; case 66 : // Filtrer cat if(isset($_GET['idcat'])) $idcat = $_GET['idcat']; $_SESSION['idcat'] = $idcat; break; }