$resu_info = $objSmartgang->getInfoPlanche($pnIdPlanche); if (is_array($resu_info)) { $resu_ficheFab = $objSmartgang->getFicheFabV2($resu_info); //-- récupération de la fiche de fab $objSmartgang->getXmlFile($pnIdPlanche); //-- genere le xml de la fiche de fab $resu_import = $objSmartgang->getImport($resu_info); //-- appel au script de déplacement des fichiers dans IMPORTS // $resu_basket = $objSmartgang->getBasketFile($resu_info); //-- récupération du fichier .basket // $resu_mxml = $objSmartgang->getMxmlFile($resu_info); //-- appel vers la creation du .mxml if (preg_match('/ HP /', $psCode)) { $objSmartgang->getRenameImport($pnIdPlanche, $pnIdCommande); } else { // $objSmartgang->getImpoNumPrinergy($pnIdPlanche); $url = "http://{$ip}/appli/smartgang/metrix/generateMxml2.php?idplanche={$pnIdPlanche}"; $content = $objSmartgang->cURLexec($url); } $objSmartgang->getFicheRetirage($pnIdPlanche); //-- create Fiche de fab retirage PDF $objSmartgang->logFile(basename(__FILE__), "SOLO", "OK ", ": IdPlanche num rush => {$pnIdPlanche}"); $data = "{$pnIdPlanche}|"; } } } } else { $data = "pas de largeur ni hauteur"; $objSmartgang->logFile(basename(__FILE__), "SOLO", "ERR", "{$data}"); } } else { $data = "pas un produit d'amalgame"; $objSmartgang->logFile(basename(__FILE__), "SOLO", "ERR", "{$data}");
* Created by PhpStorm. * User: blond * Date: 16/11/15 * Time: 20:03 */ if (isset($_GET['numero']) && $_GET['numero'] > 0) { //-- si un numero de planche est sup à 0 include '/var/www/appli/lib/srv.php'; //-- load param environement $ip = $_SERVER['SERVER_ADDR']; $pnIdPlanche = $_GET['numero']; include '/var/www/appli/lib/srv.php'; //-- load ip server require_once "/var/www/appli/class/class.gang.php"; //-- load class to work $obj = new smartgang(); $obj->logFile(basename(__FILE__), __FUNCTION__, "RUN", ": {$pnIdPlanche}"); // $obj->getConDbo(); // // $resu_info = $obj->getInfoPlanche($pnIdPlanche); // // $resu = $obj->getCopyXML($resu_info); $obj->logFile(basename(__FILE__), "script", "EXE ", $pnIdPlanche); $url = "http://{$ip}/appli/smartgang/metrix/generateMxml2.php?idplanche={$pnIdPlanche}"; $content = $obj->cURLexec($url); $obj->logFile(basename(__FILE__), "script", "OK ", $content); echo "1"; $obj->logFile(basename(__FILE__), __FUNCTION__, "END", ": {$pnIdPlanche}\n"); } else { echo "0"; }