Beispiel #1
0
 $pnIdUtilisateur = 687;
 include '/var/www/appli/lib/srv.php';
 $ip = $_SERVER['SERVER_ADDR'];
 require_once '/var/www/appli/class/class.gang.php';
 $objSmartgang = new smartgang();
 $objSmartgang->logFile(basename(__FILE__), "SOLO", "RUN", "/solo/start.php");
 $start = $objSmartgang->getmicrotime();
 if (isset($_GET['idcommande']) && $_GET['idcommande'] > 0) {
     $pnIdCommande = $_GET['idcommande'];
     $pnIdUtilisateur = 687;
     $objSmartgang->logFile(basename(__FILE__), "SOLO", "EXE", "Commande : {$pnIdCommande}");
     $conDbo = $objSmartgang->getConDbo();
     //-- conn to dbo
     if (!$conDbo) {
         //-- success connect
         $row = $objSmartgang->getInfoCommande($pnIdCommande);
         //-- recup des infos de commande
         if (is_array($row)) {
             //-- si pas d'erreur à la lecture
             if ($row[0]->TypeProduit == '1') {
                 //-- si il s'agit d'un produit d'amalgame
                 $pnLargeur = $row[0]->LargeurFluxPao;
                 $pnHauteur = $row[0]->HauteurFluxPao;
                 $pnIDSociete = $row[0]->IDSociete;
                 $psFamilleDeProduction = $row[0]->FamilleDeProduction;
                 $psCode = $row[0]->Code;
                 if ($pnLargeur > "0" && $pnHauteur > "0") {
                     //-- si la commande est passée par le flux
                     if (isset($_GET['idatelier']) && $_GET['idatelier'] > 0) {
                         $pnIDAtelier = $_GET['idatelier'];
                     } else {