. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ G::LoadClass('Installer'); $inst = new Installer(); G::LoadClass('processes'); $oProcess = new Processes(); //Get Available autoinstall process $availableProcess = $inst->getDirectoryFiles(PATH_OUTTRUNK."autoinstall","pm"); $path=PATH_OUTTRUNK."autoinstall".PATH_SEP; $message=""; foreach($availableProcess as $processfile){ $oData = $oProcess->getProcessData ( $path . $processfile ); $Fields['PRO_FILENAME'] = $processfile; $Fields['IMPORT_OPTION'] = 2; $sProUid = $oData->process['PRO_UID']; if ( $oProcess->processExists ( $sProUid ) ) { $message.="$processfile - Not imported (process exist)
"; }else{ $oProcess->createProcessFromData ($oData, $path . $processfile ); $message.="$processfile - OK
"; } } echo $message; ?>