$oCat = new Product();
 $name_cat = filter_input(INPUT_POST, 'name_cat', FILTER_SANITIZE_STRING);
 if (isset($name_cat)) {
     $_SESSION['name_cat'] = $name_cat;
 }
 if (!isset($valid)) {
     $aCat = $oCat->getDataCategories();
     include 'core/Product/view/product-category-view.php';
 } else {
     // Create category choice
     if (isset($c) && 'add' === $c) {
         if (isset($valid) && 'no' === $valid) {
             $btOk = "admin.php?p=product&a=create_cat&c=add&valid=yes";
             $oCat->RequestConfirmation('modif', 'Confirmez-vous nouvelle categories ?', $btOk, $sInitLink, $lang);
         } else {
             $oCat->createCategory($_SESSION['name_cat']);
         }
     } elseif (isset($c) && 'delete' == $c) {
         if (!isset($conf)) {
             $sToken = $oSecure->create_token();
             $btOk = 'admin.php?p=product&a=create_cat&c=delete&valid=yes&id=' . $id . '&conf=yes&token=' . $_SESSION['token'];
             $oCat->RequestConfirmation('supp', 'Confirmer suppression ?', $btOk, $sInitLink, $lang);
         } else {
             $req = 'delete from product_categories where id_cat=' . $id;
             $oCat->DeleteInformation($req, 'admin.php?p=product&a=create_cat&c=init');
         }
     }
     // Update category choice
     if (isset($c) && 'update' === $c) {
         if (isset($valid) && 'no' === $valid) {
             $btOk = "admin.php?p=product&a=create_cat&c=update&valid=yes&id={$id}";