Пример #1
0
            $e->stepAjax(UI_MSG_ERROR);
            continue;
        }
    }
    if (!$sender->delete_file) {
        CAppUI::stepAjax("CEAIDispatcher-message_dispatch");
        continue;
    }
    try {
        if ($sender->_delete_file !== false) {
            $source->delFile($_filepath);
            if ($fileextension_write_end) {
                $source->delFile("{$_filepath_no_ext}.{$fileextension_write_end}");
            }
        } else {
            dispatchError($sender, $filename_excludes, $path_info);
        }
    } catch (CMbException $e) {
        CCronJobLog::$log = $e->getMessage();
        $e->stepAjax(UI_MSG_WARNING);
        continue;
    }
    CAppUI::stepAjax("CEAIDispatcher-message_dispatch");
}
fclose($file);
// Libère le verrou
$lock->release();
if ($profile) {
    $xhprof_data = xhprof_disable();
    $xhprof_root = 'C:/xampp/htdocs/xhgui/';
    require_once $xhprof_root . 'xhprof_lib/config.php';
Пример #2
0
            CEAIDispatcher::createFileACK($acq, $sender);
        } catch (Exception $e) {
            if ($sender->_delete_file !== false) {
                $source->delFile($_filepath);
            } else {
                dispatchError($sender, $filename_excludes, $_filepath);
            }
            CAppUI::stepAjax($e->getMessage(), UI_MSG_ERROR);
        }
    }
    // Suppression du fichier
    try {
        if ($sender->_delete_file !== false) {
            $source->delFile($_filepath);
        } else {
            dispatchError($sender, $filename_excludes, $_filepath);
        }
    } catch (CMbException $e) {
        $e->stepAjax(UI_MSG_WARNING);
        continue;
    }
    $count--;
    CAppUI::stepAjax("CEAIDispatcher-message_dispatch");
}
//// UNLOCK ////
unlink($filename_lock);
function dispatchError(CInteropSender $sender, $filename_excludes, $filepath)
{
    CAppUI::stepAjax("CEAIDispatcher-no_message_supported_for_this_actor", UI_MSG_WARNING, $sender->_data_format->_family_message->code);
    $file = fopen($filename_excludes, "a");
    fwrite($file, "{$filepath}\n");