当前位置: 首页>>代码示例>>PHP>>正文


PHP dol_remove_file_process函数代码示例

本文整理汇总了PHP中dol_remove_file_process函数的典型用法代码示例。如果您正苦于以下问题:PHP dol_remove_file_process函数的具体用法?PHP dol_remove_file_process怎么用?PHP dol_remove_file_process使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了dol_remove_file_process函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dol_add_file_process

    // Set tmp user directory
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    dol_add_file_process($upload_dir_tmp, 0, 0);
    $action = 'presend';
}
/*
 * Remove file in email form
 */
if (!empty($_POST['removedfile'])) {
    require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
    // Set tmp user directory
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    // TODO Delete only files that was uploaded from email form
    dol_remove_file_process($_POST['removedfile'], 0);
    $action = 'presend';
}
/*
 * Send mail
 */
if (($action == 'send' || $action == 'relance') && !$_POST['addfile'] && !$_POST['removedfile'] && !$_POST['cancel']) {
    $langs->load('mails');
    $subject = '';
    $actionmsg = '';
    $actionmsg2 = '';
    $result = $object->fetch($id);
    $sendtosocid = 0;
    if (method_exists($object, "fetch_thirdparty") && $object->element != 'societe') {
        $result = $object->fetch_thirdparty();
        $thirdparty = $object->thirdparty;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:actions_sendmails.inc.php

示例2: dol_add_file_process

    // Set tmp user directory TODO Use a dedicated directory for temp mails files
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    $mesg = dol_add_file_process($upload_dir_tmp, 0, 0);
    $action = 'presend';
}
/*
 * Remove file in email form
*/
if (GETPOST('removedfile')) {
    require_once DOL_DOCUMENT_ROOT . "/core/lib/files.lib.php";
    // Set tmp user directory
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    // TODO Delete only files that was uploaded from email form
    $mesg = dol_remove_file_process(GETPOST('removedfile'), 0);
    $action = 'presend';
}
/*
 * Send mail
*/
if ($action == 'send' && !GETPOST('addfile') && !GETPOST('removedfile') && !GETPOST('cancel')) {
    $langs->load('mails');
    if ($object->id > 0) {
        //        $ref = dol_sanitizeFileName($object->ref);
        //        $file = $conf->commande->dir_output . '/' . $ref . '/' . $ref . '.pdf';
        //        if (is_readable($file))
        //        {
        if (GETPOST('sendto')) {
            // Le destinataire a ete fourni via le champ libre
            $sendto = GETPOST('sendto');
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:fiche.php

示例3: dol_add_file_process

 if (GETPOST('addfile')) {
     require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
     // Set tmp user directory TODO Use a dedicated directory for temp mails files
     $vardir = $conf->user->dir_output . "/" . $user->id;
     $upload_dir_tmp = $vardir . '/temp';
     dol_add_file_process($upload_dir_tmp, 0, 0);
     $action = 'presend';
 }
 // Remove file in email form
 if (!empty($_POST['removedfile'])) {
     require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
     // Set tmp user directory
     $vardir = $conf->user->dir_output . "/" . $user->id;
     $upload_dir_tmp = $vardir . '/temp';
     // TODO Delete only files that was uploaded from email form
     dol_remove_file_process(GETPOST('removedfile', 'alpha'), 0);
     $action = 'presend';
 }
 // Send mail
 if ($action == 'send' && !$_POST['addfile'] && !$_POST['removedfile'] && !$_POST['cancel']) {
     $langs->load('mails');
     $object->fetch($id);
     $result = $object->fetch_thirdparty();
     if ($result > 0) {
         if ($_POST['sendto']) {
             // Le destinataire a ete fourni via le champ libre
             $sendto = $_POST['sendto'];
             $sendtoid = 0;
         } elseif ($_POST['receiver'] != '-1') {
             // Recipient was provided from combo list
             if ($_POST['receiver'] == 'thirdparty') {
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:card.php

示例4: dol_add_file_process

    // Set tmp user directory TODO Use a dedicated directory for temp mails files
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    dol_add_file_process($upload_dir_tmp, 0, 0);
    $action = 'presend';
}
/*
 * Remove file in email form
*/
if (GETPOST('removedfile', 'alpha')) {
    require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
    // Set tmp user directory
    $vardir = $conf->user->dir_output . "/" . $user->id;
    $upload_dir_tmp = $vardir . '/temp';
    // TODO Delete only files that was uploaded from email form
    dol_remove_file_process(GETPOST('removedfile', 'int'), 0);
    $action = 'presend';
}
/*
 * Send mail
*/
if ($action == 'send' && !GETPOST('addfile', 'alpha') && !GETPOST('removedfile', 'alpha') && !GETPOST('cancel', 'alpha')) {
    $langs->load('mails');
    //        $ref = dol_sanitizeFileName($object->ref);
    //        $file = $conf->expedition->dir_output . '/sending/' . $ref . '/' . $ref . '.pdf';
    //        if (is_readable($file))
    //        {
    if (GETPOST('sendto', 'alpha')) {
        // Le destinataire a ete fourni via le champ libre
        $sendto = GETPOST('sendto', 'alpha');
        $sendtoid = 0;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php


注:本文中的dol_remove_file_process函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。