Example #1
0
     if ($parts[0] == "lien") {
         $lien = $parts[1];
     } else {
         if ($parts[0] == "email") {
             $email = $parts[1];
         } else {
             if ($parts[0] == "pwd") {
                 $pwd = $parts[1];
             }
         }
     }
 }
 $leClient = new Client();
 $leClient->email = $email;
 $leClient->pwd = $pwd;
 $numcli = $leClient->getNumclient();
 $laCom = new Commande();
 $laCom->numcom = $lien;
 $laCom->infosCommande();
 if ($numcli == $laCom->numclient) {
     //on vérifie que la commande correspond bien au client
     $_SESSION['numcom'] = $lien;
     //Connexion du client à son compte
     $leClient->connecte();
     //Redirection vers le panier
     $pageSpec = new Page();
     $pageSpec->pageSpecifique("panier-ifip-institut-du-porc");
     $spec = $pageSpec->nomFichier;
     $numrub = $pageSpec->numrub;
     $numcateg = $pageSpec->numcateg;
     $numsscateg = $pageSpec->numsscateg;